/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 3.0.12
 *
 * This file is not intended to be easily readable and contains a number of
 * coding conventions designed to improve portability and efficiency. Do not make
 * changes to this file unless you know what you are doing--modify the SWIG
 * interface file instead.
 * ----------------------------------------------------------------------------- */


#ifndef SWIGPYTHON
#define SWIGPYTHON
#endif

#define SWIG_PYTHON_DIRECTOR_NO_VTABLE


#ifdef __cplusplus
/* SwigValueWrapper is described in swig.swg */
template<typename T> class SwigValueWrapper {
  struct SwigMovePointer {
    T *ptr;
    SwigMovePointer(T *p) : ptr(p) { }
    ~SwigMovePointer() { delete ptr; }
    SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
  } pointer;
  SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
  SwigValueWrapper(const SwigValueWrapper<T>& rhs);
public:
  SwigValueWrapper() : pointer(0) { }
  SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
  operator T&() const { return *pointer.ptr; }
  T *operator&() { return pointer.ptr; }
};

template <typename T> T SwigValueInit() {
  return T();
}
#endif

/* -----------------------------------------------------------------------------
 *  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(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
/* Use debug wrappers with the Python release dll */
# undef _DEBUG
# include <Python.h>
# define _DEBUG
#else
# include <Python.h>
#endif

/* -----------------------------------------------------------------------------
 * 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 "4"

/* 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

/* 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 to return 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)
#define SWIG_ERROR                 (-1)
#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 temporal 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 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 cast in linked list */
  struct swig_cast_info  *prev;			/* pointer to the previous cast */
} 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;
}

/*
  Check the typename
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
  if (ty) {
    swig_cast_info *iter = ty->cast;
    while (iter) {
      if (strcmp(iter->type->name, c) == 0) {
        if (iter == ty->cast)
          return iter;
        /* Move iter to the top of the linked list */
        iter->prev->next = iter->next;
        if (iter->next)
          iter->next->prev = iter->prev;
        iter->next = ty->cast;
        iter->prev = 0;
        if (ty->cast) ty->cast->prev = iter;
        ty->cast = iter;
        return iter;
      }
      iter = iter->next;
    }
  }
  return 0;
}

/*
  Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
  if (ty) {
    swig_cast_info *iter = ty->cast;
    while (iter) {
      if (iter->type == from) {
        if (iter == ty->cast)
          return iter;
        /* Move iter to the top of the linked list */
        iter->prev->next = iter->next;
        if (iter->next)
          iter->next->prev = iter->prev;
        iter->next = ty->cast;
        iter->prev = 0;
        if (ty->cast) ty->cast->prev = iter;
        ty->cast = iter;
        return iter;
      }
      iter = iter->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.  We choose
     to print the last name, as it is often (?) the most
     specific. */
  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 *cast = ti->cast;
  /* if (ti->clientdata == clientdata) return; */
  ti->clientdata = clientdata;

  while (cast) {
    if (!cast->converter) {
      swig_type_info *tc = cast->type;
      if (!tc->clientdata) {
	SWIG_TypeClientData(tc, clientdata);
      }
    }
    cast = cast->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

/*  Errors in SWIG */
#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



/* 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 PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
#define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)

#endif

#ifndef Py_TYPE
#  define Py_TYPE(op) ((op)->ob_type)
#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


/* Warning: This function will allocate a new string in Python 3,
 * so please call SWIG_Python_str_DelForPy3(x) to free the space.
 */
SWIGINTERN char*
SWIG_Python_str_AsChar(PyObject *str)
{
#if PY_VERSION_HEX >= 0x03000000
  char *cstr;
  char *newstr;
  Py_ssize_t len;
  str = PyUnicode_AsUTF8String(str);
  PyBytes_AsStringAndSize(str, &cstr, &len);
  newstr = (char *) malloc(len+1);
  memcpy(newstr, cstr, len+1);
  Py_XDECREF(str);
  return newstr;
#else
  return PyString_AsString(str);
#endif
}

#if PY_VERSION_HEX >= 0x03000000
#  define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
#else
#  define SWIG_Python_str_DelForPy3(x) 
#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
}

/* Add PyOS_snprintf for old Pythons */
#if PY_VERSION_HEX < 0x02020000
# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
#  define PyOS_snprintf _snprintf
# else
#  define PyOS_snprintf snprintf
# endif
#endif

/* A crude PyString_FromFormat implementation for old Pythons */
#if PY_VERSION_HEX < 0x02020000

#ifndef SWIG_PYBUFFER_SIZE
# define SWIG_PYBUFFER_SIZE 1024
#endif

static PyObject *
PyString_FromFormat(const char *fmt, ...) {
  va_list ap;
  char buf[SWIG_PYBUFFER_SIZE * 2];
  int res;
  va_start(ap, fmt);
  res = vsnprintf(buf, sizeof(buf), fmt, ap);
  va_end(ap);
  return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
}
#endif

#ifndef PyObject_DEL
# define PyObject_DEL PyObject_Del
#endif

/* A crude PyExc_StopIteration exception for old Pythons */
#if PY_VERSION_HEX < 0x02020000
# ifndef PyExc_StopIteration
#  define PyExc_StopIteration PyExc_RuntimeError
# endif
# ifndef PyObject_GenericGetAttr
#  define PyObject_GenericGetAttr 0
# endif
#endif

/* Py_NotImplemented is defined in 2.1 and up. */
#if PY_VERSION_HEX < 0x02010000
# ifndef Py_NotImplemented
#  define Py_NotImplemented PyExc_RuntimeError
# endif
#endif

/* A crude PyString_AsStringAndSize implementation for old Pythons */
#if PY_VERSION_HEX < 0x02010000
# ifndef PyString_AsStringAndSize
#  define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
# endif
#endif

/* PySequence_Size for old Pythons */
#if PY_VERSION_HEX < 0x02000000
# ifndef PySequence_Size
#  define PySequence_Size PySequence_Length
# endif
#endif

/* PyBool_FromLong for old Pythons */
#if PY_VERSION_HEX < 0x02030000
static
PyObject *PyBool_FromLong(long ok)
{
  PyObject *result = ok ? Py_True : Py_False;
  Py_INCREF(result);
  return result;
}
#endif

/* Py_ssize_t for old Pythons */
/* This code is as recommended by: */
/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
typedef int Py_ssize_t;
# define PY_SSIZE_T_MAX INT_MAX
# define PY_SSIZE_T_MIN INT_MIN
typedef inquiry lenfunc;
typedef intargfunc ssizeargfunc;
typedef intintargfunc ssizessizeargfunc;
typedef intobjargproc ssizeobjargproc;
typedef intintobjargproc ssizessizeobjargproc;
typedef getreadbufferproc readbufferproc;
typedef getwritebufferproc writebufferproc;
typedef getsegcountproc segcountproc;
typedef getcharbufferproc charbufferproc;
static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc))
{
  long result = 0;
  PyObject *i = PyNumber_Int(x);
  if (i) {
    result = PyInt_AsLong(i);
    Py_DECREF(i);
  }
  return result;
}
#endif

#if PY_VERSION_HEX < 0x02050000
#define PyInt_FromSize_t(x) PyInt_FromLong((long)x)
#endif

#if PY_VERSION_HEX < 0x02040000
#define Py_VISIT(op)				\
  do { 						\
    if (op) {					\
      int vret = visit((op), arg);		\
      if (vret)					\
        return vret;				\
    }						\
  } while (0)
#endif

#if PY_VERSION_HEX < 0x02030000
typedef struct {
  PyTypeObject type;
  PyNumberMethods as_number;
  PyMappingMethods as_mapping;
  PySequenceMethods as_sequence;
  PyBufferProcs as_buffer;
  PyObject *name, *slots;
} PyHeapTypeObject;
#endif

#if PY_VERSION_HEX < 0x02030000
typedef destructor freefunc;
#endif

#if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \
     (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \
     (PY_MAJOR_VERSION > 3))
# define SWIGPY_USE_CAPSULE
# define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
#endif

#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

/* -----------------------------------------------------------------------------
 * 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;
  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) {
    char *tmp;
    PyObject *old_str = PyObject_Str(value);
    PyErr_Clear();
    Py_XINCREF(type);

    PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
    SWIG_Python_str_DelForPy3(tmp);
    Py_DECREF(old_str);
    Py_DECREF(value);
  } else {
    PyErr_SetString(PyExc_RuntimeError, mesg);
  }
}

#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)
#    if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
#      define SWIG_PYTHON_USE_GIL
#    endif
#  endif
#  if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
#    ifndef SWIG_PYTHON_INITIALIZE_THREADS
#     define SWIG_PYTHON_INITIALIZE_THREADS  PyEval_InitThreads() 
#    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) { PyEval_RestoreThread(save); status = false; }}
         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;
  char *name;
  long lvalue;
  double dvalue;
  void   *pvalue;
  swig_type_info **ptype;
} swig_const_info;


/* -----------------------------------------------------------------------------
 * Wrapper of PyInstanceMethod_New() used in Python 3
 * It is exported to the generated module, used for -fastproxy
 * ----------------------------------------------------------------------------- */
#if PY_VERSION_HEX >= 0x03000000
SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
{
  return PyInstanceMethod_New(func);
}
#else
SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func))
{
  return NULL;
}
#endif

#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.
 *
 * ----------------------------------------------------------------------------- */

/* 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);
  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);
  Py_DECREF(s);
}

SWIGINTERN void
SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {   
#if PY_VERSION_HEX < 0x02030000
  PyDict_SetItemString(d, (char *)name, obj);
#else
  PyDict_SetItemString(d, name, obj);
#endif
  Py_DECREF(obj);
  if (public_interface)
    SwigPyBuiltin_AddPublicSymbol(public_interface, name);
}

#else

SWIGINTERN void
SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {   
#if PY_VERSION_HEX < 0x02030000
  PyDict_SetItemString(d, (char *)name, obj);
#else
  PyDict_SetItemString(d, name, obj);
#endif
  Py_DECREF(obj);                            
}

#endif

/* Append a value to the result obj */

SWIGINTERN PyObject*
SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
  if (!result) {
    result = obj;
  } else if (result == Py_None) {
    Py_DECREF(result);
    result = obj;
  } else {
    if (!PyList_Check(result)) {
      PyObject *o2 = result;
      result = PyList_New(1);
      PyList_SetItem(result, 0, o2);
    }
    PyList_Append(result,obj);
    Py_DECREF(obj);
  }
  return result;
#else
  PyObject*   o2;
  PyObject*   o3;
  if (!result) {
    result = obj;
  } else if (result == Py_None) {
    Py_DECREF(result);
    result = obj;
  } else {
    if (!PyTuple_Check(result)) {
      o2 = result;
      result = PyTuple_New(1);
      PyTuple_SET_ITEM(result, 0, o2);
    }
    o3 = PyTuple_New(1);
    PyTuple_SET_ITEM(o3, 0, obj);
    o2 = result;
    result = PySequence_Concat(o2, o3);
    Py_DECREF(o2);
    Py_DECREF(o3);
  }
  return result;
#endif
}

/* 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;
    }    
  }
}

/* A functor is a function object with one single object argument */
#if PY_VERSION_HEX >= 0x02020000
#define SWIG_Python_CallFunctor(functor, obj)	        PyObject_CallFunctionObjArgs(functor, obj, NULL);
#else
#define SWIG_Python_CallFunctor(functor, obj)	        PyObject_CallFunction(functor, "O", obj);
#endif

/*
  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

/* -----------------------------------------------------------------------------
 * 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

/*  How to access Py_None */
#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#  ifndef SWIG_PYTHON_NO_BUILD_NONE
#    ifndef SWIG_PYTHON_BUILD_NONE
#      define SWIG_PYTHON_BUILD_NONE
#    endif
#  endif
#endif

#ifdef SWIG_PYTHON_BUILD_NONE
#  ifdef Py_None
#   undef Py_None
#   define Py_None SWIG_Py_None()
#  endif
SWIGRUNTIMEINLINE PyObject * 
_SWIG_Py_None(void)
{
  PyObject *none = Py_BuildValue((char*)"");
  Py_DECREF(none);
  return none;
}
SWIGRUNTIME PyObject * 
SWIG_Py_None(void)
{
  static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
  return none;
}
#endif

/* The python void return value */

SWIGRUNTIMEINLINE PyObject * 
SWIG_Py_Void(void)
{
  PyObject *none = Py_None;
  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;
  return data ? data->implicitconv : 0;
}

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;
    Py_INCREF(data->klass);
    /* the newraw method and newargs arguments used to create a new raw instance */
    if (PyClass_Check(obj)) {
      data->newraw = 0;
      data->newargs = obj;
      Py_INCREF(obj);
    } else {
#if (PY_VERSION_HEX < 0x02020000)
      data->newraw = 0;
#else
      data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
#endif
      if (data->newraw) {
	Py_INCREF(data->newraw);
	data->newargs = PyTuple_New(1);
	PyTuple_SetItem(data->newargs, 0, obj);
      } else {
	data->newargs = obj;
      }
      Py_INCREF(data->newargs);
    }
    /* the destroy method, aka as the C++ delete method */
    data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
    if (PyErr_Occurred()) {
      PyErr_Clear();
      data->destroy = 0;
    }
    if (data->destroy) {
      int flags;
      Py_INCREF(data->destroy);
      flags = PyCFunction_GET_FLAGS(data->destroy);
#ifdef METH_O
      data->delargs = !(flags & (METH_O));
#else
      data->delargs = 0;
#endif
    } else {
      data->delargs = 0;
    }
    data->implicitconv = 0;
    data->pytype = 0;
    return data;
  }
}

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

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

typedef struct {
  PyObject_HEAD
  void *ptr;
  swig_type_info *ty;
  int own;
  PyObject *next;
#ifdef SWIGPYTHON_BUILTIN
  PyObject *dict;
#endif
} SwigPyObject;


#ifdef SWIGPYTHON_BUILTIN

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

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

  Py_INCREF(sobj->dict);
  return sobj->dict;
}

#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) {
    if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
      PyObject *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
	Py_DECREF(ofmt);
      }
      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 *
#ifdef METH_NOARGS
SwigPyObject_repr(SwigPyObject *v)
#else
SwigPyObject_repr(SwigPyObject *v, PyObject *args)
#endif
{
  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 (v->next) {
# ifdef METH_NOARGS
    PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
# else
    PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
# endif
# if PY_VERSION_HEX >= 0x03000000
    PyObject *joined = PyUnicode_Concat(repr, nrep);
    Py_DecRef(repr);
    Py_DecRef(nrep);
    repr = joined;
# else
    PyString_ConcatAndDel(&repr,nrep);
# endif
  }
  return repr;  
}

SWIGRUNTIME int
SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
{
  void *i = v->ptr;
  void *j = w->ptr;
  return (i < j) ? -1 : ((i > j) ? 1 : 0);
}

/* Added for Python 3.x, would it also be useful for Python 2.x? */
SWIGRUNTIME PyObject*
SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
{
  PyObject* res;
  if( op != Py_EQ && op != Py_NE ) {
    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) {
#ifdef SWIGPYTHON_BUILTIN
  PyTypeObject *target_tp = SwigPyObject_type();
  if (PyType_IsSubtype(op->ob_type, target_tp))
    return 1;
  return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
#else
  return (Py_TYPE(op) == SwigPyObject_type())
    || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
#endif
}

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

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 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 *val = NULL, *type = NULL, *tb = NULL;
      PyErr_Fetch(&val, &type, &tb);

      if (data->delargs) {
        /* we need to create a temporary object to carry the destroy operation */
        PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
        res = SWIG_Python_CallFunctor(destroy, tmp);
        Py_DECREF(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(val, type, tb);

      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
  } 
  Py_XDECREF(next);
  PyObject_DEL(v);
}

SWIGRUNTIME PyObject* 
SwigPyObject_append(PyObject* v, PyObject* next)
{
  SwigPyObject *sobj = (SwigPyObject *) v;
#ifndef METH_O
  PyObject *tmp = 0;
  if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
  next = tmp;
#endif
  if (!SwigPyObject_Check(next)) {
    PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject");
    return NULL;
  }
  sobj->next = next;
  Py_INCREF(next);
  return SWIG_Py_Void();
}

SWIGRUNTIME PyObject* 
#ifdef METH_NOARGS
SwigPyObject_next(PyObject* v)
#else
SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
#endif
{
  SwigPyObject *sobj = (SwigPyObject *) v;
  if (sobj->next) {    
    Py_INCREF(sobj->next);
    return sobj->next;
  } else {
    return SWIG_Py_Void();
  }
}

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

SWIGINTERN PyObject*
#ifdef METH_NOARGS
SwigPyObject_acquire(PyObject *v)
#else
SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
#endif
{
  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 (PY_VERSION_HEX < 0x02020000)
  if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
#elif (PY_VERSION_HEX < 0x02050000)
  if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) 
#else
  if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) 
#endif
    {
      return NULL;
    } 
  else
    {
      SwigPyObject *sobj = (SwigPyObject *)v;
      PyObject *obj = PyBool_FromLong(sobj->own);
      if (val) {
#ifdef METH_NOARGS
	if (PyObject_IsTrue(val)) {
	  SwigPyObject_acquire(v);
	} else {
	  SwigPyObject_disown(v);
	}
#else
	if (PyObject_IsTrue(val)) {
	  SwigPyObject_acquire(v,args);
	} else {
	  SwigPyObject_disown(v,args);
	}
#endif
      } 
      return obj;
    }
}

#ifdef METH_O
static PyMethodDef
swigobject_methods[] = {
  {(char *)"disown",  (PyCFunction)SwigPyObject_disown,  METH_NOARGS,  (char *)"releases ownership of the pointer"},
  {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS,  (char *)"acquires ownership of the pointer"},
  {(char *)"own",     (PyCFunction)SwigPyObject_own,     METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
  {(char *)"append",  (PyCFunction)SwigPyObject_append,  METH_O,       (char *)"appends another 'this' object"},
  {(char *)"next",    (PyCFunction)SwigPyObject_next,    METH_NOARGS,  (char *)"returns the next 'this' object"},
  {(char *)"__repr__",(PyCFunction)SwigPyObject_repr,    METH_NOARGS,  (char *)"returns object representation"},
  {0, 0, 0, 0}  
};
#else
static PyMethodDef
swigobject_methods[] = {
  {(char *)"disown",  (PyCFunction)SwigPyObject_disown,  METH_VARARGS,  (char *)"releases ownership of the pointer"},
  {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS,  (char *)"acquires ownership of the pointer"},
  {(char *)"own",     (PyCFunction)SwigPyObject_own,     METH_VARARGS,  (char *)"returns/sets ownership of the pointer"},
  {(char *)"append",  (PyCFunction)SwigPyObject_append,  METH_VARARGS,  (char *)"appends another 'this' object"},
  {(char *)"next",    (PyCFunction)SwigPyObject_next,    METH_VARARGS,  (char *)"returns the next 'this' object"},
  {(char *)"__repr__",(PyCFunction)SwigPyObject_repr,   METH_VARARGS,  (char *)"returns object representation"},
  {0, 0, 0, 0}  
};
#endif

#if PY_VERSION_HEX < 0x02020000
SWIGINTERN PyObject *
SwigPyObject_getattr(SwigPyObject *sobj,char *name)
{
  return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
}
#endif

SWIGRUNTIME PyTypeObject*
SwigPyObject_TypeOnce(void) {
  static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";

  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 */
#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */
    0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
#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
      (char *)"SwigPyObject",               /* tp_name */
      sizeof(SwigPyObject),                 /* tp_basicsize */
      0,                                    /* tp_itemsize */
      (destructor)SwigPyObject_dealloc,     /* tp_dealloc */
      0,                                    /* tp_print */
#if PY_VERSION_HEX < 0x02020000
      (getattrfunc)SwigPyObject_getattr,    /* tp_getattr */
#else
      (getattrfunc)0,                       /* tp_getattr */
#endif
      (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 */
      swigobject_doc,                       /* tp_doc */
      0,                                    /* tp_traverse */
      0,                                    /* tp_clear */
      (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
      0,                                    /* tp_weaklistoffset */
#if PY_VERSION_HEX >= 0x02020000
      0,                                    /* tp_iter */
      0,                                    /* tp_iternext */
      swigobject_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 */
#endif
#if PY_VERSION_HEX >= 0x02030000
      0,                                    /* tp_del */
#endif
#if PY_VERSION_HEX >= 0x02060000
      0,                                    /* tp_version_tag */
#endif
#if PY_VERSION_HEX >= 0x03040000
      0,                                    /* tp_finalize */
#endif
#ifdef COUNT_ALLOCS
      0,                                    /* tp_allocs */
      0,                                    /* tp_frees */
      0,                                    /* tp_maxalloc */
#if PY_VERSION_HEX >= 0x02050000
      0,                                    /* tp_prev */
#endif
      0                                     /* tp_next */
#endif
    };
    swigpyobject_type = tmp;
    type_init = 1;
#if PY_VERSION_HEX < 0x02020000
    swigpyobject_type.ob_type = &PyType_Type;
#else
    if (PyType_Ready(&swigpyobject_type) < 0)
      return NULL;
#endif
  }
  return &swigpyobject_type;
}

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;
  }
  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 int
SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
{
  char result[SWIG_BUFFER_SIZE];
  fputs("<Swig Packed ", fp); 
  if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
    fputs("at ", fp); 
    fputs(result, fp); 
  }
  fputs(v->ty->name,fp); 
  fputs(">", fp);
  return 0; 
}
  
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((char *)v->pack, (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) {
  return ((op)->ob_type == SwigPyPacked_TypeOnce()) 
    || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
}

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

SWIGRUNTIME PyTypeObject*
SwigPyPacked_TypeOnce(void) {
  static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
  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
      (char *)"SwigPyPacked",               /* tp_name */
      sizeof(SwigPyPacked),                 /* tp_basicsize */
      0,                                    /* tp_itemsize */
      (destructor)SwigPyPacked_dealloc,     /* tp_dealloc */
      (printfunc)SwigPyPacked_print,        /* tp_print */
      (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 */
      swigpacked_doc,                       /* tp_doc */
      0,                                    /* tp_traverse */
      0,                                    /* tp_clear */
      0,                                    /* tp_richcompare */
      0,                                    /* tp_weaklistoffset */
#if PY_VERSION_HEX >= 0x02020000
      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 */
#endif
#if PY_VERSION_HEX >= 0x02030000
      0,                                    /* tp_del */
#endif
#if PY_VERSION_HEX >= 0x02060000
      0,                                    /* tp_version_tag */
#endif
#if PY_VERSION_HEX >= 0x03040000
      0,                                    /* tp_finalize */
#endif
#ifdef COUNT_ALLOCS
      0,                                    /* tp_allocs */
      0,                                    /* tp_frees */
      0,                                    /* tp_maxalloc */
#if PY_VERSION_HEX >= 0x02050000
      0,                                    /* tp_prev */
#endif
      0                                     /* tp_next */
#endif
    };
    swigpypacked_type = tmp;
    type_init = 1;
#if PY_VERSION_HEX < 0x02020000
    swigpypacked_type.ob_type = &PyType_Type;
#else
    if (PyType_Ready(&swigpypacked_type) < 0)
      return NULL;
#endif
  }
  return &swigpypacked_type;
}

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_DEL((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
 * ----------------------------------------------------------------------------- */

SWIGRUNTIMEINLINE PyObject *
_SWIG_This(void)
{
    return SWIG_Python_str_FromChar("this");
}

static PyObject *swig_this = NULL;

SWIGRUNTIME PyObject *
SWIG_This(void)
{
  if (swig_this == NULL)
    swig_this = _SWIG_This();
  return swig_this;
}

/* #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

SWIGRUNTIME SwigPyObject *
SWIG_Python_GetSwigThis(PyObject *pyobj) 
{
  PyObject *obj;

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

#ifdef SWIGPYTHON_BUILTIN
  (void)obj;
# ifdef PyWeakref_CheckProxy
  if (PyWeakref_CheckProxy(pyobj)) {
    pyobj = PyWeakref_GET_OBJECT(pyobj);
    if (pyobj && SwigPyObject_Check(pyobj))
      return (SwigPyObject*) pyobj;
  }
# endif
  return NULL;
#else

  obj = 0;

#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
  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 {
#ifdef PyWeakref_CheckProxy
      if (PyWeakref_CheckProxy(pyobj)) {
	PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
	return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
      }
#endif
      obj = PyObject_GetAttr(pyobj,SWIG_This());
      if (obj) {
	Py_DECREF(obj);
      } else {
	if (PyErr_Occurred()) PyErr_Clear();
	return 0;
      }
    }
  }
#else
  obj = PyObject_GetAttr(pyobj,SWIG_This());
  if (obj) {
    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 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 (own)
      *own = *own | sobj->own;
    if (flags & SWIG_POINTER_DISOWN) {
      sobj->own = 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);		    
                }
              }
            }
            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;
    
    /* here we get the method pointer for callbacks */
    const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
    const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
    if (desc)
      desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
    if (!desc) 
      return SWIG_ERROR;
    if (ty) {
      swig_cast_info *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;
      }
    } else {
      *ptr = vptr;
    }
    return SWIG_OK;
  }
}

/* Convert a packed value 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)
{
#if (PY_VERSION_HEX >= 0x02020000)
  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;
	  PyDict_SetItem(dict, SWIG_This(), swig_this);
	}
      }
#else
      PyObject *key = SWIG_This();
      PyObject_SetAttr(inst, key, swig_this);
#endif
    }
  } else {
#if PY_VERSION_HEX >= 0x03000000
    inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
    if (inst) {
      PyObject_SetAttr(inst, SWIG_This(), swig_this);
      Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
    }
#else
    PyObject *dict = PyDict_New();
    if (dict) {
      PyDict_SetItem(dict, SWIG_This(), swig_this);
      inst = PyInstance_NewRaw(data->newargs, dict);
      Py_DECREF(dict);
    }
#endif
  }
  return inst;
#else
#if (PY_VERSION_HEX >= 0x02010000)
  PyObject *inst = 0;
  PyObject *dict = PyDict_New();
  if (dict) {
    PyDict_SetItem(dict, SWIG_This(), swig_this);
    inst = PyInstance_NewRaw(data->newargs, dict);
    Py_DECREF(dict);
  }
  return (PyObject *) inst;
#else
  PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
  if (inst == NULL) {
    return NULL;
  }
  inst->in_class = (PyClassObject *)data->newargs;
  Py_INCREF(inst->in_class);
  inst->in_dict = PyDict_New();
  if (inst->in_dict == NULL) {
    Py_DECREF(inst);
    return NULL;
  }
#ifdef Py_TPFLAGS_HAVE_WEAKREFS
  inst->in_weakreflist = NULL;
#endif
#ifdef Py_TPFLAGS_GC
  PyObject_GC_Init(inst);
#endif
  PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
  return (PyObject *) inst;
#endif
#endif
}

SWIGRUNTIME void
SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
{
 PyObject *dict;
#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
 PyObject **dictptr = _PyObject_GetDictPtr(inst);
 if (dictptr != NULL) {
   dict = *dictptr;
   if (dict == NULL) {
     dict = PyDict_New();
     *dictptr = dict;
   }
   PyDict_SetItem(dict, SWIG_This(), swig_this);
   return;
 }
#endif
 dict = PyObject_GetAttrString(inst, (char*)"__dict__");
 PyDict_SetItem(dict, SWIG_This(), swig_this);
 Py_DECREF(dict);
} 


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) {
      SwigPyObject_append((PyObject*) sthis, obj[1]);
    } else {
      SWIG_Python_SetSwigThis(obj[0], obj[1]);
    }
    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) {
        PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
        while (newobj->next)
	  newobj = (SwigPyObject *) newobj->next;
        newobj->next = next_self;
        newobj = (SwigPyObject *)next_self;
#ifdef SWIGPYTHON_BUILTIN
        newobj->dict = 0;
#endif
      }
    } else {
      newobj = PyObject_New(SwigPyObject, clientdata->pytype);
#ifdef SWIGPYTHON_BUILTIN
      newobj->dict = 0;
#endif
    }
    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);
    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

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

#if PY_MAJOR_VERSION < 2
/* PyModule_AddObject function was introduced in Python 2.0.  The following function
   is copied out of Python/modsupport.c in python version 2.3.4 */
SWIGINTERN int
PyModule_AddObject(PyObject *m, char *name, PyObject *o)
{
  PyObject *dict;
  if (!PyModule_Check(m)) {
    PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg");
    return SWIG_ERROR;
  }
  if (!o) {
    PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value");
    return SWIG_ERROR;
  }
  
  dict = PyModule_GetDict(m);
  if (dict == NULL) {
    /* Internal error -- modules must have a dict! */
    PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
		 PyModule_GetName(m));
    return SWIG_ERROR;
  }
  if (PyDict_SetItemString(dict, name, o))
    return SWIG_ERROR;
  Py_DECREF(o);
  return SWIG_OK;
}
#endif

SWIGRUNTIME void
#ifdef SWIGPY_USE_CAPSULE
SWIG_Python_DestroyModule(PyObject *obj)
#else
SWIG_Python_DestroyModule(void *vptr)
#endif
{
#ifdef SWIGPY_USE_CAPSULE
  swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
#else
  swig_module_info *swig_module = (swig_module_info *) vptr;
#endif
  swig_type_info **types = swig_module->types;
  size_t i;
  for (i =0; i < swig_module->size; ++i) {
    swig_type_info *ty = types[i];
    if (ty->owndata) {
      SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
      if (data) SwigPyClientData_Del(data);
    }
  }
  Py_DECREF(SWIG_This());
  swig_this = NULL;
}

SWIGRUNTIME void
SWIG_Python_SetModule(swig_module_info *swig_module) {
#if PY_VERSION_HEX >= 0x03000000
 /* Add a dummy module object into sys.modules */
  PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION);
#else
  static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */
  PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
#endif
#ifdef SWIGPY_USE_CAPSULE
  PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
  if (pointer && module) {
    PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
  } else {
    Py_XDECREF(pointer);
  }
#else
  PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
  if (pointer && module) {
    PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
  } else {
    Py_XDECREF(pointer);
  }
#endif
}

/* The python cached type query */
SWIGRUNTIME PyObject *
SWIG_Python_TypeCache(void) {
  static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
  return cache;
}

SWIGRUNTIME swig_type_info *
SWIG_Python_TypeQuery(const char *type)
{
  PyObject *cache = SWIG_Python_TypeCache();
  PyObject *key = SWIG_Python_str_FromChar(type); 
  PyObject *obj = PyDict_GetItem(cache, key);
  swig_type_info *descriptor;
  if (obj) {
#ifdef SWIGPY_USE_CAPSULE
    descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL);
#else
    descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
#endif
  } else {
    swig_module_info *swig_module = SWIG_GetModule(0);
    descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
    if (descriptor) {
#ifdef SWIGPY_USE_CAPSULE
      obj = PyCapsule_New((void*) descriptor, NULL, NULL);
#else
      obj = PyCObject_FromVoidPtr(descriptor, NULL);
#endif
      PyDict_SetItem(cache, key, obj);
      Py_DECREF(obj);
    }
  }
  Py_DECREF(key);
  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) {
      char *tmp;
      PyObject *old_str = PyObject_Str(value);
      Py_XINCREF(type);
      PyErr_Clear();
      if (infront) {
	PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
      } else {
	PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
      }
      SWIG_Python_str_DelForPy3(tmp);
      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 : "";
}

SWIGRUNTIME void
SWIG_Python_TypeError(const char *type, PyObject *obj)
{
  if (type) {
#if defined(SWIG_COBJECT_TYPES)
    if (obj && SwigPyObject_Check(obj)) {
      const char *otype = (const char *) SwigPyObject_GetDesc(obj);
      if (otype) {
	PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
		     type, otype);
	return;
      }
    } else 
#endif      
    {
      const char *otype = (obj ? obj->ob_type->tp_name : 0); 
      if (otype) {
	PyObject *str = PyObject_Str(obj);
	const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
	if (cstr) {
	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
		       type, otype, cstr);
          SWIG_Python_str_DelForPy3(cstr);
	} else {
	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
		       type, otype);
	}
	Py_XDECREF(str);
	return;
      }
    }   
    PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
  } else {
    PyErr_Format(PyExc_TypeError, "unexpected type is received");
  }
}


/* 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();
#if SWIG_POINTER_EXCEPTION
    if (flags) {
      SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
      SWIG_Python_ArgFail(argnum);
    }
#endif
  }
  return result;
}

#ifdef SWIGPYTHON_BUILTIN
SWIGRUNTIME int
SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
  PyTypeObject *tp = obj->ob_type;
  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
  {
    PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
    return -1;
  } else {
    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 = descr->ob_type->tp_descr_set;
  if (!f) {
    if (PyString_Check(name)) {
      encoded_name = name;
      Py_INCREF(name);
    } else {
      encoded_name = PyUnicode_AsUTF8String(name);
    }
    PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
    Py_DECREF(encoded_name);
  } else {
    res = f(descr, obj, value);
  }
  
  done:
  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) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else 



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


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

#define SWIGTYPE_p_ASX swig_types[0]
#define SWIGTYPE_p_AUDLiborPtr swig_types[1]
#define SWIGTYPE_p_AmericanExercisePtr swig_types[2]
#define SWIGTYPE_p_AmortizingPaymentPtr swig_types[3]
#define SWIGTYPE_p_AnalyticBarrierEnginePtr swig_types[4]
#define SWIGTYPE_p_AnalyticBinaryBarrierEnginePtr swig_types[5]
#define SWIGTYPE_p_AnalyticCapFloorEnginePtr swig_types[6]
#define SWIGTYPE_p_AnalyticContinuousGeometricAveragePriceAsianEnginePtr swig_types[7]
#define SWIGTYPE_p_AnalyticDigitalAmericanEnginePtr swig_types[8]
#define SWIGTYPE_p_AnalyticDigitalAmericanKOEnginePtr swig_types[9]
#define SWIGTYPE_p_AnalyticDiscreteGeometricAveragePriceAsianEnginePtr swig_types[10]
#define SWIGTYPE_p_AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr swig_types[11]
#define SWIGTYPE_p_AnalyticDividendEuropeanEnginePtr swig_types[12]
#define SWIGTYPE_p_AnalyticDoubleBarrierBinaryEnginePtr swig_types[13]
#define SWIGTYPE_p_AnalyticDoubleBarrierEnginePtr swig_types[14]
#define SWIGTYPE_p_AnalyticEuropeanEnginePtr swig_types[15]
#define SWIGTYPE_p_AnalyticHaganPricerPtr swig_types[16]
#define SWIGTYPE_p_AnalyticHestonEnginePtr swig_types[17]
#define SWIGTYPE_p_AnalyticPTDHestonEnginePtr swig_types[18]
#define SWIGTYPE_p_AoniaPtr swig_types[19]
#define SWIGTYPE_p_Array swig_types[20]
#define SWIGTYPE_p_AssetOrNothingPayoffPtr swig_types[21]
#define SWIGTYPE_p_AssetSwapPtr swig_types[22]
#define SWIGTYPE_p_Average swig_types[23]
#define SWIGTYPE_p_AverageBasketPayoffPtr swig_types[24]
#define SWIGTYPE_p_BFGS swig_types[25]
#define SWIGTYPE_p_BachelierCapFloorEnginePtr swig_types[26]
#define SWIGTYPE_p_BachelierSwaptionEnginePtr swig_types[27]
#define SWIGTYPE_p_BackwardFlat swig_types[28]
#define SWIGTYPE_p_BackwardFlatZeroCurvePtr swig_types[29]
#define SWIGTYPE_p_BaroneAdesiWhaleyApproximationEnginePtr swig_types[30]
#define SWIGTYPE_p_Barrier swig_types[31]
#define SWIGTYPE_p_BarrierOptionPtr swig_types[32]
#define SWIGTYPE_p_BasketOptionPtr swig_types[33]
#define SWIGTYPE_p_BasketPayoffPtr swig_types[34]
#define SWIGTYPE_p_BatesEnginePtr swig_types[35]
#define SWIGTYPE_p_BatesModelPtr swig_types[36]
#define SWIGTYPE_p_BatesProcessPtr swig_types[37]
#define SWIGTYPE_p_Bbsw1MPtr swig_types[38]
#define SWIGTYPE_p_Bbsw2MPtr swig_types[39]
#define SWIGTYPE_p_Bbsw3MPtr swig_types[40]
#define SWIGTYPE_p_Bbsw4MPtr swig_types[41]
#define SWIGTYPE_p_Bbsw5MPtr swig_types[42]
#define SWIGTYPE_p_Bbsw6MPtr swig_types[43]
#define SWIGTYPE_p_BbswPtr swig_types[44]
#define SWIGTYPE_p_BermudanExercisePtr swig_types[45]
#define SWIGTYPE_p_BinomialBarrierEnginePtr swig_types[46]
#define SWIGTYPE_p_BinomialConvertibleEnginePtr swig_types[47]
#define SWIGTYPE_p_BinomialDistribution swig_types[48]
#define SWIGTYPE_p_BinomialDoubleBarrierEnginePtr swig_types[49]
#define SWIGTYPE_p_BinomialVanillaEnginePtr swig_types[50]
#define SWIGTYPE_p_Bisection swig_types[51]
#define SWIGTYPE_p_BivariateCumulativeNormalDistribution swig_types[52]
#define SWIGTYPE_p_BivariateCumulativeNormalDistributionDr78 swig_types[53]
#define SWIGTYPE_p_BivariateCumulativeNormalDistributionWe04DP swig_types[54]
#define SWIGTYPE_p_BjerksundStenslandApproximationEnginePtr swig_types[55]
#define SWIGTYPE_p_Bkbm1MPtr swig_types[56]
#define SWIGTYPE_p_Bkbm2MPtr swig_types[57]
#define SWIGTYPE_p_Bkbm3MPtr swig_types[58]
#define SWIGTYPE_p_Bkbm4MPtr swig_types[59]
#define SWIGTYPE_p_Bkbm5MPtr swig_types[60]
#define SWIGTYPE_p_Bkbm6MPtr swig_types[61]
#define SWIGTYPE_p_BkbmPtr swig_types[62]
#define SWIGTYPE_p_BlackCalculator swig_types[63]
#define SWIGTYPE_p_BlackCallableFixedRateBondEnginePtr swig_types[64]
#define SWIGTYPE_p_BlackCapFloorEnginePtr swig_types[65]
#define SWIGTYPE_p_BlackConstantVolPtr swig_types[66]
#define SWIGTYPE_p_BlackDeltaCalculator swig_types[67]
#define SWIGTYPE_p_BlackIborCouponPricerPtr swig_types[68]
#define SWIGTYPE_p_BlackKarasinskiPtr swig_types[69]
#define SWIGTYPE_p_BlackProcessPtr swig_types[70]
#define SWIGTYPE_p_BlackScholesMertonProcessPtr swig_types[71]
#define SWIGTYPE_p_BlackScholesProcessPtr swig_types[72]
#define SWIGTYPE_p_BlackSwaptionEnginePtr swig_types[73]
#define SWIGTYPE_p_BlackVarianceCurvePtr swig_types[74]
#define SWIGTYPE_p_BlackVarianceSurfacePtr swig_types[75]
#define SWIGTYPE_p_BlackVolTermStructure swig_types[76]
#define SWIGTYPE_p_BondFunctions swig_types[77]
#define SWIGTYPE_p_BondHelperPtr swig_types[78]
#define SWIGTYPE_p_BondPtr swig_types[79]
#define SWIGTYPE_p_BoundaryConstraint swig_types[80]
#define SWIGTYPE_p_BoxMullerGaussianRngT_KnuthUniformRng_t swig_types[81]
#define SWIGTYPE_p_BoxMullerGaussianRngT_LecuyerUniformRng_t swig_types[82]
#define SWIGTYPE_p_BoxMullerGaussianRngT_MersenneTwisterUniformRng_t swig_types[83]
#define SWIGTYPE_p_Brent swig_types[84]
#define SWIGTYPE_p_BrownianBridge swig_types[85]
#define SWIGTYPE_p_CADLiborPtr swig_types[86]
#define SWIGTYPE_p_CHFLiborPtr swig_types[87]
#define SWIGTYPE_p_CLGaussianRngT_KnuthUniformRng_t swig_types[88]
#define SWIGTYPE_p_CLGaussianRngT_LecuyerUniformRng_t swig_types[89]
#define SWIGTYPE_p_CLGaussianRngT_MersenneTwisterUniformRng_t swig_types[90]
#define SWIGTYPE_p_CPI swig_types[91]
#define SWIGTYPE_p_CPIBondPtr swig_types[92]
#define SWIGTYPE_p_Calendar swig_types[93]
#define SWIGTYPE_p_CalibratedModel swig_types[94]
#define SWIGTYPE_p_CalibrationHelper swig_types[95]
#define SWIGTYPE_p_Callability swig_types[96]
#define SWIGTYPE_p_CallabilityPrice swig_types[97]
#define SWIGTYPE_p_CallableFixedRateBondPtr swig_types[98]
#define SWIGTYPE_p_CapFloorPtr swig_types[99]
#define SWIGTYPE_p_CapFloorTermVolCurvePtr swig_types[100]
#define SWIGTYPE_p_CapFloorTermVolSurfacePtr swig_types[101]
#define SWIGTYPE_p_CapFloorTermVolatilityStructure swig_types[102]
#define SWIGTYPE_p_CapHelperPtr swig_types[103]
#define SWIGTYPE_p_CapPtr swig_types[104]
#define SWIGTYPE_p_CappedFlooredCmsCouponPtr swig_types[105]
#define SWIGTYPE_p_CappedFlooredCouponPtr swig_types[106]
#define SWIGTYPE_p_CashFlow swig_types[107]
#define SWIGTYPE_p_CashFlows swig_types[108]
#define SWIGTYPE_p_CashOrNothingPayoffPtr swig_types[109]
#define SWIGTYPE_p_CdorPtr swig_types[110]
#define SWIGTYPE_p_CeilingTruncation swig_types[111]
#define SWIGTYPE_p_ClosestRounding swig_types[112]
#define SWIGTYPE_p_CmsCouponPricerPtr swig_types[113]
#define SWIGTYPE_p_CmsCouponPtr swig_types[114]
#define SWIGTYPE_p_CmsRateBondPtr swig_types[115]
#define SWIGTYPE_p_CollarPtr swig_types[116]
#define SWIGTYPE_p_CompositeConstraint swig_types[117]
#define SWIGTYPE_p_CompositeInstrumentPtr swig_types[118]
#define SWIGTYPE_p_CompositeQuotePtr swig_types[119]
#define SWIGTYPE_p_ConjugateGradient swig_types[120]
#define SWIGTYPE_p_ConstantEstimator swig_types[121]
#define SWIGTYPE_p_ConstantOptionletVolatilityPtr swig_types[122]
#define SWIGTYPE_p_ConstantParameter swig_types[123]
#define SWIGTYPE_p_ConstantSwaptionVolatilityPtr swig_types[124]
#define SWIGTYPE_p_Constraint swig_types[125]
#define SWIGTYPE_p_ContinuousArithmeticAsianLevyEnginePtr swig_types[126]
#define SWIGTYPE_p_ContinuousAveragingAsianOptionPtr swig_types[127]
#define SWIGTYPE_p_ConvertibleFixedCouponBondPtr swig_types[128]
#define SWIGTYPE_p_ConvertibleFloatingRateBondPtr swig_types[129]
#define SWIGTYPE_p_ConvertibleZeroCouponBondPtr swig_types[130]
#define SWIGTYPE_p_CouponPtr swig_types[131]
#define SWIGTYPE_p_CreditDefaultSwapPtr swig_types[132]
#define SWIGTYPE_p_Cubic swig_types[133]
#define SWIGTYPE_p_CubicBSplinesFitting swig_types[134]
#define SWIGTYPE_p_CubicZeroCurvePtr swig_types[135]
#define SWIGTYPE_p_CumulativeBinomialDistribution swig_types[136]
#define SWIGTYPE_p_CumulativeChiSquareDistribution swig_types[137]
#define SWIGTYPE_p_CumulativeGammaDistribution swig_types[138]
#define SWIGTYPE_p_CumulativeNormalDistribution swig_types[139]
#define SWIGTYPE_p_CumulativePoissonDistribution swig_types[140]
#define SWIGTYPE_p_CumulativeStudentDistribution swig_types[141]
#define SWIGTYPE_p_Currency swig_types[142]
#define SWIGTYPE_p_CustomRegion swig_types[143]
#define SWIGTYPE_p_DKKLiborPtr swig_types[144]
#define SWIGTYPE_p_DMinus swig_types[145]
#define SWIGTYPE_p_DPlus swig_types[146]
#define SWIGTYPE_p_DPlusDMinus swig_types[147]
#define SWIGTYPE_p_DZero swig_types[148]
#define SWIGTYPE_p_Date swig_types[149]
#define SWIGTYPE_p_DateGeneration swig_types[150]
#define SWIGTYPE_p_DateParser swig_types[151]
#define SWIGTYPE_p_DatedOISRateHelperPtr swig_types[152]
#define SWIGTYPE_p_DayCounter swig_types[153]
#define SWIGTYPE_p_DefaultBoundaryCondition swig_types[154]
#define SWIGTYPE_p_DefaultDensity swig_types[155]
#define SWIGTYPE_p_DefaultDensityCurvePtr swig_types[156]
#define SWIGTYPE_p_DefaultLexicographicalView swig_types[157]
#define SWIGTYPE_p_DefaultLexicographicalViewColumn swig_types[158]
#define SWIGTYPE_p_DefaultLogCubic swig_types[159]
#define SWIGTYPE_p_DefaultProbabilityHelper swig_types[160]
#define SWIGTYPE_p_DefaultProbabilityTermStructure swig_types[161]
#define SWIGTYPE_p_DeltaVolQuote swig_types[162]
#define SWIGTYPE_p_DepositRateHelperPtr swig_types[163]
#define SWIGTYPE_p_DerivedQuotePtr swig_types[164]
#define SWIGTYPE_p_DifferentialEvolution swig_types[165]
#define SWIGTYPE_p_DirichletBCPtr swig_types[166]
#define SWIGTYPE_p_Discount swig_types[167]
#define SWIGTYPE_p_DiscountCurvePtr swig_types[168]
#define SWIGTYPE_p_DiscountingBondEnginePtr swig_types[169]
#define SWIGTYPE_p_DiscountingSwapEnginePtr swig_types[170]
#define SWIGTYPE_p_DiscreteAveragingAsianOptionPtr swig_types[171]
#define SWIGTYPE_p_Dividend swig_types[172]
#define SWIGTYPE_p_DividendVanillaOptionPtr swig_types[173]
#define SWIGTYPE_p_DoubleBarrier swig_types[174]
#define SWIGTYPE_p_DoubleBarrierOptionPtr swig_types[175]
#define SWIGTYPE_p_DownRounding swig_types[176]
#define SWIGTYPE_p_Duration swig_types[177]
#define SWIGTYPE_p_EUHICPPtr swig_types[178]
#define SWIGTYPE_p_EUHICPXTPtr swig_types[179]
#define SWIGTYPE_p_EURLibor10MPtr swig_types[180]
#define SWIGTYPE_p_EURLibor11MPtr swig_types[181]
#define SWIGTYPE_p_EURLibor1MPtr swig_types[182]
#define SWIGTYPE_p_EURLibor1YPtr swig_types[183]
#define SWIGTYPE_p_EURLibor2MPtr swig_types[184]
#define SWIGTYPE_p_EURLibor2WPtr swig_types[185]
#define SWIGTYPE_p_EURLibor3MPtr swig_types[186]
#define SWIGTYPE_p_EURLibor4MPtr swig_types[187]
#define SWIGTYPE_p_EURLibor5MPtr swig_types[188]
#define SWIGTYPE_p_EURLibor6MPtr swig_types[189]
#define SWIGTYPE_p_EURLibor7MPtr swig_types[190]
#define SWIGTYPE_p_EURLibor8MPtr swig_types[191]
#define SWIGTYPE_p_EURLibor9MPtr swig_types[192]
#define SWIGTYPE_p_EURLiborPtr swig_types[193]
#define SWIGTYPE_p_EURLiborSWPtr swig_types[194]
#define SWIGTYPE_p_EndCriteria swig_types[195]
#define SWIGTYPE_p_EndCriteria__Type swig_types[196]
#define SWIGTYPE_p_EoniaPtr swig_types[197]
#define SWIGTYPE_p_EurLiborSwapIfrFixPtr swig_types[198]
#define SWIGTYPE_p_EurLiborSwapIsdaFixAPtr swig_types[199]
#define SWIGTYPE_p_EurLiborSwapIsdaFixBPtr swig_types[200]
#define SWIGTYPE_p_Euribor10MPtr swig_types[201]
#define SWIGTYPE_p_Euribor11MPtr swig_types[202]
#define SWIGTYPE_p_Euribor1MPtr swig_types[203]
#define SWIGTYPE_p_Euribor1YPtr swig_types[204]
#define SWIGTYPE_p_Euribor2MPtr swig_types[205]
#define SWIGTYPE_p_Euribor2WPtr swig_types[206]
#define SWIGTYPE_p_Euribor365Ptr swig_types[207]
#define SWIGTYPE_p_Euribor365_10MPtr swig_types[208]
#define SWIGTYPE_p_Euribor365_11MPtr swig_types[209]
#define SWIGTYPE_p_Euribor365_1MPtr swig_types[210]
#define SWIGTYPE_p_Euribor365_1YPtr swig_types[211]
#define SWIGTYPE_p_Euribor365_2MPtr swig_types[212]
#define SWIGTYPE_p_Euribor365_2WPtr swig_types[213]
#define SWIGTYPE_p_Euribor365_3MPtr swig_types[214]
#define SWIGTYPE_p_Euribor365_3WPtr swig_types[215]
#define SWIGTYPE_p_Euribor365_4MPtr swig_types[216]
#define SWIGTYPE_p_Euribor365_5MPtr swig_types[217]
#define SWIGTYPE_p_Euribor365_6MPtr swig_types[218]
#define SWIGTYPE_p_Euribor365_7MPtr swig_types[219]
#define SWIGTYPE_p_Euribor365_8MPtr swig_types[220]
#define SWIGTYPE_p_Euribor365_9MPtr swig_types[221]
#define SWIGTYPE_p_Euribor365_SWPtr swig_types[222]
#define SWIGTYPE_p_Euribor3MPtr swig_types[223]
#define SWIGTYPE_p_Euribor3WPtr swig_types[224]
#define SWIGTYPE_p_Euribor4MPtr swig_types[225]
#define SWIGTYPE_p_Euribor5MPtr swig_types[226]
#define SWIGTYPE_p_Euribor6MPtr swig_types[227]
#define SWIGTYPE_p_Euribor7MPtr swig_types[228]
#define SWIGTYPE_p_Euribor8MPtr swig_types[229]
#define SWIGTYPE_p_Euribor9MPtr swig_types[230]
#define SWIGTYPE_p_EuriborPtr swig_types[231]
#define SWIGTYPE_p_EuriborSWPtr swig_types[232]
#define SWIGTYPE_p_EuriborSwapIfrFixPtr swig_types[233]
#define SWIGTYPE_p_EuriborSwapIsdaFixAPtr swig_types[234]
#define SWIGTYPE_p_EuriborSwapIsdaFixBPtr swig_types[235]
#define SWIGTYPE_p_EuropeanExercisePtr swig_types[236]
#define SWIGTYPE_p_EuropeanOptionPtr swig_types[237]
#define SWIGTYPE_p_EverestOptionPtr swig_types[238]
#define SWIGTYPE_p_ExchangeRate swig_types[239]
#define SWIGTYPE_p_ExchangeRateManager swig_types[240]
#define SWIGTYPE_p_Exercise swig_types[241]
#define SWIGTYPE_p_ExponentialSplinesFitting swig_types[242]
#define SWIGTYPE_p_Extrapolator swig_types[243]
#define SWIGTYPE_p_FDAmericanEnginePtr swig_types[244]
#define SWIGTYPE_p_FDBermudanEnginePtr swig_types[245]
#define SWIGTYPE_p_FDDividendAmericanEnginePtr swig_types[246]
#define SWIGTYPE_p_FDDividendEuropeanEnginePtr swig_types[247]
#define SWIGTYPE_p_FDEuropeanEnginePtr swig_types[248]
#define SWIGTYPE_p_FDShoutEnginePtr swig_types[249]
#define SWIGTYPE_p_FFTVarianceGammaEnginePtr swig_types[250]
#define SWIGTYPE_p_FRHICPPtr swig_types[251]
#define SWIGTYPE_p_FalsePosition swig_types[252]
#define SWIGTYPE_p_FdBatesVanillaEnginePtr swig_types[253]
#define SWIGTYPE_p_FdBlackScholesAsianEnginePtr swig_types[254]
#define SWIGTYPE_p_FdBlackScholesBarrierEnginePtr swig_types[255]
#define SWIGTYPE_p_FdBlackScholesVanillaEnginePtr swig_types[256]
#define SWIGTYPE_p_FdG2SwaptionEnginePtr swig_types[257]
#define SWIGTYPE_p_FdHullWhiteSwaptionEnginePtr swig_types[258]
#define SWIGTYPE_p_FdmSchemeDesc swig_types[259]
#define SWIGTYPE_p_FedFundsPtr swig_types[260]
#define SWIGTYPE_p_FittedBondDiscountCurvePtr swig_types[261]
#define SWIGTYPE_p_FittingMethod swig_types[262]
#define SWIGTYPE_p_FixedDividendPtr swig_types[263]
#define SWIGTYPE_p_FixedRateBondForwardPtr swig_types[264]
#define SWIGTYPE_p_FixedRateBondHelperPtr swig_types[265]
#define SWIGTYPE_p_FixedRateBondPtr swig_types[266]
#define SWIGTYPE_p_FixedRateCouponPtr swig_types[267]
#define SWIGTYPE_p_FlatForwardPtr swig_types[268]
#define SWIGTYPE_p_FlatHazardRatePtr swig_types[269]
#define SWIGTYPE_p_FloatFloatSwapPtr swig_types[270]
#define SWIGTYPE_p_FloatFloatSwaptionPtr swig_types[271]
#define SWIGTYPE_p_FloatingRateBondPtr swig_types[272]
#define SWIGTYPE_p_FloatingRateCouponPricer swig_types[273]
#define SWIGTYPE_p_FloatingRateCouponPtr swig_types[274]
#define SWIGTYPE_p_FloorPtr swig_types[275]
#define SWIGTYPE_p_FloorTruncation swig_types[276]
#define SWIGTYPE_p_ForwardCurvePtr swig_types[277]
#define SWIGTYPE_p_ForwardEuropeanEnginePtr swig_types[278]
#define SWIGTYPE_p_ForwardFlat swig_types[279]
#define SWIGTYPE_p_ForwardFlatZeroCurvePtr swig_types[280]
#define SWIGTYPE_p_ForwardPtr swig_types[281]
#define SWIGTYPE_p_ForwardRate swig_types[282]
#define SWIGTYPE_p_ForwardRateAgreementPtr swig_types[283]
#define SWIGTYPE_p_ForwardSpreadedTermStructurePtr swig_types[284]
#define SWIGTYPE_p_ForwardVanillaOptionPtr swig_types[285]
#define SWIGTYPE_p_FraRateHelperPtr swig_types[286]
#define SWIGTYPE_p_FractionalDividendPtr swig_types[287]
#define SWIGTYPE_p_Futures swig_types[288]
#define SWIGTYPE_p_FuturesRateHelperPtr swig_types[289]
#define SWIGTYPE_p_FxSwapRateHelperPtr swig_types[290]
#define SWIGTYPE_p_G2Ptr swig_types[291]
#define SWIGTYPE_p_G2SwaptionEnginePtr swig_types[292]
#define SWIGTYPE_p_GBPLiborPtr swig_types[293]
#define SWIGTYPE_p_GFunctionFactory swig_types[294]
#define SWIGTYPE_p_GammaFunction swig_types[295]
#define SWIGTYPE_p_GapPayoffPtr swig_types[296]
#define SWIGTYPE_p_GarmanKlassSigma1 swig_types[297]
#define SWIGTYPE_p_GarmanKlassSigma3 swig_types[298]
#define SWIGTYPE_p_GarmanKlassSigma4 swig_types[299]
#define SWIGTYPE_p_GarmanKlassSigma5 swig_types[300]
#define SWIGTYPE_p_GarmanKlassSigma6 swig_types[301]
#define SWIGTYPE_p_GarmanKohlagenProcessPtr swig_types[302]
#define SWIGTYPE_p_GaussChebyshev2ndIntegration swig_types[303]
#define SWIGTYPE_p_GaussChebyshevIntegration swig_types[304]
#define SWIGTYPE_p_GaussGegenbauerIntegration swig_types[305]
#define SWIGTYPE_p_GaussHermiteIntegration swig_types[306]
#define SWIGTYPE_p_GaussHyperbolicIntegration swig_types[307]
#define SWIGTYPE_p_GaussJacobiIntegration swig_types[308]
#define SWIGTYPE_p_GaussKronrodAdaptive swig_types[309]
#define SWIGTYPE_p_GaussKronrodNonAdaptive swig_types[310]
#define SWIGTYPE_p_GaussLaguerreIntegration swig_types[311]
#define SWIGTYPE_p_GaussLegendreIntegration swig_types[312]
#define SWIGTYPE_p_GaussLobattoIntegral swig_types[313]
#define SWIGTYPE_p_Gaussian1dFloatFloatSwaptionEnginePtr swig_types[314]
#define SWIGTYPE_p_Gaussian1dJamshidianSwaptionEnginePtr swig_types[315]
#define SWIGTYPE_p_Gaussian1dModel swig_types[316]
#define SWIGTYPE_p_Gaussian1dNonstandardSwaptionEnginePtr swig_types[317]
#define SWIGTYPE_p_Gaussian1dSwaptionEnginePtr swig_types[318]
#define SWIGTYPE_p_GaussianLowDiscrepancySequenceGenerator swig_types[319]
#define SWIGTYPE_p_GaussianMultiPathGenerator swig_types[320]
#define SWIGTYPE_p_GaussianPathGenerator swig_types[321]
#define SWIGTYPE_p_GaussianRandomGenerator swig_types[322]
#define SWIGTYPE_p_GaussianRandomSequenceGenerator swig_types[323]
#define SWIGTYPE_p_GaussianSimulatedAnnealing swig_types[324]
#define SWIGTYPE_p_GaussianSobolPathGenerator swig_types[325]
#define SWIGTYPE_p_GeneralizedBlackScholesProcessPtr swig_types[326]
#define SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t swig_types[327]
#define SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t swig_types[328]
#define SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t swig_types[329]
#define SWIGTYPE_p_GeometricBrownianMotionProcessPtr swig_types[330]
#define SWIGTYPE_p_GsrProcessPtr swig_types[331]
#define SWIGTYPE_p_GsrPtr swig_types[332]
#define SWIGTYPE_p_HaltonRsg swig_types[333]
#define SWIGTYPE_p_HandleT_BlackVolTermStructure_t swig_types[334]
#define SWIGTYPE_p_HandleT_CalibratedModel_t swig_types[335]
#define SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t swig_types[336]
#define SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t swig_types[337]
#define SWIGTYPE_p_HandleT_DeltaVolQuote_t swig_types[338]
#define SWIGTYPE_p_HandleT_LocalVolTermStructure_t swig_types[339]
#define SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t swig_types[340]
#define SWIGTYPE_p_HandleT_Quote_t swig_types[341]
#define SWIGTYPE_p_HandleT_ShortRateModel_t swig_types[342]
#define SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t swig_types[343]
#define SWIGTYPE_p_HandleT_YieldTermStructure_t swig_types[344]
#define SWIGTYPE_p_HandleT_YoYInflationTermStructure_t swig_types[345]
#define SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t swig_types[346]
#define SWIGTYPE_p_HazardRate swig_types[347]
#define SWIGTYPE_p_HazardRateCurvePtr swig_types[348]
#define SWIGTYPE_p_HestonModelHelperPtr swig_types[349]
#define SWIGTYPE_p_HestonModelPtr swig_types[350]
#define SWIGTYPE_p_HestonProcessPtr swig_types[351]
#define SWIGTYPE_p_HimalayaOptionPtr swig_types[352]
#define SWIGTYPE_p_HullWhiteForwardProcessPtr swig_types[353]
#define SWIGTYPE_p_HullWhiteProcessPtr swig_types[354]
#define SWIGTYPE_p_HullWhitePtr swig_types[355]
#define SWIGTYPE_p_IMM swig_types[356]
#define SWIGTYPE_p_IborCouponPricerPtr swig_types[357]
#define SWIGTYPE_p_IborCouponPtr swig_types[358]
#define SWIGTYPE_p_IborIndexPtr swig_types[359]
#define SWIGTYPE_p_ImpliedTermStructurePtr swig_types[360]
#define SWIGTYPE_p_IncrementalStatistics swig_types[361]
#define SWIGTYPE_p_Index swig_types[362]
#define SWIGTYPE_p_IndexManager swig_types[363]
#define SWIGTYPE_p_InflationIndexPtr swig_types[364]
#define SWIGTYPE_p_InflationTermStructure swig_types[365]
#define SWIGTYPE_p_Instrument swig_types[366]
#define SWIGTYPE_p_IntegralCdsEnginePtr swig_types[367]
#define SWIGTYPE_p_IntegralEnginePtr swig_types[368]
#define SWIGTYPE_p_InterestRate swig_types[369]
#define SWIGTYPE_p_InterestRateIndexPtr swig_types[370]
#define SWIGTYPE_p_IntervalPrice swig_types[371]
#define SWIGTYPE_p_InverseCumulativeNormal swig_types[372]
#define SWIGTYPE_p_InverseCumulativePoisson swig_types[373]
#define SWIGTYPE_p_InverseCumulativeRngT_KnuthUniformRng_InverseCumulativeNormal_t swig_types[374]
#define SWIGTYPE_p_InverseCumulativeRngT_KnuthUniformRng_MoroInverseCumulativeNormal_t swig_types[375]
#define SWIGTYPE_p_InverseCumulativeRngT_LecuyerUniformRng_InverseCumulativeNormal_t swig_types[376]
#define SWIGTYPE_p_InverseCumulativeRngT_LecuyerUniformRng_MoroInverseCumulativeNormal_t swig_types[377]
#define SWIGTYPE_p_InverseCumulativeRngT_MersenneTwisterUniformRng_InverseCumulativeNormal_t swig_types[378]
#define SWIGTYPE_p_InverseCumulativeRngT_MersenneTwisterUniformRng_MoroInverseCumulativeNormal_t swig_types[379]
#define SWIGTYPE_p_InverseCumulativeRsgT_HaltonRsg_InverseCumulativeNormal_t swig_types[380]
#define SWIGTYPE_p_InverseCumulativeRsgT_HaltonRsg_MoroInverseCumulativeNormal_t swig_types[381]
#define SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_InverseCumulativeNormal_t swig_types[382]
#define SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_MoroInverseCumulativeNormal_t swig_types[383]
#define SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_InverseCumulativeNormal_t swig_types[384]
#define SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_MoroInverseCumulativeNormal_t swig_types[385]
#define SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_InverseCumulativeNormal_t swig_types[386]
#define SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_MoroInverseCumulativeNormal_t swig_types[387]
#define SWIGTYPE_p_InverseCumulativeRsgT_SobolRsg_InverseCumulativeNormal_t swig_types[388]
#define SWIGTYPE_p_InverseCumulativeRsgT_SobolRsg_MoroInverseCumulativeNormal_t swig_types[389]
#define SWIGTYPE_p_InverseCumulativeStudent swig_types[390]
#define SWIGTYPE_p_InverseNonCentralCumulativeChiSquareDistribution swig_types[391]
#define SWIGTYPE_p_JPYLiborPtr swig_types[392]
#define SWIGTYPE_p_JamshidianSwaptionEnginePtr swig_types[393]
#define SWIGTYPE_p_JibarPtr swig_types[394]
#define SWIGTYPE_p_KnuthUniformRng swig_types[395]
#define SWIGTYPE_p_LecuyerUniformRng swig_types[396]
#define SWIGTYPE_p_LevenbergMarquardt swig_types[397]
#define SWIGTYPE_p_LiborPtr swig_types[398]
#define SWIGTYPE_p_Linear swig_types[399]
#define SWIGTYPE_p_LinearTsrPricerPtr swig_types[400]
#define SWIGTYPE_p_LinearTsrPricer__Settings swig_types[401]
#define SWIGTYPE_p_LocalConstantVolPtr swig_types[402]
#define SWIGTYPE_p_LocalVolSurfacePtr swig_types[403]
#define SWIGTYPE_p_LocalVolTermStructure swig_types[404]
#define SWIGTYPE_p_LogCubicZeroCurvePtr swig_types[405]
#define SWIGTYPE_p_LogLinear swig_types[406]
#define SWIGTYPE_p_LogLinearZeroCurvePtr swig_types[407]
#define SWIGTYPE_p_LogNormalSimulatedAnnealing swig_types[408]
#define SWIGTYPE_p_MCAmericanBasketEnginePtr swig_types[409]
#define SWIGTYPE_p_MCBarrierEnginePtr swig_types[410]
#define SWIGTYPE_p_MCDiscreteArithmeticAPEnginePtr swig_types[411]
#define SWIGTYPE_p_MCDiscreteArithmeticASEnginePtr swig_types[412]
#define SWIGTYPE_p_MCDiscreteGeometricAPEnginePtr swig_types[413]
#define SWIGTYPE_p_MCEuropeanBasketEnginePtr swig_types[414]
#define SWIGTYPE_p_MCEuropeanEnginePtr swig_types[415]
#define SWIGTYPE_p_MCEverestEnginePtr swig_types[416]
#define SWIGTYPE_p_MCHimalayaEnginePtr swig_types[417]
#define SWIGTYPE_p_MarkovFunctionalPtr swig_types[418]
#define SWIGTYPE_p_MarkovFunctional__ModelSettings swig_types[419]
#define SWIGTYPE_p_Matrix swig_types[420]
#define SWIGTYPE_p_MatrixRow swig_types[421]
#define SWIGTYPE_p_MaxBasketPayoffPtr swig_types[422]
#define SWIGTYPE_p_MersenneTwisterUniformRng swig_types[423]
#define SWIGTYPE_p_Merton76ProcessPtr swig_types[424]
#define SWIGTYPE_p_MidPointCdsEnginePtr swig_types[425]
#define SWIGTYPE_p_MinBasketPayoffPtr swig_types[426]
#define SWIGTYPE_p_MirrorGaussianSimulatedAnnealing swig_types[427]
#define SWIGTYPE_p_Money swig_types[428]
#define SWIGTYPE_p_MonotonicCubic swig_types[429]
#define SWIGTYPE_p_MonotonicCubicZeroCurvePtr swig_types[430]
#define SWIGTYPE_p_MonotonicLogCubic swig_types[431]
#define SWIGTYPE_p_MoroInverseCumulativeNormal swig_types[432]
#define SWIGTYPE_p_MultiAssetOptionPtr swig_types[433]
#define SWIGTYPE_p_MultiPath swig_types[434]
#define SWIGTYPE_p_MultiplicativePriceSeasonalityPtr swig_types[435]
#define SWIGTYPE_p_NZDLiborPtr swig_types[436]
#define SWIGTYPE_p_NelsonSiegelFitting swig_types[437]
#define SWIGTYPE_p_NeumannBCPtr swig_types[438]
#define SWIGTYPE_p_Newton swig_types[439]
#define SWIGTYPE_p_NewtonSafe swig_types[440]
#define SWIGTYPE_p_NoConstraint swig_types[441]
#define SWIGTYPE_p_NonCentralCumulativeChiSquareDistribution swig_types[442]
#define SWIGTYPE_p_NonhomogeneousBoundaryConstraint swig_types[443]
#define SWIGTYPE_p_NonstandardSwapPtr swig_types[444]
#define SWIGTYPE_p_NonstandardSwaptionPtr swig_types[445]
#define SWIGTYPE_p_NormalDistribution swig_types[446]
#define SWIGTYPE_p_NullParameter swig_types[447]
#define SWIGTYPE_p_NumericHaganPricerPtr swig_types[448]
#define SWIGTYPE_p_NzocrPtr swig_types[449]
#define SWIGTYPE_p_OISRateHelperPtr swig_types[450]
#define SWIGTYPE_p_Observable swig_types[451]
#define SWIGTYPE_p_OptimizationMethod swig_types[452]
#define SWIGTYPE_p_Optimizer swig_types[453]
#define SWIGTYPE_p_Option swig_types[454]
#define SWIGTYPE_p_OptionletStripper1Ptr swig_types[455]
#define SWIGTYPE_p_OptionletVolatilityStructure swig_types[456]
#define SWIGTYPE_p_OvernightIndexPtr swig_types[457]
#define SWIGTYPE_p_Parameter swig_types[458]
#define SWIGTYPE_p_ParkinsonSigma swig_types[459]
#define SWIGTYPE_p_Path swig_types[460]
#define SWIGTYPE_p_Payoff swig_types[461]
#define SWIGTYPE_p_PercentageStrikePayoffPtr swig_types[462]
#define SWIGTYPE_p_Period swig_types[463]
#define SWIGTYPE_p_PeriodParser swig_types[464]
#define SWIGTYPE_p_PiecewiseConstantParameter swig_types[465]
#define SWIGTYPE_p_PiecewiseCubicZeroPtr swig_types[466]
#define SWIGTYPE_p_PiecewiseFlatForwardPtr swig_types[467]
#define SWIGTYPE_p_PiecewiseFlatHazardRatePtr swig_types[468]
#define SWIGTYPE_p_PiecewiseLinearForwardPtr swig_types[469]
#define SWIGTYPE_p_PiecewiseLinearZeroPtr swig_types[470]
#define SWIGTYPE_p_PiecewiseLogCubicDiscountPtr swig_types[471]
#define SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr swig_types[472]
#define SWIGTYPE_p_PiecewiseYoYInflationPtr swig_types[473]
#define SWIGTYPE_p_PiecewiseZeroInflationPtr swig_types[474]
#define SWIGTYPE_p_Pillar swig_types[475]
#define SWIGTYPE_p_PlainVanillaPayoffPtr swig_types[476]
#define SWIGTYPE_p_PoissonDistribution swig_types[477]
#define SWIGTYPE_p_Position swig_types[478]
#define SWIGTYPE_p_PositiveConstraint swig_types[479]
#define SWIGTYPE_p_PricingEngine swig_types[480]
#define SWIGTYPE_p_ProbabilityBoltzmannDownhill swig_types[481]
#define SWIGTYPE_p_Protection swig_types[482]
#define SWIGTYPE_p_PyObserver swig_types[483]
#define SWIGTYPE_p_QuantLib__ARSCurrency swig_types[484]
#define SWIGTYPE_p_QuantLib__ATSCurrency swig_types[485]
#define SWIGTYPE_p_QuantLib__AUDCurrency swig_types[486]
#define SWIGTYPE_p_QuantLib__Actual360 swig_types[487]
#define SWIGTYPE_p_QuantLib__Actual365Fixed swig_types[488]
#define SWIGTYPE_p_QuantLib__ActualActual swig_types[489]
#define SWIGTYPE_p_QuantLib__Argentina swig_types[490]
#define SWIGTYPE_p_QuantLib__Australia swig_types[491]
#define SWIGTYPE_p_QuantLib__BDTCurrency swig_types[492]
#define SWIGTYPE_p_QuantLib__BEFCurrency swig_types[493]
#define SWIGTYPE_p_QuantLib__BGLCurrency swig_types[494]
#define SWIGTYPE_p_QuantLib__BRLCurrency swig_types[495]
#define SWIGTYPE_p_QuantLib__BYRCurrency swig_types[496]
#define SWIGTYPE_p_QuantLib__BespokeCalendar swig_types[497]
#define SWIGTYPE_p_QuantLib__Brazil swig_types[498]
#define SWIGTYPE_p_QuantLib__Business252 swig_types[499]
#define SWIGTYPE_p_QuantLib__CADCurrency swig_types[500]
#define SWIGTYPE_p_QuantLib__CHFCurrency swig_types[501]
#define SWIGTYPE_p_QuantLib__CLPCurrency swig_types[502]
#define SWIGTYPE_p_QuantLib__CNYCurrency swig_types[503]
#define SWIGTYPE_p_QuantLib__COPCurrency swig_types[504]
#define SWIGTYPE_p_QuantLib__CYPCurrency swig_types[505]
#define SWIGTYPE_p_QuantLib__CZKCurrency swig_types[506]
#define SWIGTYPE_p_QuantLib__Canada swig_types[507]
#define SWIGTYPE_p_QuantLib__China swig_types[508]
#define SWIGTYPE_p_QuantLib__CzechRepublic swig_types[509]
#define SWIGTYPE_p_QuantLib__DEMCurrency swig_types[510]
#define SWIGTYPE_p_QuantLib__DKKCurrency swig_types[511]
#define SWIGTYPE_p_QuantLib__Denmark swig_types[512]
#define SWIGTYPE_p_QuantLib__EEKCurrency swig_types[513]
#define SWIGTYPE_p_QuantLib__ESPCurrency swig_types[514]
#define SWIGTYPE_p_QuantLib__EURCurrency swig_types[515]
#define SWIGTYPE_p_QuantLib__FIMCurrency swig_types[516]
#define SWIGTYPE_p_QuantLib__FRFCurrency swig_types[517]
#define SWIGTYPE_p_QuantLib__Finland swig_types[518]
#define SWIGTYPE_p_QuantLib__GBPCurrency swig_types[519]
#define SWIGTYPE_p_QuantLib__GRDCurrency swig_types[520]
#define SWIGTYPE_p_QuantLib__Germany swig_types[521]
#define SWIGTYPE_p_QuantLib__HKDCurrency swig_types[522]
#define SWIGTYPE_p_QuantLib__HUFCurrency swig_types[523]
#define SWIGTYPE_p_QuantLib__HongKong swig_types[524]
#define SWIGTYPE_p_QuantLib__Hungary swig_types[525]
#define SWIGTYPE_p_QuantLib__IDRCurrency swig_types[526]
#define SWIGTYPE_p_QuantLib__IEPCurrency swig_types[527]
#define SWIGTYPE_p_QuantLib__ILSCurrency swig_types[528]
#define SWIGTYPE_p_QuantLib__INRCurrency swig_types[529]
#define SWIGTYPE_p_QuantLib__IQDCurrency swig_types[530]
#define SWIGTYPE_p_QuantLib__IRRCurrency swig_types[531]
#define SWIGTYPE_p_QuantLib__ISKCurrency swig_types[532]
#define SWIGTYPE_p_QuantLib__ITLCurrency swig_types[533]
#define SWIGTYPE_p_QuantLib__Iceland swig_types[534]
#define SWIGTYPE_p_QuantLib__India swig_types[535]
#define SWIGTYPE_p_QuantLib__Indonesia swig_types[536]
#define SWIGTYPE_p_QuantLib__Israel swig_types[537]
#define SWIGTYPE_p_QuantLib__Italy swig_types[538]
#define SWIGTYPE_p_QuantLib__JPYCurrency swig_types[539]
#define SWIGTYPE_p_QuantLib__Japan swig_types[540]
#define SWIGTYPE_p_QuantLib__JointCalendar swig_types[541]
#define SWIGTYPE_p_QuantLib__KRWCurrency swig_types[542]
#define SWIGTYPE_p_QuantLib__KWDCurrency swig_types[543]
#define SWIGTYPE_p_QuantLib__LTLCurrency swig_types[544]
#define SWIGTYPE_p_QuantLib__LUFCurrency swig_types[545]
#define SWIGTYPE_p_QuantLib__LVLCurrency swig_types[546]
#define SWIGTYPE_p_QuantLib__MTLCurrency swig_types[547]
#define SWIGTYPE_p_QuantLib__MXNCurrency swig_types[548]
#define SWIGTYPE_p_QuantLib__MYRCurrency swig_types[549]
#define SWIGTYPE_p_QuantLib__Mexico swig_types[550]
#define SWIGTYPE_p_QuantLib__NLGCurrency swig_types[551]
#define SWIGTYPE_p_QuantLib__NOKCurrency swig_types[552]
#define SWIGTYPE_p_QuantLib__NPRCurrency swig_types[553]
#define SWIGTYPE_p_QuantLib__NZDCurrency swig_types[554]
#define SWIGTYPE_p_QuantLib__NewZealand swig_types[555]
#define SWIGTYPE_p_QuantLib__Norway swig_types[556]
#define SWIGTYPE_p_QuantLib__NullCalendar swig_types[557]
#define SWIGTYPE_p_QuantLib__OneDayCounter swig_types[558]
#define SWIGTYPE_p_QuantLib__PEHCurrency swig_types[559]
#define SWIGTYPE_p_QuantLib__PEICurrency swig_types[560]
#define SWIGTYPE_p_QuantLib__PENCurrency swig_types[561]
#define SWIGTYPE_p_QuantLib__PKRCurrency swig_types[562]
#define SWIGTYPE_p_QuantLib__PLNCurrency swig_types[563]
#define SWIGTYPE_p_QuantLib__PTECurrency swig_types[564]
#define SWIGTYPE_p_QuantLib__Poland swig_types[565]
#define SWIGTYPE_p_QuantLib__ROLCurrency swig_types[566]
#define SWIGTYPE_p_QuantLib__RONCurrency swig_types[567]
#define SWIGTYPE_p_QuantLib__RUBCurrency swig_types[568]
#define SWIGTYPE_p_QuantLib__Romania swig_types[569]
#define SWIGTYPE_p_QuantLib__Russia swig_types[570]
#define SWIGTYPE_p_QuantLib__SARCurrency swig_types[571]
#define SWIGTYPE_p_QuantLib__SEKCurrency swig_types[572]
#define SWIGTYPE_p_QuantLib__SGDCurrency swig_types[573]
#define SWIGTYPE_p_QuantLib__SITCurrency swig_types[574]
#define SWIGTYPE_p_QuantLib__SKKCurrency swig_types[575]
#define SWIGTYPE_p_QuantLib__SaudiArabia swig_types[576]
#define SWIGTYPE_p_QuantLib__SimpleDayCounter swig_types[577]
#define SWIGTYPE_p_QuantLib__Singapore swig_types[578]
#define SWIGTYPE_p_QuantLib__Slovakia swig_types[579]
#define SWIGTYPE_p_QuantLib__SouthAfrica swig_types[580]
#define SWIGTYPE_p_QuantLib__SouthKorea swig_types[581]
#define SWIGTYPE_p_QuantLib__Sweden swig_types[582]
#define SWIGTYPE_p_QuantLib__Switzerland swig_types[583]
#define SWIGTYPE_p_QuantLib__TARGET swig_types[584]
#define SWIGTYPE_p_QuantLib__THBCurrency swig_types[585]
#define SWIGTYPE_p_QuantLib__TRLCurrency swig_types[586]
#define SWIGTYPE_p_QuantLib__TRYCurrency swig_types[587]
#define SWIGTYPE_p_QuantLib__TTDCurrency swig_types[588]
#define SWIGTYPE_p_QuantLib__TWDCurrency swig_types[589]
#define SWIGTYPE_p_QuantLib__Taiwan swig_types[590]
#define SWIGTYPE_p_QuantLib__Thirty360 swig_types[591]
#define SWIGTYPE_p_QuantLib__Turkey swig_types[592]
#define SWIGTYPE_p_QuantLib__USDCurrency swig_types[593]
#define SWIGTYPE_p_QuantLib__Ukraine swig_types[594]
#define SWIGTYPE_p_QuantLib__UnitedKingdom swig_types[595]
#define SWIGTYPE_p_QuantLib__UnitedStates swig_types[596]
#define SWIGTYPE_p_QuantLib__VEBCurrency swig_types[597]
#define SWIGTYPE_p_QuantLib__VNDCurrency swig_types[598]
#define SWIGTYPE_p_QuantLib__WeekendsOnly swig_types[599]
#define SWIGTYPE_p_QuantLib__ZARCurrency swig_types[600]
#define SWIGTYPE_p_QuantoDoubleBarrierOptionPtr swig_types[601]
#define SWIGTYPE_p_QuantoEuropeanEnginePtr swig_types[602]
#define SWIGTYPE_p_QuantoForwardEuropeanEnginePtr swig_types[603]
#define SWIGTYPE_p_QuantoForwardVanillaOptionPtr swig_types[604]
#define SWIGTYPE_p_QuantoVanillaOptionPtr swig_types[605]
#define SWIGTYPE_p_Quote swig_types[606]
#define SWIGTYPE_p_RandomSequenceGeneratorT_KnuthUniformRng_t swig_types[607]
#define SWIGTYPE_p_RandomSequenceGeneratorT_LecuyerUniformRng_t swig_types[608]
#define SWIGTYPE_p_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t swig_types[609]
#define SWIGTYPE_p_RateHelper swig_types[610]
#define SWIGTYPE_p_RealTimeSeries swig_types[611]
#define SWIGTYPE_p_ReannealingTrivial swig_types[612]
#define SWIGTYPE_p_RebatedExercisePtr swig_types[613]
#define SWIGTYPE_p_RedemptionPtr swig_types[614]
#define SWIGTYPE_p_Region swig_types[615]
#define SWIGTYPE_p_RelinkableHandleT_BlackVolTermStructure_t swig_types[616]
#define SWIGTYPE_p_RelinkableHandleT_CalibratedModel_t swig_types[617]
#define SWIGTYPE_p_RelinkableHandleT_CapFloorTermVolatilityStructure_t swig_types[618]
#define SWIGTYPE_p_RelinkableHandleT_DefaultProbabilityTermStructure_t swig_types[619]
#define SWIGTYPE_p_RelinkableHandleT_DeltaVolQuote_t swig_types[620]
#define SWIGTYPE_p_RelinkableHandleT_LocalVolTermStructure_t swig_types[621]
#define SWIGTYPE_p_RelinkableHandleT_OptionletVolatilityStructure_t swig_types[622]
#define SWIGTYPE_p_RelinkableHandleT_Quote_t swig_types[623]
#define SWIGTYPE_p_RelinkableHandleT_ShortRateModel_t swig_types[624]
#define SWIGTYPE_p_RelinkableHandleT_SwaptionVolatilityStructure_t swig_types[625]
#define SWIGTYPE_p_RelinkableHandleT_YieldTermStructure_t swig_types[626]
#define SWIGTYPE_p_RelinkableHandleT_YoYInflationTermStructure_t swig_types[627]
#define SWIGTYPE_p_RelinkableHandleT_ZeroInflationTermStructure_t swig_types[628]
#define SWIGTYPE_p_Ridder swig_types[629]
#define SWIGTYPE_p_RiskStatistics swig_types[630]
#define SWIGTYPE_p_Rounding swig_types[631]
#define SWIGTYPE_p_SEKLiborPtr swig_types[632]
#define SWIGTYPE_p_SVD swig_types[633]
#define SWIGTYPE_p_SafeBackwardFlatInterpolation swig_types[634]
#define SWIGTYPE_p_SafeBicubicSpline swig_types[635]
#define SWIGTYPE_p_SafeBilinearInterpolation swig_types[636]
#define SWIGTYPE_p_SafeCubicNaturalSpline swig_types[637]
#define SWIGTYPE_p_SafeForwardFlatInterpolation swig_types[638]
#define SWIGTYPE_p_SafeFritschButlandCubic swig_types[639]
#define SWIGTYPE_p_SafeFritschButlandLogCubic swig_types[640]
#define SWIGTYPE_p_SafeKrugerCubic swig_types[641]
#define SWIGTYPE_p_SafeKrugerLogCubic swig_types[642]
#define SWIGTYPE_p_SafeLinearInterpolation swig_types[643]
#define SWIGTYPE_p_SafeLogCubicNaturalSpline swig_types[644]
#define SWIGTYPE_p_SafeLogLinearInterpolation swig_types[645]
#define SWIGTYPE_p_SafeLogParabolic swig_types[646]
#define SWIGTYPE_p_SafeMonotonicCubicNaturalSpline swig_types[647]
#define SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline swig_types[648]
#define SWIGTYPE_p_SafeMonotonicLogParabolic swig_types[649]
#define SWIGTYPE_p_SafeMonotonicParabolic swig_types[650]
#define SWIGTYPE_p_SafeParabolic swig_types[651]
#define SWIGTYPE_p_SalvagingAlgorithm swig_types[652]
#define SWIGTYPE_p_SampleT_Array_t swig_types[653]
#define SWIGTYPE_p_SampleT_MultiPath_t swig_types[654]
#define SWIGTYPE_p_SampleT_Path_t swig_types[655]
#define SWIGTYPE_p_SampleT_double_t swig_types[656]
#define SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t swig_types[657]
#define SWIGTYPE_p_SampledCurve swig_types[658]
#define SWIGTYPE_p_SamplerGaussian swig_types[659]
#define SWIGTYPE_p_SamplerLogNormal swig_types[660]
#define SWIGTYPE_p_SamplerMirrorGaussian swig_types[661]
#define SWIGTYPE_p_Schedule swig_types[662]
#define SWIGTYPE_p_Seasonality swig_types[663]
#define SWIGTYPE_p_Secant swig_types[664]
#define SWIGTYPE_p_SegmentIntegral swig_types[665]
#define SWIGTYPE_p_Settings swig_types[666]
#define SWIGTYPE_p_Settlement swig_types[667]
#define SWIGTYPE_p_ShortRateModel swig_types[668]
#define SWIGTYPE_p_SimpleCashFlowPtr swig_types[669]
#define SWIGTYPE_p_SimplePolynomialFitting swig_types[670]
#define SWIGTYPE_p_SimpleQuotePtr swig_types[671]
#define SWIGTYPE_p_Simplex swig_types[672]
#define SWIGTYPE_p_SimpsonIntegral swig_types[673]
#define SWIGTYPE_p_SobolBrownianBridgeRsg swig_types[674]
#define SWIGTYPE_p_SobolRsg swig_types[675]
#define SWIGTYPE_p_SoftCallabilityPtr swig_types[676]
#define SWIGTYPE_p_SoniaPtr swig_types[677]
#define SWIGTYPE_p_SpreadCdsHelperPtr swig_types[678]
#define SWIGTYPE_p_SpreadedLinearZeroInterpolatedTermStructurePtr swig_types[679]
#define SWIGTYPE_p_Statistics swig_types[680]
#define SWIGTYPE_p_SteepestDescent swig_types[681]
#define SWIGTYPE_p_StochasticProcess swig_types[682]
#define SWIGTYPE_p_StochasticProcess1DPtr swig_types[683]
#define SWIGTYPE_p_StochasticProcessArrayPtr swig_types[684]
#define SWIGTYPE_p_StockPtr swig_types[685]
#define SWIGTYPE_p_StrippedOptionletAdapterPtr swig_types[686]
#define SWIGTYPE_p_StrippedOptionletBase swig_types[687]
#define SWIGTYPE_p_StudentDistribution swig_types[688]
#define SWIGTYPE_p_StulzEnginePtr swig_types[689]
#define SWIGTYPE_p_SuperSharePayoffPtr swig_types[690]
#define SWIGTYPE_p_SvenssonFitting swig_types[691]
#define SWIGTYPE_p_SwapIndexPtr swig_types[692]
#define SWIGTYPE_p_SwapPtr swig_types[693]
#define SWIGTYPE_p_SwapRateHelperPtr swig_types[694]
#define SWIGTYPE_p_SwaptionHelperPtr swig_types[695]
#define SWIGTYPE_p_SwaptionPtr swig_types[696]
#define SWIGTYPE_p_SwaptionVolCube1Ptr swig_types[697]
#define SWIGTYPE_p_SwaptionVolCube2Ptr swig_types[698]
#define SWIGTYPE_p_SwaptionVolatilityMatrixPtr swig_types[699]
#define SWIGTYPE_p_SwaptionVolatilityStructure swig_types[700]
#define SWIGTYPE_p_TRLiborPtr swig_types[701]
#define SWIGTYPE_p_TemperatureExponential swig_types[702]
#define SWIGTYPE_p_TiborPtr swig_types[703]
#define SWIGTYPE_p_TimeBasket swig_types[704]
#define SWIGTYPE_p_TimeGrid swig_types[705]
#define SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t swig_types[706]
#define SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t swig_types[707]
#define SWIGTYPE_p_TrapezoidIntegralT_Default_t swig_types[708]
#define SWIGTYPE_p_TrapezoidIntegralT_MidPoint_t swig_types[709]
#define SWIGTYPE_p_TreeCallableFixedRateBondEnginePtr swig_types[710]
#define SWIGTYPE_p_TreeCapFloorEnginePtr swig_types[711]
#define SWIGTYPE_p_TreeSwaptionEnginePtr swig_types[712]
#define SWIGTYPE_p_TridiagonalOperator swig_types[713]
#define SWIGTYPE_p_UKRPIPtr swig_types[714]
#define SWIGTYPE_p_USCPIPtr swig_types[715]
#define SWIGTYPE_p_USDLiborPtr swig_types[716]
#define SWIGTYPE_p_UniformLowDiscrepancySequenceGenerator swig_types[717]
#define SWIGTYPE_p_UniformRandomGenerator swig_types[718]
#define SWIGTYPE_p_UniformRandomSequenceGenerator swig_types[719]
#define SWIGTYPE_p_UpRounding swig_types[720]
#define SWIGTYPE_p_UpfrontCdsHelperPtr swig_types[721]
#define SWIGTYPE_p_VanillaOptionPtr swig_types[722]
#define SWIGTYPE_p_VanillaSwapPtr swig_types[723]
#define SWIGTYPE_p_VannaVolgaDoubleBarrierEnginePtr swig_types[724]
#define SWIGTYPE_p_VarianceGammaEnginePtr swig_types[725]
#define SWIGTYPE_p_VarianceGammaProcessPtr swig_types[726]
#define SWIGTYPE_p_VasicekPtr swig_types[727]
#define SWIGTYPE_p_WulinYongDoubleBarrierEnginePtr swig_types[728]
#define SWIGTYPE_p_YYEUHICPPtr swig_types[729]
#define SWIGTYPE_p_YYEUHICPXTPtr swig_types[730]
#define SWIGTYPE_p_YYFRHICPPtr swig_types[731]
#define SWIGTYPE_p_YYUKRPIPtr swig_types[732]
#define SWIGTYPE_p_YYUSCPIPtr swig_types[733]
#define SWIGTYPE_p_YYZACPIPtr swig_types[734]
#define SWIGTYPE_p_YearOnYearInflationSwapHelperPtr swig_types[735]
#define SWIGTYPE_p_YearOnYearInflationSwapPtr swig_types[736]
#define SWIGTYPE_p_YieldTermStructure swig_types[737]
#define SWIGTYPE_p_YoYHelper swig_types[738]
#define SWIGTYPE_p_YoYInflationCapFloorPtr swig_types[739]
#define SWIGTYPE_p_YoYInflationCapPtr swig_types[740]
#define SWIGTYPE_p_YoYInflationCollarPtr swig_types[741]
#define SWIGTYPE_p_YoYInflationFloorPtr swig_types[742]
#define SWIGTYPE_p_YoYInflationIndexPtr swig_types[743]
#define SWIGTYPE_p_YoYInflationTermStructure swig_types[744]
#define SWIGTYPE_p_ZACPIPtr swig_types[745]
#define SWIGTYPE_p_ZeroCouponBondPtr swig_types[746]
#define SWIGTYPE_p_ZeroCouponInflationSwapHelperPtr swig_types[747]
#define SWIGTYPE_p_ZeroCouponInflationSwapPtr swig_types[748]
#define SWIGTYPE_p_ZeroCurvePtr swig_types[749]
#define SWIGTYPE_p_ZeroHelper swig_types[750]
#define SWIGTYPE_p_ZeroInflationIndexPtr swig_types[751]
#define SWIGTYPE_p_ZeroInflationTermStructure swig_types[752]
#define SWIGTYPE_p_ZeroSpreadedTermStructurePtr swig_types[753]
#define SWIGTYPE_p_ZeroYield swig_types[754]
#define SWIGTYPE_p_ZiborPtr swig_types[755]
#define SWIGTYPE_p_allocator_type swig_types[756]
#define SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t swig_types[757]
#define SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t swig_types[758]
#define SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t swig_types[759]
#define SWIGTYPE_p_boost__shared_ptrT_Callability_t swig_types[760]
#define SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t swig_types[761]
#define SWIGTYPE_p_boost__shared_ptrT_CashFlow_t swig_types[762]
#define SWIGTYPE_p_boost__shared_ptrT_DefaultBoundaryCondition_t swig_types[763]
#define SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t swig_types[764]
#define SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t swig_types[765]
#define SWIGTYPE_p_boost__shared_ptrT_DeltaVolQuote_t swig_types[766]
#define SWIGTYPE_p_boost__shared_ptrT_Dividend_t swig_types[767]
#define SWIGTYPE_p_boost__shared_ptrT_EndCriteria_t swig_types[768]
#define SWIGTYPE_p_boost__shared_ptrT_Exercise_t swig_types[769]
#define SWIGTYPE_p_boost__shared_ptrT_FloatingRateCouponPricer_t swig_types[770]
#define SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t swig_types[771]
#define SWIGTYPE_p_boost__shared_ptrT_IborIndex_t swig_types[772]
#define SWIGTYPE_p_boost__shared_ptrT_Index_t swig_types[773]
#define SWIGTYPE_p_boost__shared_ptrT_Instrument_t swig_types[774]
#define SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t swig_types[775]
#define SWIGTYPE_p_boost__shared_ptrT_Observable_t swig_types[776]
#define SWIGTYPE_p_boost__shared_ptrT_OptimizationMethod_t swig_types[777]
#define SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t swig_types[778]
#define SWIGTYPE_p_boost__shared_ptrT_Payoff_t swig_types[779]
#define SWIGTYPE_p_boost__shared_ptrT_PricingEngine_t swig_types[780]
#define SWIGTYPE_p_boost__shared_ptrT_Quote_t swig_types[781]
#define SWIGTYPE_p_boost__shared_ptrT_RateHelper_t swig_types[782]
#define SWIGTYPE_p_boost__shared_ptrT_Seasonality_t swig_types[783]
#define SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t swig_types[784]
#define SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t swig_types[785]
#define SWIGTYPE_p_boost__shared_ptrT_StrippedOptionletBase_t swig_types[786]
#define SWIGTYPE_p_boost__shared_ptrT_SwapIndex_t swig_types[787]
#define SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t swig_types[788]
#define SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t swig_types[789]
#define SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t swig_types[790]
#define SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t swig_types[791]
#define SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t swig_types[792]
#define SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t swig_types[793]
#define SWIGTYPE_p_char swig_types[794]
#define SWIGTYPE_p_const_reference swig_types[795]
#define SWIGTYPE_p_difference_type swig_types[796]
#define SWIGTYPE_p_double swig_types[797]
#define SWIGTYPE_p_first_type swig_types[798]
#define SWIGTYPE_p_int swig_types[799]
#define SWIGTYPE_p_long swig_types[800]
#define SWIGTYPE_p_p_PyObject swig_types[801]
#define SWIGTYPE_p_reference swig_types[802]
#define SWIGTYPE_p_second_type swig_types[803]
#define SWIGTYPE_p_size_type swig_types[804]
#define SWIGTYPE_p_std__allocatorT_Date_t swig_types[805]
#define SWIGTYPE_p_std__allocatorT_HandleT_Quote_t_t swig_types[806]
#define SWIGTYPE_p_std__allocatorT_InterestRate_t swig_types[807]
#define SWIGTYPE_p_std__allocatorT_IntervalPrice_t swig_types[808]
#define SWIGTYPE_p_std__allocatorT_Period_t swig_types[809]
#define SWIGTYPE_p_std__allocatorT_RelinkableHandleT_Quote_t_t swig_types[810]
#define SWIGTYPE_p_std__allocatorT_bool_t swig_types[811]
#define SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t swig_types[812]
#define SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_Callability_t_t swig_types[813]
#define SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_CashFlow_t_t swig_types[814]
#define SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t swig_types[815]
#define SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_Dividend_t_t swig_types[816]
#define SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_Instrument_t_t swig_types[817]
#define SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_Quote_t_t swig_types[818]
#define SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_RateHelper_t_t swig_types[819]
#define SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t swig_types[820]
#define SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t swig_types[821]
#define SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t swig_types[822]
#define SWIGTYPE_p_std__allocatorT_double_t swig_types[823]
#define SWIGTYPE_p_std__allocatorT_int_t swig_types[824]
#define SWIGTYPE_p_std__allocatorT_std__pairT_Date_double_t_t swig_types[825]
#define SWIGTYPE_p_std__allocatorT_std__string_t swig_types[826]
#define SWIGTYPE_p_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t swig_types[827]
#define SWIGTYPE_p_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t swig_types[828]
#define SWIGTYPE_p_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t swig_types[829]
#define SWIGTYPE_p_std__allocatorT_unsigned_int_t swig_types[830]
#define SWIGTYPE_p_std__invalid_argument swig_types[831]
#define SWIGTYPE_p_std__pairT_Date_double_t swig_types[832]
#define SWIGTYPE_p_std__size_t swig_types[833]
#define SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t swig_types[834]
#define SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t swig_types[835]
#define SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t swig_types[836]
#define SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t swig_types[837]
#define SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t swig_types[838]
#define SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t swig_types[839]
#define SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t swig_types[840]
#define SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t swig_types[841]
#define SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t swig_types[842]
#define SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t swig_types[843]
#define SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t swig_types[844]
#define SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t swig_types[845]
#define SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t swig_types[846]
#define SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t swig_types[847]
#define SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t swig_types[848]
#define SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t swig_types[849]
#define SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t swig_types[850]
#define SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t swig_types[851]
#define SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t swig_types[852]
#define SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t swig_types[853]
#define SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t swig_types[854]
#define SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t swig_types[855]
#define SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t swig_types[856]
#define SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t swig_types[857]
#define SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t swig_types[858]
#define SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t swig_types[859]
#define SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t swig_types[860]
#define SWIGTYPE_p_swig__SwigPyIterator swig_types[861]
#define SWIGTYPE_p_unsigned_int swig_types[862]
#define SWIGTYPE_p_unsigned_long swig_types[863]
#define SWIGTYPE_p_value_type swig_types[864]
static swig_type_info *swig_types[866];
static swig_module_info swig_module = {swig_types, 865, 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) -------- */

#if (PY_VERSION_HEX <= 0x02000000)
# if !defined(SWIG_PYTHON_CLASSIC)
#  error "This python version requires swig to be run with the '-classic' option"
# endif
#endif
#if (PY_VERSION_HEX <= 0x02020000)
# error "This python version requires swig to be run with the '-nomodern' option"
#endif
#if (PY_VERSION_HEX <= 0x02020000)
# error "This python version requires swig to be run with the '-nomodernargs' option"
#endif

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

#else
#  define SWIG_init    init_QuantLib

#endif
#define SWIG_name    "_QuantLib"

#define SWIGVERSION 0x030012 
#define SWIG_VERSION SWIGVERSION


#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;
      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;
        Py_XINCREF(_obj);
        SWIG_PYTHON_THREAD_END_BLOCK;
      }
    }
    
    SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) 
    {
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      Py_XINCREF(item._obj);
      Py_XDECREF(_obj);
      _obj = item._obj;
      SWIG_PYTHON_THREAD_END_BLOCK;
      return *this;      
    }
    
    ~SwigPtr_PyObject() 
    {
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      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)
    {
      Py_XDECREF(_obj);
      _obj = obj;
      return *this;      
    }
  };
}


#include <ql/version.hpp>
const int    __hexversion__ = QL_HEX_VERSION;
const char* __version__    = QL_VERSION;


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


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


SWIGINTERNINLINE PyObject *
SWIG_FromCharPtrAndSize(const char* carray, size_t size)
{
  if (carray) {
    if (size > INT_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
#if PY_VERSION_HEX >= 0x03010000
      return PyUnicode_DecodeUTF8(carray, static_cast< Py_ssize_t >(size), "surrogateescape");
#else
      return PyUnicode_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
#endif
#endif
#else
      return PyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
#endif
    }
  } else {
    return SWIG_Py_Void();
  }
}


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


#ifdef barrier
#undef barrier
#endif


#include <ql/quantlib.hpp>

#if QL_HEX_VERSION < 0x011200f0
    #error using an old version of QuantLib, please update
#endif

#ifdef BOOST_MSVC
#ifdef QL_ENABLE_THREAD_SAFE_OBSERVER_PATTERN
#define BOOST_LIB_NAME boost_thread
#include <boost/config/auto_link.hpp>
#undef BOOST_LIB_NAME
#define BOOST_LIB_NAME boost_system
#include <boost/config/auto_link.hpp>
#undef BOOST_LIB_NAME
#endif
#endif

#if defined (SWIGJAVA) || defined (SWIGCSHARP) 
  #ifndef QL_ENABLE_THREAD_SAFE_OBSERVER_PATTERN
    #ifdef BOOST_MSVC
      #pragma message(\
          "Quantlib has not been compiled with the thread-safe "           \
          "observer pattern being enabled. This can lead to spurious "     \
          "crashes or pure virtual function call within the JVM or .NET "  \
          "ecosystem due to the async garbage collector. Please consider " \
          "enabling QL_ENABLE_THREAD_SAFE_OBSERVER_PATTERN "               \
          "in ql/userconfig.hpp.")
    #else
      #warning \
          Quantlib has not been compiled with the thread-safe           \
          observer pattern being enabled. This can lead to spurious     \
          crashes or pure virtual function call within the JVM or .NET  \
          ecosystem due to the async garbage collector. Please consider \
          passing --enable-thread-safe-observer-pattern when using the  \
          GNU autoconf configure script.
    #endif
  #endif
#endif


// add here SWIG version check

#if defined(_MSC_VER)         // Microsoft Visual C++ 6.0
// disable Swig-dependent warnings

// 'identifier1' has C-linkage specified,
// but returns UDT 'identifier2' which is incompatible with C
#pragma warning(disable: 4190)

// 'int' : forcing value to bool 'true' or 'false' (performance warning)
#pragma warning(disable: 4800)

// debug info too long etc etc
#pragma warning(disable: 4786)
#endif


#if PY_VERSION_HEX < 0x02010000
    #error Python version 2.1.0 or later is required
#endif


#include <typeinfo>
#include <stdexcept>


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


#include <string>


#include <stddef.h>


#include <iostream>

#if PY_VERSION_HEX >= 0x03020000
# define SWIGPY_SLICE_ARG(obj) ((PyObject*) (obj))
#else
# define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj))
#endif


namespace swig {
  struct stop_iteration {
  };

  struct SwigPyIterator {
  private:
    SwigPtr_PyObject _seq;

  protected:
    SwigPyIterator(PyObject *seq) : _seq(seq)
    {
    }
      
  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
    virtual SwigPyIterator *decr(size_t /*n*/ = 1)
    {
      throw stop_iteration();
    }

    // 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();
      incr();       
      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       
      decr();
      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)
    {
      return *advance(n);
    }

    SwigPyIterator& operator -= (ptrdiff_t n)
    {
      return *advance(-n);
    }
      
    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 int init = 0;
      static swig_type_info* desc = 0;
      if (!init) {
	desc = SWIG_TypeQuery("swig::SwigPyIterator *");
	init = 1;
      }	
      return desc;
    }    
  };

#if defined(SWIGPYTHON_BUILTIN)
  inline PyObject* make_output_iterator_builtin (PyObject *pyself)
  {
    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 <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 = floor(x);
   double cx = ceil(x);
   double 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));
      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));
      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>


// This is necessary to avoid compile failures on 
// GCC 4
// see http://svn.boost.org/trac/boost/ticket/1793

#if defined(NDEBUG)
#define BOOST_DISABLE_ASSERTS 1
#endif

#include <boost/algorithm/string/case_conv.hpp>


// generally useful classes
using QuantLib::Error;
using QuantLib::Handle;
using QuantLib::RelinkableHandle;


using QuantLib::Integer;
using QuantLib::BigInteger;
using QuantLib::Natural;
using QuantLib::BigNatural;
using QuantLib::Real;
using QuantLib::Decimal;
using QuantLib::Time;
using QuantLib::Rate;
using QuantLib::Spread;
using QuantLib::DiscountFactor;
using QuantLib::Volatility;
using QuantLib::Probability;
using QuantLib::Size;


#ifndef QL_HIGH_RESOLUTION_DATE
    // They are not defined in the library, so we define them here
    namespace QuantLib {
        typedef int Hour;
        typedef int Minute;
        typedef int Second;
        typedef int Millisecond;
        typedef int Microsecond;
    }
#endif

using QuantLib::Day;
using QuantLib::Year;
using QuantLib::Hour;
using QuantLib::Minute;
using QuantLib::Second;
using QuantLib::Millisecond;
using QuantLib::Microsecond;


using QuantLib::Weekday;
using QuantLib::Sunday;
using QuantLib::Monday;
using QuantLib::Tuesday;
using QuantLib::Wednesday;
using QuantLib::Thursday;
using QuantLib::Friday;
using QuantLib::Saturday;


using QuantLib::Month;
using QuantLib::January;
using QuantLib::February;
using QuantLib::March;
using QuantLib::April;
using QuantLib::May;
using QuantLib::June;
using QuantLib::July;
using QuantLib::August;
using QuantLib::September;
using QuantLib::October;
using QuantLib::November;
using QuantLib::December;


using QuantLib::TimeUnit;
using QuantLib::Days;
using QuantLib::Weeks;
using QuantLib::Months;
using QuantLib::Years;
using QuantLib::Hours;
using QuantLib::Minutes;
using QuantLib::Seconds;
using QuantLib::Milliseconds;
using QuantLib::Microseconds;


using QuantLib::Frequency;
using QuantLib::NoFrequency;
using QuantLib::Once;
using QuantLib::Annual;
using QuantLib::Semiannual;
using QuantLib::EveryFourthMonth;
using QuantLib::Quarterly;
using QuantLib::Bimonthly;
using QuantLib::Monthly;
using QuantLib::EveryFourthWeek;
using QuantLib::Biweekly;
using QuantLib::Weekly;
using QuantLib::Daily;
using QuantLib::OtherFrequency;


using QuantLib::Period;
using QuantLib::PeriodParser;


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;
}


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;
#if PY_VERSION_HEX>=0x03000000
#if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
    if (!alloc && cptr) {
        /* We can't allow converting without allocation, since the internal
           representation of string in Python 3 is UCS-2/UCS-4 but we require
           a UTF-8 representation.
           TODO(bhy) More detailed explanation */
        return SWIG_RuntimeError;
    }
    obj = PyUnicode_AsUTF8String(obj);
    if(alloc) *alloc = SWIG_NEWOBJ;
#endif
    PyBytes_AsStringAndSize(obj, &cstr, &len);
#else
    PyString_AsStringAndSize(obj, &cstr, &len);
#endif
    if (cptr) {
      if (alloc) {
	/* 
	   In python the user should not be able to modify the inner
	   string representation. To warranty that, if you define
	   SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
	   buffer is always returned.

	   The default behavior is just to return the pointer value,
	   so, be careful.
	*/ 
#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
	if (*alloc != SWIG_OLDOBJ) 
#else
	if (*alloc == SWIG_NEWOBJ) 
#endif
	{
	  *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
	  *alloc = SWIG_NEWOBJ;
	} else {
	  *cptr = cstr;
	  *alloc = SWIG_OLDOBJ;
	}
      } else {
#if PY_VERSION_HEX>=0x03000000
#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
	*cptr = PyBytes_AsString(obj);
#else
	assert(0); /* Should never reach here with Unicode strings in Python 3 */
#endif
#else
	*cptr = SWIG_Python_str_AsChar(obj);
#endif
      }
    }
    if (psize) *psize = len + 1;
#if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
    Py_XDECREF(obj);
#endif
    return SWIG_OK;
  } 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 (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;

        Py_XDECREF(obj);
        return SWIG_OK;
      } else {
        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 {
    static int init = 0;
    static swig_type_info* descriptor = 0;
    if (!init) {
      descriptor = SWIG_TypeQuery("std::string" " *");
      init = 1;
    }
    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 Period *new_Period__SWIG_3(std::string const &str){
            return new Period(PeriodParser::parse(str));
        }
SWIGINTERN std::string Period___str__(Period *self){
            std::ostringstream out;
            out << *self;
            return out.str();
        }

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

SWIGINTERN std::string Period___repr__(Period *self){
            std::ostringstream out;
            out << "Period(\"" << QuantLib::io::short_period(*self) << "\")";
            return out.str();
        }
SWIGINTERN Period Period___neg__(Period *self){
            return -(*self);
        }
SWIGINTERN Period Period___mul__(Period *self,Integer n){
            return *self*n;
        }
SWIGINTERN Period Period___rmul__(Period *self,Integer n){
            return *self*n;
        }
SWIGINTERN bool Period___lt__(Period *self,Period const &other){
            return *self < other;
        }
SWIGINTERN bool Period___gt__(Period *self,Period const &other){
            return other < *self;
        }
SWIGINTERN bool Period___le__(Period *self,Period const &other){
            return !(other < *self);
        }
SWIGINTERN bool Period___ge__(Period *self,Period const &other){
            return !(*self < other);
        }
SWIGINTERN bool Period___eq__(Period *self,Period const &other){
            return *self == other;
        }
SWIGINTERN int Period___cmp__(Period *self,Period const &other){
            return *self < other  ? -1 :
                   *self == other ?  0 :
                                     1;
        }

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) {
      Type *p;
      swig_type_info *descriptor = type_info<Type>();
      int res = descriptor ? SWIG_ConvertPtr(obj, (void **)&p, descriptor, 0) : SWIG_ERROR;
      if (SWIG_IsOK(res)) {
	if (val) *val = p;
      }
      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, bool throw_error) {
      Type v;
      int res = asval(obj, &v);
      if (!obj || !SWIG_IsOK(res)) {
	if (!PyErr_Occurred()) {
	  ::SWIG_Error(SWIG_TypeError,  swig::type_name<Type>());
	}
	if (throw_error) throw std::invalid_argument("bad type");
      }
      return v;
    }
  };

  template <class Type> 
  struct traits_as<Type, pointer_category> {
    static Type as(PyObject *obj, bool throw_error) {
      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 {
	// Uninitialized return value, no Type() constructor required.
	static Type *v_def = (Type*) malloc(sizeof(Type));
	if (!PyErr_Occurred()) {
	  SWIG_Error(SWIG_TypeError,  swig::type_name<Type>());
	}
	if (throw_error) throw std::invalid_argument("bad type");
	memset(v_def,0,sizeof(Type));
	return *v_def;
      }
    }
  };

  template <class Type> 
  struct traits_as<Type*, pointer_category> {
    static Type* as(PyObject *obj, bool throw_error) {
      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>());
	}
	if (throw_error) throw std::invalid_argument("bad type");
	return 0;
      }
    }
  };
    
  template <class Type>
  inline Type as(PyObject *obj, bool te = false) {
    return traits_as<Type, typename traits<Type>::category>::as(obj, te);
  }

  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);
  }
}


#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) {
      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];
          sprintf(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; ++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];
        sprintf(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; ++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--;
      }
    }
  }
}


#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 SwigPyIteratorOpen_T :  public SwigPyIterator_T<OutIterator>
  {
  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)
      : 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)
    {
      while (n--) {
	++base::current;
      }
      return this;
    }

    SwigPyIterator *decr(size_t n = 1)
    {
      while (n--) {
	--base::current;
      }
      return this;
    }
  };

  template<typename OutIterator, 
	   typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
	   typename FromOper = from_oper<ValueType> >
  class SwigPyIteratorClosed_T :  public SwigPyIterator_T<OutIterator>
  {
  public:
    FromOper from;
    typedef OutIterator out_iterator;
    typedef ValueType value_type;
    typedef SwigPyIterator_T<out_iterator>  base;    
    typedef SwigPyIteratorClosed_T<OutIterator, ValueType, FromOper> self_type;
    
    SwigPyIteratorClosed_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) {
	throw stop_iteration();
      } 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) {
	  throw stop_iteration();
	} else {
	  ++base::current;
	}
      }
      return this;
    }

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

  private:
    out_iterator begin;
    out_iterator end;
  };

  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_iterator(const OutIter& current, PyObject *seq = 0)
  {
    return new SwigPyIteratorOpen_T<OutIter>(current, seq);
  }

}


namespace swig
{
  template <class T>
  struct SwigPySequence_Ref
  {
    SwigPySequence_Ref(PyObject* seq, Py_ssize_t index)
      : _seq(seq), _index(index)
    {
    }
    
    operator T () const
    {
      swig::SwigVar_PyObject item = PySequence_GetItem(_seq, _index);
      try {
	return swig::as<T>(item, true);
      } catch (std::exception& e) {
	char msg[1024];
	sprintf(msg, "in sequence element %d ", (int)_index);
	if (!PyErr_Occurred()) {
	  ::SWIG_Error(SWIG_TypeError,  swig::type_name<T>());
	}
	SWIG_Python_AddErrorMsg(msg);
	SWIG_Python_AddErrorMsg(e.what());
	throw;
      }
    }

    SwigPySequence_Ref& operator=(const T& v)
    {
      PySequence_SetItem(_seq, _index, swig::from<T>(v));
      return *this;
    }

  private:
    PyObject* _seq;
    Py_ssize_t _index;
  };

  template <class T>
  struct SwigPySequence_ArrowProxy
  {
    SwigPySequence_ArrowProxy(const T& x): m_value(x) {}
    const T* operator->() const { return &m_value; }
    operator const T*() const { return &m_value; }
    T m_value;
  };

  template <class T, class Reference >
  struct SwigPySequence_InputIterator
  {
    typedef SwigPySequence_InputIterator<T, Reference > self;

    typedef std::random_access_iterator_tag iterator_category;
    typedef Reference reference;
    typedef T value_type;
    typedef T* pointer;
    typedef Py_ssize_t difference_type;

    SwigPySequence_InputIterator()
    {
    }

    SwigPySequence_InputIterator(PyObject* seq, Py_ssize_t index)
      : _seq(seq), _index(index)
    {
    }

    reference operator*() const
    {
      return reference(_seq, _index);
    }

    SwigPySequence_ArrowProxy<T>
    operator->() const {
      return SwigPySequence_ArrowProxy<T>(operator*());
    }

    bool operator==(const self& ri) const
    {
      return (_index == ri._index) && (_seq == ri._seq);
    }

    bool operator!=(const self& ri) const
    {
      return !(operator==(ri));
    }

    self& operator ++ ()
    {
      ++_index;
      return *this;
    }

    self& operator -- ()
    {
      --_index;
      return *this;
    }

    self& operator += (difference_type n)
    {
      _index += n;
      return *this;
    }

    self operator +(difference_type n) const
    {
      return self(_seq, _index + n);
    }

    self& operator -= (difference_type n)
    {
      _index -= n;
      return *this;
    }

    self operator -(difference_type n) const
    {
      return self(_seq, _index - n);
    }

    difference_type operator - (const self& ri) const
    {
      return _index - ri._index;
    }

    bool operator < (const self& ri) const
    {
      return _index < ri._index;
    }

    reference
    operator[](difference_type n) const
    {
      return reference(_seq, _index + n);
    }

  private:
    PyObject* _seq;
    difference_type _index;
  };

  // STL container wrapper around a Python sequence
  template <class T>
  struct SwigPySequence_Cont
  {
    typedef SwigPySequence_Ref<T> reference;
    typedef const SwigPySequence_Ref<T> const_reference;
    typedef T value_type;
    typedef T* pointer;
    typedef Py_ssize_t difference_type;
    typedef size_t size_type;
    typedef const pointer const_pointer;
    typedef SwigPySequence_InputIterator<T, reference> iterator;
    typedef SwigPySequence_InputIterator<T, const_reference> const_iterator;

    SwigPySequence_Cont(PyObject* seq) : _seq(0)
    {
      if (!PySequence_Check(seq)) {
	throw std::invalid_argument("a sequence is expected");
      }
      _seq = seq;
      Py_INCREF(_seq);
    }

    ~SwigPySequence_Cont()
    {
      Py_XDECREF(_seq);
    }

    size_type size() const
    {
      return static_cast<size_type>(PySequence_Size(_seq));
    }

    bool empty() const
    {
      return size() == 0;
    }

    iterator begin()
    {
      return iterator(_seq, 0);
    }

    const_iterator begin() const
    {
      return const_iterator(_seq, 0);
    }

    iterator end()
    {
      return iterator(_seq, size());
    }

    const_iterator end() const
    {
      return const_iterator(_seq, size());
    }

    reference operator[](difference_type n)
    {
      return reference(_seq, n);
    }

    const_reference operator[](difference_type n)  const
    {
      return const_reference(_seq, n);
    }

    bool check(bool set_err = true) const
    {
      Py_ssize_t s = size();
      for (Py_ssize_t i = 0; i < s; ++i) {
	swig::SwigVar_PyObject item = PySequence_GetItem(_seq, i);
	if (!swig::check<value_type>(item)) {
	  if (set_err) {
	    char msg[1024];
	    sprintf(msg, "in sequence element %d", (int)i);
	    SWIG_Error(SWIG_RuntimeError, msg);
	  }
	  return false;
	}
      }
      return true;
    }

  private:
    PyObject* _seq;
  };

}


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


namespace swig {
  template <class SwigPySeq, class Seq>
  inline void
  assign(const SwigPySeq& swigpyseq, Seq* seq) {
    // seq->assign(swigpyseq.begin(), swigpyseq.end()); // not used as not always implemented
    typedef typename SwigPySeq::value_type value_type;
    typename SwigPySeq::const_iterator it = swigpyseq.begin();
    for (;it != swigpyseq.end(); ++it) {
      seq->insert(seq->end(),(value_type)(*it));
    }
  }

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

    static int asptr(PyObject *obj, sequence **seq) {
      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 (PySequence_Check(obj)) {
	try {
	  SwigPySequence_Cont<value_type> swigpyseq(obj);
	  if (seq) {
	    sequence *pseq = new sequence();
	    assign(swigpyseq, pseq);
	    *seq = pseq;
	    return SWIG_NEWOBJ;
	  } else {
	    return swigpyseq.check() ? SWIG_OK : SWIG_ERROR;
	  }
	} catch (std::exception& e) {
	  if (seq) {
	    if (!PyErr_Occurred()) {
	      PyErr_SetString(PyExc_TypeError, e.what());
	    }
	  }
	  return SWIG_ERROR;
	}
      }
      return SWIG_ERROR;
    }
  };

  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)INT_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 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< Period, std::allocator< Period > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "Period" "," "std::allocator< Period >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_Period_Sg__iterator(std::vector< Period > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_Period_Sg____nonzero__(std::vector< Period > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_Period_Sg____bool__(std::vector< Period > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< Period >::size_type std_vector_Sl_Period_Sg____len__(std::vector< Period > 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::vector< Period,std::allocator< Period > > *std_vector_Sl_Period_Sg____getslice__(std::vector< Period > *self,std::vector< Period >::difference_type i,std::vector< Period >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_Period_Sg____setslice____SWIG_0(std::vector< Period > *self,std::vector< Period >::difference_type i,std::vector< Period >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< Period,std::allocator< Period > >());
    }
SWIGINTERN void std_vector_Sl_Period_Sg____setslice____SWIG_1(std::vector< Period > *self,std::vector< Period >::difference_type i,std::vector< Period >::difference_type j,std::vector< Period,std::allocator< Period > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_Period_Sg____delslice__(std::vector< Period > *self,std::vector< Period >::difference_type i,std::vector< Period >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_Period_Sg____delitem____SWIG_0(std::vector< Period > *self,std::vector< Period >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< Period,std::allocator< Period > > *std_vector_Sl_Period_Sg____getitem____SWIG_0(std::vector< Period > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< Period,std::allocator< Period > >::difference_type id = i;
      std::vector< Period,std::allocator< Period > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_Period_Sg____setitem____SWIG_0(std::vector< Period > *self,PySliceObject *slice,std::vector< Period,std::allocator< Period > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< Period,std::allocator< Period > >::difference_type id = i;
      std::vector< Period,std::allocator< Period > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_Period_Sg____setitem____SWIG_1(std::vector< Period > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< Period,std::allocator< Period > >::difference_type id = i;
      std::vector< Period,std::allocator< Period > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_Period_Sg____delitem____SWIG_1(std::vector< Period > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< Period,std::allocator< Period > >::difference_type id = i;
      std::vector< Period,std::allocator< Period > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< Period >::value_type const &std_vector_Sl_Period_Sg____getitem____SWIG_1(std::vector< Period > const *self,std::vector< Period >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_Period_Sg____setitem____SWIG_2(std::vector< Period > *self,std::vector< Period >::difference_type i,std::vector< Period >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< Period >::value_type std_vector_Sl_Period_Sg__pop(std::vector< Period > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< Period,std::allocator< Period > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_Period_Sg__append(std::vector< Period > *self,std::vector< Period >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< Period >::iterator std_vector_Sl_Period_Sg__erase__SWIG_0(std::vector< Period > *self,std::vector< Period >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< Period >::iterator std_vector_Sl_Period_Sg__erase__SWIG_1(std::vector< Period > *self,std::vector< Period >::iterator first,std::vector< Period >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< Period >::iterator std_vector_Sl_Period_Sg__insert__SWIG_0(std::vector< Period > *self,std::vector< Period >::iterator pos,std::vector< Period >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_Period_Sg__insert__SWIG_1(std::vector< Period > *self,std::vector< Period >::iterator pos,std::vector< Period >::size_type n,std::vector< Period >::value_type const &x){ self->insert(pos, n, x); }

using QuantLib::Date;
using QuantLib::DateParser;


    // used in Date(string, string) defined below
    void _replace_format(std::string& s, const std::string& old_format,
                         const std::string& new_format) {
        std::string::size_type i = s.find(old_format);
        if (i != std::string::npos)
            s.replace(i, old_format.length(), new_format);
    }

SWIGINTERN Date *new_Date__SWIG_2(Day d,Month m,Year y,Hour hours,Minute minutes,Second seconds,Millisecond millisec=0,Microsecond microsec=0){
        #ifdef QL_HIGH_RESOLUTION_DATE
            return new Date(d, m, y, hours, minutes, seconds,
                            millisec, microsec);
        #else
            throw std::runtime_error("QuantLib was not compiled "
                                     "with intraday support");
        #endif
        }
SWIGINTERN Hour Date_hours(Date *self){
        #ifdef QL_HIGH_RESOLUTION_DATE
            return self->hours();
        #else
            throw std::runtime_error("QuantLib was not compiled "
                                     "with intraday support");
        #endif
        }
SWIGINTERN Minute Date_minutes(Date *self){
        #ifdef QL_HIGH_RESOLUTION_DATE
            return self->minutes();
        #else
            throw std::runtime_error("QuantLib was not compiled "
                                     "with intraday support");
        #endif
        }
SWIGINTERN Second Date_seconds(Date *self){
        #ifdef QL_HIGH_RESOLUTION_DATE
            return self->seconds();
        #else
            throw std::runtime_error("QuantLib was not compiled "
                                     "with intraday support");
        #endif
        }
SWIGINTERN Millisecond Date_milliseconds(Date *self){
        #ifdef QL_HIGH_RESOLUTION_DATE
            return self->milliseconds();
        #else
            throw std::runtime_error("QuantLib was not compiled "
                                     "with intraday support");
        #endif
        }
SWIGINTERN Microsecond Date_microseconds(Date *self){
        #ifdef QL_HIGH_RESOLUTION_DATE
            return self->microseconds();
        #else
            throw std::runtime_error("QuantLib was not compiled "
                                     "with intraday support");
        #endif
        }
SWIGINTERN Time Date_fractionOfDay(Date const *self){
        #ifdef QL_HIGH_RESOLUTION_DATE
            return self->fractionOfDay();
        #else
            throw std::runtime_error("QuantLib was not compiled "
                                     "with intraday support");
        #endif
        }

  #define SWIG_From_double   PyFloat_FromDouble 

SWIGINTERN Time Date_fractionOfSecond(Date const *self){
        #ifdef QL_HIGH_RESOLUTION_DATE
            return self->fractionOfSecond();
        #else
            throw std::runtime_error("QuantLib was not compiled "
                                     "with intraday support");
        #endif
        }
SWIGINTERN Date Date_localDateTime(){
        #ifdef QL_HIGH_RESOLUTION_DATE
            return Date::localDateTime();
        #else
            throw std::runtime_error("QuantLib was not compiled "
                                     "with intraday support");
        #endif
        }
SWIGINTERN Date Date_universalDateTime(){
        #ifdef QL_HIGH_RESOLUTION_DATE
            return Date::universalDateTime();
        #else
            throw std::runtime_error("QuantLib was not compiled "
                                     "with intraday support");
        #endif
         }
SWIGINTERN Date *new_Date__SWIG_6(std::string const &str,std::string fmt){
            // convert our old format into the corresponding Boost one
            _replace_format(fmt, "YYYY", "%Y");
            _replace_format(fmt, "yyyy", "%Y");
            _replace_format(fmt, "YY", "%y");
            _replace_format(fmt, "yy", "%y");
            _replace_format(fmt, "MM", "%m");
            _replace_format(fmt, "mm", "%m");
            _replace_format(fmt, "DD", "%d");
            _replace_format(fmt, "dd", "%d");
            return new Date(DateParser::parseFormatted(str,fmt));
        }
SWIGINTERN Integer Date_weekdayNumber(Date *self){
            return int(self->weekday());
        }
SWIGINTERN std::string Date___str__(Date *self){
            std::ostringstream out;
            out << *self;
            return out.str();
        }
SWIGINTERN std::string Date___repr__(Date *self){
            std::ostringstream out;
            if (*self == Date())
                out << "Date()";
            else
                out << "Date(" << self->dayOfMonth() << ","
                    << int(self->month()) << "," << self->year() << ")";
            return out.str();
        }
SWIGINTERN std::string Date_ISO(Date *self){
            std::ostringstream out;
            out << QuantLib::io::iso_date(*self);
            return out.str();
        }
SWIGINTERN BigInteger Date_operator_Ss___SWIG_2(Date *self,Date const &other){
            return *self - other;
        }
SWIGINTERN bool Date___eq__(Date *self,Date const &other){
            return *self == other;
        }
SWIGINTERN int Date___cmp__(Date *self,Date const &other){
            if (*self < other)
                return -1;
            else if (*self == other)
                return 0;
            else
                return 1;
        }
SWIGINTERN bool Date___nonzero__(Date *self){
            return (*self != Date());
        }
SWIGINTERN bool Date___bool__(Date *self){
            return (*self != Date());
        }
SWIGINTERN int Date___hash__(Date *self){
            return self->serialNumber();
        }
SWIGINTERN bool Date___lt__(Date *self,Date const &other){
            return *self < other;
        }
SWIGINTERN bool Date___gt__(Date *self,Date const &other){
            return other < *self;
        }
SWIGINTERN bool Date___le__(Date *self,Date const &other){
            return !(other < *self);
        }
SWIGINTERN bool Date___ge__(Date *self,Date const &other){
            return !(*self < other);
        }
SWIGINTERN Date DateParser_parse(std::string const &str,std::string fmt){
            // convert our old format into the corresponding Boost one
            _replace_format(fmt, "YYYY", "%Y");
            _replace_format(fmt, "yyyy", "%Y");
            _replace_format(fmt, "YY", "%y");
            _replace_format(fmt, "yy", "%y");
            _replace_format(fmt, "MM", "%m");
            _replace_format(fmt, "mm", "%m");
            _replace_format(fmt, "DD", "%d");
            _replace_format(fmt, "dd", "%d");
            return DateParser::parseFormatted(str,fmt);
        }

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


      namespace swig {
	template <>  struct traits<std::vector< Date, std::allocator< Date > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "Date" "," "std::allocator< Date >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_Date_Sg__iterator(std::vector< Date > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_Date_Sg____nonzero__(std::vector< Date > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_Date_Sg____bool__(std::vector< Date > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< Date >::size_type std_vector_Sl_Date_Sg____len__(std::vector< Date > const *self){
      return self->size();
    }
SWIGINTERN std::vector< Date,std::allocator< Date > > *std_vector_Sl_Date_Sg____getslice__(std::vector< Date > *self,std::vector< Date >::difference_type i,std::vector< Date >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_Date_Sg____setslice____SWIG_0(std::vector< Date > *self,std::vector< Date >::difference_type i,std::vector< Date >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< Date,std::allocator< Date > >());
    }
SWIGINTERN void std_vector_Sl_Date_Sg____setslice____SWIG_1(std::vector< Date > *self,std::vector< Date >::difference_type i,std::vector< Date >::difference_type j,std::vector< Date,std::allocator< Date > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_Date_Sg____delslice__(std::vector< Date > *self,std::vector< Date >::difference_type i,std::vector< Date >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_Date_Sg____delitem____SWIG_0(std::vector< Date > *self,std::vector< Date >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< Date,std::allocator< Date > > *std_vector_Sl_Date_Sg____getitem____SWIG_0(std::vector< Date > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< Date,std::allocator< Date > >::difference_type id = i;
      std::vector< Date,std::allocator< Date > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_Date_Sg____setitem____SWIG_0(std::vector< Date > *self,PySliceObject *slice,std::vector< Date,std::allocator< Date > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< Date,std::allocator< Date > >::difference_type id = i;
      std::vector< Date,std::allocator< Date > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_Date_Sg____setitem____SWIG_1(std::vector< Date > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< Date,std::allocator< Date > >::difference_type id = i;
      std::vector< Date,std::allocator< Date > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_Date_Sg____delitem____SWIG_1(std::vector< Date > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< Date,std::allocator< Date > >::difference_type id = i;
      std::vector< Date,std::allocator< Date > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< Date >::value_type const &std_vector_Sl_Date_Sg____getitem____SWIG_1(std::vector< Date > const *self,std::vector< Date >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_Date_Sg____setitem____SWIG_2(std::vector< Date > *self,std::vector< Date >::difference_type i,std::vector< Date >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< Date >::value_type std_vector_Sl_Date_Sg__pop(std::vector< Date > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< Date,std::allocator< Date > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_Date_Sg__append(std::vector< Date > *self,std::vector< Date >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< Date >::iterator std_vector_Sl_Date_Sg__erase__SWIG_0(std::vector< Date > *self,std::vector< Date >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< Date >::iterator std_vector_Sl_Date_Sg__erase__SWIG_1(std::vector< Date > *self,std::vector< Date >::iterator first,std::vector< Date >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< Date >::iterator std_vector_Sl_Date_Sg__insert__SWIG_0(std::vector< Date > *self,std::vector< Date >::iterator pos,std::vector< Date >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_Date_Sg__insert__SWIG_1(std::vector< Date > *self,std::vector< Date >::iterator pos,std::vector< Date >::size_type n,std::vector< Date >::value_type const &x){ self->insert(pos, n, x); }

using QuantLib::IMM;


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;
}


using QuantLib::ASX;


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


      namespace swig {
	template <>  struct traits<std::vector< int, std::allocator< int > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "int" "," "std::allocator< int >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_int_Sg__iterator(std::vector< int > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_int_Sg____nonzero__(std::vector< int > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_int_Sg____bool__(std::vector< int > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< int >::size_type std_vector_Sl_int_Sg____len__(std::vector< int > const *self){
      return self->size();
    }
SWIGINTERN std::vector< int,std::allocator< int > > *std_vector_Sl_int_Sg____getslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_int_Sg____setslice____SWIG_0(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< int,std::allocator< int > >());
    }
SWIGINTERN void std_vector_Sl_int_Sg____setslice____SWIG_1(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j,std::vector< int,std::allocator< int > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_int_Sg____delslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_int_Sg____delitem____SWIG_0(std::vector< int > *self,std::vector< int >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< int,std::allocator< int > > *std_vector_Sl_int_Sg____getitem____SWIG_0(std::vector< int > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< int,std::allocator< int > >::difference_type id = i;
      std::vector< int,std::allocator< int > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_int_Sg____setitem____SWIG_0(std::vector< int > *self,PySliceObject *slice,std::vector< int,std::allocator< int > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< int,std::allocator< int > >::difference_type id = i;
      std::vector< int,std::allocator< int > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_int_Sg____setitem____SWIG_1(std::vector< int > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< int,std::allocator< int > >::difference_type id = i;
      std::vector< int,std::allocator< int > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_int_Sg____delitem____SWIG_1(std::vector< int > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< int,std::allocator< int > >::difference_type id = i;
      std::vector< int,std::allocator< int > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< int >::value_type const &std_vector_Sl_int_Sg____getitem____SWIG_1(std::vector< int > const *self,std::vector< int >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_int_Sg____setitem____SWIG_2(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< int >::value_type std_vector_Sl_int_Sg__pop(std::vector< int > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< int,std::allocator< int > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_int_Sg__append(std::vector< int > *self,std::vector< int >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< int >::iterator std_vector_Sl_int_Sg__erase__SWIG_0(std::vector< int > *self,std::vector< int >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< int >::iterator std_vector_Sl_int_Sg__erase__SWIG_1(std::vector< int > *self,std::vector< int >::iterator first,std::vector< int >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< int >::iterator std_vector_Sl_int_Sg__insert__SWIG_0(std::vector< int > *self,std::vector< int >::iterator pos,std::vector< int >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_int_Sg__insert__SWIG_1(std::vector< int > *self,std::vector< int >::iterator pos,std::vector< int >::size_type n,std::vector< int >::value_type const &x){ self->insert(pos, n, x); }

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;
}


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


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


      namespace swig {
	template <>  struct traits<std::vector< unsigned int, std::allocator< unsigned int > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "unsigned int" "," "std::allocator< unsigned int >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_unsigned_SS_int_Sg__iterator(std::vector< unsigned int > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_unsigned_SS_int_Sg____nonzero__(std::vector< unsigned int > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_unsigned_SS_int_Sg____bool__(std::vector< unsigned int > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< unsigned int >::size_type std_vector_Sl_unsigned_SS_int_Sg____len__(std::vector< unsigned int > const *self){
      return self->size();
    }
SWIGINTERN std::vector< unsigned int,std::allocator< unsigned int > > *std_vector_Sl_unsigned_SS_int_Sg____getslice__(std::vector< unsigned int > *self,std::vector< unsigned int >::difference_type i,std::vector< unsigned int >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____setslice____SWIG_0(std::vector< unsigned int > *self,std::vector< unsigned int >::difference_type i,std::vector< unsigned int >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< unsigned int,std::allocator< unsigned int > >());
    }
SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____setslice____SWIG_1(std::vector< unsigned int > *self,std::vector< unsigned int >::difference_type i,std::vector< unsigned int >::difference_type j,std::vector< unsigned int,std::allocator< unsigned int > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____delslice__(std::vector< unsigned int > *self,std::vector< unsigned int >::difference_type i,std::vector< unsigned int >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____delitem____SWIG_0(std::vector< unsigned int > *self,std::vector< unsigned int >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< unsigned int,std::allocator< unsigned int > > *std_vector_Sl_unsigned_SS_int_Sg____getitem____SWIG_0(std::vector< unsigned int > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< unsigned int,std::allocator< unsigned int > >::difference_type id = i;
      std::vector< unsigned int,std::allocator< unsigned int > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____setitem____SWIG_0(std::vector< unsigned int > *self,PySliceObject *slice,std::vector< unsigned int,std::allocator< unsigned int > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< unsigned int,std::allocator< unsigned int > >::difference_type id = i;
      std::vector< unsigned int,std::allocator< unsigned int > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____setitem____SWIG_1(std::vector< unsigned int > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< unsigned int,std::allocator< unsigned int > >::difference_type id = i;
      std::vector< unsigned int,std::allocator< unsigned int > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____delitem____SWIG_1(std::vector< unsigned int > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< unsigned int,std::allocator< unsigned int > >::difference_type id = i;
      std::vector< unsigned int,std::allocator< unsigned int > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< unsigned int >::value_type const &std_vector_Sl_unsigned_SS_int_Sg____getitem____SWIG_1(std::vector< unsigned int > const *self,std::vector< unsigned int >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg____setitem____SWIG_2(std::vector< unsigned int > *self,std::vector< unsigned int >::difference_type i,std::vector< unsigned int >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< unsigned int >::value_type std_vector_Sl_unsigned_SS_int_Sg__pop(std::vector< unsigned int > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< unsigned int,std::allocator< unsigned int > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg__append(std::vector< unsigned int > *self,std::vector< unsigned int >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< unsigned int >::iterator std_vector_Sl_unsigned_SS_int_Sg__erase__SWIG_0(std::vector< unsigned int > *self,std::vector< unsigned int >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< unsigned int >::iterator std_vector_Sl_unsigned_SS_int_Sg__erase__SWIG_1(std::vector< unsigned int > *self,std::vector< unsigned int >::iterator first,std::vector< unsigned int >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< unsigned int >::iterator std_vector_Sl_unsigned_SS_int_Sg__insert__SWIG_0(std::vector< unsigned int > *self,std::vector< unsigned int >::iterator pos,std::vector< unsigned int >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_unsigned_SS_int_Sg__insert__SWIG_1(std::vector< unsigned int > *self,std::vector< unsigned int >::iterator pos,std::vector< unsigned int >::size_type n,std::vector< unsigned int >::value_type const &x){ self->insert(pos, n, x); }

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


      namespace swig {
	template <>  struct traits<std::vector< double, std::allocator< double > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "double" "," "std::allocator< double >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_double_Sg__iterator(std::vector< double > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_double_Sg____nonzero__(std::vector< double > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_double_Sg____bool__(std::vector< double > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< double >::size_type std_vector_Sl_double_Sg____len__(std::vector< double > const *self){
      return self->size();
    }
SWIGINTERN std::vector< double,std::allocator< double > > *std_vector_Sl_double_Sg____getslice__(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_double_Sg____setslice____SWIG_0(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< double,std::allocator< double > >());
    }
SWIGINTERN void std_vector_Sl_double_Sg____setslice____SWIG_1(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j,std::vector< double,std::allocator< double > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_double_Sg____delslice__(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_double_Sg____delitem____SWIG_0(std::vector< double > *self,std::vector< double >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< double,std::allocator< double > > *std_vector_Sl_double_Sg____getitem____SWIG_0(std::vector< double > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< double,std::allocator< double > >::difference_type id = i;
      std::vector< double,std::allocator< double > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_double_Sg____setitem____SWIG_0(std::vector< double > *self,PySliceObject *slice,std::vector< double,std::allocator< double > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< double,std::allocator< double > >::difference_type id = i;
      std::vector< double,std::allocator< double > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_double_Sg____setitem____SWIG_1(std::vector< double > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< double,std::allocator< double > >::difference_type id = i;
      std::vector< double,std::allocator< double > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_double_Sg____delitem____SWIG_1(std::vector< double > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< double,std::allocator< double > >::difference_type id = i;
      std::vector< double,std::allocator< double > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< double >::value_type const &std_vector_Sl_double_Sg____getitem____SWIG_1(std::vector< double > const *self,std::vector< double >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_double_Sg____setitem____SWIG_2(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< double >::value_type std_vector_Sl_double_Sg__pop(std::vector< double > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< double,std::allocator< double > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_double_Sg__append(std::vector< double > *self,std::vector< double >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< double >::iterator std_vector_Sl_double_Sg__erase__SWIG_0(std::vector< double > *self,std::vector< double >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< double >::iterator std_vector_Sl_double_Sg__erase__SWIG_1(std::vector< double > *self,std::vector< double >::iterator first,std::vector< double >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< double >::iterator std_vector_Sl_double_Sg__insert__SWIG_0(std::vector< double > *self,std::vector< double >::iterator pos,std::vector< double >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_double_Sg__insert__SWIG_1(std::vector< double > *self,std::vector< double >::iterator pos,std::vector< double >::size_type n,std::vector< double >::value_type const &x){ self->insert(pos, n, x); }

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;
}


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 <>  struct traits<std::vector< std::string, std::allocator< std::string > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "std::string" "," "std::allocator< std::string >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_std_string_Sg__iterator(std::vector< std::string > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_std_string_Sg____nonzero__(std::vector< std::string > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_std_string_Sg____bool__(std::vector< std::string > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< std::string >::size_type std_vector_Sl_std_string_Sg____len__(std::vector< std::string > const *self){
      return self->size();
    }
SWIGINTERN std::vector< std::string,std::allocator< std::string > > *std_vector_Sl_std_string_Sg____getslice__(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_string_Sg____setslice____SWIG_0(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< std::string,std::allocator< std::string > >());
    }
SWIGINTERN void std_vector_Sl_std_string_Sg____setslice____SWIG_1(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j,std::vector< std::string,std::allocator< std::string > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_std_string_Sg____delslice__(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_string_Sg____delitem____SWIG_0(std::vector< std::string > *self,std::vector< std::string >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< std::string,std::allocator< std::string > > *std_vector_Sl_std_string_Sg____getitem____SWIG_0(std::vector< std::string > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::string,std::allocator< std::string > >::difference_type id = i;
      std::vector< std::string,std::allocator< std::string > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_string_Sg____setitem____SWIG_0(std::vector< std::string > *self,PySliceObject *slice,std::vector< std::string,std::allocator< std::string > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::string,std::allocator< std::string > >::difference_type id = i;
      std::vector< std::string,std::allocator< std::string > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_std_string_Sg____setitem____SWIG_1(std::vector< std::string > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::string,std::allocator< std::string > >::difference_type id = i;
      std::vector< std::string,std::allocator< std::string > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_string_Sg____delitem____SWIG_1(std::vector< std::string > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::string,std::allocator< std::string > >::difference_type id = i;
      std::vector< std::string,std::allocator< std::string > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< std::string >::value_type const &std_vector_Sl_std_string_Sg____getitem____SWIG_1(std::vector< std::string > const *self,std::vector< std::string >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_std_string_Sg____setitem____SWIG_2(std::vector< std::string > *self,std::vector< std::string >::difference_type i,std::vector< std::string >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< std::string >::value_type std_vector_Sl_std_string_Sg__pop(std::vector< std::string > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< std::string,std::allocator< std::string > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_std_string_Sg__append(std::vector< std::string > *self,std::vector< std::string >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< std::string >::iterator std_vector_Sl_std_string_Sg__erase__SWIG_0(std::vector< std::string > *self,std::vector< std::string >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< std::string >::iterator std_vector_Sl_std_string_Sg__erase__SWIG_1(std::vector< std::string > *self,std::vector< std::string >::iterator first,std::vector< std::string >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< std::string >::iterator std_vector_Sl_std_string_Sg__insert__SWIG_0(std::vector< std::string > *self,std::vector< std::string >::iterator pos,std::vector< std::string >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_std_string_Sg__insert__SWIG_1(std::vector< std::string > *self,std::vector< std::string >::iterator pos,std::vector< std::string >::size_type n,std::vector< std::string >::value_type const &x){ self->insert(pos, n, x); }

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


      namespace swig {
	template <>  struct traits<std::vector<bool, std::allocator< bool > > > {
	  typedef value_category category;
	  static const char* type_name() {
	    return "std::vector<bool, std::allocator< bool > >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_bool_Sg__iterator(std::vector< bool > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_bool_Sg____nonzero__(std::vector< bool > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_bool_Sg____bool__(std::vector< bool > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< bool >::size_type std_vector_Sl_bool_Sg____len__(std::vector< bool > const *self){
      return self->size();
    }
SWIGINTERN std::vector< bool,std::allocator< bool > > *std_vector_Sl_bool_Sg____getslice__(std::vector< bool > *self,std::vector< bool >::difference_type i,std::vector< bool >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_bool_Sg____setslice____SWIG_0(std::vector< bool > *self,std::vector< bool >::difference_type i,std::vector< bool >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector<bool,std::allocator< bool > >());
    }
SWIGINTERN void std_vector_Sl_bool_Sg____setslice____SWIG_1(std::vector< bool > *self,std::vector< bool >::difference_type i,std::vector< bool >::difference_type j,std::vector< bool,std::allocator< bool > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_bool_Sg____delslice__(std::vector< bool > *self,std::vector< bool >::difference_type i,std::vector< bool >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_bool_Sg____delitem____SWIG_0(std::vector< bool > *self,std::vector< bool >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< bool,std::allocator< bool > > *std_vector_Sl_bool_Sg____getitem____SWIG_0(std::vector< bool > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector<bool,std::allocator< bool > >::difference_type id = i;
      std::vector<bool,std::allocator< bool > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_bool_Sg____setitem____SWIG_0(std::vector< bool > *self,PySliceObject *slice,std::vector< bool,std::allocator< bool > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector<bool,std::allocator< bool > >::difference_type id = i;
      std::vector<bool,std::allocator< bool > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_bool_Sg____setitem____SWIG_1(std::vector< bool > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector<bool,std::allocator< bool > >::difference_type id = i;
      std::vector<bool,std::allocator< bool > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_bool_Sg____delitem____SWIG_1(std::vector< bool > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector<bool,std::allocator< bool > >::difference_type id = i;
      std::vector<bool,std::allocator< bool > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< bool >::value_type std_vector_Sl_bool_Sg____getitem____SWIG_1(std::vector< bool > *self,std::vector< bool >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_bool_Sg____setitem____SWIG_2(std::vector< bool > *self,std::vector< bool >::difference_type i,std::vector< bool >::value_type x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< bool >::value_type std_vector_Sl_bool_Sg__pop(std::vector< bool > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector<bool,std::allocator< bool > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_bool_Sg__append(std::vector< bool > *self,std::vector< bool >::value_type x){
      self->push_back(x);
    }
SWIGINTERN std::vector< bool >::iterator std_vector_Sl_bool_Sg__erase__SWIG_0(std::vector< bool > *self,std::vector< bool >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< bool >::iterator std_vector_Sl_bool_Sg__erase__SWIG_1(std::vector< bool > *self,std::vector< bool >::iterator first,std::vector< bool >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< bool >::iterator std_vector_Sl_bool_Sg__insert__SWIG_0(std::vector< bool > *self,std::vector< bool >::iterator pos,std::vector< bool >::value_type x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_bool_Sg__insert__SWIG_1(std::vector< bool > *self,std::vector< bool >::iterator pos,std::vector< bool >::size_type n,std::vector< bool >::value_type x){ self->insert(pos, n, x); }

  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;
	  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< Date, double > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::pair<" "Date" "," "double" " >";
	  }
	};
      }
    

      namespace swig {
	template <>  struct traits<std::vector< std::pair< Date,double >, std::allocator< std::pair< Date,double > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "std::pair< Date,double >" "," "std::allocator< std::pair< Date,double > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg__iterator(std::vector< std::pair< Date,double > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____nonzero__(std::vector< std::pair< Date,double > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____bool__(std::vector< std::pair< Date,double > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< std::pair< Date,double > >::size_type std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____len__(std::vector< std::pair< Date,double > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > *std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____getslice__(std::vector< std::pair< Date,double > > *self,std::vector< std::pair< Date,double > >::difference_type i,std::vector< std::pair< Date,double > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____setslice____SWIG_0(std::vector< std::pair< Date,double > > *self,std::vector< std::pair< Date,double > >::difference_type i,std::vector< std::pair< Date,double > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >());
    }
SWIGINTERN void std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____setslice____SWIG_1(std::vector< std::pair< Date,double > > *self,std::vector< std::pair< Date,double > >::difference_type i,std::vector< std::pair< Date,double > >::difference_type j,std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____delslice__(std::vector< std::pair< Date,double > > *self,std::vector< std::pair< Date,double > >::difference_type i,std::vector< std::pair< Date,double > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____delitem____SWIG_0(std::vector< std::pair< Date,double > > *self,std::vector< std::pair< Date,double > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > *std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____getitem____SWIG_0(std::vector< std::pair< Date,double > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >::difference_type id = i;
      std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____setitem____SWIG_0(std::vector< std::pair< Date,double > > *self,PySliceObject *slice,std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >::difference_type id = i;
      std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____setitem____SWIG_1(std::vector< std::pair< Date,double > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >::difference_type id = i;
      std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____delitem____SWIG_1(std::vector< std::pair< Date,double > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >::difference_type id = i;
      std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< std::pair< Date,double > >::value_type const &std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____getitem____SWIG_1(std::vector< std::pair< Date,double > > const *self,std::vector< std::pair< Date,double > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____setitem____SWIG_2(std::vector< std::pair< Date,double > > *self,std::vector< std::pair< Date,double > >::difference_type i,std::vector< std::pair< Date,double > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< std::pair< Date,double > >::value_type std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg__pop(std::vector< std::pair< Date,double > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg__append(std::vector< std::pair< Date,double > > *self,std::vector< std::pair< Date,double > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< std::pair< Date,double > >::iterator std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg__erase__SWIG_0(std::vector< std::pair< Date,double > > *self,std::vector< std::pair< Date,double > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< std::pair< Date,double > >::iterator std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg__erase__SWIG_1(std::vector< std::pair< Date,double > > *self,std::vector< std::pair< Date,double > >::iterator first,std::vector< std::pair< Date,double > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< std::pair< Date,double > >::iterator std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg__insert__SWIG_0(std::vector< std::pair< Date,double > > *self,std::vector< std::pair< Date,double > >::iterator pos,std::vector< std::pair< Date,double > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg__insert__SWIG_1(std::vector< std::pair< Date,double > > *self,std::vector< std::pair< Date,double > >::iterator pos,std::vector< std::pair< Date,double > >::size_type n,std::vector< std::pair< Date,double > >::value_type const &x){ self->insert(pos, n, x); }

using QuantLib::Exercise;

SWIGINTERN bool boost_shared_ptr_Sl_Exercise_Sg____nonzero__(boost::shared_ptr< Exercise > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_Exercise_Sg____bool__(boost::shared_ptr< Exercise > *self){
                return !!(*self);
            }
SWIGINTERN Exercise::Type boost_shared_ptr_Sl_Exercise_Sg__exerciseType(boost::shared_ptr< Exercise > *self){ 
		return boost::dynamic_pointer_cast<Exercise>(*self)->type(); 
	}

using QuantLib::EuropeanExercise;
using QuantLib::AmericanExercise;
using QuantLib::BermudanExercise;
using QuantLib::RebatedExercise;
typedef boost::shared_ptr<Exercise> EuropeanExercisePtr;
typedef boost::shared_ptr<Exercise> AmericanExercisePtr;
typedef boost::shared_ptr<Exercise> BermudanExercisePtr;
typedef boost::shared_ptr<Exercise> RebatedExercisePtr;

SWIGINTERN EuropeanExercisePtr *new_EuropeanExercisePtr(Date const &date){
            return new EuropeanExercisePtr(new EuropeanExercise(date));
        }
SWIGINTERN AmericanExercisePtr *new_AmericanExercisePtr__SWIG_0(Date const &earliestDate,Date const &latestDate,bool payoffAtExpiry=false){
            return new AmericanExercisePtr(
                                        new AmericanExercise(earliestDate,
                                                             latestDate,
                                                             payoffAtExpiry));

        }
SWIGINTERN BermudanExercisePtr *new_BermudanExercisePtr__SWIG_0(std::vector< Date,std::allocator< Date > > const &dates,bool payoffAtExpiry=false){
            return new BermudanExercisePtr(
                                        new BermudanExercise(dates,
                                                             payoffAtExpiry));
        }

using QuantLib::BusinessDayConvention;
using QuantLib::Calendar;
using QuantLib::Following;
using QuantLib::NullCalendar;

SWIGINTERN RebatedExercisePtr *new_RebatedExercisePtr__SWIG_0(boost::shared_ptr< Exercise > const exercise,std::vector< Real,std::allocator< Real > > const rebates,Natural rebateSettlementDays=0,Calendar const &rebatePaymentCalendar=NullCalendar(),BusinessDayConvention const rebatePaymentConvention=Following){
            return new RebatedExercisePtr(new RebatedExercise(*exercise, rebates,
                                                              rebateSettlementDays,
                                                              rebatePaymentCalendar,
                                                              rebatePaymentConvention));
        }

using QuantLib::Observer;
using QuantLib::Observable;

SWIGINTERN bool boost_shared_ptr_Sl_Observable_Sg____nonzero__(boost::shared_ptr< Observable > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_Observable_Sg____bool__(boost::shared_ptr< Observable > *self){
                return !!(*self);
            }

// C++ wrapper for Python observer
class PyObserver : public Observer {
  public:
    PyObserver(PyObject* callback)
    : callback_(callback) {
        /* make sure the Python object stays alive
           as long as we need it */
        Py_XINCREF(callback_);
    }
    PyObserver(const PyObserver& o)
    : callback_(o.callback_) {
        /* make sure the Python object stays alive
           as long as we need it */
        Py_XINCREF(callback_);
    }
    PyObserver& operator=(const PyObserver& o) {
        if ((this != &o) && (callback_ != o.callback_)) {
            Py_XDECREF(callback_);
            callback_ = o.callback_;
            Py_XINCREF(callback_);
        }
        return *this;
    }
    ~PyObserver() {
        // now it can go as far as we are concerned
        Py_XDECREF(callback_);
    }
    void update() {
        PyObject* pyResult = PyObject_CallFunction(callback_,NULL);
        QL_ENSURE(pyResult != NULL, "failed to notify Python observer");
        Py_XDECREF(pyResult);
    }
  private:
    PyObject* callback_;
};


using QuantLib::Array;
using QuantLib::Matrix;
using QuantLib::SampledCurve;


bool extractArray(PyObject* source, Array* target) {
    if (PyTuple_Check(source) || PyList_Check(source)) {
        Size size = (PyTuple_Check(source) ?
                     PyTuple_Size(source) :
                     PyList_Size(source));
        *target = Array(size);
        for (Size i=0; i<size; i++) {
            PyObject* o = PySequence_GetItem(source,i);
            if (PyFloat_Check(o)) {
                (*target)[i] = PyFloat_AsDouble(o);
                Py_DECREF(o);
            } else if (PyInt_Check(o)) {
                (*target)[i] = Real(PyInt_AsLong(o));
                Py_DECREF(o);
            } else {
                Py_DECREF(o);
                return false;
            }
        }
        return true;
    } else {
        return false;
    }
}

SWIGINTERN std::string Array___str__(Array *self){
            std::ostringstream out;
            out << *self;
            return out.str();
        }
SWIGINTERN Array Array___add__(Array *self,Array const &a){
            return Array(*self+a);
        }
SWIGINTERN Array Array___sub__(Array *self,Array const &a){
            return Array(*self-a);
        }
SWIGINTERN Array Array___mul____SWIG_0(Array *self,Real a){
            return Array(*self*a);
        }
SWIGINTERN Real Array___mul____SWIG_1(Array *self,Array const &a){
            return QuantLib::DotProduct(*self,a);
        }
SWIGINTERN Array Array___mul____SWIG_2(Array *self,Matrix const &a){
            return *self*a;
        }
SWIGINTERN Array Array___div__(Array *self,Real a){
            return Array(*self/a);
        }
SWIGINTERN Array Array___rmul__(Array *self,Real a){
            return Array(*self*a);
        }
SWIGINTERN Array Array___getslice__(Array *self,Integer i,Integer j){
            Integer size_ = static_cast<Integer>(self->size());
            if (i<0)
                i = size_+i;
            if (j<0)
                j = size_+j;
            i = std::max(0,i);
            j = std::min(size_,j);
            Array tmp(j-i);
            std::copy(self->begin()+i,self->begin()+j,tmp.begin());
            return tmp;
        }
SWIGINTERN void Array___setslice__(Array *self,Integer i,Integer j,Array const &rhs){
            Integer size_ = static_cast<Integer>(self->size());
            if (i<0)
                i = size_+i;
            if (j<0)
                j = size_+j;
            i = std::max(0,i);
            j = std::min(size_,j);
            QL_ENSURE(static_cast<Integer>(rhs.size()) == j-i,
                      "arrays are not resizable");
            std::copy(rhs.begin(),rhs.end(),self->begin()+i);
        }
SWIGINTERN bool Array___nonzero__(Array *self){
            return (self->size() != 0);
        }
SWIGINTERN bool Array___bool__(Array *self){
            return (self->size() != 0);
        }
SWIGINTERN Real Array___getitem__(Array *self,Integer i){
            Integer size_ = static_cast<Integer>(self->size());
            if (i>=0 && i<size_) {
                return (*self)[i];
            } else if (i<0 && -i<=size_) {
                return (*self)[size_+i];
            } else {
                throw std::out_of_range("array index out of range");
            }
        }
SWIGINTERN void Array___setitem__(Array *self,Integer i,Real x){
            Integer size_ = static_cast<Integer>(self->size());
            if (i>=0 && i<size_) {
                (*self)[i] = x;
            } else if (i<0 && -i<=size_) {
                (*self)[size_+i] = x;
            } else {
                throw std::out_of_range("array index out of range");
            }
        }

typedef QuantLib::LexicographicalView<Array::iterator>
    DefaultLexicographicalView;
typedef QuantLib::LexicographicalView<Array::iterator>::y_iterator
    DefaultLexicographicalViewColumn;

SWIGINTERN Real DefaultLexicographicalViewColumn___getitem__(DefaultLexicographicalViewColumn *self,Size i){
            return (*self)[i];
        }
SWIGINTERN void DefaultLexicographicalViewColumn___setitem__(DefaultLexicographicalViewColumn *self,Size i,Real x){
            (*self)[i] = x;
        }
SWIGINTERN DefaultLexicographicalView *new_DefaultLexicographicalView(Array &a,Size xSize){
            return new DefaultLexicographicalView(a.begin(),a.end(),xSize);
        }
SWIGINTERN std::string DefaultLexicographicalView___str__(DefaultLexicographicalView *self){
            std::ostringstream s;
            for (Size j=0; j<self->ySize(); j++) {
                s << "\n";
                for (Size i=0; i<self->xSize(); i++) {
                    if (i != 0)
                        s << ",";
                    Array::value_type value = (*self)[i][j];
                    s << value;
                }
            }
            s << "\n";
            return s.str();
        }
SWIGINTERN DefaultLexicographicalViewColumn DefaultLexicographicalView___getitem__(DefaultLexicographicalView *self,Size i){
            return (*self)[i];
        }

typedef QuantLib::Matrix::row_iterator MatrixRow;
using QuantLib::outerProduct;
using QuantLib::transpose;
using QuantLib::SVD;

SWIGINTERN Real MatrixRow___getitem__(MatrixRow *self,Size i){
            return (*self)[i];
        }
SWIGINTERN void MatrixRow___setitem__(MatrixRow *self,Size i,Real x){
            (*self)[i] = x;
        }
SWIGINTERN std::string Matrix___str__(Matrix *self){
            std::ostringstream out;
            out << *self;
            return out.str();
        }
SWIGINTERN Matrix Matrix___add__(Matrix *self,Matrix const &m){
            return *self+m;
        }
SWIGINTERN Matrix Matrix___sub__(Matrix *self,Matrix const &m){
            return *self-m;
        }
SWIGINTERN Matrix Matrix___mul____SWIG_0(Matrix *self,Real x){
            return *self*x;
        }
SWIGINTERN Array Matrix___mul____SWIG_1(Matrix *self,Array const &x){
            return *self*x;
        }
SWIGINTERN Matrix Matrix___mul____SWIG_2(Matrix *self,Matrix const &x){
            return *self*x;
        }
SWIGINTERN Matrix Matrix___div__(Matrix *self,Real x){
            return *self/x;
        }
SWIGINTERN MatrixRow Matrix___getitem__(Matrix *self,Size i){
            return (*self)[i];
        }
SWIGINTERN Matrix Matrix___rmul____SWIG_0(Matrix *self,Real x){
            return x*(*self);
        }
SWIGINTERN Array Matrix___rmul____SWIG_1(Matrix *self,Array const &x){
            return x*(*self);
        }
SWIGINTERN Matrix Matrix___rmul____SWIG_2(Matrix *self,Matrix const &x){
            return x*(*self);
        }

using QuantLib::pseudoSqrt;
using QuantLib::SalvagingAlgorithm;


using QuantLib::CostFunction;
using QuantLib::Disposable;


class UnaryFunction {
  public:
    UnaryFunction(PyObject* function) : function_(function) {
        Py_XINCREF(function_);
    }
    UnaryFunction(const UnaryFunction& f) : function_(f.function_) {
        Py_XINCREF(function_);
    }
    UnaryFunction& operator=(const UnaryFunction& f) {
        if ((this != &f) && (function_ != f.function_)) {
            Py_XDECREF(function_);
            function_ = f.function_;
            Py_XINCREF(function_);
        }
        return *this;
    }
    ~UnaryFunction() {
        Py_XDECREF(function_);
    }
    Real operator()(Real x) const {
        PyObject* pyResult = PyObject_CallFunction(function_,"d",x);
        QL_ENSURE(pyResult != NULL, "failed to call Python function");
        Real result = PyFloat_AsDouble(pyResult);
        Py_XDECREF(pyResult);
        return result;
    }
    Real derivative(Real x) const {
        PyObject* pyResult =
            PyObject_CallMethod(function_,"derivative","d",x);
        QL_ENSURE(pyResult != NULL,
                  "failed to call derivative() on Python object");
        Real result = PyFloat_AsDouble(pyResult);
        Py_XDECREF(pyResult);
        return result;
    }
  private:
    PyObject* function_;
};

class BinaryFunction {
  public:
    BinaryFunction(PyObject* function) : function_(function) {
        Py_XINCREF(function_);
    }
    BinaryFunction(const BinaryFunction& f)
    : function_(f.function_) {
        Py_XINCREF(function_);
    }
    BinaryFunction& operator=(const BinaryFunction& f) {
        if ((this != &f) && (function_ != f.function_)) {
            Py_XDECREF(function_);
            function_ = f.function_;
            Py_XINCREF(function_);
        }
        return *this;
    }
    ~BinaryFunction() {
        Py_XDECREF(function_);
    }
    Real operator()(Real x, Real y) const {
        PyObject* pyResult = PyObject_CallFunction(function_,"dd",x,y);
        QL_ENSURE(pyResult != NULL, "failed to call Python function");
        Real result = PyFloat_AsDouble(pyResult);
        Py_XDECREF(pyResult);
        return result;
    }
  private:
    PyObject* function_;
};

class PyCostFunction : public CostFunction {
  public:
    PyCostFunction(PyObject* function) : function_(function) {
        Py_XINCREF(function_);
    }
    PyCostFunction(const PyCostFunction& f)
    : function_(f.function_) {
        Py_XINCREF(function_);
    }
    PyCostFunction& operator=(const PyCostFunction& f) {
        if ((this != &f) && (function_ != f.function_)) {
            Py_XDECREF(function_);
            function_ = f.function_;
            Py_XINCREF(function_);
        }
        return *this;
    }
    ~PyCostFunction() {
        Py_XDECREF(function_);
    }
    Real value(const Array& x) const {
        PyObject* tuple = PyTuple_New(x.size());
        for (Size i=0; i<x.size(); i++)
            PyTuple_SetItem(tuple,i,PyFloat_FromDouble(x[i]));
        PyObject* pyResult = PyObject_CallObject(function_,tuple);
        Py_XDECREF(tuple);
        QL_ENSURE(pyResult != NULL, "failed to call Python function");
        Real result = PyFloat_AsDouble(pyResult);
        Py_XDECREF(pyResult);
        return result;
    }
    Disposable<Array> values(const Array& x) const {
        QL_FAIL("Not implemented");
        // Should be straight forward to copy from a python list
        // to an array
    }
  private:
    PyObject* function_;
};


using QuantLib::Quote;

SWIGINTERN bool boost_shared_ptr_Sl_Quote_Sg____nonzero__(boost::shared_ptr< Quote > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_Quote_Sg____bool__(boost::shared_ptr< Quote > *self){
                return !!(*self);
            }
SWIGINTERN boost::shared_ptr< Observable > boost_shared_ptr_Sl_Quote_Sg__asObservable(boost::shared_ptr< Quote > *self){
        return boost::shared_ptr<Observable>(*self);
    }
SWIGINTERN bool Handle_Sl_Quote_Sg____nonzero__(Handle< Quote > *self){
            return !self->empty();
        }
SWIGINTERN bool Handle_Sl_Quote_Sg____bool__(Handle< Quote > *self){
            return !self->empty();
        }
SWIGINTERN boost::shared_ptr< Observable > Handle_Sl_Quote_Sg__asObservable(Handle< Quote > *self){
        return boost::shared_ptr<Observable>(*self);
    }

using QuantLib::SimpleQuote;
typedef boost::shared_ptr<Quote> SimpleQuotePtr;

SWIGINTERN SimpleQuotePtr *new_SimpleQuotePtr(Real value){
            return new SimpleQuotePtr(new SimpleQuote(value));
        }
SWIGINTERN void SimpleQuotePtr_setValue(SimpleQuotePtr *self,Real value){
            boost::dynamic_pointer_cast<SimpleQuote>(*self)->setValue(value);
        }

using QuantLib::DerivedQuote;
using QuantLib::CompositeQuote;
typedef boost::shared_ptr<Quote> DerivedQuotePtr;
typedef boost::shared_ptr<Quote> CompositeQuotePtr;

SWIGINTERN DerivedQuotePtr *new_DerivedQuotePtr(Handle< Quote > const &h,PyObject *function){
            return new DerivedQuotePtr(
                new DerivedQuote<UnaryFunction>(h,UnaryFunction(function)));
        }
SWIGINTERN CompositeQuotePtr *new_CompositeQuotePtr(Handle< Quote > const &h1,Handle< Quote > const &h2,PyObject *function){
            return new CompositeQuotePtr(
                new CompositeQuote<BinaryFunction>(
                    h1,h2,BinaryFunction(function)));
        }

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


      namespace swig {
	template <>  struct traits<std::vector< boost::shared_ptr< Quote >, std::allocator< boost::shared_ptr< Quote > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "boost::shared_ptr< Quote >" "," "std::allocator< boost::shared_ptr< Quote > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__iterator(std::vector< boost::shared_ptr< Quote > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____nonzero__(std::vector< boost::shared_ptr< Quote > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____bool__(std::vector< boost::shared_ptr< Quote > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< boost::shared_ptr< Quote > >::size_type std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____len__(std::vector< boost::shared_ptr< Quote > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____getslice__(std::vector< boost::shared_ptr< Quote > > *self,std::vector< boost::shared_ptr< Quote > >::difference_type i,std::vector< boost::shared_ptr< Quote > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____setslice____SWIG_0(std::vector< boost::shared_ptr< Quote > > *self,std::vector< boost::shared_ptr< Quote > >::difference_type i,std::vector< boost::shared_ptr< Quote > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >());
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____setslice____SWIG_1(std::vector< boost::shared_ptr< Quote > > *self,std::vector< boost::shared_ptr< Quote > >::difference_type i,std::vector< boost::shared_ptr< Quote > >::difference_type j,std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____delslice__(std::vector< boost::shared_ptr< Quote > > *self,std::vector< boost::shared_ptr< Quote > >::difference_type i,std::vector< boost::shared_ptr< Quote > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____delitem____SWIG_0(std::vector< boost::shared_ptr< Quote > > *self,std::vector< boost::shared_ptr< Quote > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____getitem____SWIG_0(std::vector< boost::shared_ptr< Quote > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >::difference_type id = i;
      std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____setitem____SWIG_0(std::vector< boost::shared_ptr< Quote > > *self,PySliceObject *slice,std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >::difference_type id = i;
      std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____setitem____SWIG_1(std::vector< boost::shared_ptr< Quote > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >::difference_type id = i;
      std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____delitem____SWIG_1(std::vector< boost::shared_ptr< Quote > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >::difference_type id = i;
      std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< boost::shared_ptr< Quote > >::value_type const &std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____getitem____SWIG_1(std::vector< boost::shared_ptr< Quote > > const *self,std::vector< boost::shared_ptr< Quote > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____setitem____SWIG_2(std::vector< boost::shared_ptr< Quote > > *self,std::vector< boost::shared_ptr< Quote > >::difference_type i,std::vector< boost::shared_ptr< Quote > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< boost::shared_ptr< Quote > >::value_type std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__pop(std::vector< boost::shared_ptr< Quote > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__append(std::vector< boost::shared_ptr< Quote > > *self,std::vector< boost::shared_ptr< Quote > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< boost::shared_ptr< Quote > >::iterator std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__erase__SWIG_0(std::vector< boost::shared_ptr< Quote > > *self,std::vector< boost::shared_ptr< Quote > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< boost::shared_ptr< Quote > >::iterator std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__erase__SWIG_1(std::vector< boost::shared_ptr< Quote > > *self,std::vector< boost::shared_ptr< Quote > >::iterator first,std::vector< boost::shared_ptr< Quote > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< boost::shared_ptr< Quote > >::iterator std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__insert__SWIG_0(std::vector< boost::shared_ptr< Quote > > *self,std::vector< boost::shared_ptr< Quote > >::iterator pos,std::vector< boost::shared_ptr< Quote > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__insert__SWIG_1(std::vector< boost::shared_ptr< Quote > > *self,std::vector< boost::shared_ptr< Quote > >::iterator pos,std::vector< boost::shared_ptr< Quote > >::size_type n,std::vector< boost::shared_ptr< Quote > >::value_type const &x){ self->insert(pos, n, x); }

      namespace swig {
	template <>  struct traits<std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >, std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >" "," "std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg__iterator(std::vector< std::vector< boost::shared_ptr< Quote > > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____nonzero__(std::vector< std::vector< boost::shared_ptr< Quote > > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____bool__(std::vector< std::vector< boost::shared_ptr< Quote > > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____len__(std::vector< std::vector< boost::shared_ptr< Quote > > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > *std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____getslice__(std::vector< std::vector< boost::shared_ptr< Quote > > > *self,std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type i,std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____setslice____SWIG_0(std::vector< std::vector< boost::shared_ptr< Quote > > > *self,std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type i,std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >());
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____setslice____SWIG_1(std::vector< std::vector< boost::shared_ptr< Quote > > > *self,std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type i,std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type j,std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____delslice__(std::vector< std::vector< boost::shared_ptr< Quote > > > *self,std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type i,std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____delitem____SWIG_0(std::vector< std::vector< boost::shared_ptr< Quote > > > *self,std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > *std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____getitem____SWIG_0(std::vector< std::vector< boost::shared_ptr< Quote > > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >::difference_type id = i;
      std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____setitem____SWIG_0(std::vector< std::vector< boost::shared_ptr< Quote > > > *self,PySliceObject *slice,std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >::difference_type id = i;
      std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____setitem____SWIG_1(std::vector< std::vector< boost::shared_ptr< Quote > > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >::difference_type id = i;
      std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____delitem____SWIG_1(std::vector< std::vector< boost::shared_ptr< Quote > > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >::difference_type id = i;
      std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____getitem____SWIG_1(std::vector< std::vector< boost::shared_ptr< Quote > > > const *self,std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____setitem____SWIG_2(std::vector< std::vector< boost::shared_ptr< Quote > > > *self,std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type i,std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg__pop(std::vector< std::vector< boost::shared_ptr< Quote > > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg__append(std::vector< std::vector< boost::shared_ptr< Quote > > > *self,std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg__erase__SWIG_0(std::vector< std::vector< boost::shared_ptr< Quote > > > *self,std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg__erase__SWIG_1(std::vector< std::vector< boost::shared_ptr< Quote > > > *self,std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator first,std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg__insert__SWIG_0(std::vector< std::vector< boost::shared_ptr< Quote > > > *self,std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator pos,std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg__insert__SWIG_1(std::vector< std::vector< boost::shared_ptr< Quote > > > *self,std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator pos,std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type n,std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &x){ self->insert(pos, n, x); }

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


      namespace swig {
	template <>  struct traits<std::vector< Handle< Quote >, std::allocator< Handle< Quote > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "Handle< Quote >" "," "std::allocator< Handle< Quote > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_Handle_Sl_Quote_Sg__Sg__iterator(std::vector< Handle< Quote > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_Handle_Sl_Quote_Sg__Sg____nonzero__(std::vector< Handle< Quote > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_Handle_Sl_Quote_Sg__Sg____bool__(std::vector< Handle< Quote > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< Handle< Quote > >::size_type std_vector_Sl_Handle_Sl_Quote_Sg__Sg____len__(std::vector< Handle< Quote > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *std_vector_Sl_Handle_Sl_Quote_Sg__Sg____getslice__(std::vector< Handle< Quote > > *self,std::vector< Handle< Quote > >::difference_type i,std::vector< Handle< Quote > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_Handle_Sl_Quote_Sg__Sg____setslice____SWIG_0(std::vector< Handle< Quote > > *self,std::vector< Handle< Quote > >::difference_type i,std::vector< Handle< Quote > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >());
    }
SWIGINTERN void std_vector_Sl_Handle_Sl_Quote_Sg__Sg____setslice____SWIG_1(std::vector< Handle< Quote > > *self,std::vector< Handle< Quote > >::difference_type i,std::vector< Handle< Quote > >::difference_type j,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_Handle_Sl_Quote_Sg__Sg____delslice__(std::vector< Handle< Quote > > *self,std::vector< Handle< Quote > >::difference_type i,std::vector< Handle< Quote > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_Handle_Sl_Quote_Sg__Sg____delitem____SWIG_0(std::vector< Handle< Quote > > *self,std::vector< Handle< Quote > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *std_vector_Sl_Handle_Sl_Quote_Sg__Sg____getitem____SWIG_0(std::vector< Handle< Quote > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >::difference_type id = i;
      std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_Handle_Sl_Quote_Sg__Sg____setitem____SWIG_0(std::vector< Handle< Quote > > *self,PySliceObject *slice,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >::difference_type id = i;
      std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_Handle_Sl_Quote_Sg__Sg____setitem____SWIG_1(std::vector< Handle< Quote > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >::difference_type id = i;
      std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_Handle_Sl_Quote_Sg__Sg____delitem____SWIG_1(std::vector< Handle< Quote > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >::difference_type id = i;
      std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< Handle< Quote > >::value_type const &std_vector_Sl_Handle_Sl_Quote_Sg__Sg____getitem____SWIG_1(std::vector< Handle< Quote > > const *self,std::vector< Handle< Quote > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_Handle_Sl_Quote_Sg__Sg____setitem____SWIG_2(std::vector< Handle< Quote > > *self,std::vector< Handle< Quote > >::difference_type i,std::vector< Handle< Quote > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< Handle< Quote > >::value_type std_vector_Sl_Handle_Sl_Quote_Sg__Sg__pop(std::vector< Handle< Quote > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_Handle_Sl_Quote_Sg__Sg__append(std::vector< Handle< Quote > > *self,std::vector< Handle< Quote > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< Handle< Quote > >::iterator std_vector_Sl_Handle_Sl_Quote_Sg__Sg__erase__SWIG_0(std::vector< Handle< Quote > > *self,std::vector< Handle< Quote > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< Handle< Quote > >::iterator std_vector_Sl_Handle_Sl_Quote_Sg__Sg__erase__SWIG_1(std::vector< Handle< Quote > > *self,std::vector< Handle< Quote > >::iterator first,std::vector< Handle< Quote > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< Handle< Quote > >::iterator std_vector_Sl_Handle_Sl_Quote_Sg__Sg__insert__SWIG_0(std::vector< Handle< Quote > > *self,std::vector< Handle< Quote > >::iterator pos,std::vector< Handle< Quote > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_Handle_Sl_Quote_Sg__Sg__insert__SWIG_1(std::vector< Handle< Quote > > *self,std::vector< Handle< Quote > >::iterator pos,std::vector< Handle< Quote > >::size_type n,std::vector< Handle< Quote > >::value_type const &x){ self->insert(pos, n, x); }

      namespace swig {
	template <>  struct traits<std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >, std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >" "," "std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg__iterator(std::vector< std::vector< Handle< Quote > > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____nonzero__(std::vector< std::vector< Handle< Quote > > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____bool__(std::vector< std::vector< Handle< Quote > > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< std::vector< Handle< Quote > > >::size_type std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____len__(std::vector< std::vector< Handle< Quote > > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____getslice__(std::vector< std::vector< Handle< Quote > > > *self,std::vector< std::vector< Handle< Quote > > >::difference_type i,std::vector< std::vector< Handle< Quote > > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____setslice____SWIG_0(std::vector< std::vector< Handle< Quote > > > *self,std::vector< std::vector< Handle< Quote > > >::difference_type i,std::vector< std::vector< Handle< Quote > > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >());
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____setslice____SWIG_1(std::vector< std::vector< Handle< Quote > > > *self,std::vector< std::vector< Handle< Quote > > >::difference_type i,std::vector< std::vector< Handle< Quote > > >::difference_type j,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____delslice__(std::vector< std::vector< Handle< Quote > > > *self,std::vector< std::vector< Handle< Quote > > >::difference_type i,std::vector< std::vector< Handle< Quote > > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____delitem____SWIG_0(std::vector< std::vector< Handle< Quote > > > *self,std::vector< std::vector< Handle< Quote > > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____getitem____SWIG_0(std::vector< std::vector< Handle< Quote > > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >::difference_type id = i;
      std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____setitem____SWIG_0(std::vector< std::vector< Handle< Quote > > > *self,PySliceObject *slice,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >::difference_type id = i;
      std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____setitem____SWIG_1(std::vector< std::vector< Handle< Quote > > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >::difference_type id = i;
      std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____delitem____SWIG_1(std::vector< std::vector< Handle< Quote > > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >::difference_type id = i;
      std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< std::vector< Handle< Quote > > >::value_type const &std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____getitem____SWIG_1(std::vector< std::vector< Handle< Quote > > > const *self,std::vector< std::vector< Handle< Quote > > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____setitem____SWIG_2(std::vector< std::vector< Handle< Quote > > > *self,std::vector< std::vector< Handle< Quote > > >::difference_type i,std::vector< std::vector< Handle< Quote > > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< std::vector< Handle< Quote > > >::value_type std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg__pop(std::vector< std::vector< Handle< Quote > > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg__append(std::vector< std::vector< Handle< Quote > > > *self,std::vector< std::vector< Handle< Quote > > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< std::vector< Handle< Quote > > >::iterator std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg__erase__SWIG_0(std::vector< std::vector< Handle< Quote > > > *self,std::vector< std::vector< Handle< Quote > > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< std::vector< Handle< Quote > > >::iterator std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg__erase__SWIG_1(std::vector< std::vector< Handle< Quote > > > *self,std::vector< std::vector< Handle< Quote > > >::iterator first,std::vector< std::vector< Handle< Quote > > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< std::vector< Handle< Quote > > >::iterator std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg__insert__SWIG_0(std::vector< std::vector< Handle< Quote > > > *self,std::vector< std::vector< Handle< Quote > > >::iterator pos,std::vector< std::vector< Handle< Quote > > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg__insert__SWIG_1(std::vector< std::vector< Handle< Quote > > > *self,std::vector< std::vector< Handle< Quote > > >::iterator pos,std::vector< std::vector< Handle< Quote > > >::size_type n,std::vector< std::vector< Handle< Quote > > >::value_type const &x){ self->insert(pos, n, x); }

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


      namespace swig {
	template <>  struct traits<std::vector< RelinkableHandle< Quote >, std::allocator< RelinkableHandle< Quote > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "RelinkableHandle< Quote >" "," "std::allocator< RelinkableHandle< Quote > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__iterator(std::vector< RelinkableHandle< Quote > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____nonzero__(std::vector< RelinkableHandle< Quote > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____bool__(std::vector< RelinkableHandle< Quote > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< RelinkableHandle< Quote > >::size_type std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____len__(std::vector< RelinkableHandle< Quote > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____getslice__(std::vector< RelinkableHandle< Quote > > *self,std::vector< RelinkableHandle< Quote > >::difference_type i,std::vector< RelinkableHandle< Quote > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____setslice____SWIG_0(std::vector< RelinkableHandle< Quote > > *self,std::vector< RelinkableHandle< Quote > >::difference_type i,std::vector< RelinkableHandle< Quote > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >());
    }
SWIGINTERN void std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____setslice____SWIG_1(std::vector< RelinkableHandle< Quote > > *self,std::vector< RelinkableHandle< Quote > >::difference_type i,std::vector< RelinkableHandle< Quote > >::difference_type j,std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____delslice__(std::vector< RelinkableHandle< Quote > > *self,std::vector< RelinkableHandle< Quote > >::difference_type i,std::vector< RelinkableHandle< Quote > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____delitem____SWIG_0(std::vector< RelinkableHandle< Quote > > *self,std::vector< RelinkableHandle< Quote > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____getitem____SWIG_0(std::vector< RelinkableHandle< Quote > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >::difference_type id = i;
      std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____setitem____SWIG_0(std::vector< RelinkableHandle< Quote > > *self,PySliceObject *slice,std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >::difference_type id = i;
      std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____setitem____SWIG_1(std::vector< RelinkableHandle< Quote > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >::difference_type id = i;
      std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____delitem____SWIG_1(std::vector< RelinkableHandle< Quote > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >::difference_type id = i;
      std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< RelinkableHandle< Quote > >::value_type const &std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____getitem____SWIG_1(std::vector< RelinkableHandle< Quote > > const *self,std::vector< RelinkableHandle< Quote > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____setitem____SWIG_2(std::vector< RelinkableHandle< Quote > > *self,std::vector< RelinkableHandle< Quote > >::difference_type i,std::vector< RelinkableHandle< Quote > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< RelinkableHandle< Quote > >::value_type std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__pop(std::vector< RelinkableHandle< Quote > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__append(std::vector< RelinkableHandle< Quote > > *self,std::vector< RelinkableHandle< Quote > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< RelinkableHandle< Quote > >::iterator std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__erase__SWIG_0(std::vector< RelinkableHandle< Quote > > *self,std::vector< RelinkableHandle< Quote > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< RelinkableHandle< Quote > >::iterator std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__erase__SWIG_1(std::vector< RelinkableHandle< Quote > > *self,std::vector< RelinkableHandle< Quote > >::iterator first,std::vector< RelinkableHandle< Quote > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< RelinkableHandle< Quote > >::iterator std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__insert__SWIG_0(std::vector< RelinkableHandle< Quote > > *self,std::vector< RelinkableHandle< Quote > >::iterator pos,std::vector< RelinkableHandle< Quote > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__insert__SWIG_1(std::vector< RelinkableHandle< Quote > > *self,std::vector< RelinkableHandle< Quote > >::iterator pos,std::vector< RelinkableHandle< Quote > >::size_type n,std::vector< RelinkableHandle< Quote > >::value_type const &x){ self->insert(pos, n, x); }

      namespace swig {
	template <>  struct traits<std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >, std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >" "," "std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg__iterator(std::vector< std::vector< RelinkableHandle< Quote > > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____nonzero__(std::vector< std::vector< RelinkableHandle< Quote > > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____bool__(std::vector< std::vector< RelinkableHandle< Quote > > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< std::vector< RelinkableHandle< Quote > > >::size_type std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____len__(std::vector< std::vector< RelinkableHandle< Quote > > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > *std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____getslice__(std::vector< std::vector< RelinkableHandle< Quote > > > *self,std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type i,std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____setslice____SWIG_0(std::vector< std::vector< RelinkableHandle< Quote > > > *self,std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type i,std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >());
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____setslice____SWIG_1(std::vector< std::vector< RelinkableHandle< Quote > > > *self,std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type i,std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type j,std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____delslice__(std::vector< std::vector< RelinkableHandle< Quote > > > *self,std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type i,std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____delitem____SWIG_0(std::vector< std::vector< RelinkableHandle< Quote > > > *self,std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > *std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____getitem____SWIG_0(std::vector< std::vector< RelinkableHandle< Quote > > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >::difference_type id = i;
      std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____setitem____SWIG_0(std::vector< std::vector< RelinkableHandle< Quote > > > *self,PySliceObject *slice,std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >::difference_type id = i;
      std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____setitem____SWIG_1(std::vector< std::vector< RelinkableHandle< Quote > > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >::difference_type id = i;
      std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____delitem____SWIG_1(std::vector< std::vector< RelinkableHandle< Quote > > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >::difference_type id = i;
      std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____getitem____SWIG_1(std::vector< std::vector< RelinkableHandle< Quote > > > const *self,std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____setitem____SWIG_2(std::vector< std::vector< RelinkableHandle< Quote > > > *self,std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type i,std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< std::vector< RelinkableHandle< Quote > > >::value_type std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg__pop(std::vector< std::vector< RelinkableHandle< Quote > > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg__append(std::vector< std::vector< RelinkableHandle< Quote > > > *self,std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< std::vector< RelinkableHandle< Quote > > >::iterator std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg__erase__SWIG_0(std::vector< std::vector< RelinkableHandle< Quote > > > *self,std::vector< std::vector< RelinkableHandle< Quote > > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< std::vector< RelinkableHandle< Quote > > >::iterator std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg__erase__SWIG_1(std::vector< std::vector< RelinkableHandle< Quote > > > *self,std::vector< std::vector< RelinkableHandle< Quote > > >::iterator first,std::vector< std::vector< RelinkableHandle< Quote > > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< std::vector< RelinkableHandle< Quote > > >::iterator std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg__insert__SWIG_0(std::vector< std::vector< RelinkableHandle< Quote > > > *self,std::vector< std::vector< RelinkableHandle< Quote > > >::iterator pos,std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg__insert__SWIG_1(std::vector< std::vector< RelinkableHandle< Quote > > > *self,std::vector< std::vector< RelinkableHandle< Quote > > >::iterator pos,std::vector< std::vector< RelinkableHandle< Quote > > >::size_type n,std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &x){ self->insert(pos, n, x); }

using QuantLib::Calendar;


using QuantLib::BusinessDayConvention;
using QuantLib::Following;
using QuantLib::ModifiedFollowing;
using QuantLib::Preceding;
using QuantLib::ModifiedPreceding;
using QuantLib::Unadjusted;
using QuantLib::HalfMonthModifiedFollowing;


using QuantLib::JointCalendarRule;
using QuantLib::JoinHolidays;
using QuantLib::JoinBusinessDays;

SWIGINTERN std::string Calendar___str__(Calendar *self){
            return self->name()+" calendar";
        }
SWIGINTERN bool Calendar___eq__(Calendar *self,Calendar const &other){
            return (*self) == other;
        }
SWIGINTERN bool Calendar___ne__(Calendar *self,Calendar const &other){
            return (*self) != other;
        }

using QuantLib::Null;
typedef int intOrNull;
typedef double doubleOrNull;


int nullInt() { return Null<int>(); }
double nullDouble() { return Null<double>(); }


using QuantLib::DayCounter;

SWIGINTERN std::string DayCounter___str__(DayCounter *self){
            return self->name()+" day counter";
        }
SWIGINTERN bool DayCounter___eq__(DayCounter *self,DayCounter const &other){
            return (*self) == other;
        }
SWIGINTERN bool DayCounter___ne__(DayCounter *self,DayCounter const &other){
            return (*self) != other;
        }

    /* avoid deprecation warnings */
    DayCounter Actual365NoLeap() {
        return QuantLib::Actual365Fixed(QuantLib::Actual365Fixed::NoLeap);
    }


using QuantLib::Compounding;
using QuantLib::Simple;
using QuantLib::Compounded;
using QuantLib::Continuous;
using QuantLib::SimpleThenCompounded;
using QuantLib::CompoundedThenSimple;


using QuantLib::InterestRate;

SWIGINTERN std::string InterestRate___str__(InterestRate *self){
            std::ostringstream out;
            out << *self;
            return out.str();
        }

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


      namespace swig {
	template <>  struct traits<std::vector< InterestRate, std::allocator< InterestRate > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "InterestRate" "," "std::allocator< InterestRate >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_InterestRate_Sg__iterator(std::vector< InterestRate > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_InterestRate_Sg____nonzero__(std::vector< InterestRate > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_InterestRate_Sg____bool__(std::vector< InterestRate > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< InterestRate >::size_type std_vector_Sl_InterestRate_Sg____len__(std::vector< InterestRate > const *self){
      return self->size();
    }
SWIGINTERN std::vector< InterestRate,std::allocator< InterestRate > > *std_vector_Sl_InterestRate_Sg____getslice__(std::vector< InterestRate > *self,std::vector< InterestRate >::difference_type i,std::vector< InterestRate >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_InterestRate_Sg____setslice____SWIG_0(std::vector< InterestRate > *self,std::vector< InterestRate >::difference_type i,std::vector< InterestRate >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< InterestRate,std::allocator< InterestRate > >());
    }
SWIGINTERN void std_vector_Sl_InterestRate_Sg____setslice____SWIG_1(std::vector< InterestRate > *self,std::vector< InterestRate >::difference_type i,std::vector< InterestRate >::difference_type j,std::vector< InterestRate,std::allocator< InterestRate > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_InterestRate_Sg____delslice__(std::vector< InterestRate > *self,std::vector< InterestRate >::difference_type i,std::vector< InterestRate >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_InterestRate_Sg____delitem____SWIG_0(std::vector< InterestRate > *self,std::vector< InterestRate >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< InterestRate,std::allocator< InterestRate > > *std_vector_Sl_InterestRate_Sg____getitem____SWIG_0(std::vector< InterestRate > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< InterestRate,std::allocator< InterestRate > >::difference_type id = i;
      std::vector< InterestRate,std::allocator< InterestRate > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_InterestRate_Sg____setitem____SWIG_0(std::vector< InterestRate > *self,PySliceObject *slice,std::vector< InterestRate,std::allocator< InterestRate > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< InterestRate,std::allocator< InterestRate > >::difference_type id = i;
      std::vector< InterestRate,std::allocator< InterestRate > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_InterestRate_Sg____setitem____SWIG_1(std::vector< InterestRate > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< InterestRate,std::allocator< InterestRate > >::difference_type id = i;
      std::vector< InterestRate,std::allocator< InterestRate > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_InterestRate_Sg____delitem____SWIG_1(std::vector< InterestRate > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< InterestRate,std::allocator< InterestRate > >::difference_type id = i;
      std::vector< InterestRate,std::allocator< InterestRate > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< InterestRate >::value_type const &std_vector_Sl_InterestRate_Sg____getitem____SWIG_1(std::vector< InterestRate > const *self,std::vector< InterestRate >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_InterestRate_Sg____setitem____SWIG_2(std::vector< InterestRate > *self,std::vector< InterestRate >::difference_type i,std::vector< InterestRate >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< InterestRate >::value_type std_vector_Sl_InterestRate_Sg__pop(std::vector< InterestRate > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< InterestRate,std::allocator< InterestRate > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_InterestRate_Sg__append(std::vector< InterestRate > *self,std::vector< InterestRate >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< InterestRate >::iterator std_vector_Sl_InterestRate_Sg__erase__SWIG_0(std::vector< InterestRate > *self,std::vector< InterestRate >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< InterestRate >::iterator std_vector_Sl_InterestRate_Sg__erase__SWIG_1(std::vector< InterestRate > *self,std::vector< InterestRate >::iterator first,std::vector< InterestRate >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< InterestRate >::iterator std_vector_Sl_InterestRate_Sg__insert__SWIG_0(std::vector< InterestRate > *self,std::vector< InterestRate >::iterator pos,std::vector< InterestRate >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_InterestRate_Sg__insert__SWIG_1(std::vector< InterestRate > *self,std::vector< InterestRate >::iterator pos,std::vector< InterestRate >::size_type n,std::vector< InterestRate >::value_type const &x){ self->insert(pos, n, x); }

using QuantLib::Rounding;
using QuantLib::UpRounding;
using QuantLib::DownRounding;
using QuantLib::ClosestRounding;
using QuantLib::CeilingTruncation;
using QuantLib::FloorTruncation;


using QuantLib::Currency;
using QuantLib::Money;

SWIGINTERN std::string Currency___str__(Currency *self){
            return self->name();
        }
SWIGINTERN bool Currency___eq__(Currency *self,Currency const &other){
            return (*self) == other;
        }
SWIGINTERN bool Currency___ne__(Currency *self,Currency const &other){
            return (*self) != other;
        }
SWIGINTERN Money Currency_operator_Sm_(Currency *self,Decimal x){
            return *self*x;
        }
SWIGINTERN Money Currency___rmul__(Currency *self,Decimal x){
            return *self*x;
        }
SWIGINTERN bool Currency___nonzero__(Currency *self){
            return !self->empty();
        }
SWIGINTERN bool Currency___bool__(Currency *self){
            return !self->empty();
        }

using QuantLib::Extrapolator;


// safe versions which copy their arguments
template <class I>
class SafeInterpolation {
  public:
    SafeInterpolation(const Array& x, const Array& y)
    : x_(x), y_(y), f_(x_.begin(),x_.end(),y_.begin()) {}
    Real operator()(Real x, bool allowExtrapolation=false) {
        return f_(x, allowExtrapolation);
    }
    Array x_, y_;
    I f_;
};


typedef SafeInterpolation<QuantLib::LinearInterpolation> SafeLinearInterpolation;


typedef SafeInterpolation<QuantLib::LogLinearInterpolation> SafeLogLinearInterpolation;


typedef SafeInterpolation<QuantLib::BackwardFlatInterpolation> SafeBackwardFlatInterpolation;


typedef SafeInterpolation<QuantLib::ForwardFlatInterpolation> SafeForwardFlatInterpolation;


typedef SafeInterpolation<QuantLib::CubicNaturalSpline> SafeCubicNaturalSpline;

SWIGINTERN Real SafeCubicNaturalSpline_derivative__SWIG_0(SafeCubicNaturalSpline *self,Real x,bool extrapolate=false){
        return self->f_.derivative(x,extrapolate);
    }
SWIGINTERN Real SafeCubicNaturalSpline_secondDerivative__SWIG_0(SafeCubicNaturalSpline *self,Real x,bool extrapolate=false){
        return self->f_.secondDerivative(x,extrapolate);
    }
SWIGINTERN Real SafeCubicNaturalSpline_primitive__SWIG_0(SafeCubicNaturalSpline *self,Real x,bool extrapolate=false){
        return self->f_.primitive(x,extrapolate);
    }

typedef SafeInterpolation<QuantLib::LogCubicNaturalSpline> SafeLogCubicNaturalSpline;

SWIGINTERN Real SafeLogCubicNaturalSpline_derivative__SWIG_0(SafeLogCubicNaturalSpline *self,Real x,bool extrapolate=false){
        return self->f_.derivative(x,extrapolate);
    }
SWIGINTERN Real SafeLogCubicNaturalSpline_secondDerivative__SWIG_0(SafeLogCubicNaturalSpline *self,Real x,bool extrapolate=false){
        return self->f_.secondDerivative(x,extrapolate);
    }
SWIGINTERN Real SafeLogCubicNaturalSpline_primitive__SWIG_0(SafeLogCubicNaturalSpline *self,Real x,bool extrapolate=false){
        return self->f_.primitive(x,extrapolate);
    }

typedef SafeInterpolation<QuantLib::MonotonicCubicNaturalSpline> SafeMonotonicCubicNaturalSpline;

SWIGINTERN Real SafeMonotonicCubicNaturalSpline_derivative__SWIG_0(SafeMonotonicCubicNaturalSpline *self,Real x,bool extrapolate=false){
        return self->f_.derivative(x,extrapolate);
    }
SWIGINTERN Real SafeMonotonicCubicNaturalSpline_secondDerivative__SWIG_0(SafeMonotonicCubicNaturalSpline *self,Real x,bool extrapolate=false){
        return self->f_.secondDerivative(x,extrapolate);
    }
SWIGINTERN Real SafeMonotonicCubicNaturalSpline_primitive__SWIG_0(SafeMonotonicCubicNaturalSpline *self,Real x,bool extrapolate=false){
        return self->f_.primitive(x,extrapolate);
    }

typedef SafeInterpolation<QuantLib::MonotonicLogCubicNaturalSpline> SafeMonotonicLogCubicNaturalSpline;

SWIGINTERN Real SafeMonotonicLogCubicNaturalSpline_derivative__SWIG_0(SafeMonotonicLogCubicNaturalSpline *self,Real x,bool extrapolate=false){
        return self->f_.derivative(x,extrapolate);
    }
SWIGINTERN Real SafeMonotonicLogCubicNaturalSpline_secondDerivative__SWIG_0(SafeMonotonicLogCubicNaturalSpline *self,Real x,bool extrapolate=false){
        return self->f_.secondDerivative(x,extrapolate);
    }
SWIGINTERN Real SafeMonotonicLogCubicNaturalSpline_primitive__SWIG_0(SafeMonotonicLogCubicNaturalSpline *self,Real x,bool extrapolate=false){
        return self->f_.primitive(x,extrapolate);
    }

typedef SafeInterpolation<QuantLib::KrugerCubic> SafeKrugerCubic;

SWIGINTERN Real SafeKrugerCubic_derivative__SWIG_0(SafeKrugerCubic *self,Real x,bool extrapolate=false){
        return self->f_.derivative(x,extrapolate);
    }
SWIGINTERN Real SafeKrugerCubic_secondDerivative__SWIG_0(SafeKrugerCubic *self,Real x,bool extrapolate=false){
        return self->f_.secondDerivative(x,extrapolate);
    }
SWIGINTERN Real SafeKrugerCubic_primitive__SWIG_0(SafeKrugerCubic *self,Real x,bool extrapolate=false){
        return self->f_.primitive(x,extrapolate);
    }

typedef SafeInterpolation<QuantLib::KrugerLogCubic> SafeKrugerLogCubic;

SWIGINTERN Real SafeKrugerLogCubic_derivative__SWIG_0(SafeKrugerLogCubic *self,Real x,bool extrapolate=false){
        return self->f_.derivative(x,extrapolate);
    }
SWIGINTERN Real SafeKrugerLogCubic_secondDerivative__SWIG_0(SafeKrugerLogCubic *self,Real x,bool extrapolate=false){
        return self->f_.secondDerivative(x,extrapolate);
    }
SWIGINTERN Real SafeKrugerLogCubic_primitive__SWIG_0(SafeKrugerLogCubic *self,Real x,bool extrapolate=false){
        return self->f_.primitive(x,extrapolate);
    }

typedef SafeInterpolation<QuantLib::FritschButlandCubic> SafeFritschButlandCubic;

SWIGINTERN Real SafeFritschButlandCubic_derivative__SWIG_0(SafeFritschButlandCubic *self,Real x,bool extrapolate=false){
        return self->f_.derivative(x,extrapolate);
    }
SWIGINTERN Real SafeFritschButlandCubic_secondDerivative__SWIG_0(SafeFritschButlandCubic *self,Real x,bool extrapolate=false){
        return self->f_.secondDerivative(x,extrapolate);
    }
SWIGINTERN Real SafeFritschButlandCubic_primitive__SWIG_0(SafeFritschButlandCubic *self,Real x,bool extrapolate=false){
        return self->f_.primitive(x,extrapolate);
    }

typedef SafeInterpolation<QuantLib::FritschButlandLogCubic> SafeFritschButlandLogCubic;

SWIGINTERN Real SafeFritschButlandLogCubic_derivative__SWIG_0(SafeFritschButlandLogCubic *self,Real x,bool extrapolate=false){
        return self->f_.derivative(x,extrapolate);
    }
SWIGINTERN Real SafeFritschButlandLogCubic_secondDerivative__SWIG_0(SafeFritschButlandLogCubic *self,Real x,bool extrapolate=false){
        return self->f_.secondDerivative(x,extrapolate);
    }
SWIGINTERN Real SafeFritschButlandLogCubic_primitive__SWIG_0(SafeFritschButlandLogCubic *self,Real x,bool extrapolate=false){
        return self->f_.primitive(x,extrapolate);
    }

typedef SafeInterpolation<QuantLib::Parabolic> SafeParabolic;

SWIGINTERN Real SafeParabolic_derivative__SWIG_0(SafeParabolic *self,Real x,bool extrapolate=false){
        return self->f_.derivative(x,extrapolate);
    }
SWIGINTERN Real SafeParabolic_secondDerivative__SWIG_0(SafeParabolic *self,Real x,bool extrapolate=false){
        return self->f_.secondDerivative(x,extrapolate);
    }
SWIGINTERN Real SafeParabolic_primitive__SWIG_0(SafeParabolic *self,Real x,bool extrapolate=false){
        return self->f_.primitive(x,extrapolate);
    }

typedef SafeInterpolation<QuantLib::LogParabolic> SafeLogParabolic;

SWIGINTERN Real SafeLogParabolic_derivative__SWIG_0(SafeLogParabolic *self,Real x,bool extrapolate=false){
        return self->f_.derivative(x,extrapolate);
    }
SWIGINTERN Real SafeLogParabolic_secondDerivative__SWIG_0(SafeLogParabolic *self,Real x,bool extrapolate=false){
        return self->f_.secondDerivative(x,extrapolate);
    }
SWIGINTERN Real SafeLogParabolic_primitive__SWIG_0(SafeLogParabolic *self,Real x,bool extrapolate=false){
        return self->f_.primitive(x,extrapolate);
    }

typedef SafeInterpolation<QuantLib::MonotonicParabolic> SafeMonotonicParabolic;

SWIGINTERN Real SafeMonotonicParabolic_derivative__SWIG_0(SafeMonotonicParabolic *self,Real x,bool extrapolate=false){
        return self->f_.derivative(x,extrapolate);
    }
SWIGINTERN Real SafeMonotonicParabolic_secondDerivative__SWIG_0(SafeMonotonicParabolic *self,Real x,bool extrapolate=false){
        return self->f_.secondDerivative(x,extrapolate);
    }
SWIGINTERN Real SafeMonotonicParabolic_primitive__SWIG_0(SafeMonotonicParabolic *self,Real x,bool extrapolate=false){
        return self->f_.primitive(x,extrapolate);
    }

typedef SafeInterpolation<QuantLib::MonotonicLogParabolic> SafeMonotonicLogParabolic;

SWIGINTERN Real SafeMonotonicLogParabolic_derivative__SWIG_0(SafeMonotonicLogParabolic *self,Real x,bool extrapolate=false){
        return self->f_.derivative(x,extrapolate);
    }
SWIGINTERN Real SafeMonotonicLogParabolic_secondDerivative__SWIG_0(SafeMonotonicLogParabolic *self,Real x,bool extrapolate=false){
        return self->f_.secondDerivative(x,extrapolate);
    }
SWIGINTERN Real SafeMonotonicLogParabolic_primitive__SWIG_0(SafeMonotonicLogParabolic *self,Real x,bool extrapolate=false){
        return self->f_.primitive(x,extrapolate);
    }

// safe versions which copy their arguments
template <class I>
class SafeInterpolation2D {
  public:
    SafeInterpolation2D(const Array& x, const Array& y, const Matrix& m)
    : x_(x), y_(y), m_(m), f_(x_.begin(),x_.end(),y_.begin(),y_.end(),m_) {}
    Real operator()(Real x, Real y, bool allowExtrapolation=false) {
        return f_(x,y, allowExtrapolation);
    }
  protected:
    Array x_, y_;
    Matrix m_;
    I f_;
};


typedef SafeInterpolation2D<QuantLib::BilinearInterpolation> SafeBilinearInterpolation;


typedef SafeInterpolation2D<QuantLib::BicubicSpline> SafeBicubicSpline;


using QuantLib::BackwardFlat;
using QuantLib::ForwardFlat;
using QuantLib::Linear;
using QuantLib::LogLinear;
using QuantLib::Cubic;

class MonotonicCubic : public Cubic {
  public:
    MonotonicCubic()
    : Cubic(QuantLib::CubicInterpolation::Spline, true,
            QuantLib::CubicInterpolation::SecondDerivative, 0.0,
            QuantLib::CubicInterpolation::SecondDerivative, 0.0) {}
};

class DefaultLogCubic : public QuantLib::LogCubic {
  public:
    DefaultLogCubic()
    : QuantLib::LogCubic(QuantLib::CubicInterpolation::Kruger) {}
};

class MonotonicLogCubic : public QuantLib::LogCubic {
  public:
    MonotonicLogCubic()
    : QuantLib::LogCubic(QuantLib::CubicInterpolation::Spline, true,
                         QuantLib::CubicInterpolation::SecondDerivative, 0.0,
                         QuantLib::CubicInterpolation::SecondDerivative, 0.0) {}
};


using QuantLib::YieldTermStructure;

SWIGINTERN bool boost_shared_ptr_Sl_YieldTermStructure_Sg____nonzero__(boost::shared_ptr< YieldTermStructure > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_YieldTermStructure_Sg____bool__(boost::shared_ptr< YieldTermStructure > *self){
                return !!(*self);
            }
SWIGINTERN boost::shared_ptr< Observable > boost_shared_ptr_Sl_YieldTermStructure_Sg__asObservable(boost::shared_ptr< YieldTermStructure > *self){
        return boost::shared_ptr<Observable>(*self);
    }
SWIGINTERN bool Handle_Sl_YieldTermStructure_Sg____nonzero__(Handle< YieldTermStructure > *self){
            return !self->empty();
        }
SWIGINTERN bool Handle_Sl_YieldTermStructure_Sg____bool__(Handle< YieldTermStructure > *self){
            return !self->empty();
        }
SWIGINTERN boost::shared_ptr< Observable > Handle_Sl_YieldTermStructure_Sg__asObservable(Handle< YieldTermStructure > *self){
        return boost::shared_ptr<Observable>(*self);
    }

using QuantLib::ImpliedTermStructure;
typedef boost::shared_ptr<YieldTermStructure> ImpliedTermStructurePtr;

SWIGINTERN ImpliedTermStructurePtr *new_ImpliedTermStructurePtr(Handle< YieldTermStructure > const &curveHandle,Date const &referenceDate){
            return new ImpliedTermStructurePtr(
                new ImpliedTermStructure(curveHandle, referenceDate));
        }

using QuantLib::ZeroSpreadedTermStructure;
using QuantLib::ForwardSpreadedTermStructure;
typedef boost::shared_ptr<YieldTermStructure> ZeroSpreadedTermStructurePtr;
typedef boost::shared_ptr<YieldTermStructure> ForwardSpreadedTermStructurePtr;

SWIGINTERN ZeroSpreadedTermStructurePtr *new_ZeroSpreadedTermStructurePtr__SWIG_0(Handle< YieldTermStructure > const &curveHandle,Handle< Quote > const &spreadHandle,Compounding comp=QuantLib::Continuous,Frequency freq=QuantLib::NoFrequency,DayCounter const &dc=DayCounter()){
            return new ZeroSpreadedTermStructurePtr(
                new ZeroSpreadedTermStructure(curveHandle,spreadHandle, comp, freq, dc));
        }
SWIGINTERN ForwardSpreadedTermStructurePtr *new_ForwardSpreadedTermStructurePtr(Handle< YieldTermStructure > const &curveHandle,Handle< Quote > const &spreadHandle){
            return new ForwardSpreadedTermStructurePtr(
                new ForwardSpreadedTermStructure(curveHandle,spreadHandle));
        }

using QuantLib::InterpolatedPiecewiseZeroSpreadedTermStructure;


typedef boost::shared_ptr<YieldTermStructure> SpreadedLinearZeroInterpolatedTermStructurePtr;

SWIGINTERN SpreadedLinearZeroInterpolatedTermStructurePtr *new_SpreadedLinearZeroInterpolatedTermStructurePtr__SWIG_0(Handle< YieldTermStructure > const &curveHandle,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &spreadHandles,std::vector< Date,std::allocator< Date > > const &dates,Compounding comp=QuantLib::Continuous,Frequency freq=QuantLib::NoFrequency,DayCounter const &dc=DayCounter(),Linear const &factory=Linear()){
            return new SpreadedLinearZeroInterpolatedTermStructurePtr(
                new InterpolatedPiecewiseZeroSpreadedTermStructure<Linear>(
                          curveHandle,spreadHandles,dates,comp,freq,dc,factory));
        }

using QuantLib::FlatForward;
typedef boost::shared_ptr<YieldTermStructure> FlatForwardPtr;

SWIGINTERN FlatForwardPtr *new_FlatForwardPtr__SWIG_0(Date const &referenceDate,Handle< Quote > const &forward,DayCounter const &dayCounter,Compounding compounding=QuantLib::Continuous,Frequency frequency=QuantLib::Annual){
            return new FlatForwardPtr(
                           new FlatForward(referenceDate,forward,dayCounter,
                                           compounding,frequency));
        }
SWIGINTERN FlatForwardPtr *new_FlatForwardPtr__SWIG_3(Date const &referenceDate,Rate forward,DayCounter const &dayCounter,Compounding compounding=QuantLib::Continuous,Frequency frequency=QuantLib::Annual){
            return new FlatForwardPtr(
                           new FlatForward(referenceDate,forward,dayCounter,
                                           compounding,frequency));
        }
SWIGINTERN FlatForwardPtr *new_FlatForwardPtr__SWIG_6(Integer settlementDays,Calendar const &calendar,Handle< Quote > const &forward,DayCounter const &dayCounter,Compounding compounding=QuantLib::Continuous,Frequency frequency=QuantLib::Annual){
            return new FlatForwardPtr(
                 new FlatForward(settlementDays,calendar,forward,dayCounter,
                                 compounding,frequency));
        }
SWIGINTERN FlatForwardPtr *new_FlatForwardPtr__SWIG_9(Integer settlementDays,Calendar const &calendar,Rate forward,DayCounter const &dayCounter,Compounding compounding=QuantLib::Continuous,Frequency frequency=QuantLib::Annual){
            return new FlatForwardPtr(
                 new FlatForward(settlementDays,calendar,forward,dayCounter,
                                 compounding,frequency));
        }

using QuantLib::TimeSeries;
using QuantLib::IntervalPrice;

SWIGINTERN TimeSeries< Real > *new_TimeSeries_Sl_Real_Sg___SWIG_1(std::vector< Date,std::allocator< Date > > const &d,std::vector< double,std::allocator< double > > const &v){
            return new TimeSeries<double>(d.begin(), d.end(), v.begin());
        }
SWIGINTERN double TimeSeries_Sl_Real_Sg____getitem__(TimeSeries< Real > *self,Date const &d){
            return (*self)[d];
        }
SWIGINTERN void TimeSeries_Sl_Real_Sg____setitem__(TimeSeries< Real > *self,Date const &d,double const &value){
            (*self)[d] = value;
        }
SWIGINTERN TimeSeries< IntervalPrice > *new_TimeSeries_Sl_IntervalPrice_Sg___SWIG_1(std::vector< Date,std::allocator< Date > > const &d,std::vector< IntervalPrice,std::allocator< IntervalPrice > > const &v){
            return new TimeSeries<IntervalPrice>(d.begin(), d.end(), v.begin());
        }
SWIGINTERN IntervalPrice TimeSeries_Sl_IntervalPrice_Sg____getitem__(TimeSeries< IntervalPrice > *self,Date const &d){
            return (*self)[d];
        }
SWIGINTERN void TimeSeries_Sl_IntervalPrice_Sg____setitem__(TimeSeries< IntervalPrice > *self,Date const &d,IntervalPrice const &value){
            (*self)[d] = value;
        }

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


      namespace swig {
	template <>  struct traits<std::vector< IntervalPrice, std::allocator< IntervalPrice > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "IntervalPrice" "," "std::allocator< IntervalPrice >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_IntervalPrice_Sg__iterator(std::vector< IntervalPrice > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_IntervalPrice_Sg____nonzero__(std::vector< IntervalPrice > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_IntervalPrice_Sg____bool__(std::vector< IntervalPrice > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< IntervalPrice >::size_type std_vector_Sl_IntervalPrice_Sg____len__(std::vector< IntervalPrice > const *self){
      return self->size();
    }
SWIGINTERN std::vector< IntervalPrice,std::allocator< IntervalPrice > > *std_vector_Sl_IntervalPrice_Sg____getslice__(std::vector< IntervalPrice > *self,std::vector< IntervalPrice >::difference_type i,std::vector< IntervalPrice >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_IntervalPrice_Sg____setslice____SWIG_0(std::vector< IntervalPrice > *self,std::vector< IntervalPrice >::difference_type i,std::vector< IntervalPrice >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< IntervalPrice,std::allocator< IntervalPrice > >());
    }
SWIGINTERN void std_vector_Sl_IntervalPrice_Sg____setslice____SWIG_1(std::vector< IntervalPrice > *self,std::vector< IntervalPrice >::difference_type i,std::vector< IntervalPrice >::difference_type j,std::vector< IntervalPrice,std::allocator< IntervalPrice > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_IntervalPrice_Sg____delslice__(std::vector< IntervalPrice > *self,std::vector< IntervalPrice >::difference_type i,std::vector< IntervalPrice >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_IntervalPrice_Sg____delitem____SWIG_0(std::vector< IntervalPrice > *self,std::vector< IntervalPrice >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< IntervalPrice,std::allocator< IntervalPrice > > *std_vector_Sl_IntervalPrice_Sg____getitem____SWIG_0(std::vector< IntervalPrice > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< IntervalPrice,std::allocator< IntervalPrice > >::difference_type id = i;
      std::vector< IntervalPrice,std::allocator< IntervalPrice > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_IntervalPrice_Sg____setitem____SWIG_0(std::vector< IntervalPrice > *self,PySliceObject *slice,std::vector< IntervalPrice,std::allocator< IntervalPrice > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< IntervalPrice,std::allocator< IntervalPrice > >::difference_type id = i;
      std::vector< IntervalPrice,std::allocator< IntervalPrice > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_IntervalPrice_Sg____setitem____SWIG_1(std::vector< IntervalPrice > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< IntervalPrice,std::allocator< IntervalPrice > >::difference_type id = i;
      std::vector< IntervalPrice,std::allocator< IntervalPrice > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_IntervalPrice_Sg____delitem____SWIG_1(std::vector< IntervalPrice > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< IntervalPrice,std::allocator< IntervalPrice > >::difference_type id = i;
      std::vector< IntervalPrice,std::allocator< IntervalPrice > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< IntervalPrice >::value_type const &std_vector_Sl_IntervalPrice_Sg____getitem____SWIG_1(std::vector< IntervalPrice > const *self,std::vector< IntervalPrice >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_IntervalPrice_Sg____setitem____SWIG_2(std::vector< IntervalPrice > *self,std::vector< IntervalPrice >::difference_type i,std::vector< IntervalPrice >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< IntervalPrice >::value_type std_vector_Sl_IntervalPrice_Sg__pop(std::vector< IntervalPrice > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< IntervalPrice,std::allocator< IntervalPrice > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_IntervalPrice_Sg__append(std::vector< IntervalPrice > *self,std::vector< IntervalPrice >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< IntervalPrice >::iterator std_vector_Sl_IntervalPrice_Sg__erase__SWIG_0(std::vector< IntervalPrice > *self,std::vector< IntervalPrice >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< IntervalPrice >::iterator std_vector_Sl_IntervalPrice_Sg__erase__SWIG_1(std::vector< IntervalPrice > *self,std::vector< IntervalPrice >::iterator first,std::vector< IntervalPrice >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< IntervalPrice >::iterator std_vector_Sl_IntervalPrice_Sg__insert__SWIG_0(std::vector< IntervalPrice > *self,std::vector< IntervalPrice >::iterator pos,std::vector< IntervalPrice >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_IntervalPrice_Sg__insert__SWIG_1(std::vector< IntervalPrice > *self,std::vector< IntervalPrice >::iterator pos,std::vector< IntervalPrice >::size_type n,std::vector< IntervalPrice >::value_type const &x){ self->insert(pos, n, x); }

using QuantLib::IndexManager;


using QuantLib::Index;

SWIGINTERN bool boost_shared_ptr_Sl_Index_Sg____nonzero__(boost::shared_ptr< Index > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_Index_Sg____bool__(boost::shared_ptr< Index > *self){
                return !!(*self);
            }
SWIGINTERN void boost_shared_ptr_Sl_Index_Sg__addFixings(boost::shared_ptr< Index > *self,std::vector< Date,std::allocator< Date > > const &fixingDates,std::vector< Rate,std::allocator< Rate > > const &fixings){
        (*self)->addFixings(fixingDates.begin(),fixingDates.end(),
                            fixings.begin());
    }
SWIGINTERN std::string boost_shared_ptr_Sl_Index_Sg____str__(boost::shared_ptr< Index > *self){
        if (*self)
            return (*self)->name()+" index";
        else
            return "Null index";
    }
SWIGINTERN boost::shared_ptr< Observable > boost_shared_ptr_Sl_Index_Sg__asObservable(boost::shared_ptr< Index > *self){
        return boost::shared_ptr<Observable>(*self);
    }

using QuantLib::InterestRateIndex;
typedef boost::shared_ptr<Index> InterestRateIndexPtr;

SWIGINTERN std::string InterestRateIndexPtr_familyName(InterestRateIndexPtr *self){
            return boost::dynamic_pointer_cast<InterestRateIndex>(*self)
                ->familyName();
        }
SWIGINTERN Period InterestRateIndexPtr_tenor(InterestRateIndexPtr *self){
            return boost::dynamic_pointer_cast<InterestRateIndex>(*self)
                ->tenor();
        }
SWIGINTERN Natural InterestRateIndexPtr_fixingDays(InterestRateIndexPtr *self){
            return boost::dynamic_pointer_cast<InterestRateIndex>(*self)
                ->fixingDays();
        }
SWIGINTERN Date InterestRateIndexPtr_fixingDate(InterestRateIndexPtr *self,Date const &valueDate){
            return boost::dynamic_pointer_cast<InterestRateIndex>(*self)
                ->fixingDate(valueDate);
        }
SWIGINTERN Currency InterestRateIndexPtr_currency(InterestRateIndexPtr *self){
            return boost::dynamic_pointer_cast<InterestRateIndex>(*self)
                ->currency();
        }
SWIGINTERN DayCounter InterestRateIndexPtr_dayCounter(InterestRateIndexPtr *self){
            return boost::dynamic_pointer_cast<InterestRateIndex>(*self)
                ->dayCounter();
        }
SWIGINTERN Date InterestRateIndexPtr_maturityDate(InterestRateIndexPtr *self,Date const &valueDate){
            return boost::dynamic_pointer_cast<InterestRateIndex>(*self)
                ->maturityDate(valueDate);
        }
SWIGINTERN Date InterestRateIndexPtr_valueDate(InterestRateIndexPtr *self,Date const &fixingDate){
            return boost::dynamic_pointer_cast<InterestRateIndex>(*self)
                ->valueDate(fixingDate);
        }

using QuantLib::IborIndex;
using QuantLib::OvernightIndex;
typedef boost::shared_ptr<Index> IborIndexPtr;
typedef boost::shared_ptr<Index> OvernightIndexPtr;

SWIGINTERN IborIndexPtr *new_IborIndexPtr__SWIG_0(std::string const &familyName,Period const &tenor,Integer settlementDays,Currency const &currency,Calendar const &calendar,BusinessDayConvention convention,bool endOfMonth,DayCounter const &dayCounter,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
            return new IborIndexPtr(new IborIndex(familyName, tenor,
                                                  settlementDays,
                                                  currency, calendar,
                                                  convention,
                                                  endOfMonth,
                                                  dayCounter, h));
        }
SWIGINTERN BusinessDayConvention IborIndexPtr_businessDayConvention(IborIndexPtr *self){
            return boost::dynamic_pointer_cast<IborIndex>(*self)
                ->businessDayConvention();
        }
SWIGINTERN bool IborIndexPtr_endOfMonth(IborIndexPtr *self){
            return boost::dynamic_pointer_cast<IborIndex>(*self)->endOfMonth();
        }
SWIGINTERN Handle< YieldTermStructure > IborIndexPtr_forwardingTermStructure(IborIndexPtr *self){
            return boost::dynamic_pointer_cast<IborIndex>(*self)
                ->forwardingTermStructure();
        }
SWIGINTERN IborIndexPtr IborIndexPtr_clone(IborIndexPtr *self,Handle< YieldTermStructure > const &h){
            return boost::dynamic_pointer_cast<IborIndex>(*self)
                ->clone(h);
    }

    IborIndexPtr as_iborindex(const InterestRateIndexPtr& index) {
        return boost::dynamic_pointer_cast<IborIndex>(index);
    }

SWIGINTERN OvernightIndexPtr *new_OvernightIndexPtr__SWIG_0(std::string const &familyName,Integer settlementDays,Currency const &currency,Calendar const &calendar,DayCounter const &dayCounter,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
            return new OvernightIndexPtr(
                new OvernightIndex(familyName, settlementDays,
                                   currency, calendar,
                                   dayCounter, h));
        }

using QuantLib::Libor;
typedef boost::shared_ptr<Index> LiborPtr;

SWIGINTERN LiborPtr *new_LiborPtr__SWIG_0(std::string const &familyName,Period const &tenor,Natural settlementDays,Currency const &currency,Calendar const &financialCenterCalendar,DayCounter const &dayCounter,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
            return new LiborPtr(
                new Libor(familyName,
                          tenor,
                          settlementDays,
                          currency,
                          financialCenterCalendar,
                          dayCounter,
                          h));
        }

using QuantLib::SwapIndex;
typedef boost::shared_ptr<Index> SwapIndexPtr;

SWIGINTERN SwapIndexPtr *new_SwapIndexPtr__SWIG_0(std::string const &familyName,Period const &tenor,Integer settlementDays,Currency const &currency,Calendar const &calendar,Period const &fixedLegTenor,BusinessDayConvention fixedLegConvention,DayCounter const &fixedLegDayCounter,IborIndexPtr const &iborIndex){
            boost::shared_ptr<IborIndex> xibor =
                boost::dynamic_pointer_cast<IborIndex>(iborIndex);
            return new SwapIndexPtr(new SwapIndex(familyName,
                                                  tenor, settlementDays,
                                                  currency, calendar,
                                                  fixedLegTenor,
                                                  fixedLegConvention,
                                                  fixedLegDayCounter,
                                                  xibor));
        }
SWIGINTERN SwapIndexPtr *new_SwapIndexPtr__SWIG_1(std::string const &familyName,Period const &tenor,Integer settlementDays,Currency const &currency,Calendar const &calendar,Period const &fixedLegTenor,BusinessDayConvention fixedLegConvention,DayCounter const &fixedLegDayCounter,IborIndexPtr const &iborIndex,Handle< YieldTermStructure > const &discountCurve){
            boost::shared_ptr<IborIndex> xibor =
                boost::dynamic_pointer_cast<IborIndex>(iborIndex);
            return new SwapIndexPtr(new SwapIndex(familyName,
                                                  tenor, settlementDays,
                                                  currency, calendar,
                                                  fixedLegTenor,
                                                  fixedLegConvention,
                                                  fixedLegDayCounter,
                                                  xibor, discountCurve));
        }
SWIGINTERN Period SwapIndexPtr_fixedLegTenor(SwapIndexPtr *self){
            return boost::dynamic_pointer_cast<SwapIndex>(*self)
                ->fixedLegTenor();
        }
SWIGINTERN BusinessDayConvention SwapIndexPtr_fixedLegConvention(SwapIndexPtr *self){
            return boost::dynamic_pointer_cast<SwapIndex>(*self)
                 ->fixedLegConvention();
        }
SWIGINTERN IborIndexPtr SwapIndexPtr_iborIndex(SwapIndexPtr *self){
            return boost::dynamic_pointer_cast<SwapIndex>(*self)
                ->iborIndex();
        }
SWIGINTERN Handle< YieldTermStructure > SwapIndexPtr_forwardingTermStructure(SwapIndexPtr *self){
            return boost::dynamic_pointer_cast<SwapIndex>(*self)
                ->forwardingTermStructure();
        }

using QuantLib::AUDLibor;
typedef boost::shared_ptr<Index> AUDLiborPtr;

SWIGINTERN AUDLiborPtr *new_AUDLiborPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new AUDLiborPtr(new AUDLibor(tenor,h));
      }

using QuantLib::CADLibor;
typedef boost::shared_ptr<Index> CADLiborPtr;

SWIGINTERN CADLiborPtr *new_CADLiborPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new CADLiborPtr(new CADLibor(tenor,h));
      }

using QuantLib::Cdor;
typedef boost::shared_ptr<Index> CdorPtr;

SWIGINTERN CdorPtr *new_CdorPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new CdorPtr(new Cdor(tenor,h));
      }

using QuantLib::CHFLibor;
typedef boost::shared_ptr<Index> CHFLiborPtr;

SWIGINTERN CHFLiborPtr *new_CHFLiborPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new CHFLiborPtr(new CHFLibor(tenor,h));
      }

using QuantLib::DKKLibor;
typedef boost::shared_ptr<Index> DKKLiborPtr;

SWIGINTERN DKKLiborPtr *new_DKKLiborPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new DKKLiborPtr(new DKKLibor(tenor,h));
      }

using QuantLib::Bbsw;
typedef boost::shared_ptr<Index> BbswPtr;

SWIGINTERN BbswPtr *new_BbswPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new BbswPtr(new Bbsw(tenor,h));
      }

using QuantLib::Bbsw1M;
typedef boost::shared_ptr<Index> Bbsw1MPtr;

SWIGINTERN Bbsw1MPtr *new_Bbsw1MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Bbsw1MPtr(new Bbsw1M(h));
      }

using QuantLib::Bbsw2M;
typedef boost::shared_ptr<Index> Bbsw2MPtr;

SWIGINTERN Bbsw2MPtr *new_Bbsw2MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Bbsw2MPtr(new Bbsw2M(h));
      }

using QuantLib::Bbsw3M;
typedef boost::shared_ptr<Index> Bbsw3MPtr;

SWIGINTERN Bbsw3MPtr *new_Bbsw3MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Bbsw3MPtr(new Bbsw3M(h));
      }

using QuantLib::Bbsw4M;
typedef boost::shared_ptr<Index> Bbsw4MPtr;

SWIGINTERN Bbsw4MPtr *new_Bbsw4MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Bbsw4MPtr(new Bbsw4M(h));
      }

using QuantLib::Bbsw5M;
typedef boost::shared_ptr<Index> Bbsw5MPtr;

SWIGINTERN Bbsw5MPtr *new_Bbsw5MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Bbsw5MPtr(new Bbsw5M(h));
      }

using QuantLib::Bbsw6M;
typedef boost::shared_ptr<Index> Bbsw6MPtr;

SWIGINTERN Bbsw6MPtr *new_Bbsw6MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Bbsw6MPtr(new Bbsw6M(h));
      }

using QuantLib::Bkbm;
typedef boost::shared_ptr<Index> BkbmPtr;

SWIGINTERN BkbmPtr *new_BkbmPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new BkbmPtr(new Bkbm(tenor,h));
      }

using QuantLib::Bkbm1M;
typedef boost::shared_ptr<Index> Bkbm1MPtr;

SWIGINTERN Bkbm1MPtr *new_Bkbm1MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Bkbm1MPtr(new Bkbm1M(h));
      }

using QuantLib::Bkbm2M;
typedef boost::shared_ptr<Index> Bkbm2MPtr;

SWIGINTERN Bkbm2MPtr *new_Bkbm2MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Bkbm2MPtr(new Bkbm2M(h));
      }

using QuantLib::Bkbm3M;
typedef boost::shared_ptr<Index> Bkbm3MPtr;

SWIGINTERN Bkbm3MPtr *new_Bkbm3MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Bkbm3MPtr(new Bkbm3M(h));
      }

using QuantLib::Bkbm4M;
typedef boost::shared_ptr<Index> Bkbm4MPtr;

SWIGINTERN Bkbm4MPtr *new_Bkbm4MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Bkbm4MPtr(new Bkbm4M(h));
      }

using QuantLib::Bkbm5M;
typedef boost::shared_ptr<Index> Bkbm5MPtr;

SWIGINTERN Bkbm5MPtr *new_Bkbm5MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Bkbm5MPtr(new Bkbm5M(h));
      }

using QuantLib::Bkbm6M;
typedef boost::shared_ptr<Index> Bkbm6MPtr;

SWIGINTERN Bkbm6MPtr *new_Bkbm6MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Bkbm6MPtr(new Bkbm6M(h));
      }

using QuantLib::Euribor;
typedef boost::shared_ptr<Index> EuriborPtr;

SWIGINTERN EuriborPtr *new_EuriborPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EuriborPtr(new Euribor(tenor,h));
      }

using QuantLib::EuriborSW;
typedef boost::shared_ptr<Index> EuriborSWPtr;

SWIGINTERN EuriborSWPtr *new_EuriborSWPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EuriborSWPtr(new EuriborSW(h));
      }

using QuantLib::Euribor2W;
typedef boost::shared_ptr<Index> Euribor2WPtr;

SWIGINTERN Euribor2WPtr *new_Euribor2WPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor2WPtr(new Euribor2W(h));
      }

using QuantLib::Euribor3W;
typedef boost::shared_ptr<Index> Euribor3WPtr;

SWIGINTERN Euribor3WPtr *new_Euribor3WPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor3WPtr(new Euribor3W(h));
      }

using QuantLib::Euribor1M;
typedef boost::shared_ptr<Index> Euribor1MPtr;

SWIGINTERN Euribor1MPtr *new_Euribor1MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor1MPtr(new Euribor1M(h));
      }

using QuantLib::Euribor2M;
typedef boost::shared_ptr<Index> Euribor2MPtr;

SWIGINTERN Euribor2MPtr *new_Euribor2MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor2MPtr(new Euribor2M(h));
      }

using QuantLib::Euribor3M;
typedef boost::shared_ptr<Index> Euribor3MPtr;

SWIGINTERN Euribor3MPtr *new_Euribor3MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor3MPtr(new Euribor3M(h));
      }

using QuantLib::Euribor4M;
typedef boost::shared_ptr<Index> Euribor4MPtr;

SWIGINTERN Euribor4MPtr *new_Euribor4MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor4MPtr(new Euribor4M(h));
      }

using QuantLib::Euribor5M;
typedef boost::shared_ptr<Index> Euribor5MPtr;

SWIGINTERN Euribor5MPtr *new_Euribor5MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor5MPtr(new Euribor5M(h));
      }

using QuantLib::Euribor6M;
typedef boost::shared_ptr<Index> Euribor6MPtr;

SWIGINTERN Euribor6MPtr *new_Euribor6MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor6MPtr(new Euribor6M(h));
      }

using QuantLib::Euribor7M;
typedef boost::shared_ptr<Index> Euribor7MPtr;

SWIGINTERN Euribor7MPtr *new_Euribor7MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor7MPtr(new Euribor7M(h));
      }

using QuantLib::Euribor8M;
typedef boost::shared_ptr<Index> Euribor8MPtr;

SWIGINTERN Euribor8MPtr *new_Euribor8MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor8MPtr(new Euribor8M(h));
      }

using QuantLib::Euribor9M;
typedef boost::shared_ptr<Index> Euribor9MPtr;

SWIGINTERN Euribor9MPtr *new_Euribor9MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor9MPtr(new Euribor9M(h));
      }

using QuantLib::Euribor10M;
typedef boost::shared_ptr<Index> Euribor10MPtr;

SWIGINTERN Euribor10MPtr *new_Euribor10MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor10MPtr(new Euribor10M(h));
      }

using QuantLib::Euribor11M;
typedef boost::shared_ptr<Index> Euribor11MPtr;

SWIGINTERN Euribor11MPtr *new_Euribor11MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor11MPtr(new Euribor11M(h));
      }

using QuantLib::Euribor1Y;
typedef boost::shared_ptr<Index> Euribor1YPtr;

SWIGINTERN Euribor1YPtr *new_Euribor1YPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor1YPtr(new Euribor1Y(h));
      }

using QuantLib::Euribor365;
typedef boost::shared_ptr<Index> Euribor365Ptr;

SWIGINTERN Euribor365Ptr *new_Euribor365Ptr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor365Ptr(new Euribor365(tenor,h));
      }

using QuantLib::Euribor365_SW;
typedef boost::shared_ptr<Index> Euribor365_SWPtr;

SWIGINTERN Euribor365_SWPtr *new_Euribor365_SWPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor365_SWPtr(new Euribor365_SW(h));
      }

using QuantLib::Euribor365_2W;
typedef boost::shared_ptr<Index> Euribor365_2WPtr;

SWIGINTERN Euribor365_2WPtr *new_Euribor365_2WPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor365_2WPtr(new Euribor365_2W(h));
      }

using QuantLib::Euribor365_3W;
typedef boost::shared_ptr<Index> Euribor365_3WPtr;

SWIGINTERN Euribor365_3WPtr *new_Euribor365_3WPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor365_3WPtr(new Euribor365_3W(h));
      }

using QuantLib::Euribor365_1M;
typedef boost::shared_ptr<Index> Euribor365_1MPtr;

SWIGINTERN Euribor365_1MPtr *new_Euribor365_1MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor365_1MPtr(new Euribor365_1M(h));
      }

using QuantLib::Euribor365_2M;
typedef boost::shared_ptr<Index> Euribor365_2MPtr;

SWIGINTERN Euribor365_2MPtr *new_Euribor365_2MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor365_2MPtr(new Euribor365_2M(h));
      }

using QuantLib::Euribor365_3M;
typedef boost::shared_ptr<Index> Euribor365_3MPtr;

SWIGINTERN Euribor365_3MPtr *new_Euribor365_3MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor365_3MPtr(new Euribor365_3M(h));
      }

using QuantLib::Euribor365_4M;
typedef boost::shared_ptr<Index> Euribor365_4MPtr;

SWIGINTERN Euribor365_4MPtr *new_Euribor365_4MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor365_4MPtr(new Euribor365_4M(h));
      }

using QuantLib::Euribor365_5M;
typedef boost::shared_ptr<Index> Euribor365_5MPtr;

SWIGINTERN Euribor365_5MPtr *new_Euribor365_5MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor365_5MPtr(new Euribor365_5M(h));
      }

using QuantLib::Euribor365_6M;
typedef boost::shared_ptr<Index> Euribor365_6MPtr;

SWIGINTERN Euribor365_6MPtr *new_Euribor365_6MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor365_6MPtr(new Euribor365_6M(h));
      }

using QuantLib::Euribor365_7M;
typedef boost::shared_ptr<Index> Euribor365_7MPtr;

SWIGINTERN Euribor365_7MPtr *new_Euribor365_7MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor365_7MPtr(new Euribor365_7M(h));
      }

using QuantLib::Euribor365_8M;
typedef boost::shared_ptr<Index> Euribor365_8MPtr;

SWIGINTERN Euribor365_8MPtr *new_Euribor365_8MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor365_8MPtr(new Euribor365_8M(h));
      }

using QuantLib::Euribor365_9M;
typedef boost::shared_ptr<Index> Euribor365_9MPtr;

SWIGINTERN Euribor365_9MPtr *new_Euribor365_9MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor365_9MPtr(new Euribor365_9M(h));
      }

using QuantLib::Euribor365_10M;
typedef boost::shared_ptr<Index> Euribor365_10MPtr;

SWIGINTERN Euribor365_10MPtr *new_Euribor365_10MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor365_10MPtr(new Euribor365_10M(h));
      }

using QuantLib::Euribor365_11M;
typedef boost::shared_ptr<Index> Euribor365_11MPtr;

SWIGINTERN Euribor365_11MPtr *new_Euribor365_11MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor365_11MPtr(new Euribor365_11M(h));
      }

using QuantLib::Euribor365_1Y;
typedef boost::shared_ptr<Index> Euribor365_1YPtr;

SWIGINTERN Euribor365_1YPtr *new_Euribor365_1YPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new Euribor365_1YPtr(new Euribor365_1Y(h));
      }

using QuantLib::EURLibor;
typedef boost::shared_ptr<Index> EURLiborPtr;

SWIGINTERN EURLiborPtr *new_EURLiborPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EURLiborPtr(new EURLibor(tenor,h));
      }

using QuantLib::EURLiborSW;
typedef boost::shared_ptr<Index> EURLiborSWPtr;

SWIGINTERN EURLiborSWPtr *new_EURLiborSWPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EURLiborSWPtr(new EURLiborSW(h));
      }

using QuantLib::EURLibor2W;
typedef boost::shared_ptr<Index> EURLibor2WPtr;

SWIGINTERN EURLibor2WPtr *new_EURLibor2WPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EURLibor2WPtr(new EURLibor2W(h));
      }

using QuantLib::EURLibor1M;
typedef boost::shared_ptr<Index> EURLibor1MPtr;

SWIGINTERN EURLibor1MPtr *new_EURLibor1MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EURLibor1MPtr(new EURLibor1M(h));
      }

using QuantLib::EURLibor2M;
typedef boost::shared_ptr<Index> EURLibor2MPtr;

SWIGINTERN EURLibor2MPtr *new_EURLibor2MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EURLibor2MPtr(new EURLibor2M(h));
      }

using QuantLib::EURLibor3M;
typedef boost::shared_ptr<Index> EURLibor3MPtr;

SWIGINTERN EURLibor3MPtr *new_EURLibor3MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EURLibor3MPtr(new EURLibor3M(h));
      }

using QuantLib::EURLibor4M;
typedef boost::shared_ptr<Index> EURLibor4MPtr;

SWIGINTERN EURLibor4MPtr *new_EURLibor4MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EURLibor4MPtr(new EURLibor4M(h));
      }

using QuantLib::EURLibor5M;
typedef boost::shared_ptr<Index> EURLibor5MPtr;

SWIGINTERN EURLibor5MPtr *new_EURLibor5MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EURLibor5MPtr(new EURLibor5M(h));
      }

using QuantLib::EURLibor6M;
typedef boost::shared_ptr<Index> EURLibor6MPtr;

SWIGINTERN EURLibor6MPtr *new_EURLibor6MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EURLibor6MPtr(new EURLibor6M(h));
      }

using QuantLib::EURLibor7M;
typedef boost::shared_ptr<Index> EURLibor7MPtr;

SWIGINTERN EURLibor7MPtr *new_EURLibor7MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EURLibor7MPtr(new EURLibor7M(h));
      }

using QuantLib::EURLibor8M;
typedef boost::shared_ptr<Index> EURLibor8MPtr;

SWIGINTERN EURLibor8MPtr *new_EURLibor8MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EURLibor8MPtr(new EURLibor8M(h));
      }

using QuantLib::EURLibor9M;
typedef boost::shared_ptr<Index> EURLibor9MPtr;

SWIGINTERN EURLibor9MPtr *new_EURLibor9MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EURLibor9MPtr(new EURLibor9M(h));
      }

using QuantLib::EURLibor10M;
typedef boost::shared_ptr<Index> EURLibor10MPtr;

SWIGINTERN EURLibor10MPtr *new_EURLibor10MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EURLibor10MPtr(new EURLibor10M(h));
      }

using QuantLib::EURLibor11M;
typedef boost::shared_ptr<Index> EURLibor11MPtr;

SWIGINTERN EURLibor11MPtr *new_EURLibor11MPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EURLibor11MPtr(new EURLibor11M(h));
      }

using QuantLib::EURLibor1Y;
typedef boost::shared_ptr<Index> EURLibor1YPtr;

SWIGINTERN EURLibor1YPtr *new_EURLibor1YPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EURLibor1YPtr(new EURLibor1Y(h));
      }

using QuantLib::GBPLibor;
typedef boost::shared_ptr<Index> GBPLiborPtr;

SWIGINTERN GBPLiborPtr *new_GBPLiborPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new GBPLiborPtr(new GBPLibor(tenor,h));
      }

using QuantLib::Jibar;
typedef boost::shared_ptr<Index> JibarPtr;

SWIGINTERN JibarPtr *new_JibarPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new JibarPtr(new Jibar(tenor,h));
      }

using QuantLib::JPYLibor;
typedef boost::shared_ptr<Index> JPYLiborPtr;

SWIGINTERN JPYLiborPtr *new_JPYLiborPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new JPYLiborPtr(new JPYLibor(tenor,h));
      }

using QuantLib::NZDLibor;
typedef boost::shared_ptr<Index> NZDLiborPtr;

SWIGINTERN NZDLiborPtr *new_NZDLiborPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new NZDLiborPtr(new NZDLibor(tenor,h));
      }

using QuantLib::SEKLibor;
typedef boost::shared_ptr<Index> SEKLiborPtr;

SWIGINTERN SEKLiborPtr *new_SEKLiborPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new SEKLiborPtr(new SEKLibor(tenor,h));
      }

using QuantLib::Tibor;
typedef boost::shared_ptr<Index> TiborPtr;

SWIGINTERN TiborPtr *new_TiborPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new TiborPtr(new Tibor(tenor,h));
      }

using QuantLib::TRLibor;
typedef boost::shared_ptr<Index> TRLiborPtr;

SWIGINTERN TRLiborPtr *new_TRLiborPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new TRLiborPtr(new TRLibor(tenor,h));
      }

using QuantLib::USDLibor;
typedef boost::shared_ptr<Index> USDLiborPtr;

SWIGINTERN USDLiborPtr *new_USDLiborPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new USDLiborPtr(new USDLibor(tenor,h));
      }

using QuantLib::Zibor;
typedef boost::shared_ptr<Index> ZiborPtr;

SWIGINTERN ZiborPtr *new_ZiborPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new ZiborPtr(new Zibor(tenor,h));
      }

using QuantLib::Aonia;
typedef boost::shared_ptr<Index> AoniaPtr;

SWIGINTERN AoniaPtr *new_AoniaPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new AoniaPtr(new Aonia(h));
      }

using QuantLib::Eonia;
typedef boost::shared_ptr<Index> EoniaPtr;

SWIGINTERN EoniaPtr *new_EoniaPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EoniaPtr(new Eonia(h));
      }

using QuantLib::Sonia;
typedef boost::shared_ptr<Index> SoniaPtr;

SWIGINTERN SoniaPtr *new_SoniaPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new SoniaPtr(new Sonia(h));
      }

using QuantLib::FedFunds;
typedef boost::shared_ptr<Index> FedFundsPtr;

SWIGINTERN FedFundsPtr *new_FedFundsPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new FedFundsPtr(new FedFunds(h));
      }

using QuantLib::Nzocr;
typedef boost::shared_ptr<Index> NzocrPtr;

SWIGINTERN NzocrPtr *new_NzocrPtr__SWIG_0(Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new NzocrPtr(new Nzocr(h));
      }

using QuantLib::EuriborSwapIsdaFixA;
typedef boost::shared_ptr<Index> EuriborSwapIsdaFixAPtr;

SWIGINTERN EuriborSwapIsdaFixAPtr *new_EuriborSwapIsdaFixAPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EuriborSwapIsdaFixAPtr(new EuriborSwapIsdaFixA(tenor,h));
      }
SWIGINTERN EuriborSwapIsdaFixAPtr *new_EuriborSwapIsdaFixAPtr__SWIG_2(Period const &tenor,Handle< YieldTermStructure > const &h1,Handle< YieldTermStructure > const &h2){
          return new EuriborSwapIsdaFixAPtr(new EuriborSwapIsdaFixA(tenor,h1,h2));
      }

using QuantLib::EuriborSwapIsdaFixB;
typedef boost::shared_ptr<Index> EuriborSwapIsdaFixBPtr;

SWIGINTERN EuriborSwapIsdaFixBPtr *new_EuriborSwapIsdaFixBPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EuriborSwapIsdaFixBPtr(new EuriborSwapIsdaFixB(tenor,h));
      }
SWIGINTERN EuriborSwapIsdaFixBPtr *new_EuriborSwapIsdaFixBPtr__SWIG_2(Period const &tenor,Handle< YieldTermStructure > const &h1,Handle< YieldTermStructure > const &h2){
          return new EuriborSwapIsdaFixBPtr(new EuriborSwapIsdaFixB(tenor,h1,h2));
      }

using QuantLib::EuriborSwapIfrFix;
typedef boost::shared_ptr<Index> EuriborSwapIfrFixPtr;

SWIGINTERN EuriborSwapIfrFixPtr *new_EuriborSwapIfrFixPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EuriborSwapIfrFixPtr(new EuriborSwapIfrFix(tenor,h));
      }
SWIGINTERN EuriborSwapIfrFixPtr *new_EuriborSwapIfrFixPtr__SWIG_2(Period const &tenor,Handle< YieldTermStructure > const &h1,Handle< YieldTermStructure > const &h2){
          return new EuriborSwapIfrFixPtr(new EuriborSwapIfrFix(tenor,h1,h2));
      }

using QuantLib::EurLiborSwapIsdaFixA;
typedef boost::shared_ptr<Index> EurLiborSwapIsdaFixAPtr;

SWIGINTERN EurLiborSwapIsdaFixAPtr *new_EurLiborSwapIsdaFixAPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EurLiborSwapIsdaFixAPtr(new EurLiborSwapIsdaFixA(tenor,h));
      }
SWIGINTERN EurLiborSwapIsdaFixAPtr *new_EurLiborSwapIsdaFixAPtr__SWIG_2(Period const &tenor,Handle< YieldTermStructure > const &h1,Handle< YieldTermStructure > const &h2){
          return new EurLiborSwapIsdaFixAPtr(new EurLiborSwapIsdaFixA(tenor,h1,h2));
      }

using QuantLib::EurLiborSwapIsdaFixB;
typedef boost::shared_ptr<Index> EurLiborSwapIsdaFixBPtr;

SWIGINTERN EurLiborSwapIsdaFixBPtr *new_EurLiborSwapIsdaFixBPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EurLiborSwapIsdaFixBPtr(new EurLiborSwapIsdaFixB(tenor,h));
      }
SWIGINTERN EurLiborSwapIsdaFixBPtr *new_EurLiborSwapIsdaFixBPtr__SWIG_2(Period const &tenor,Handle< YieldTermStructure > const &h1,Handle< YieldTermStructure > const &h2){
          return new EurLiborSwapIsdaFixBPtr(new EurLiborSwapIsdaFixB(tenor,h1,h2));
      }

using QuantLib::EurLiborSwapIfrFix;
typedef boost::shared_ptr<Index> EurLiborSwapIfrFixPtr;

SWIGINTERN EurLiborSwapIfrFixPtr *new_EurLiborSwapIfrFixPtr__SWIG_0(Period const &tenor,Handle< YieldTermStructure > const &h=Handle< YieldTermStructure >()){
          return new EurLiborSwapIfrFixPtr(new EurLiborSwapIfrFix(tenor,h));
      }
SWIGINTERN EurLiborSwapIfrFixPtr *new_EurLiborSwapIfrFixPtr__SWIG_2(Period const &tenor,Handle< YieldTermStructure > const &h1,Handle< YieldTermStructure > const &h2){
          return new EurLiborSwapIfrFixPtr(new EurLiborSwapIfrFix(tenor,h1,h2));
      }

using QuantLib::Bisection;
using QuantLib::Brent;
using QuantLib::FalsePosition;
using QuantLib::Newton;
using QuantLib::NewtonSafe;
using QuantLib::Ridder;
using QuantLib::Secant;

SWIGINTERN Real Brent_solve__SWIG_0(Brent *self,PyObject *function,Real xAccuracy,Real guess,Real step){
            UnaryFunction f(function);
            return self->solve(f, xAccuracy, guess, step);
        }
SWIGINTERN Real Brent_solve__SWIG_1(Brent *self,PyObject *function,Real xAccuracy,Real guess,Real xMin,Real xMax){
            UnaryFunction f(function);
            return self->solve(f, xAccuracy, guess, xMin, xMax);
        }
SWIGINTERN Real Bisection_solve__SWIG_0(Bisection *self,PyObject *function,Real xAccuracy,Real guess,Real step){
            UnaryFunction f(function);
            return self->solve(f, xAccuracy, guess, step);
        }
SWIGINTERN Real Bisection_solve__SWIG_1(Bisection *self,PyObject *function,Real xAccuracy,Real guess,Real xMin,Real xMax){
            UnaryFunction f(function);
            return self->solve(f, xAccuracy, guess, xMin, xMax);
        }
SWIGINTERN Real FalsePosition_solve__SWIG_0(FalsePosition *self,PyObject *function,Real xAccuracy,Real guess,Real step){
            UnaryFunction f(function);
            return self->solve(f, xAccuracy, guess, step);
        }
SWIGINTERN Real FalsePosition_solve__SWIG_1(FalsePosition *self,PyObject *function,Real xAccuracy,Real guess,Real xMin,Real xMax){
            UnaryFunction f(function);
            return self->solve(f, xAccuracy, guess, xMin, xMax);
        }
SWIGINTERN Real Ridder_solve__SWIG_0(Ridder *self,PyObject *function,Real xAccuracy,Real guess,Real step){
            UnaryFunction f(function);
            return self->solve(f, xAccuracy, guess, step);
        }
SWIGINTERN Real Ridder_solve__SWIG_1(Ridder *self,PyObject *function,Real xAccuracy,Real guess,Real xMin,Real xMax){
            UnaryFunction f(function);
            return self->solve(f, xAccuracy, guess, xMin, xMax);
        }
SWIGINTERN Real Secant_solve__SWIG_0(Secant *self,PyObject *function,Real xAccuracy,Real guess,Real step){
            UnaryFunction f(function);
            return self->solve(f, xAccuracy, guess, step);
        }
SWIGINTERN Real Secant_solve__SWIG_1(Secant *self,PyObject *function,Real xAccuracy,Real guess,Real xMin,Real xMax){
            UnaryFunction f(function);
            return self->solve(f, xAccuracy, guess, xMin, xMax);
        }
SWIGINTERN Real Newton_solve__SWIG_0(Newton *self,PyObject *function,Real xAccuracy,Real guess,Real step){
            UnaryFunction f(function);
            return self->solve(f, xAccuracy, guess, step);
        }
SWIGINTERN Real Newton_solve__SWIG_1(Newton *self,PyObject *function,Real xAccuracy,Real guess,Real xMin,Real xMax){
            UnaryFunction f(function);
            return self->solve(f, xAccuracy, guess, xMin, xMax);
        }
SWIGINTERN Real NewtonSafe_solve__SWIG_0(NewtonSafe *self,PyObject *function,Real xAccuracy,Real guess,Real step){
            UnaryFunction f(function);
            return self->solve(f, xAccuracy, guess, step);
        }
SWIGINTERN Real NewtonSafe_solve__SWIG_1(NewtonSafe *self,PyObject *function,Real xAccuracy,Real guess,Real xMin,Real xMax){
            UnaryFunction f(function);
            return self->solve(f, xAccuracy, guess, xMin, xMax);
        }

using QuantLib::Constraint;
using QuantLib::BoundaryConstraint;
using QuantLib::NoConstraint;
using QuantLib::PositiveConstraint;
using QuantLib::CompositeConstraint;
using QuantLib::NonhomogeneousBoundaryConstraint;


using QuantLib::EndCriteria;


using QuantLib::OptimizationMethod;
using QuantLib::ConjugateGradient;
using QuantLib::Simplex;
using QuantLib::SteepestDescent;
using QuantLib::BFGS;
using QuantLib::LevenbergMarquardt;
using QuantLib::DifferentialEvolution;
using QuantLib::SamplerGaussian;
using QuantLib::SamplerLogNormal;
using QuantLib::SamplerMirrorGaussian;
using QuantLib::ProbabilityBoltzmannDownhill;
using QuantLib::TemperatureExponential;
using QuantLib::ReannealingTrivial;
using QuantLib::GaussianSimulatedAnnealing;
using QuantLib::MirrorGaussianSimulatedAnnealing;
using QuantLib::LogNormalSimulatedAnnealing;



using QuantLib::Problem;


    class Optimizer {};

SWIGINTERN Array Optimizer_solve(Optimizer *self,PyObject *function,Constraint &c,OptimizationMethod &m,EndCriteria &e,Array &iv){
        PyCostFunction f(function);
        Problem p(f,c,iv);
        m.minimize(p, e);
        return p.currentValue();
    }

using QuantLib::VolatilityType;
using QuantLib::ShiftedLognormal;
using QuantLib::Normal;


using QuantLib::BlackVolTermStructure;
using QuantLib::LocalVolTermStructure;
using QuantLib::OptionletVolatilityStructure;
using QuantLib::SwaptionVolatilityStructure;

SWIGINTERN bool boost_shared_ptr_Sl_BlackVolTermStructure_Sg____nonzero__(boost::shared_ptr< BlackVolTermStructure > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_BlackVolTermStructure_Sg____bool__(boost::shared_ptr< BlackVolTermStructure > *self){
                return !!(*self);
            }
SWIGINTERN boost::shared_ptr< Observable > boost_shared_ptr_Sl_BlackVolTermStructure_Sg__asObservable(boost::shared_ptr< BlackVolTermStructure > *self){
        return boost::shared_ptr<Observable>(*self);
    }
SWIGINTERN bool Handle_Sl_BlackVolTermStructure_Sg____nonzero__(Handle< BlackVolTermStructure > *self){
            return !self->empty();
        }
SWIGINTERN bool Handle_Sl_BlackVolTermStructure_Sg____bool__(Handle< BlackVolTermStructure > *self){
            return !self->empty();
        }
SWIGINTERN boost::shared_ptr< Observable > Handle_Sl_BlackVolTermStructure_Sg__asObservable(Handle< BlackVolTermStructure > *self){
        return boost::shared_ptr<Observable>(*self);
    }
SWIGINTERN bool boost_shared_ptr_Sl_LocalVolTermStructure_Sg____nonzero__(boost::shared_ptr< LocalVolTermStructure > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_LocalVolTermStructure_Sg____bool__(boost::shared_ptr< LocalVolTermStructure > *self){
                return !!(*self);
            }
SWIGINTERN boost::shared_ptr< Observable > boost_shared_ptr_Sl_LocalVolTermStructure_Sg__asObservable(boost::shared_ptr< LocalVolTermStructure > *self){
        return boost::shared_ptr<Observable>(*self);
    }
SWIGINTERN bool Handle_Sl_LocalVolTermStructure_Sg____nonzero__(Handle< LocalVolTermStructure > *self){
            return !self->empty();
        }
SWIGINTERN bool Handle_Sl_LocalVolTermStructure_Sg____bool__(Handle< LocalVolTermStructure > *self){
            return !self->empty();
        }
SWIGINTERN boost::shared_ptr< Observable > Handle_Sl_LocalVolTermStructure_Sg__asObservable(Handle< LocalVolTermStructure > *self){
        return boost::shared_ptr<Observable>(*self);
    }
SWIGINTERN bool boost_shared_ptr_Sl_OptionletVolatilityStructure_Sg____nonzero__(boost::shared_ptr< OptionletVolatilityStructure > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_OptionletVolatilityStructure_Sg____bool__(boost::shared_ptr< OptionletVolatilityStructure > *self){
                return !!(*self);
            }
SWIGINTERN boost::shared_ptr< Observable > boost_shared_ptr_Sl_OptionletVolatilityStructure_Sg__asObservable(boost::shared_ptr< OptionletVolatilityStructure > *self){
        return boost::shared_ptr<Observable>(*self);
    }
SWIGINTERN bool Handle_Sl_OptionletVolatilityStructure_Sg____nonzero__(Handle< OptionletVolatilityStructure > *self){
            return !self->empty();
        }
SWIGINTERN bool Handle_Sl_OptionletVolatilityStructure_Sg____bool__(Handle< OptionletVolatilityStructure > *self){
            return !self->empty();
        }
SWIGINTERN boost::shared_ptr< Observable > Handle_Sl_OptionletVolatilityStructure_Sg__asObservable(Handle< OptionletVolatilityStructure > *self){
        return boost::shared_ptr<Observable>(*self);
    }

using QuantLib::SwaptionVolatilityStructure;

SWIGINTERN bool boost_shared_ptr_Sl_SwaptionVolatilityStructure_Sg____nonzero__(boost::shared_ptr< SwaptionVolatilityStructure > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_SwaptionVolatilityStructure_Sg____bool__(boost::shared_ptr< SwaptionVolatilityStructure > *self){
                return !!(*self);
            }
SWIGINTERN boost::shared_ptr< Observable > boost_shared_ptr_Sl_SwaptionVolatilityStructure_Sg__asObservable(boost::shared_ptr< SwaptionVolatilityStructure > *self){
        return boost::shared_ptr<Observable>(*self);
    }
SWIGINTERN bool Handle_Sl_SwaptionVolatilityStructure_Sg____nonzero__(Handle< SwaptionVolatilityStructure > *self){
            return !self->empty();
        }
SWIGINTERN bool Handle_Sl_SwaptionVolatilityStructure_Sg____bool__(Handle< SwaptionVolatilityStructure > *self){
            return !self->empty();
        }
SWIGINTERN boost::shared_ptr< Observable > Handle_Sl_SwaptionVolatilityStructure_Sg__asObservable(Handle< SwaptionVolatilityStructure > *self){
        return boost::shared_ptr<Observable>(*self);
    }

using QuantLib::BlackConstantVol;
typedef boost::shared_ptr<BlackVolTermStructure> BlackConstantVolPtr;

SWIGINTERN BlackConstantVolPtr *new_BlackConstantVolPtr__SWIG_0(Date const &referenceDate,Calendar const &c,Volatility volatility,DayCounter const &dayCounter){
            return new BlackConstantVolPtr(
                new BlackConstantVol(referenceDate, c,
                                     volatility, dayCounter));
        }
SWIGINTERN BlackConstantVolPtr *new_BlackConstantVolPtr__SWIG_1(Date const &referenceDate,Calendar const &c,Handle< Quote > const &volatility,DayCounter const &dayCounter){
            return new BlackConstantVolPtr(
                new BlackConstantVol(referenceDate, c,
                                     volatility, dayCounter));
        }
SWIGINTERN BlackConstantVolPtr *new_BlackConstantVolPtr__SWIG_2(Natural settlementDays,Calendar const &calendar,Volatility volatility,DayCounter const &dayCounter){
            return new BlackConstantVolPtr(
                new BlackConstantVol(settlementDays, calendar,
                                     volatility, dayCounter));
        }
SWIGINTERN BlackConstantVolPtr *new_BlackConstantVolPtr__SWIG_3(Natural settlementDays,Calendar const &calendar,Handle< Quote > const &volatility,DayCounter const &dayCounter){
            return new BlackConstantVolPtr(
                new BlackConstantVol(settlementDays, calendar,
                                     volatility, dayCounter));
        }

using QuantLib::BlackVarianceCurve;
typedef boost::shared_ptr<BlackVolTermStructure> BlackVarianceCurvePtr;

SWIGINTERN BlackVarianceCurvePtr *new_BlackVarianceCurvePtr__SWIG_0(Date const &referenceDate,std::vector< Date,std::allocator< Date > > const &dates,std::vector< Real,std::allocator< Real > > const &volatilities,DayCounter const &dayCounter,bool forceMonotoneVariance=true){
            return new BlackVarianceCurvePtr(
                new BlackVarianceCurve(referenceDate,
                                       dates, volatilities,
                                       dayCounter, forceMonotoneVariance));
        }

using QuantLib::BlackVarianceSurface;
typedef boost::shared_ptr<BlackVolTermStructure> BlackVarianceSurfacePtr;

SWIGINTERN BlackVarianceSurfacePtr *new_BlackVarianceSurfacePtr(Date const &referenceDate,Calendar const &cal,std::vector< Date,std::allocator< Date > > const &dates,std::vector< Real,std::allocator< Real > > const &strikes,Matrix const &blackVols,DayCounter const &dayCounter,BlackVarianceSurface::Extrapolation lower=BlackVarianceSurface::InterpolatorDefaultExtrapolation,BlackVarianceSurface::Extrapolation upper=BlackVarianceSurface::InterpolatorDefaultExtrapolation,std::string const &interpolator=""){
            BlackVarianceSurface* surf =
                new BlackVarianceSurface(referenceDate,cal,
                                         dates,strikes,
                                         blackVols,dayCounter,lower,upper);
            std::string s = boost::algorithm::to_lower_copy(interpolator);
            if (s == "" || s == "bilinear") {
                surf->setInterpolation<QuantLib::Bilinear>();
            } else if (s == "bicubic") {
                surf->setInterpolation<QuantLib::Bicubic>();
            } else {
                QL_FAIL("Unknown interpolator: " << interpolator);
            }
            return new BlackVarianceSurfacePtr(surf);
        }
SWIGINTERN void BlackVarianceSurfacePtr_setInterpolation__SWIG_0(BlackVarianceSurfacePtr *self,std::string const &interpolator=""){
            std::string s = boost::algorithm::to_lower_copy(interpolator);
            boost::shared_ptr<BlackVarianceSurface> surf =
                boost::dynamic_pointer_cast<BlackVarianceSurface>(*self);
            if (s == "" || s == "bilinear") {
                surf->setInterpolation<QuantLib::Bilinear>();
            } else if (s == "bicubic") {
                surf->setInterpolation<QuantLib::Bicubic>();
            } else {
                QL_FAIL("Unknown interpolator: " << interpolator);
            }
            
        }

using QuantLib::LocalConstantVol;
typedef boost::shared_ptr<LocalVolTermStructure> LocalConstantVolPtr;

SWIGINTERN LocalConstantVolPtr *new_LocalConstantVolPtr__SWIG_0(Date const &referenceDate,Volatility volatility,DayCounter const &dayCounter){
            return new LocalConstantVolPtr(
                new LocalConstantVol(referenceDate, volatility, dayCounter));
        }
SWIGINTERN LocalConstantVolPtr *new_LocalConstantVolPtr__SWIG_1(Date const &referenceDate,Handle< Quote > const &volatility,DayCounter const &dayCounter){
            return new LocalConstantVolPtr(
                new LocalConstantVol(referenceDate, volatility, dayCounter));
        }
SWIGINTERN LocalConstantVolPtr *new_LocalConstantVolPtr__SWIG_2(Integer settlementDays,Calendar const &calendar,Volatility volatility,DayCounter const &dayCounter){
            return new LocalConstantVolPtr(
                new LocalConstantVol(settlementDays, calendar,
                                     volatility, dayCounter));
        }
SWIGINTERN LocalConstantVolPtr *new_LocalConstantVolPtr__SWIG_3(Integer settlementDays,Calendar const &calendar,Handle< Quote > const &volatility,DayCounter const &dayCounter){
            return new LocalConstantVolPtr(
                new LocalConstantVol(settlementDays, calendar,
                                     volatility, dayCounter));
        }

using QuantLib::LocalVolSurface;
typedef boost::shared_ptr<LocalVolTermStructure> LocalVolSurfacePtr;

SWIGINTERN LocalVolSurfacePtr *new_LocalVolSurfacePtr__SWIG_0(Handle< BlackVolTermStructure > const &blackTS,Handle< YieldTermStructure > const &riskFreeTS,Handle< YieldTermStructure > const &dividendTS,Handle< Quote > const &underlying){
            return new LocalVolSurfacePtr(
                new LocalVolSurface(blackTS, riskFreeTS, 
                    dividendTS, underlying));
        
        }
SWIGINTERN LocalVolSurfacePtr *new_LocalVolSurfacePtr__SWIG_1(Handle< BlackVolTermStructure > const &blackTS,Handle< YieldTermStructure > const &riskFreeTS,Handle< YieldTermStructure > const &dividendTS,Real underlying){
            return new LocalVolSurfacePtr(
                new LocalVolSurface(blackTS, riskFreeTS, 
                    dividendTS, underlying));
        }

using QuantLib::ConstantOptionletVolatility;
typedef boost::shared_ptr<OptionletVolatilityStructure>
    ConstantOptionletVolatilityPtr;

SWIGINTERN ConstantOptionletVolatilityPtr *new_ConstantOptionletVolatilityPtr__SWIG_0(Date const &referenceDate,Calendar const &cal,BusinessDayConvention bdc,Volatility volatility,DayCounter const &dayCounter,VolatilityType const type=ShiftedLognormal,Real const shift=0.0){
            return new ConstantOptionletVolatilityPtr(
                new ConstantOptionletVolatility(referenceDate,
                                                cal, bdc, volatility,
                                                dayCounter, type, shift));
        }
SWIGINTERN ConstantOptionletVolatilityPtr *new_ConstantOptionletVolatilityPtr__SWIG_3(Date const &referenceDate,Calendar const &cal,BusinessDayConvention bdc,Handle< Quote > const &volatility,DayCounter const &dayCounter,VolatilityType const type=ShiftedLognormal,Real const shift=0.0){
            return new ConstantOptionletVolatilityPtr(
                new ConstantOptionletVolatility(referenceDate,
                                                cal, bdc, volatility,
                                                dayCounter, type, shift));
        }
SWIGINTERN ConstantOptionletVolatilityPtr *new_ConstantOptionletVolatilityPtr__SWIG_6(Natural settlementDays,Calendar const &cal,BusinessDayConvention bdc,Volatility volatility,DayCounter const &dayCounter,VolatilityType const type=ShiftedLognormal,Real const shift=0.0){
            return new ConstantOptionletVolatilityPtr(
                new ConstantOptionletVolatility(settlementDays,
                                                cal, bdc, volatility,
                                                dayCounter, type, shift));
        }
SWIGINTERN ConstantOptionletVolatilityPtr *new_ConstantOptionletVolatilityPtr__SWIG_9(Natural settlementDays,Calendar const &cal,BusinessDayConvention bdc,Handle< Quote > const &volatility,DayCounter const &dayCounter,VolatilityType const type=ShiftedLognormal,Real const shift=0.0){
            return new ConstantOptionletVolatilityPtr(
                new ConstantOptionletVolatility(settlementDays,
                                                cal, bdc, volatility,
                                                dayCounter, type, shift));
        }

using QuantLib::ConstantSwaptionVolatility;
typedef boost::shared_ptr<SwaptionVolatilityStructure>
    ConstantSwaptionVolatilityPtr;

SWIGINTERN ConstantSwaptionVolatilityPtr *new_ConstantSwaptionVolatilityPtr__SWIG_0(Natural settlementDays,Calendar const &cal,BusinessDayConvention bdc,Handle< Quote > const &volatility,DayCounter const &dc,VolatilityType const type=ShiftedLognormal,Real const shift=0.0){
            return new ConstantSwaptionVolatilityPtr(
                new ConstantSwaptionVolatility(settlementDays, cal, bdc,
                                               volatility, dc, type, shift));
        }
SWIGINTERN ConstantSwaptionVolatilityPtr *new_ConstantSwaptionVolatilityPtr__SWIG_3(Date const &referenceDate,Calendar const &cal,BusinessDayConvention bdc,Handle< Quote > const &volatility,DayCounter const &dc,VolatilityType const type=ShiftedLognormal,Real const shift=0.0){
            return new ConstantSwaptionVolatilityPtr(
                new ConstantSwaptionVolatility(referenceDate, cal, bdc,
                                               volatility, dc, type, shift));
        }
SWIGINTERN ConstantSwaptionVolatilityPtr *new_ConstantSwaptionVolatilityPtr__SWIG_6(Natural settlementDays,Calendar const &cal,BusinessDayConvention bdc,Volatility volatility,DayCounter const &dc,VolatilityType const type=ShiftedLognormal,Real const shift=0.0){
            return new ConstantSwaptionVolatilityPtr(
                new ConstantSwaptionVolatility(settlementDays, cal, bdc,
                                               volatility, dc, type, shift));
        }
SWIGINTERN ConstantSwaptionVolatilityPtr *new_ConstantSwaptionVolatilityPtr__SWIG_9(Date const &referenceDate,Calendar const &cal,BusinessDayConvention bdc,Volatility volatility,DayCounter const &dc,VolatilityType const type=ShiftedLognormal,Real const shift=0.0){
            return new ConstantSwaptionVolatilityPtr(
                new ConstantSwaptionVolatility(referenceDate, cal, bdc,
                                               volatility, dc, type, shift));
        }

using QuantLib::SwaptionVolatilityMatrix;
typedef boost::shared_ptr<SwaptionVolatilityStructure>
    SwaptionVolatilityMatrixPtr;

SWIGINTERN SwaptionVolatilityMatrixPtr *new_SwaptionVolatilityMatrixPtr__SWIG_0(Date const &referenceDate,std::vector< Date,std::allocator< Date > > const &dates,std::vector< Period,std::allocator< Period > > const &lengths,Matrix const &vols,DayCounter const &dayCounter,bool const flatExtrapolation=false,VolatilityType const type=ShiftedLognormal,Matrix const &shifts=Matrix()){
            return new SwaptionVolatilityMatrixPtr(
                new SwaptionVolatilityMatrix(referenceDate,dates,lengths,
                                             vols,dayCounter,
                                             flatExtrapolation, type, shifts));
        }
SWIGINTERN SwaptionVolatilityMatrixPtr *new_SwaptionVolatilityMatrixPtr__SWIG_4(Calendar const &calendar,BusinessDayConvention bdc,std::vector< Period,std::allocator< Period > > const &optionTenors,std::vector< Period,std::allocator< Period > > const &swapTenors,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &vols,DayCounter const &dayCounter,bool const flatExtrapolation=false,VolatilityType const type=ShiftedLognormal,std::vector< std::vector< Real,std::allocator< Real > >,std::allocator< std::vector< Real,std::allocator< Real > > > > const &shifts=std::vector< std::vector< Real > >()){
            return new SwaptionVolatilityMatrixPtr(
                new SwaptionVolatilityMatrix(calendar,bdc,optionTenors,
                                             swapTenors,vols,dayCounter,
                                             flatExtrapolation, type, shifts));
        }
SWIGINTERN SwaptionVolatilityMatrixPtr *new_SwaptionVolatilityMatrixPtr__SWIG_8(Calendar const &calendar,BusinessDayConvention bdc,std::vector< Period,std::allocator< Period > > const &optionTenors,std::vector< Period,std::allocator< Period > > const &swapTenors,Matrix const &vols,DayCounter const &dayCounter,bool const flatExtrapolation=false,VolatilityType const type=ShiftedLognormal,Matrix const &shifts=Matrix()){
            return new SwaptionVolatilityMatrixPtr(
                new SwaptionVolatilityMatrix(calendar,bdc,optionTenors,
                                             swapTenors,vols,dayCounter,
                                             flatExtrapolation, type, shifts));
        }

using QuantLib::SwaptionVolCube1;
using QuantLib::SwaptionVolCube2;
typedef boost::shared_ptr<SwaptionVolatilityStructure> SwaptionVolCube1Ptr;
typedef boost::shared_ptr<SwaptionVolatilityStructure> SwaptionVolCube2Ptr;

SWIGINTERN SwaptionVolCube1Ptr *new_SwaptionVolCube1Ptr__SWIG_0(Handle< SwaptionVolatilityStructure > const &atmVolStructure,std::vector< Period,std::allocator< Period > > const &optionTenors,std::vector< Period,std::allocator< Period > > const &swapTenors,std::vector< Spread,std::allocator< Spread > > const &strikeSpreads,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &volSpreads,SwapIndexPtr const &swapIndexBase,SwapIndexPtr const &shortSwapIndexBase,bool vegaWeightedSmileFit,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &parametersGuess,std::vector< bool,std::allocator< bool > > const &isParameterFixed,bool isAtmCalibrated,boost::shared_ptr< EndCriteria > const &endCriteria=boost::shared_ptr< EndCriteria >(),Real maxErrorTolerance=Null< Real >(),boost::shared_ptr< OptimizationMethod > const &optMethod=boost::shared_ptr< OptimizationMethod >()){
            const boost::shared_ptr<SwapIndex> swi =
                boost::dynamic_pointer_cast<SwapIndex>(swapIndexBase);
            const boost::shared_ptr<SwapIndex> shortSwi =
                boost::dynamic_pointer_cast<SwapIndex>(shortSwapIndexBase);
            return new SwaptionVolCube1Ptr(
                new SwaptionVolCube1(
                    atmVolStructure,optionTenors,swapTenors, strikeSpreads,
                    volSpreads, swi, shortSwi, vegaWeightedSmileFit,
                    parametersGuess,isParameterFixed,isAtmCalibrated,
                    endCriteria,maxErrorTolerance,optMethod));
        }
SWIGINTERN Matrix SwaptionVolCube1Ptr_sparseSabrParameters(SwaptionVolCube1Ptr const *self){
            return boost::dynamic_pointer_cast<SwaptionVolCube1>(*self)
                ->sparseSabrParameters();
        }
SWIGINTERN Matrix SwaptionVolCube1Ptr_denseSabrParameters(SwaptionVolCube1Ptr const *self){
            return boost::dynamic_pointer_cast<SwaptionVolCube1>(*self)
                ->denseSabrParameters();
        }
SWIGINTERN Matrix SwaptionVolCube1Ptr_marketVolCube(SwaptionVolCube1Ptr const *self){
            return boost::dynamic_pointer_cast<SwaptionVolCube1>(*self)
                ->marketVolCube();
        }
SWIGINTERN Matrix SwaptionVolCube1Ptr_volCubeAtmCalibrated(SwaptionVolCube1Ptr const *self){
            return boost::dynamic_pointer_cast<SwaptionVolCube1>(*self)
                ->volCubeAtmCalibrated();
        }
SWIGINTERN SwaptionVolCube2Ptr *new_SwaptionVolCube2Ptr(Handle< SwaptionVolatilityStructure > const &atmVolStructure,std::vector< Period,std::allocator< Period > > const &optionTenors,std::vector< Period,std::allocator< Period > > const &swapTenors,std::vector< Spread,std::allocator< Spread > > const &strikeSpreads,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &volSpreads,SwapIndexPtr const &swapIndexBase,SwapIndexPtr const &shortSwapIndexBase,bool vegaWeightedSmileFit){
            const boost::shared_ptr<SwapIndex> swi =
                boost::dynamic_pointer_cast<SwapIndex>(swapIndexBase);
            const boost::shared_ptr<SwapIndex> shortSwi =
                boost::dynamic_pointer_cast<SwapIndex>(shortSwapIndexBase);
            return new SwaptionVolCube2Ptr(
                new SwaptionVolCube2(
                    atmVolStructure,optionTenors,swapTenors,strikeSpreads,
                    volSpreads, swi, shortSwi, vegaWeightedSmileFit));
        }

using QuantLib::StochasticProcess;

SWIGINTERN bool boost_shared_ptr_Sl_StochasticProcess_Sg____nonzero__(boost::shared_ptr< StochasticProcess > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_StochasticProcess_Sg____bool__(boost::shared_ptr< StochasticProcess > *self){
                return !!(*self);
            }
SWIGINTERN boost::shared_ptr< Observable > boost_shared_ptr_Sl_StochasticProcess_Sg__asObservable(boost::shared_ptr< StochasticProcess > *self){
        return boost::shared_ptr<Observable>(*self);
    }

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


      namespace swig {
	template <>  struct traits<std::vector< boost::shared_ptr< StochasticProcess >, std::allocator< boost::shared_ptr< StochasticProcess > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "boost::shared_ptr< StochasticProcess >" "," "std::allocator< boost::shared_ptr< StochasticProcess > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg__iterator(std::vector< boost::shared_ptr< StochasticProcess > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____nonzero__(std::vector< boost::shared_ptr< StochasticProcess > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____bool__(std::vector< boost::shared_ptr< StochasticProcess > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< boost::shared_ptr< StochasticProcess > >::size_type std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____len__(std::vector< boost::shared_ptr< StochasticProcess > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > *std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____getslice__(std::vector< boost::shared_ptr< StochasticProcess > > *self,std::vector< boost::shared_ptr< StochasticProcess > >::difference_type i,std::vector< boost::shared_ptr< StochasticProcess > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____setslice____SWIG_0(std::vector< boost::shared_ptr< StochasticProcess > > *self,std::vector< boost::shared_ptr< StochasticProcess > >::difference_type i,std::vector< boost::shared_ptr< StochasticProcess > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >());
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____setslice____SWIG_1(std::vector< boost::shared_ptr< StochasticProcess > > *self,std::vector< boost::shared_ptr< StochasticProcess > >::difference_type i,std::vector< boost::shared_ptr< StochasticProcess > >::difference_type j,std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____delslice__(std::vector< boost::shared_ptr< StochasticProcess > > *self,std::vector< boost::shared_ptr< StochasticProcess > >::difference_type i,std::vector< boost::shared_ptr< StochasticProcess > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____delitem____SWIG_0(std::vector< boost::shared_ptr< StochasticProcess > > *self,std::vector< boost::shared_ptr< StochasticProcess > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > *std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____getitem____SWIG_0(std::vector< boost::shared_ptr< StochasticProcess > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >::difference_type id = i;
      std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____setitem____SWIG_0(std::vector< boost::shared_ptr< StochasticProcess > > *self,PySliceObject *slice,std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >::difference_type id = i;
      std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____setitem____SWIG_1(std::vector< boost::shared_ptr< StochasticProcess > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >::difference_type id = i;
      std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____delitem____SWIG_1(std::vector< boost::shared_ptr< StochasticProcess > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >::difference_type id = i;
      std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____getitem____SWIG_1(std::vector< boost::shared_ptr< StochasticProcess > > const *self,std::vector< boost::shared_ptr< StochasticProcess > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____setitem____SWIG_2(std::vector< boost::shared_ptr< StochasticProcess > > *self,std::vector< boost::shared_ptr< StochasticProcess > >::difference_type i,std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< boost::shared_ptr< StochasticProcess > >::value_type std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg__pop(std::vector< boost::shared_ptr< StochasticProcess > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg__append(std::vector< boost::shared_ptr< StochasticProcess > > *self,std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< boost::shared_ptr< StochasticProcess > >::iterator std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg__erase__SWIG_0(std::vector< boost::shared_ptr< StochasticProcess > > *self,std::vector< boost::shared_ptr< StochasticProcess > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< boost::shared_ptr< StochasticProcess > >::iterator std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg__erase__SWIG_1(std::vector< boost::shared_ptr< StochasticProcess > > *self,std::vector< boost::shared_ptr< StochasticProcess > >::iterator first,std::vector< boost::shared_ptr< StochasticProcess > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< boost::shared_ptr< StochasticProcess > >::iterator std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg__insert__SWIG_0(std::vector< boost::shared_ptr< StochasticProcess > > *self,std::vector< boost::shared_ptr< StochasticProcess > >::iterator pos,std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg__insert__SWIG_1(std::vector< boost::shared_ptr< StochasticProcess > > *self,std::vector< boost::shared_ptr< StochasticProcess > >::iterator pos,std::vector< boost::shared_ptr< StochasticProcess > >::size_type n,std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &x){ self->insert(pos, n, x); }

using QuantLib::StochasticProcess1D;
typedef boost::shared_ptr<StochasticProcess> StochasticProcess1DPtr;

SWIGINTERN Real StochasticProcess1DPtr_x0(StochasticProcess1DPtr *self){
          return boost::dynamic_pointer_cast<StochasticProcess1D>(*self)->x0();
      }
SWIGINTERN Real StochasticProcess1DPtr_drift(StochasticProcess1DPtr *self,Time t,Real x){
          return boost::dynamic_pointer_cast<StochasticProcess1D>(*self)
              ->drift(t, x);
      }
SWIGINTERN Real StochasticProcess1DPtr_diffusion(StochasticProcess1DPtr *self,Time t,Real x){
          return boost::dynamic_pointer_cast<StochasticProcess1D>(*self)
              ->diffusion(t, x);
      }
SWIGINTERN Real StochasticProcess1DPtr_expectation(StochasticProcess1DPtr *self,Time t0,Real x0,Time dt){
          return boost::dynamic_pointer_cast<StochasticProcess1D>(*self)
              ->expectation(t0, x0, dt);
      }
SWIGINTERN Real StochasticProcess1DPtr_stdDeviation(StochasticProcess1DPtr *self,Time t0,Real x0,Time dt){
          return boost::dynamic_pointer_cast<StochasticProcess1D>(*self)
              ->stdDeviation(t0, x0, dt);
      }
SWIGINTERN Real StochasticProcess1DPtr_variance(StochasticProcess1DPtr *self,Time t0,Real x0,Time dt){
          return boost::dynamic_pointer_cast<StochasticProcess1D>(*self)
              ->variance(t0, x0, dt);
      }
SWIGINTERN Real StochasticProcess1DPtr_evolve(StochasticProcess1DPtr *self,Time t0,Real x0,Time dt,Real dw){
          return boost::dynamic_pointer_cast<StochasticProcess1D>(*self)
              ->evolve(t0, x0, dt, dw);
      }
SWIGINTERN Real StochasticProcess1DPtr_apply(StochasticProcess1DPtr *self,Real x0,Real dx){
          return boost::dynamic_pointer_cast<StochasticProcess1D>(*self)
              ->apply(x0, dx);
      }

using QuantLib::GeneralizedBlackScholesProcess;
typedef boost::shared_ptr<StochasticProcess> GeneralizedBlackScholesProcessPtr;

SWIGINTERN GeneralizedBlackScholesProcessPtr *new_GeneralizedBlackScholesProcessPtr(Handle< Quote > const &s0,Handle< YieldTermStructure > const &dividendTS,Handle< YieldTermStructure > const &riskFreeTS,Handle< BlackVolTermStructure > const &volTS){
          return new GeneralizedBlackScholesProcessPtr(
                       new GeneralizedBlackScholesProcess(s0, dividendTS,
                                                          riskFreeTS, volTS));
      }
SWIGINTERN Handle< Quote > GeneralizedBlackScholesProcessPtr_stateVariable(GeneralizedBlackScholesProcessPtr *self){
          return boost::dynamic_pointer_cast<
                      GeneralizedBlackScholesProcess>(*self)->stateVariable();
      }
SWIGINTERN Handle< YieldTermStructure > GeneralizedBlackScholesProcessPtr_dividendYield(GeneralizedBlackScholesProcessPtr *self){
          return boost::dynamic_pointer_cast<
                      GeneralizedBlackScholesProcess>(*self)->dividendYield();
      }
SWIGINTERN Handle< YieldTermStructure > GeneralizedBlackScholesProcessPtr_riskFreeRate(GeneralizedBlackScholesProcessPtr *self){
          return boost::dynamic_pointer_cast<
                      GeneralizedBlackScholesProcess>(*self)->riskFreeRate();
      }
SWIGINTERN Handle< BlackVolTermStructure > GeneralizedBlackScholesProcessPtr_blackVolatility(GeneralizedBlackScholesProcessPtr const *self){
          return boost::dynamic_pointer_cast<
                      GeneralizedBlackScholesProcess>(*self)->blackVolatility();
      }

using QuantLib::BlackScholesProcess;
typedef boost::shared_ptr<StochasticProcess> BlackScholesProcessPtr;

SWIGINTERN BlackScholesProcessPtr *new_BlackScholesProcessPtr(Handle< Quote > const &s0,Handle< YieldTermStructure > const &riskFreeTS,Handle< BlackVolTermStructure > const &volTS){
          return new BlackScholesProcessPtr(
                            new BlackScholesProcess(s0, riskFreeTS, volTS));
      }

using QuantLib::BlackScholesMertonProcess;
typedef boost::shared_ptr<StochasticProcess> BlackScholesMertonProcessPtr;

SWIGINTERN BlackScholesMertonProcessPtr *new_BlackScholesMertonProcessPtr(Handle< Quote > const &s0,Handle< YieldTermStructure > const &dividendTS,Handle< YieldTermStructure > const &riskFreeTS,Handle< BlackVolTermStructure > const &volTS){
          return new BlackScholesMertonProcessPtr(
                            new BlackScholesMertonProcess(s0, dividendTS,
                                                          riskFreeTS, volTS));
      }

using QuantLib::BlackProcess;
typedef boost::shared_ptr<StochasticProcess> BlackProcessPtr;

SWIGINTERN BlackProcessPtr *new_BlackProcessPtr(Handle< Quote > const &s0,Handle< YieldTermStructure > const &riskFreeTS,Handle< BlackVolTermStructure > const &volTS){
          return new BlackProcessPtr(new BlackProcess(s0, riskFreeTS, volTS));
      }

using QuantLib::GarmanKohlagenProcess;
typedef boost::shared_ptr<StochasticProcess> GarmanKohlagenProcessPtr;

SWIGINTERN GarmanKohlagenProcessPtr *new_GarmanKohlagenProcessPtr(Handle< Quote > const &s0,Handle< YieldTermStructure > const &foreignRiskFreeTS,Handle< YieldTermStructure > const &domesticRiskFreeTS,Handle< BlackVolTermStructure > const &volTS){
          return new GarmanKohlagenProcessPtr(
                        new GarmanKohlagenProcess(s0, foreignRiskFreeTS,
                                                  domesticRiskFreeTS, volTS));
      }

using QuantLib::Merton76Process;
typedef boost::shared_ptr<StochasticProcess> Merton76ProcessPtr;

SWIGINTERN Merton76ProcessPtr *new_Merton76ProcessPtr(Handle< Quote > const &stateVariable,Handle< YieldTermStructure > const &dividendTS,Handle< YieldTermStructure > const &riskFreeTS,Handle< BlackVolTermStructure > const &volTS,Handle< Quote > const &jumpIntensity,Handle< Quote > const &meanLogJump,Handle< Quote > const &jumpVolatility){
            return new Merton76ProcessPtr(
                              new Merton76Process(stateVariable, dividendTS,
                                                  riskFreeTS, volTS,
                                                  jumpIntensity, meanLogJump,
                                                  jumpVolatility));
      }

using QuantLib::StochasticProcessArray;
typedef boost::shared_ptr<StochasticProcess> StochasticProcessArrayPtr;

SWIGINTERN StochasticProcessArrayPtr *new_StochasticProcessArrayPtr(std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > const &array,Matrix const &correlation){
          std::vector<boost::shared_ptr<StochasticProcess1D> > in_array;
          for (Size j=0; j < array.size(); j++)
              in_array.push_back(
                  boost::dynamic_pointer_cast<StochasticProcess1D>(array[j]));
          return new StochasticProcessArrayPtr(
                           new StochasticProcessArray(in_array, correlation));
      }

using QuantLib::GeometricBrownianMotionProcess;
typedef boost::shared_ptr<StochasticProcess> GeometricBrownianMotionProcessPtr;

SWIGINTERN GeometricBrownianMotionProcessPtr *new_GeometricBrownianMotionProcessPtr(Real initialValue,Real mu,Real sigma){
          return new GeometricBrownianMotionProcessPtr(
                 new GeometricBrownianMotionProcess(initialValue, mu, sigma));
      }

using QuantLib::VarianceGammaProcess;
typedef boost::shared_ptr<StochasticProcess> VarianceGammaProcessPtr;

SWIGINTERN VarianceGammaProcessPtr *new_VarianceGammaProcessPtr(Handle< Quote > const &s0,Handle< YieldTermStructure > const &dividendYield,Handle< YieldTermStructure > const &riskFreeRate,Real sigma,Real nu,Real theta){
          return new VarianceGammaProcessPtr(
                 new VarianceGammaProcess(s0,dividendYield,riskFreeRate,sigma,nu,theta));
      }

using QuantLib::HestonProcess;
typedef boost::shared_ptr<StochasticProcess> HestonProcessPtr;

SWIGINTERN HestonProcessPtr *new_HestonProcessPtr(Handle< YieldTermStructure > const &riskFreeTS,Handle< YieldTermStructure > const &dividendTS,Handle< Quote > const &s0,Real v0,Real kappa,Real theta,Real sigma,Real rho){
		return new HestonProcessPtr(
			new HestonProcess(riskFreeTS, dividendTS, s0, v0, 
						      kappa, theta, sigma, rho));	
      }
SWIGINTERN Handle< Quote > HestonProcessPtr_s0(HestonProcessPtr *self){
          return boost::dynamic_pointer_cast<
                      HestonProcess>(*self)->s0();
      }
SWIGINTERN Handle< YieldTermStructure > HestonProcessPtr_dividendYield(HestonProcessPtr *self){
          return boost::dynamic_pointer_cast<
                      HestonProcess>(*self)->dividendYield();
      }
SWIGINTERN Handle< YieldTermStructure > HestonProcessPtr_riskFreeRate(HestonProcessPtr *self){
          return boost::dynamic_pointer_cast<
                      HestonProcess>(*self)->riskFreeRate();
      }

using QuantLib::BatesProcess;
typedef boost::shared_ptr<StochasticProcess> BatesProcessPtr;

SWIGINTERN BatesProcessPtr *new_BatesProcessPtr(Handle< YieldTermStructure > const &riskFreeRate,Handle< YieldTermStructure > const &dividendYield,Handle< Quote > const &s0,Real v0,Real kappa,Real theta,Real sigma,Real rho,Real lambda,Real nu,Real delta){
		return new BatesProcessPtr(
			new BatesProcess(riskFreeRate, dividendYield, s0, v0, 
							 kappa, theta, sigma, rho, 
							 lambda, nu, delta));
	  }

using QuantLib::HullWhiteProcess;
typedef boost::shared_ptr<StochasticProcess> HullWhiteProcessPtr;

SWIGINTERN HullWhiteProcessPtr *new_HullWhiteProcessPtr(Handle< YieldTermStructure > const &riskFreeTS,Real a,Real sigma){
            return new HullWhiteProcessPtr(new HullWhiteProcess(riskFreeTS, a, sigma));	
        }

using QuantLib::HullWhiteForwardProcess;
typedef boost::shared_ptr<StochasticProcess> HullWhiteForwardProcessPtr;

SWIGINTERN HullWhiteForwardProcessPtr *new_HullWhiteForwardProcessPtr(Handle< YieldTermStructure > const &riskFreeTS,Real a,Real sigma){
            return new HullWhiteForwardProcessPtr(
                new HullWhiteForwardProcess(riskFreeTS, a, sigma));
        }
SWIGINTERN Real HullWhiteForwardProcessPtr_alpha(HullWhiteForwardProcessPtr const *self,Time t){
            return boost::dynamic_pointer_cast<HullWhiteForwardProcess>(*self)      ->alpha(t);
        }
SWIGINTERN Real HullWhiteForwardProcessPtr_M_T(HullWhiteForwardProcessPtr const *self,Real s,Real t,Real T){
            return boost::dynamic_pointer_cast<HullWhiteForwardProcess>(*self)      ->M_T(s, t, T);
        }
SWIGINTERN Real HullWhiteForwardProcessPtr_B(HullWhiteForwardProcessPtr const *self,Time t,Time T){
            return boost::dynamic_pointer_cast<HullWhiteForwardProcess>(*self)      ->B(t, T);
        }
SWIGINTERN void HullWhiteForwardProcessPtr_setForwardMeasureTime(HullWhiteForwardProcessPtr *self,Time t){
            boost::dynamic_pointer_cast<HullWhiteForwardProcess>(*self)             ->setForwardMeasureTime(t);
        }

using QuantLib::GsrProcess;
typedef boost::shared_ptr<StochasticProcess> GsrProcessPtr;

SWIGINTERN GsrProcessPtr *new_GsrProcessPtr__SWIG_0(Array const &times,Array const &vols,Array const &reversions,Real const T=60.0){
            return new GsrProcessPtr(new GsrProcess(times, vols, reversions, T));
        }
SWIGINTERN Real GsrProcessPtr_sigma(GsrProcessPtr *self,Time t){
            return boost::dynamic_pointer_cast<GsrProcess>(*self)->sigma(t);
        }
SWIGINTERN Real GsrProcessPtr_reversion(GsrProcessPtr *self,Time t){
            return boost::dynamic_pointer_cast<GsrProcess>(*self)->reversion(t);
        }
SWIGINTERN Real GsrProcessPtr_y(GsrProcessPtr *self,Time t){
            return boost::dynamic_pointer_cast<GsrProcess>(*self)->y(t);
        }
SWIGINTERN Real GsrProcessPtr_G(GsrProcessPtr *self,Time t,Time T,Real x){
            return boost::dynamic_pointer_cast<GsrProcess>(*self)->G(t, T, x);
        }
SWIGINTERN void GsrProcessPtr_setForwardMeasureTime(GsrProcessPtr *self,Time t){
            boost::dynamic_pointer_cast<GsrProcess>(*self)->setForwardMeasureTime(t);
        }

    GsrProcessPtr as_gsr_process(
                           const boost::shared_ptr<StochasticProcess>& proc) {
        return boost::dynamic_pointer_cast<GsrProcess>(proc);
    }


using QuantLib::PricingEngine;

SWIGINTERN bool boost_shared_ptr_Sl_PricingEngine_Sg____nonzero__(boost::shared_ptr< PricingEngine > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_PricingEngine_Sg____bool__(boost::shared_ptr< PricingEngine > *self){
                return !!(*self);
            }

using QuantLib::Instrument;

SWIGINTERN bool boost_shared_ptr_Sl_Instrument_Sg____nonzero__(boost::shared_ptr< Instrument > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_Instrument_Sg____bool__(boost::shared_ptr< Instrument > *self){
                return !!(*self);
            }
SWIGINTERN boost::shared_ptr< Observable > boost_shared_ptr_Sl_Instrument_Sg__asObservable(boost::shared_ptr< Instrument > *self){
        return boost::shared_ptr<Observable>(*self);
    }

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


      namespace swig {
	template <>  struct traits<std::vector< boost::shared_ptr< Instrument >, std::allocator< boost::shared_ptr< Instrument > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "boost::shared_ptr< Instrument >" "," "std::allocator< boost::shared_ptr< Instrument > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg__iterator(std::vector< boost::shared_ptr< Instrument > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____nonzero__(std::vector< boost::shared_ptr< Instrument > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____bool__(std::vector< boost::shared_ptr< Instrument > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< boost::shared_ptr< Instrument > >::size_type std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____len__(std::vector< boost::shared_ptr< Instrument > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > *std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____getslice__(std::vector< boost::shared_ptr< Instrument > > *self,std::vector< boost::shared_ptr< Instrument > >::difference_type i,std::vector< boost::shared_ptr< Instrument > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____setslice____SWIG_0(std::vector< boost::shared_ptr< Instrument > > *self,std::vector< boost::shared_ptr< Instrument > >::difference_type i,std::vector< boost::shared_ptr< Instrument > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >());
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____setslice____SWIG_1(std::vector< boost::shared_ptr< Instrument > > *self,std::vector< boost::shared_ptr< Instrument > >::difference_type i,std::vector< boost::shared_ptr< Instrument > >::difference_type j,std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____delslice__(std::vector< boost::shared_ptr< Instrument > > *self,std::vector< boost::shared_ptr< Instrument > >::difference_type i,std::vector< boost::shared_ptr< Instrument > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____delitem____SWIG_0(std::vector< boost::shared_ptr< Instrument > > *self,std::vector< boost::shared_ptr< Instrument > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > *std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____getitem____SWIG_0(std::vector< boost::shared_ptr< Instrument > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >::difference_type id = i;
      std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____setitem____SWIG_0(std::vector< boost::shared_ptr< Instrument > > *self,PySliceObject *slice,std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >::difference_type id = i;
      std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____setitem____SWIG_1(std::vector< boost::shared_ptr< Instrument > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >::difference_type id = i;
      std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____delitem____SWIG_1(std::vector< boost::shared_ptr< Instrument > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >::difference_type id = i;
      std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< boost::shared_ptr< Instrument > >::value_type const &std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____getitem____SWIG_1(std::vector< boost::shared_ptr< Instrument > > const *self,std::vector< boost::shared_ptr< Instrument > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____setitem____SWIG_2(std::vector< boost::shared_ptr< Instrument > > *self,std::vector< boost::shared_ptr< Instrument > >::difference_type i,std::vector< boost::shared_ptr< Instrument > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< boost::shared_ptr< Instrument > >::value_type std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg__pop(std::vector< boost::shared_ptr< Instrument > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg__append(std::vector< boost::shared_ptr< Instrument > > *self,std::vector< boost::shared_ptr< Instrument > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< boost::shared_ptr< Instrument > >::iterator std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg__erase__SWIG_0(std::vector< boost::shared_ptr< Instrument > > *self,std::vector< boost::shared_ptr< Instrument > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< boost::shared_ptr< Instrument > >::iterator std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg__erase__SWIG_1(std::vector< boost::shared_ptr< Instrument > > *self,std::vector< boost::shared_ptr< Instrument > >::iterator first,std::vector< boost::shared_ptr< Instrument > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< boost::shared_ptr< Instrument > >::iterator std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg__insert__SWIG_0(std::vector< boost::shared_ptr< Instrument > > *self,std::vector< boost::shared_ptr< Instrument > >::iterator pos,std::vector< boost::shared_ptr< Instrument > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg__insert__SWIG_1(std::vector< boost::shared_ptr< Instrument > > *self,std::vector< boost::shared_ptr< Instrument > >::iterator pos,std::vector< boost::shared_ptr< Instrument > >::size_type n,std::vector< boost::shared_ptr< Instrument > >::value_type const &x){ self->insert(pos, n, x); }

using QuantLib::Stock;
typedef boost::shared_ptr<Instrument> StockPtr;

SWIGINTERN StockPtr *new_StockPtr(Handle< Quote > const &quote){
            return new StockPtr(new Stock(quote));
        }

using QuantLib::CompositeInstrument;
typedef boost::shared_ptr<Instrument> CompositeInstrumentPtr;

SWIGINTERN CompositeInstrumentPtr *new_CompositeInstrumentPtr(){
            return new CompositeInstrumentPtr(new CompositeInstrument);
        }
SWIGINTERN void CompositeInstrumentPtr_add__SWIG_0(CompositeInstrumentPtr *self,boost::shared_ptr< Instrument > const &instrument,Real multiplier=1.0){
            boost::dynamic_pointer_cast<CompositeInstrument>(*self)
                ->add(instrument, multiplier);
        }
SWIGINTERN void CompositeInstrumentPtr_subtract__SWIG_0(CompositeInstrumentPtr *self,boost::shared_ptr< Instrument > const &instrument,Real multiplier=1.0){
            boost::dynamic_pointer_cast<CompositeInstrument>(*self)
                ->subtract(instrument, multiplier);
        }

using QuantLib::Schedule;
using QuantLib::DateGeneration;

SWIGINTERN Date Schedule___getitem__(Schedule *self,Integer i){
            Integer size_ = static_cast<Integer>(self->size());
            if (i>=0 && i<size_) {
                return self->date(i);
            } else if (i<0 && -i<=size_) {
                return self->date(size_+i);
            } else {
                throw std::out_of_range("schedule index out of range");
            }
        }

using QuantLib::CashFlow;

SWIGINTERN bool boost_shared_ptr_Sl_CashFlow_Sg____nonzero__(boost::shared_ptr< CashFlow > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_CashFlow_Sg____bool__(boost::shared_ptr< CashFlow > *self){
                return !!(*self);
            }
SWIGINTERN boost::shared_ptr< Observable > boost_shared_ptr_Sl_CashFlow_Sg__asObservable(boost::shared_ptr< CashFlow > *self){
        return boost::shared_ptr<Observable>(*self);
    }

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


      namespace swig {
	template <>  struct traits<std::vector< boost::shared_ptr< CashFlow >, std::allocator< boost::shared_ptr< CashFlow > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "boost::shared_ptr< CashFlow >" "," "std::allocator< boost::shared_ptr< CashFlow > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg__iterator(std::vector< boost::shared_ptr< CashFlow > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____nonzero__(std::vector< boost::shared_ptr< CashFlow > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____bool__(std::vector< boost::shared_ptr< CashFlow > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< boost::shared_ptr< CashFlow > >::size_type std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____len__(std::vector< boost::shared_ptr< CashFlow > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____getslice__(std::vector< boost::shared_ptr< CashFlow > > *self,std::vector< boost::shared_ptr< CashFlow > >::difference_type i,std::vector< boost::shared_ptr< CashFlow > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____setslice____SWIG_0(std::vector< boost::shared_ptr< CashFlow > > *self,std::vector< boost::shared_ptr< CashFlow > >::difference_type i,std::vector< boost::shared_ptr< CashFlow > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >());
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____setslice____SWIG_1(std::vector< boost::shared_ptr< CashFlow > > *self,std::vector< boost::shared_ptr< CashFlow > >::difference_type i,std::vector< boost::shared_ptr< CashFlow > >::difference_type j,std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____delslice__(std::vector< boost::shared_ptr< CashFlow > > *self,std::vector< boost::shared_ptr< CashFlow > >::difference_type i,std::vector< boost::shared_ptr< CashFlow > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____delitem____SWIG_0(std::vector< boost::shared_ptr< CashFlow > > *self,std::vector< boost::shared_ptr< CashFlow > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____getitem____SWIG_0(std::vector< boost::shared_ptr< CashFlow > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >::difference_type id = i;
      std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____setitem____SWIG_0(std::vector< boost::shared_ptr< CashFlow > > *self,PySliceObject *slice,std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >::difference_type id = i;
      std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____setitem____SWIG_1(std::vector< boost::shared_ptr< CashFlow > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >::difference_type id = i;
      std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____delitem____SWIG_1(std::vector< boost::shared_ptr< CashFlow > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >::difference_type id = i;
      std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< boost::shared_ptr< CashFlow > >::value_type const &std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____getitem____SWIG_1(std::vector< boost::shared_ptr< CashFlow > > const *self,std::vector< boost::shared_ptr< CashFlow > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____setitem____SWIG_2(std::vector< boost::shared_ptr< CashFlow > > *self,std::vector< boost::shared_ptr< CashFlow > >::difference_type i,std::vector< boost::shared_ptr< CashFlow > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< boost::shared_ptr< CashFlow > >::value_type std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg__pop(std::vector< boost::shared_ptr< CashFlow > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg__append(std::vector< boost::shared_ptr< CashFlow > > *self,std::vector< boost::shared_ptr< CashFlow > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< boost::shared_ptr< CashFlow > >::iterator std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg__erase__SWIG_0(std::vector< boost::shared_ptr< CashFlow > > *self,std::vector< boost::shared_ptr< CashFlow > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< boost::shared_ptr< CashFlow > >::iterator std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg__erase__SWIG_1(std::vector< boost::shared_ptr< CashFlow > > *self,std::vector< boost::shared_ptr< CashFlow > >::iterator first,std::vector< boost::shared_ptr< CashFlow > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< boost::shared_ptr< CashFlow > >::iterator std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg__insert__SWIG_0(std::vector< boost::shared_ptr< CashFlow > > *self,std::vector< boost::shared_ptr< CashFlow > >::iterator pos,std::vector< boost::shared_ptr< CashFlow > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg__insert__SWIG_1(std::vector< boost::shared_ptr< CashFlow > > *self,std::vector< boost::shared_ptr< CashFlow > >::iterator pos,std::vector< boost::shared_ptr< CashFlow > >::size_type n,std::vector< boost::shared_ptr< CashFlow > >::value_type const &x){ self->insert(pos, n, x); }

using QuantLib::SimpleCashFlow;
using QuantLib::Redemption;
using QuantLib::AmortizingPayment;
using QuantLib::Coupon;
using QuantLib::FixedRateCoupon;
using QuantLib::IborCoupon;
using QuantLib::Leg;
using QuantLib::FloatingRateCoupon;

typedef boost::shared_ptr<CashFlow> SimpleCashFlowPtr;
typedef boost::shared_ptr<CashFlow> RedemptionPtr;
typedef boost::shared_ptr<CashFlow> AmortizingPaymentPtr;
typedef boost::shared_ptr<CashFlow> CouponPtr;
typedef boost::shared_ptr<CashFlow> IborCouponPtr;
typedef boost::shared_ptr<CashFlow> FixedRateCouponPtr;
typedef boost::shared_ptr<CashFlow> FloatingRateCouponPtr;

SWIGINTERN SimpleCashFlowPtr *new_SimpleCashFlowPtr(Real amount,Date const &date){
            return new SimpleCashFlowPtr(new SimpleCashFlow(amount,date));
        }
SWIGINTERN RedemptionPtr *new_RedemptionPtr(Real amount,Date const &date){
            return new RedemptionPtr(new Redemption(amount,date));
        }
SWIGINTERN AmortizingPaymentPtr *new_AmortizingPaymentPtr(Real amount,Date const &date){
            return new AmortizingPaymentPtr(new AmortizingPayment(amount,date));
        }
SWIGINTERN Real CouponPtr_nominal(CouponPtr *self){
            return boost::dynamic_pointer_cast<Coupon>(*self)->nominal();
        }
SWIGINTERN Date CouponPtr_accrualStartDate(CouponPtr *self){
            return boost::dynamic_pointer_cast<Coupon>(*self)
                ->accrualStartDate();
        }
SWIGINTERN Date CouponPtr_accrualEndDate(CouponPtr *self){
            return boost::dynamic_pointer_cast<Coupon>(*self)
                ->accrualEndDate();
        }
SWIGINTERN Date CouponPtr_referencePeriodStart(CouponPtr *self){
            return boost::dynamic_pointer_cast<Coupon>(*self)
                ->referencePeriodStart();
        }
SWIGINTERN Date CouponPtr_referencePeriodEnd(CouponPtr *self){
            return boost::dynamic_pointer_cast<Coupon>(*self)
                ->referencePeriodEnd();
        }
SWIGINTERN Date CouponPtr_exCouponDate(CouponPtr *self){
            return boost::dynamic_pointer_cast<Coupon>(*self)
                ->exCouponDate();
        }
SWIGINTERN Real CouponPtr_rate(CouponPtr *self){
            return boost::dynamic_pointer_cast<Coupon>(*self)->rate();
        }
SWIGINTERN Time CouponPtr_accrualPeriod(CouponPtr *self){
            return boost::dynamic_pointer_cast<Coupon>(*self)
                ->accrualPeriod();
        }
SWIGINTERN BigInteger CouponPtr_accrualDays(CouponPtr *self){
            return boost::dynamic_pointer_cast<Coupon>(*self)
                ->accrualDays();
        }
SWIGINTERN DayCounter CouponPtr_dayCounter(CouponPtr const *self){
            return boost::dynamic_pointer_cast<Coupon>(*self)
                ->dayCounter();
        }
SWIGINTERN Real CouponPtr_accruedAmount(CouponPtr *self,Date const &date){
            return boost::dynamic_pointer_cast<Coupon>(*self)
                ->accruedAmount(date);
        }

    CouponPtr as_coupon(const boost::shared_ptr<CashFlow>& cf) {
        return boost::dynamic_pointer_cast<Coupon>(cf);
    }

SWIGINTERN FixedRateCouponPtr *new_FixedRateCouponPtr(Date const &paymentDate,Real nominal,Rate rate,DayCounter const &dayCounter,Date const &startDate,Date const &endDate,Date const &refPeriodStart=Date(),Date const &refPeriodEnd=Date(),Date const &exCouponDate=Date()){
            return new FixedRateCouponPtr(
                new FixedRateCoupon(paymentDate, nominal, rate,
                                    dayCounter, startDate, endDate,
                                    refPeriodStart, refPeriodEnd,
                                    exCouponDate));
        }
SWIGINTERN InterestRate FixedRateCouponPtr_interestRate(FixedRateCouponPtr *self){
            return boost::dynamic_pointer_cast<FixedRateCoupon>(*self)
                ->interestRate();
        }

    FixedRateCouponPtr as_fixed_rate_coupon(
                                      const boost::shared_ptr<CashFlow>& cf) {
        return boost::dynamic_pointer_cast<FixedRateCoupon>(cf);
    }


using QuantLib::FloatingRateCouponPricer;

SWIGINTERN bool boost_shared_ptr_Sl_FloatingRateCouponPricer_Sg____nonzero__(boost::shared_ptr< FloatingRateCouponPricer > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_FloatingRateCouponPricer_Sg____bool__(boost::shared_ptr< FloatingRateCouponPricer > *self){
                return !!(*self);
            }
SWIGINTERN Date FloatingRateCouponPtr_fixingDate(FloatingRateCouponPtr *self){
            return boost::dynamic_pointer_cast<FloatingRateCoupon>(*self)
                ->fixingDate();
        }
SWIGINTERN Integer FloatingRateCouponPtr_fixingDays(FloatingRateCouponPtr *self){
            return boost::dynamic_pointer_cast<FloatingRateCoupon>(*self)
                ->fixingDays();
        }
SWIGINTERN bool FloatingRateCouponPtr_isInArrears(FloatingRateCouponPtr *self){
            return boost::dynamic_pointer_cast<FloatingRateCoupon>(*self)
                ->isInArrears();
        }
SWIGINTERN Real FloatingRateCouponPtr_gearing(FloatingRateCouponPtr *self){
            return boost::dynamic_pointer_cast<FloatingRateCoupon>(*self)
                ->gearing();
        }
SWIGINTERN Rate FloatingRateCouponPtr_spread(FloatingRateCouponPtr *self){
            return boost::dynamic_pointer_cast<FloatingRateCoupon>(*self)
                ->spread();
        }
SWIGINTERN Rate FloatingRateCouponPtr_indexFixing(FloatingRateCouponPtr *self){
            return boost::dynamic_pointer_cast<FloatingRateCoupon>(*self)
                ->indexFixing();
        }
SWIGINTERN Rate FloatingRateCouponPtr_adjustedFixing(FloatingRateCouponPtr *self){
            return boost::dynamic_pointer_cast<FloatingRateCoupon>(*self)
                ->adjustedFixing();
        }
SWIGINTERN Rate FloatingRateCouponPtr_convexityAdjustment(FloatingRateCouponPtr *self){
            return boost::dynamic_pointer_cast<FloatingRateCoupon>(*self)
                ->convexityAdjustment();
        }
SWIGINTERN Real FloatingRateCouponPtr_price(FloatingRateCouponPtr *self,Handle< YieldTermStructure > const &discountCurve){
            return boost::dynamic_pointer_cast<FloatingRateCoupon>(*self)
                ->price(discountCurve);
        }
SWIGINTERN InterestRateIndexPtr FloatingRateCouponPtr_index(FloatingRateCouponPtr const *self){
            return boost::dynamic_pointer_cast<FloatingRateCoupon>(*self)
                ->index();
        }
SWIGINTERN void FloatingRateCouponPtr_setPricer(FloatingRateCouponPtr *self,boost::shared_ptr< FloatingRateCouponPricer > const &p){
            boost::dynamic_pointer_cast<FloatingRateCoupon>(*self)
                ->setPricer(p);
        }

    FloatingRateCouponPtr as_floating_rate_coupon(
                                      const boost::shared_ptr<CashFlow>& cf) {
        return boost::dynamic_pointer_cast<FloatingRateCoupon>(cf);
    }


using QuantLib::CappedFlooredCoupon;
typedef boost::shared_ptr<CashFlow> CappedFlooredCouponPtr;

SWIGINTERN CappedFlooredCouponPtr *new_CappedFlooredCouponPtr(FloatingRateCouponPtr const &underlying,Rate cap=Null< Rate >(),Rate floor=Null< Rate >()){
            boost::shared_ptr<FloatingRateCoupon> u =
                boost::dynamic_pointer_cast<FloatingRateCoupon>(underlying);
            return new CappedFlooredCouponPtr(
                new CappedFlooredCoupon(u,cap,floor));
        }
SWIGINTERN Rate CappedFlooredCouponPtr_cap(CappedFlooredCouponPtr *self){
           return boost::dynamic_pointer_cast<CappedFlooredCoupon>(*self)
                ->cap();
        }
SWIGINTERN Rate CappedFlooredCouponPtr_floor(CappedFlooredCouponPtr *self){
           return boost::dynamic_pointer_cast<CappedFlooredCoupon>(*self)
                ->floor();
        }
SWIGINTERN Rate CappedFlooredCouponPtr_effectiveCap(CappedFlooredCouponPtr *self){
           return boost::dynamic_pointer_cast<CappedFlooredCoupon>(*self)
                ->effectiveCap();
        }
SWIGINTERN Rate CappedFlooredCouponPtr_effectiveFloor(CappedFlooredCouponPtr *self){
           return boost::dynamic_pointer_cast<CappedFlooredCoupon>(*self)
                ->effectiveFloor();
        }
SWIGINTERN bool CappedFlooredCouponPtr_isCapped(CappedFlooredCouponPtr *self){
           return boost::dynamic_pointer_cast<CappedFlooredCoupon>(*self)
                ->isCapped();
        }
SWIGINTERN bool CappedFlooredCouponPtr_isFloored(CappedFlooredCouponPtr *self){
           return boost::dynamic_pointer_cast<CappedFlooredCoupon>(*self)
                ->isFloored();
        }
SWIGINTERN void CappedFlooredCouponPtr_setPricer(CappedFlooredCouponPtr *self,boost::shared_ptr< FloatingRateCouponPricer > const &p){
            boost::dynamic_pointer_cast<CappedFlooredCoupon>(*self)
                ->setPricer(p);
        }
SWIGINTERN IborCouponPtr *new_IborCouponPtr(Date const &paymentDate,Real nominal,Date const &startDate,Date const &endDate,Integer fixingDays,InterestRateIndexPtr &index,Real gearing=1.0,Spread spread=0.0,Date const &refPeriodStart=Date(),Date const &refPeriodEnd=Date(),DayCounter const &dayCounter=DayCounter()){
            const boost::shared_ptr<IborIndex> iri =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new IborCouponPtr(
                new IborCoupon(paymentDate, nominal, startDate, endDate,
                               fixingDays, iri, gearing, spread,
                               refPeriodStart, refPeriodEnd, dayCounter));
        }

using QuantLib::IborCouponPricer;
using QuantLib::BlackIborCouponPricer;
typedef boost::shared_ptr<FloatingRateCouponPricer> IborCouponPricerPtr;
typedef boost::shared_ptr<FloatingRateCouponPricer> BlackIborCouponPricerPtr;

SWIGINTERN Handle< OptionletVolatilityStructure > IborCouponPricerPtr_capletVolatility(IborCouponPricerPtr *self){
            return boost::dynamic_pointer_cast<IborCouponPricer>(*self)
                ->capletVolatility();
        }
SWIGINTERN void IborCouponPricerPtr_setCapletVolatility__SWIG_0(IborCouponPricerPtr *self,Handle< OptionletVolatilityStructure > const &v=Handle< OptionletVolatilityStructure >()){
            boost::dynamic_pointer_cast<IborCouponPricer>(*self)
                ->setCapletVolatility(v);
        }
SWIGINTERN BlackIborCouponPricerPtr *new_BlackIborCouponPricerPtr__SWIG_0(Handle< OptionletVolatilityStructure > const &v=Handle< OptionletVolatilityStructure >()){
            return new BlackIborCouponPricerPtr(new BlackIborCouponPricer(v));
        }

using QuantLib::CmsCoupon;
using QuantLib::CappedFlooredCmsCoupon;
typedef boost::shared_ptr<CashFlow> CmsCouponPtr;
typedef boost::shared_ptr<CashFlow> CappedFlooredCmsCouponPtr;

SWIGINTERN CmsCouponPtr *new_CmsCouponPtr(Date const &paymentDate,Real nominal,Date const &startDate,Date const &endDate,Integer fixingDays,SwapIndexPtr const &index,Real gearing=1.0,Spread spread=0.0,Date const &refPeriodStart=Date(),Date const &refPeriodEnd=Date(),DayCounter const &dayCounter=DayCounter(),bool isInArrears=false){
            const boost::shared_ptr<SwapIndex> swi =
                boost::dynamic_pointer_cast<SwapIndex>(index);
            return new CmsCouponPtr(
                new CmsCoupon(paymentDate,nominal,startDate,endDate,
                              fixingDays,swi,gearing,spread,
                              refPeriodStart,refPeriodEnd,
                              dayCounter,isInArrears));
        }

using QuantLib::CmsCouponPricer;
using QuantLib::AnalyticHaganPricer;
using QuantLib::NumericHaganPricer;
using QuantLib::GFunctionFactory;
using QuantLib::LinearTsrPricer;
typedef boost::shared_ptr<FloatingRateCouponPricer> CmsCouponPricerPtr;
typedef boost::shared_ptr<FloatingRateCouponPricer> AnalyticHaganPricerPtr;
typedef boost::shared_ptr<FloatingRateCouponPricer> NumericHaganPricerPtr;
typedef boost::shared_ptr<FloatingRateCouponPricer> LinearTsrPricerPtr;

SWIGINTERN Handle< SwaptionVolatilityStructure > CmsCouponPricerPtr_swaptionVolatility(CmsCouponPricerPtr *self){
            return boost::dynamic_pointer_cast<CmsCouponPricer>(*self)
                ->swaptionVolatility();
        }
SWIGINTERN void CmsCouponPricerPtr_setSwaptionVolatility__SWIG_0(CmsCouponPricerPtr *self,Handle< SwaptionVolatilityStructure > const &v=Handle< SwaptionVolatilityStructure >()){
            boost::dynamic_pointer_cast<CmsCouponPricer>(*self)
                ->setSwaptionVolatility(v);
        }
SWIGINTERN AnalyticHaganPricerPtr *new_AnalyticHaganPricerPtr(Handle< SwaptionVolatilityStructure > const &v,GFunctionFactory::YieldCurveModel model,Handle< Quote > const &meanReversion){
            return new AnalyticHaganPricerPtr(
                            new AnalyticHaganPricer(v, model, meanReversion));
        }
SWIGINTERN NumericHaganPricerPtr *new_NumericHaganPricerPtr__SWIG_0(Handle< SwaptionVolatilityStructure > const &v,GFunctionFactory::YieldCurveModel model,Handle< Quote > const &meanReversion,Rate lowerLimit=0.0,Rate upperLimit=1.0,Real precision=1.0e-6){
             return new NumericHaganPricerPtr(
                 new NumericHaganPricer(v, model, meanReversion,
                                        lowerLimit, upperLimit, precision));
        }
SWIGINTERN CappedFlooredCmsCouponPtr *new_CappedFlooredCmsCouponPtr__SWIG_0(Date const &paymentDate,Real nominal,Date const &startDate,Date const &endDate,Natural fixingDays,SwapIndexPtr const &index,Real gearing=1.0,Spread spread=0.0,Rate const cap=Null< Rate >(),Rate const floor=Null< Rate >(),Date const &refPeriodStart=Date(),Date const &refPeriodEnd=Date(),DayCounter const &dayCounter=DayCounter(),bool isInArrears=false){
            const boost::shared_ptr<SwapIndex> swi =
                boost::dynamic_pointer_cast<SwapIndex>(index);
            return new CappedFlooredCmsCouponPtr(
                new CappedFlooredCmsCoupon(
                      paymentDate, nominal, startDate, endDate, fixingDays,
                      swi, gearing, spread, cap, floor, refPeriodStart,
                      refPeriodEnd, dayCounter, isInArrears));
        }
SWIGINTERN LinearTsrPricerPtr *new_LinearTsrPricerPtr__SWIG_0(Handle< SwaptionVolatilityStructure > const &swaptionVol,Handle< Quote > const &meanReversion,Handle< YieldTermStructure > const &couponDiscountCurve=Handle< YieldTermStructure >(),LinearTsrPricer::Settings const &settings=LinearTsrPricer::Settings()){
            return new LinearTsrPricerPtr(
                          new LinearTsrPricer(swaptionVol, meanReversion,
                                              couponDiscountCurve, settings));
        }

Leg _FixedRateLeg(const Schedule& schedule,
                  const DayCounter& dayCount,
                  const std::vector<Real>& nominals,
                  const std::vector<Rate>& couponRates,
                  BusinessDayConvention paymentAdjustment = Following,
                  const DayCounter& firstPeriodDayCount = DayCounter()) {
    return QuantLib::FixedRateLeg(schedule)
        .withNotionals(nominals)
        .withCouponRates(couponRates,dayCount)
        .withPaymentAdjustment(paymentAdjustment)
        .withFirstPeriodDayCounter(firstPeriodDayCount);
}


Leg _IborLeg(const std::vector<Real>& nominals,
             const Schedule& schedule,
             const boost::shared_ptr<Index>& index,
             const DayCounter& paymentDayCounter = DayCounter(),
             const BusinessDayConvention paymentConvention = Following,
             const std::vector<Natural>& fixingDays = std::vector<Natural>(),
             const std::vector<Real>& gearings = std::vector<Real>(),
             const std::vector<Spread>& spreads = std::vector<Spread>(),
             const std::vector<Rate>& caps = std::vector<Rate>(),
             const std::vector<Rate>& floors = std::vector<Rate>(),
             bool isInArrears = false) {
    boost::shared_ptr<IborIndex> libor =
        boost::dynamic_pointer_cast<IborIndex>(index);
    return QuantLib::IborLeg(schedule, libor)
        .withNotionals(nominals)
        .withPaymentDayCounter(paymentDayCounter)
        .withPaymentAdjustment(paymentConvention)
        .withFixingDays(fixingDays)
        .withGearings(gearings)
        .withSpreads(spreads)
        .withCaps(caps)
        .withFloors(floors)
        .inArrears(isInArrears);
}


Leg _CmsLeg(const std::vector<Real>& nominals,
            const Schedule& schedule,
            const boost::shared_ptr<Index>& index,
            const DayCounter& paymentDayCounter = DayCounter(),
            const BusinessDayConvention paymentConvention = Following,
            const std::vector<Natural>& fixingDays = std::vector<Natural>(),
            const std::vector<Real>& gearings = std::vector<Real>(),
            const std::vector<Spread>& spreads = std::vector<Spread>(),
            const std::vector<Rate>& caps = std::vector<Rate>(),
            const std::vector<Rate>& floors = std::vector<Rate>(),
            bool isInArrears = false) {
    boost::shared_ptr<SwapIndex> swapIndex =
        boost::dynamic_pointer_cast<SwapIndex>(index);
    return QuantLib::CmsLeg(schedule, swapIndex)
        .withNotionals(nominals)
        .withPaymentDayCounter(paymentDayCounter)
        .withPaymentAdjustment(paymentConvention)
        .withFixingDays(fixingDays)
        .withGearings(gearings)
        .withSpreads(spreads)
        .withCaps(caps)
        .withFloors(floors)
        .inArrears(isInArrears);
}


Leg _CmsZeroLeg(const std::vector<Real>& nominals,
                const Schedule& schedule,
                const boost::shared_ptr<Index>& index,
                const DayCounter& paymentDayCounter = DayCounter(),
                const BusinessDayConvention paymentConvention = Following,
                const std::vector<Natural>& fixingDays = std::vector<Natural>(),
                const std::vector<Real>& gearings = std::vector<Real>(),
                const std::vector<Spread>& spreads = std::vector<Spread>(),
                const std::vector<Rate>& caps = std::vector<Rate>(),
                const std::vector<Rate>& floors = std::vector<Rate>()) {
    boost::shared_ptr<SwapIndex> swapIndex =
        boost::dynamic_pointer_cast<SwapIndex>(index);
    return QuantLib::CmsLeg(schedule, swapIndex)
        .withNotionals(nominals)
        .withPaymentDayCounter(paymentDayCounter)
        .withPaymentAdjustment(paymentConvention)
        .withFixingDays(fixingDays)
        .withGearings(gearings)
        .withSpreads(spreads)
        .withCaps(caps)
        .withFloors(floors)
        .withZeroPayments();
}


using QuantLib::CashFlows;
using QuantLib::Duration;

SWIGINTERN Real CashFlows_npv__SWIG_0(Leg const &leg,boost::shared_ptr< YieldTermStructure > const &discountCurve,Spread zSpread,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,bool includeSettlementDateFlows,Date const &settlementDate=Date(),Date const &npvDate=Date()){
            return QuantLib::CashFlows::npv(leg, discountCurve,
                                            zSpread,
                                            dayCounter,
                                            compounding,
                                            frequency,
                                            includeSettlementDateFlows,
                                            settlementDate,
                                            npvDate);
        }
SWIGINTERN Real CashFlows_npv__SWIG_3(Leg const &leg,Handle< YieldTermStructure > const &discountCurve,bool includeSettlementDateFlows,Date const &settlementDate=Date(),Date const &npvDate=Date()){
            return QuantLib::CashFlows::npv(leg, **discountCurve,
                                            includeSettlementDateFlows,
                                            settlementDate, npvDate);
        }
SWIGINTERN Real CashFlows_bps__SWIG_0(Leg const &leg,boost::shared_ptr< YieldTermStructure > const &discountCurve,bool includeSettlementDateFlows,Date const &settlementDate=Date(),Date const &npvDate=Date()){
            return QuantLib::CashFlows::bps(leg, *discountCurve,
                                            includeSettlementDateFlows,
                                            settlementDate, npvDate);
        }
SWIGINTERN Real CashFlows_bps__SWIG_3(Leg const &leg,Handle< YieldTermStructure > const &discountCurve,bool includeSettlementDateFlows,Date const &settlementDate=Date(),Date const &npvDate=Date()){
            return QuantLib::CashFlows::bps(leg, **discountCurve,
                                            includeSettlementDateFlows,
                                            settlementDate, npvDate);
        }
SWIGINTERN Rate CashFlows_atmRate__SWIG_0(Leg const &leg,boost::shared_ptr< YieldTermStructure > const &discountCurve,bool includeSettlementDateFlows,Date const &settlementDate=Date(),Date const &npvDate=Date(),Real npv=Null< Real >()){
            return QuantLib::CashFlows::atmRate(leg, *discountCurve,
                                                includeSettlementDateFlows,
                                                settlementDate, npvDate,
                                                npv);
        }

using QuantLib::CalibrationHelper;
using QuantLib::SwaptionHelper;
using QuantLib::CapHelper;
using QuantLib::HestonModelHelper;
typedef boost::shared_ptr<CalibrationHelper> SwaptionHelperPtr;
typedef boost::shared_ptr<CalibrationHelper> CapHelperPtr;
typedef boost::shared_ptr<CalibrationHelper> HestonModelHelperPtr;

SWIGINTERN bool boost_shared_ptr_Sl_CalibrationHelper_Sg____nonzero__(boost::shared_ptr< CalibrationHelper > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_CalibrationHelper_Sg____bool__(boost::shared_ptr< CalibrationHelper > *self){
                return !!(*self);
            }
SWIGINTERN Date boost_shared_ptr_Sl_CalibrationHelper_Sg__swaptionExpiryDate(boost::shared_ptr< CalibrationHelper > *self){
        boost::shared_ptr<SwaptionHelper> s = boost::dynamic_pointer_cast<SwaptionHelper>(*self);
        return s ? s->swaption()->exercise()->date(0) : Null<Date>();
    }
SWIGINTERN Real boost_shared_ptr_Sl_CalibrationHelper_Sg__swaptionStrike(boost::shared_ptr< CalibrationHelper > *self){
        boost::shared_ptr<SwaptionHelper> s = boost::dynamic_pointer_cast<SwaptionHelper>(*self);
        return s ? s->swaption()->underlyingSwap()->fixedRate() : Null<Real>();
    }
SWIGINTERN Real boost_shared_ptr_Sl_CalibrationHelper_Sg__swaptionNominal(boost::shared_ptr< CalibrationHelper > *self){
        boost::shared_ptr<SwaptionHelper> s = boost::dynamic_pointer_cast<SwaptionHelper>(*self);
        return s ? s->swaption()->underlyingSwap()->nominal() : Null<Real>();
    }
SWIGINTERN Date boost_shared_ptr_Sl_CalibrationHelper_Sg__swaptionMaturityDate(boost::shared_ptr< CalibrationHelper > *self){
        boost::shared_ptr<SwaptionHelper> s = boost::dynamic_pointer_cast<SwaptionHelper>(*self);
        return s ? s->swaption()->underlyingSwap()->fixedSchedule().dates().back() : Null<Date>();
    }
SWIGINTERN SwaptionHelperPtr *new_SwaptionHelperPtr__SWIG_0(Period const &maturity,Period const &length,Handle< Quote > const &volatility,IborIndexPtr const &index,Period const &fixedLegTenor,DayCounter const &fixedLegDayCounter,DayCounter const &floatingLegDayCounter,Handle< YieldTermStructure > const &termStructure,CalibrationHelper::CalibrationErrorType errorType=CalibrationHelper::RelativePriceError,Real const strike=Null< Real >(),Real const nominal=1.0,VolatilityType const type=ShiftedLognormal,Real const shift=0.0){
            boost::shared_ptr<IborIndex> libor =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new SwaptionHelperPtr(
                new SwaptionHelper(maturity,length,volatility,
                                   libor,fixedLegTenor,
                                   fixedLegDayCounter,
                                   floatingLegDayCounter,
                                   termStructure,
                                   errorType,
                                   strike, nominal, 
                                   type, shift));
        }
SWIGINTERN SwaptionHelperPtr *new_SwaptionHelperPtr__SWIG_6(Date const &exerciseDate,Period const &length,Handle< Quote > const &volatility,IborIndexPtr const &index,Period const &fixedLegTenor,DayCounter const &fixedLegDayCounter,DayCounter const &floatingLegDayCounter,Handle< YieldTermStructure > const &termStructure,CalibrationHelper::CalibrationErrorType errorType=CalibrationHelper::RelativePriceError,Real const strike=Null< Real >(),Real const nominal=1.0,VolatilityType const type=ShiftedLognormal,Real const shift=0.0){
            boost::shared_ptr<IborIndex> libor =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new SwaptionHelperPtr(
                new SwaptionHelper(exerciseDate,length,volatility,
                                   libor,fixedLegTenor,
                                   fixedLegDayCounter,
                                   floatingLegDayCounter,
                                   termStructure,
                                   errorType,
                                   strike, nominal, 
                                   type, shift));
        }
SWIGINTERN SwaptionHelperPtr *new_SwaptionHelperPtr__SWIG_12(Date const &exerciseDate,Date const &endDate,Handle< Quote > const &volatility,IborIndexPtr const &index,Period const &fixedLegTenor,DayCounter const &fixedLegDayCounter,DayCounter const &floatingLegDayCounter,Handle< YieldTermStructure > const &termStructure,CalibrationHelper::CalibrationErrorType errorType=CalibrationHelper::RelativePriceError,Real const strike=Null< Real >(),Real const nominal=1.0,VolatilityType const type=ShiftedLognormal,Real const shift=0.0){
            boost::shared_ptr<IborIndex> libor =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new SwaptionHelperPtr(
                new SwaptionHelper(exerciseDate,endDate,volatility,
                                   libor,fixedLegTenor,
                                   fixedLegDayCounter,
                                   floatingLegDayCounter,
                                   termStructure,
                                   errorType,
                                   strike, nominal, 
                                   type, shift));
        }
SWIGINTERN std::vector< Time,std::allocator< Time > > SwaptionHelperPtr_times(SwaptionHelperPtr *self){
            std::list<Time> l;
            (*self)->addTimesTo(l);
            std::vector<Time> v;
            std::copy(l.begin(),l.end(),std::back_inserter(v));
            return v;
        }
SWIGINTERN CapHelperPtr *new_CapHelperPtr__SWIG_0(Period const &length,Handle< Quote > const &volatility,IborIndexPtr const &index,Frequency fixedLegFrequency,DayCounter const &fixedLegDayCounter,bool includeFirstSwaplet,Handle< YieldTermStructure > const &termStructure,CalibrationHelper::CalibrationErrorType errorType=CalibrationHelper::RelativePriceError){
            boost::shared_ptr<IborIndex> libor =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new CapHelperPtr(
                new CapHelper(length,volatility,libor,fixedLegFrequency,
                              fixedLegDayCounter,includeFirstSwaplet,
                              termStructure));
        }
SWIGINTERN std::vector< Time,std::allocator< Time > > CapHelperPtr_times(CapHelperPtr *self){
            std::list<Time> l;
            (*self)->addTimesTo(l);
            std::vector<Time> v;
            std::copy(l.begin(),l.end(),std::back_inserter(v));
            return v;
        }
SWIGINTERN HestonModelHelperPtr *new_HestonModelHelperPtr__SWIG_0(Period const &maturity,Calendar const &calendar,Real const s0,Real const strikePrice,Handle< Quote > const &volatility,Handle< YieldTermStructure > const &riskFreeRate,Handle< YieldTermStructure > const &dividendYield,CalibrationHelper::CalibrationErrorType errorType=CalibrationHelper::RelativePriceError){
			return new HestonModelHelperPtr(
				new HestonModelHelper(maturity, calendar, s0, strikePrice,
									  volatility, riskFreeRate, dividendYield,
									  errorType)); 
		}

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


      namespace swig {
	template <>  struct traits<std::vector< boost::shared_ptr< CalibrationHelper >, std::allocator< boost::shared_ptr< CalibrationHelper > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "boost::shared_ptr< CalibrationHelper >" "," "std::allocator< boost::shared_ptr< CalibrationHelper > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg__iterator(std::vector< boost::shared_ptr< CalibrationHelper > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____nonzero__(std::vector< boost::shared_ptr< CalibrationHelper > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____bool__(std::vector< boost::shared_ptr< CalibrationHelper > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< boost::shared_ptr< CalibrationHelper > >::size_type std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____len__(std::vector< boost::shared_ptr< CalibrationHelper > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____getslice__(std::vector< boost::shared_ptr< CalibrationHelper > > *self,std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type i,std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____setslice____SWIG_0(std::vector< boost::shared_ptr< CalibrationHelper > > *self,std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type i,std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >());
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____setslice____SWIG_1(std::vector< boost::shared_ptr< CalibrationHelper > > *self,std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type i,std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type j,std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____delslice__(std::vector< boost::shared_ptr< CalibrationHelper > > *self,std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type i,std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____delitem____SWIG_0(std::vector< boost::shared_ptr< CalibrationHelper > > *self,std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____getitem____SWIG_0(std::vector< boost::shared_ptr< CalibrationHelper > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____setitem____SWIG_0(std::vector< boost::shared_ptr< CalibrationHelper > > *self,PySliceObject *slice,std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____setitem____SWIG_1(std::vector< boost::shared_ptr< CalibrationHelper > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____delitem____SWIG_1(std::vector< boost::shared_ptr< CalibrationHelper > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____getitem____SWIG_1(std::vector< boost::shared_ptr< CalibrationHelper > > const *self,std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____setitem____SWIG_2(std::vector< boost::shared_ptr< CalibrationHelper > > *self,std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type i,std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< boost::shared_ptr< CalibrationHelper > >::value_type std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg__pop(std::vector< boost::shared_ptr< CalibrationHelper > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg__append(std::vector< boost::shared_ptr< CalibrationHelper > > *self,std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< boost::shared_ptr< CalibrationHelper > >::iterator std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg__erase__SWIG_0(std::vector< boost::shared_ptr< CalibrationHelper > > *self,std::vector< boost::shared_ptr< CalibrationHelper > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< boost::shared_ptr< CalibrationHelper > >::iterator std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg__erase__SWIG_1(std::vector< boost::shared_ptr< CalibrationHelper > > *self,std::vector< boost::shared_ptr< CalibrationHelper > >::iterator first,std::vector< boost::shared_ptr< CalibrationHelper > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< boost::shared_ptr< CalibrationHelper > >::iterator std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg__insert__SWIG_0(std::vector< boost::shared_ptr< CalibrationHelper > > *self,std::vector< boost::shared_ptr< CalibrationHelper > >::iterator pos,std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg__insert__SWIG_1(std::vector< boost::shared_ptr< CalibrationHelper > > *self,std::vector< boost::shared_ptr< CalibrationHelper > >::iterator pos,std::vector< boost::shared_ptr< CalibrationHelper > >::size_type n,std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &x){ self->insert(pos, n, x); }

using QuantLib::CalibratedModel;

SWIGINTERN bool boost_shared_ptr_Sl_CalibratedModel_Sg____nonzero__(boost::shared_ptr< CalibratedModel > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_CalibratedModel_Sg____bool__(boost::shared_ptr< CalibratedModel > *self){
                return !!(*self);
            }
SWIGINTERN boost::shared_ptr< Observable > boost_shared_ptr_Sl_CalibratedModel_Sg__asObservable(boost::shared_ptr< CalibratedModel > *self){
        return boost::shared_ptr<Observable>(*self);
    }
SWIGINTERN bool Handle_Sl_CalibratedModel_Sg____nonzero__(Handle< CalibratedModel > *self){
            return !self->empty();
        }
SWIGINTERN bool Handle_Sl_CalibratedModel_Sg____bool__(Handle< CalibratedModel > *self){
            return !self->empty();
        }
SWIGINTERN boost::shared_ptr< Observable > Handle_Sl_CalibratedModel_Sg__asObservable(Handle< CalibratedModel > *self){
        return boost::shared_ptr<Observable>(*self);
    }

using QuantLib::TimeGrid;

SWIGINTERN TimeGrid *new_TimeGrid__SWIG_2(std::vector< Time,std::allocator< Time > > const &times){
            return new TimeGrid(times.begin(), times.end());
        }
SWIGINTERN TimeGrid *new_TimeGrid__SWIG_3(std::vector< Time,std::allocator< Time > > const &times,Size steps){
            return new TimeGrid(times.begin(), times.end(), steps);
        }
SWIGINTERN Time TimeGrid___getitem__(TimeGrid *self,Integer i){
            Integer size_ = static_cast<Integer>(self->size());
            if (i>=0 && i<size_) {
                return (*self)[i];
            } else if (i<0 && -i<=size_) {
                return (*self)[size_+i];
            } else {
                throw std::out_of_range("time-grid index out of range");
            }
        }
SWIGINTERN Time TimeGrid_dt(TimeGrid const *self,Integer i){
            Integer size_ = static_cast<Integer>(self->size());
            if (i>=0 && i<size_) {
                return self->dt(i);
            } else if (i<0 && -i<=size_) {
                return self->dt(size_+i);
            } else {
                throw std::out_of_range("time-grid index out of range");
            }
        }

using QuantLib::Parameter;
using QuantLib::ConstantParameter;
using QuantLib::NullParameter;
using QuantLib::PiecewiseConstantParameter;


using QuantLib::Option;
using QuantLib::Barrier;


using QuantLib::Payoff;
using QuantLib::StrikedTypePayoff;

SWIGINTERN bool boost_shared_ptr_Sl_Payoff_Sg____nonzero__(boost::shared_ptr< Payoff > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_Payoff_Sg____bool__(boost::shared_ptr< Payoff > *self){
                return !!(*self);
            }

using QuantLib::VanillaOption;
using QuantLib::ForwardVanillaOption;
typedef boost::shared_ptr<Instrument> VanillaOptionPtr;
typedef boost::shared_ptr<Instrument> MultiAssetOptionPtr;

SWIGINTERN VanillaOptionPtr *new_VanillaOptionPtr(boost::shared_ptr< Payoff > const &payoff,boost::shared_ptr< Exercise > const &exercise){
            boost::shared_ptr<StrikedTypePayoff> stPayoff =
                 boost::dynamic_pointer_cast<StrikedTypePayoff>(payoff);
            QL_REQUIRE(stPayoff, "wrong payoff given");
            return new VanillaOptionPtr(new VanillaOption(stPayoff,exercise));
        }
SWIGINTERN SampledCurve VanillaOptionPtr_priceCurve(VanillaOptionPtr *self){
            return boost::dynamic_pointer_cast<VanillaOption>(*self)
                ->result<SampledCurve>("priceCurve");
        }
SWIGINTERN Volatility VanillaOptionPtr_impliedVolatility__SWIG_0(VanillaOptionPtr *self,Real targetValue,GeneralizedBlackScholesProcessPtr const &process,Real accuracy=1.0e-4,Size maxEvaluations=100,Volatility minVol=1.0e-4,Volatility maxVol=4.0){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return boost::dynamic_pointer_cast<VanillaOption>(*self)
                ->impliedVolatility(targetValue, bsProcess, accuracy,
                                    maxEvaluations, minVol, maxVol);
        }
SWIGINTERN Real VanillaOptionPtr_delta(VanillaOptionPtr *self){
        return boost::dynamic_pointer_cast<VanillaOption>(*self)->delta();
    }
SWIGINTERN Real VanillaOptionPtr_gamma(VanillaOptionPtr *self){
        return boost::dynamic_pointer_cast<VanillaOption>(*self)->gamma();
    }
SWIGINTERN Real VanillaOptionPtr_theta(VanillaOptionPtr *self){
        return boost::dynamic_pointer_cast<VanillaOption>(*self)->theta();
    }
SWIGINTERN Real VanillaOptionPtr_thetaPerDay(VanillaOptionPtr *self){
        return boost::dynamic_pointer_cast<VanillaOption>(*self)->thetaPerDay();
    }
SWIGINTERN Real VanillaOptionPtr_vega(VanillaOptionPtr *self){
        return boost::dynamic_pointer_cast<VanillaOption>(*self)->vega();
    }
SWIGINTERN Real VanillaOptionPtr_rho(VanillaOptionPtr *self){
        return boost::dynamic_pointer_cast<VanillaOption>(*self)->rho();
    }
SWIGINTERN Real VanillaOptionPtr_dividendRho(VanillaOptionPtr *self){
        return boost::dynamic_pointer_cast<VanillaOption>(*self)->dividendRho();
    }
SWIGINTERN Real VanillaOptionPtr_strikeSensitivity(VanillaOptionPtr *self){
        return boost::dynamic_pointer_cast<VanillaOption>(*self)->strikeSensitivity();
    }

using QuantLib::EuropeanOption;
typedef boost::shared_ptr<Instrument> EuropeanOptionPtr;

SWIGINTERN EuropeanOptionPtr *new_EuropeanOptionPtr(boost::shared_ptr< Payoff > const &payoff,boost::shared_ptr< Exercise > const &exercise){
            boost::shared_ptr<StrikedTypePayoff> stPayoff =
                 boost::dynamic_pointer_cast<StrikedTypePayoff>(payoff);
            QL_REQUIRE(stPayoff, "wrong payoff given");
            return new EuropeanOptionPtr(new EuropeanOption(stPayoff,exercise));
        }

using QuantLib::ForwardVanillaOption;
typedef boost::shared_ptr<Instrument> ForwardVanillaOptionPtr;

SWIGINTERN ForwardVanillaOptionPtr *new_ForwardVanillaOptionPtr(Real moneyness,Date resetDate,boost::shared_ptr< Payoff > const &payoff,boost::shared_ptr< Exercise > const &exercise){
            boost::shared_ptr<StrikedTypePayoff> stPayoff =
                 boost::dynamic_pointer_cast<StrikedTypePayoff>(payoff);
            QL_REQUIRE(stPayoff, "wrong payoff given");
            return new ForwardVanillaOptionPtr(
                                new ForwardVanillaOption(moneyness, resetDate,
                                                         stPayoff, exercise));
        }

using QuantLib::QuantoVanillaOption;
typedef boost::shared_ptr<Instrument> QuantoVanillaOptionPtr;

SWIGINTERN QuantoVanillaOptionPtr *new_QuantoVanillaOptionPtr(boost::shared_ptr< Payoff > const &payoff,boost::shared_ptr< Exercise > const &exercise){
            boost::shared_ptr<StrikedTypePayoff> stPayoff =
                 boost::dynamic_pointer_cast<StrikedTypePayoff>(payoff);
            QL_REQUIRE(stPayoff, "wrong payoff given");
            return new QuantoVanillaOptionPtr(
                                 new QuantoVanillaOption(stPayoff, exercise));
        }
SWIGINTERN Real QuantoVanillaOptionPtr_qvega(QuantoVanillaOptionPtr *self){
            return boost::dynamic_pointer_cast<QuantoVanillaOption>(*self)
                ->qvega();
        }
SWIGINTERN Real QuantoVanillaOptionPtr_qrho(QuantoVanillaOptionPtr *self){
            return boost::dynamic_pointer_cast<QuantoVanillaOption>(*self)
                ->qrho();
        }
SWIGINTERN Real QuantoVanillaOptionPtr_qlambda(QuantoVanillaOptionPtr *self){
            return boost::dynamic_pointer_cast<QuantoVanillaOption>(*self)
                ->qlambda();
        }

using QuantLib::QuantoForwardVanillaOption;
typedef boost::shared_ptr<Instrument> QuantoForwardVanillaOptionPtr;

SWIGINTERN QuantoForwardVanillaOptionPtr *new_QuantoForwardVanillaOptionPtr(Real moneyness,Date resetDate,boost::shared_ptr< Payoff > const &payoff,boost::shared_ptr< Exercise > const &exercise){
            boost::shared_ptr<StrikedTypePayoff> stPayoff =
                 boost::dynamic_pointer_cast<StrikedTypePayoff>(payoff);
            QL_REQUIRE(stPayoff, "wrong payoff given");
            return new QuantoForwardVanillaOptionPtr(
                          new QuantoForwardVanillaOption(moneyness, resetDate,
                                                         stPayoff, exercise));
        }

using QuantLib::MultiAssetOption;

SWIGINTERN Real MultiAssetOptionPtr_delta(MultiAssetOptionPtr *self){
            return boost::dynamic_pointer_cast<MultiAssetOption>(*self)
                ->delta();
        }
SWIGINTERN Real MultiAssetOptionPtr_gamma(MultiAssetOptionPtr *self){
            return boost::dynamic_pointer_cast<MultiAssetOption>(*self)
                ->gamma();
        }
SWIGINTERN Real MultiAssetOptionPtr_theta(MultiAssetOptionPtr *self){
            return boost::dynamic_pointer_cast<MultiAssetOption>(*self)
                ->theta();
        }
SWIGINTERN Real MultiAssetOptionPtr_vega(MultiAssetOptionPtr *self){
            return boost::dynamic_pointer_cast<MultiAssetOption>(*self)->vega();
        }
SWIGINTERN Real MultiAssetOptionPtr_rho(MultiAssetOptionPtr *self){
            return boost::dynamic_pointer_cast<MultiAssetOption>(*self)->rho();
        }
SWIGINTERN Real MultiAssetOptionPtr_dividendRho(MultiAssetOptionPtr *self){
            return boost::dynamic_pointer_cast<MultiAssetOption>(*self)
                ->dividendRho();
        }

using QuantLib::AnalyticEuropeanEngine;
typedef boost::shared_ptr<PricingEngine> AnalyticEuropeanEnginePtr;

SWIGINTERN AnalyticEuropeanEnginePtr *new_AnalyticEuropeanEnginePtr(GeneralizedBlackScholesProcessPtr const &process){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new AnalyticEuropeanEnginePtr(
                                       new AnalyticEuropeanEngine(bsProcess));
        }

using QuantLib::HestonModel;
typedef boost::shared_ptr<CalibratedModel> HestonModelPtr;

SWIGINTERN HestonModelPtr *new_HestonModelPtr(HestonProcessPtr const &process){

            boost::shared_ptr<HestonProcess> hProcess =
                 boost::dynamic_pointer_cast<HestonProcess>(process);
            QL_REQUIRE(hProcess, "Heston process required");

            return new HestonModelPtr(new HestonModel(hProcess));
        }
SWIGINTERN Real HestonModelPtr_theta(HestonModelPtr const *self){
            return boost::dynamic_pointer_cast<HestonModel>(*self)->theta();
        }
SWIGINTERN Real HestonModelPtr_kappa(HestonModelPtr const *self){
            return boost::dynamic_pointer_cast<HestonModel>(*self)->kappa();
        }
SWIGINTERN Real HestonModelPtr_sigma(HestonModelPtr const *self){
            return boost::dynamic_pointer_cast<HestonModel>(*self)->sigma();
        }
SWIGINTERN Real HestonModelPtr_rho(HestonModelPtr const *self){
            return boost::dynamic_pointer_cast<HestonModel>(*self)->rho();
        }
SWIGINTERN Real HestonModelPtr_v0(HestonModelPtr const *self){
            return boost::dynamic_pointer_cast<HestonModel>(*self)->v0();
        }

using QuantLib::PiecewiseTimeDependentHestonModel;
typedef boost::shared_ptr<CalibratedModel> PiecewiseTimeDependentHestonModelPtr;

SWIGINTERN PiecewiseTimeDependentHestonModelPtr *new_PiecewiseTimeDependentHestonModelPtr(Handle< YieldTermStructure > const &riskFreeRate,Handle< YieldTermStructure > const &dividendYield,Handle< Quote > const &s0,Real v0,Parameter const &theta,Parameter const &kappa,Parameter const &sigma,Parameter const &rho,TimeGrid const &timeGrid){
            return new PiecewiseTimeDependentHestonModelPtr (
                new PiecewiseTimeDependentHestonModel(riskFreeRate,
                    dividendYield, s0, v0, theta, kappa, 
                    sigma, rho, timeGrid));
        }
SWIGINTERN Real PiecewiseTimeDependentHestonModelPtr_theta(PiecewiseTimeDependentHestonModelPtr const *self,Time t){ 
            return boost::dynamic_pointer_cast<PiecewiseTimeDependentHestonModel>(*self)->theta(t);
        }
SWIGINTERN Real PiecewiseTimeDependentHestonModelPtr_kappa(PiecewiseTimeDependentHestonModelPtr const *self,Time t){
            return boost::dynamic_pointer_cast<PiecewiseTimeDependentHestonModel>(*self)->kappa(t);
        }
SWIGINTERN Real PiecewiseTimeDependentHestonModelPtr_sigma(PiecewiseTimeDependentHestonModelPtr const *self,Time t){
            return boost::dynamic_pointer_cast<PiecewiseTimeDependentHestonModel>(*self)->sigma(t);
        }
SWIGINTERN Real PiecewiseTimeDependentHestonModelPtr_rho(PiecewiseTimeDependentHestonModelPtr const *self,Time t){ 
            return boost::dynamic_pointer_cast<PiecewiseTimeDependentHestonModel>(*self)->rho(t);
        }
SWIGINTERN Real PiecewiseTimeDependentHestonModelPtr_v0(PiecewiseTimeDependentHestonModelPtr const *self){ 
            return boost::dynamic_pointer_cast<PiecewiseTimeDependentHestonModel>(*self)->v0();
        }
SWIGINTERN Real PiecewiseTimeDependentHestonModelPtr_s0(PiecewiseTimeDependentHestonModelPtr const *self){ 
            return boost::dynamic_pointer_cast<PiecewiseTimeDependentHestonModel>(*self)->s0();
        }
SWIGINTERN TimeGrid const &PiecewiseTimeDependentHestonModelPtr_timeGrid(PiecewiseTimeDependentHestonModelPtr const *self){
            return boost::dynamic_pointer_cast<PiecewiseTimeDependentHestonModel>(*self)->timeGrid();
        }
SWIGINTERN Handle< YieldTermStructure > const &PiecewiseTimeDependentHestonModelPtr_dividendYield(PiecewiseTimeDependentHestonModelPtr const *self){
            return boost::dynamic_pointer_cast<PiecewiseTimeDependentHestonModel>(*self)->dividendYield();
        }
SWIGINTERN Handle< YieldTermStructure > const &PiecewiseTimeDependentHestonModelPtr_riskFreeRate(PiecewiseTimeDependentHestonModelPtr const *self){
            return boost::dynamic_pointer_cast<PiecewiseTimeDependentHestonModel>(*self)->riskFreeRate();
        }

using QuantLib::AnalyticHestonEngine;
typedef boost::shared_ptr<PricingEngine> AnalyticHestonEnginePtr;

SWIGINTERN AnalyticHestonEnginePtr *new_AnalyticHestonEnginePtr__SWIG_0(HestonModelPtr const &model,Size integrationOrder=144){
            boost::shared_ptr<HestonModel> hModel =
                 boost::dynamic_pointer_cast<HestonModel>(model);
            QL_REQUIRE(hModel, "Heston model required");

            return new AnalyticHestonEnginePtr(
                new AnalyticHestonEngine(hModel, integrationOrder));
        }
SWIGINTERN AnalyticHestonEnginePtr *new_AnalyticHestonEnginePtr__SWIG_2(HestonModelPtr const &model,Real relTolerance,Size maxEvaluations){
            boost::shared_ptr<HestonModel> hModel =
                 boost::dynamic_pointer_cast<HestonModel>(model);
            QL_REQUIRE(hModel, "Heston model required");

            return new AnalyticHestonEnginePtr(
                new AnalyticHestonEngine(hModel, relTolerance,maxEvaluations));
        }

using QuantLib::AnalyticPTDHestonEngine;
typedef boost::shared_ptr<PricingEngine> AnalyticPTDHestonEnginePtr;

SWIGINTERN AnalyticPTDHestonEnginePtr *new_AnalyticPTDHestonEnginePtr__SWIG_0(PiecewiseTimeDependentHestonModelPtr const &model,Real relTolerance,Size maxEvaluations){
                const boost::shared_ptr<PiecewiseTimeDependentHestonModel> hmodel = 
                    boost::dynamic_pointer_cast<PiecewiseTimeDependentHestonModel>(model);
                return new AnalyticPTDHestonEnginePtr(
                    new AnalyticPTDHestonEngine(hmodel, relTolerance, maxEvaluations)
            );
        }
SWIGINTERN AnalyticPTDHestonEnginePtr *new_AnalyticPTDHestonEnginePtr__SWIG_1(PiecewiseTimeDependentHestonModelPtr const &model,Size integrationOrder=144){
                const boost::shared_ptr<PiecewiseTimeDependentHestonModel> hmodel = 
                    boost::dynamic_pointer_cast<PiecewiseTimeDependentHestonModel>(model);
                return new AnalyticPTDHestonEnginePtr(
                    new AnalyticPTDHestonEngine(hmodel, integrationOrder)
            );
        }

using QuantLib::BatesModel;
typedef boost::shared_ptr<CalibratedModel> BatesModelPtr;

SWIGINTERN BatesModelPtr *new_BatesModelPtr(BatesProcessPtr const &process){

            boost::shared_ptr<BatesProcess> bProcess =
                 boost::dynamic_pointer_cast<BatesProcess>(process);
            QL_REQUIRE(bProcess, "Bates process required");

            return new BatesModelPtr(new BatesModel(bProcess));
        }
SWIGINTERN Real BatesModelPtr_nu(BatesModelPtr const *self){
            return boost::dynamic_pointer_cast<BatesModel>(*self)->nu();
        }
SWIGINTERN Real BatesModelPtr_delta(BatesModelPtr const *self){
            return boost::dynamic_pointer_cast<BatesModel>(*self)->delta();
        }
SWIGINTERN Real BatesModelPtr_lambda(BatesModelPtr const *self){
            return boost::dynamic_pointer_cast<BatesModel>(*self)->lambda();
        }

using QuantLib::BatesEngine;
typedef boost::shared_ptr<PricingEngine> BatesEnginePtr;

SWIGINTERN BatesEnginePtr *new_BatesEnginePtr__SWIG_0(BatesModelPtr const &model,Size integrationOrder=144){
            boost::shared_ptr<BatesModel> bModel =
                 boost::dynamic_pointer_cast<BatesModel>(model);
            QL_REQUIRE(bModel, "Bates model required");

            return new BatesEnginePtr(
                new BatesEngine(bModel, integrationOrder));
        }
SWIGINTERN BatesEnginePtr *new_BatesEnginePtr__SWIG_2(BatesModelPtr const &model,Real relTolerance,Size maxEvaluations){
            boost::shared_ptr<BatesModel> bModel =
                 boost::dynamic_pointer_cast<BatesModel>(model);
            QL_REQUIRE(bModel, "Bates model required");

            return new BatesEnginePtr(
                new BatesEngine(bModel, relTolerance,maxEvaluations));
        }

using QuantLib::IntegralEngine;
typedef boost::shared_ptr<PricingEngine> IntegralEnginePtr;

SWIGINTERN IntegralEnginePtr *new_IntegralEnginePtr(GeneralizedBlackScholesProcessPtr const &process){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new IntegralEnginePtr(new IntegralEngine(bsProcess));
        }

using QuantLib::FDBermudanEngine;
typedef boost::shared_ptr<PricingEngine> FDBermudanEnginePtr;

SWIGINTERN FDBermudanEnginePtr *new_FDBermudanEnginePtr__SWIG_0(GeneralizedBlackScholesProcessPtr const &process,Size timeSteps=100,Size gridPoints=100,bool timeDependent=false){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new FDBermudanEnginePtr(
                            new FDBermudanEngine<>(bsProcess,timeSteps,
                                                   gridPoints,timeDependent));
        }

using QuantLib::FDEuropeanEngine;
typedef boost::shared_ptr<PricingEngine> FDEuropeanEnginePtr;

SWIGINTERN FDEuropeanEnginePtr *new_FDEuropeanEnginePtr__SWIG_0(GeneralizedBlackScholesProcessPtr const &process,Size timeSteps=100,Size gridPoints=100,bool timeDependent=false){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new FDEuropeanEnginePtr(
                            new FDEuropeanEngine<>(bsProcess,timeSteps,
                                                   gridPoints,timeDependent));
        }

using QuantLib::BinomialVanillaEngine;
using QuantLib::CoxRossRubinstein;
using QuantLib::JarrowRudd;
using QuantLib::AdditiveEQPBinomialTree;
using QuantLib::Trigeorgis;
using QuantLib::Tian;
using QuantLib::LeisenReimer;
using QuantLib::Joshi4;
typedef boost::shared_ptr<PricingEngine> BinomialVanillaEnginePtr;

SWIGINTERN BinomialVanillaEnginePtr *new_BinomialVanillaEnginePtr(GeneralizedBlackScholesProcessPtr const &process,std::string const &type,Size steps){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            std::string s = boost::algorithm::to_lower_copy(type);
            if (s == "crr" || s == "coxrossrubinstein")
                return new BinomialVanillaEnginePtr(
                    new BinomialVanillaEngine<CoxRossRubinstein>(
                                                            bsProcess,steps));
            else if (s == "jr" || s == "jarrowrudd")
                return new BinomialVanillaEnginePtr(
                    new BinomialVanillaEngine<JarrowRudd>(bsProcess,steps));
            else if (s == "eqp" || s == "additiveeqpbinomialtree")
                return new BinomialVanillaEnginePtr(
                    new BinomialVanillaEngine<AdditiveEQPBinomialTree>(
                                                            bsProcess,steps));
            else if (s == "trigeorgis")
                return new BinomialVanillaEnginePtr(
                    new BinomialVanillaEngine<Trigeorgis>(bsProcess,steps));
            else if (s == "tian")
                return new BinomialVanillaEnginePtr(
                    new BinomialVanillaEngine<Tian>(bsProcess,steps));
            else if (s == "lr" || s == "leisenreimer")
                return new BinomialVanillaEnginePtr(
                    new BinomialVanillaEngine<LeisenReimer>(bsProcess,steps));
            else if (s == "j4" || s == "joshi4")
                return new BinomialVanillaEnginePtr(
                    new BinomialVanillaEngine<Joshi4>(bsProcess,steps));
            else
                QL_FAIL("unknown binomial engine type: "+s);
        }

using QuantLib::MCEuropeanEngine;
using QuantLib::PseudoRandom;
using QuantLib::LowDiscrepancy;
typedef boost::shared_ptr<PricingEngine> MCEuropeanEnginePtr;

SWIGINTERN MCEuropeanEnginePtr *new_MCEuropeanEnginePtr(GeneralizedBlackScholesProcessPtr const &process,std::string const &traits,intOrNull timeSteps=Null< Size >(),intOrNull timeStepsPerYear=Null< Size >(),bool brownianBridge=false,bool antitheticVariate=false,intOrNull requiredSamples=Null< Size >(),doubleOrNull requiredTolerance=Null< Real >(),intOrNull maxSamples=Null< Size >(),BigInteger seed=0){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            std::string s = boost::algorithm::to_lower_copy(traits);
            QL_REQUIRE(Size(timeSteps) != Null<Size>() ||
                       Size(timeStepsPerYear) != Null<Size>(),
                       "number of steps not specified");
            if (s == "pseudorandom" || s == "pr")
                return new MCEuropeanEnginePtr(
                         new MCEuropeanEngine<PseudoRandom>(bsProcess,
                                                            timeSteps,
                                                            timeStepsPerYear,
                                                            brownianBridge,
                                                            antitheticVariate,
                                                            requiredSamples,
                                                            requiredTolerance,
                                                            maxSamples,
                                                            seed));
            else if (s == "lowdiscrepancy" || s == "ld")
                return new MCEuropeanEnginePtr(
                       new MCEuropeanEngine<LowDiscrepancy>(bsProcess,
                                                            timeSteps,
                                                            timeStepsPerYear,
                                                            brownianBridge,
                                                            antitheticVariate,
                                                            requiredSamples,
                                                            requiredTolerance,
                                                            maxSamples,
                                                            seed));
            else
                QL_FAIL("unknown Monte Carlo engine type: "+s);
        }

using QuantLib::FDAmericanEngine;
using QuantLib::FDShoutEngine;
typedef boost::shared_ptr<PricingEngine> FDAmericanEnginePtr;
typedef boost::shared_ptr<PricingEngine> FDShoutEnginePtr;

SWIGINTERN FDAmericanEnginePtr *new_FDAmericanEnginePtr__SWIG_0(GeneralizedBlackScholesProcessPtr const &process,Size timeSteps=100,Size gridPoints=100,bool timeDependent=false){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new FDAmericanEnginePtr(
                            new FDAmericanEngine<>(bsProcess,timeSteps,
                                                   gridPoints,timeDependent));
        }

using QuantLib::FdBlackScholesVanillaEngine;
typedef boost::shared_ptr<PricingEngine> FdBlackScholesVanillaEnginePtr;

SWIGINTERN FdBlackScholesVanillaEnginePtr *new_FdBlackScholesVanillaEnginePtr__SWIG_0(GeneralizedBlackScholesProcessPtr const &process,Size tGrid=100,Size xGrid=100,Size dampingSteps=0){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new FdBlackScholesVanillaEnginePtr(
                            new FdBlackScholesVanillaEngine( bsProcess,tGrid, xGrid, dampingSteps));
        }

using QuantLib::FdBatesVanillaEngine;
typedef boost::shared_ptr<PricingEngine> FdBatesVanillaEnginePtr;

SWIGINTERN FdBatesVanillaEnginePtr *new_FdBatesVanillaEnginePtr__SWIG_0(BatesModelPtr const &model,Size tGrid=100,Size xGrid=100,Size vGrid=50,Size dampingSteps=0){
            boost::shared_ptr<BatesModel> bModel =
                 boost::dynamic_pointer_cast<BatesModel>(model);
            QL_REQUIRE(bModel, "Bates model required");
            return new FdBatesVanillaEnginePtr(
                               new FdBatesVanillaEngine(bModel, tGrid, xGrid,
                                                        vGrid, dampingSteps));
        }

using QuantLib::ContinuousArithmeticAsianLevyEngine;
typedef boost::shared_ptr<PricingEngine> ContinuousArithmeticAsianLevyEnginePtr;

SWIGINTERN ContinuousArithmeticAsianLevyEnginePtr *new_ContinuousArithmeticAsianLevyEnginePtr(GeneralizedBlackScholesProcessPtr const &process,Handle< Quote > const &runningAverage,Date const &startDate){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new ContinuousArithmeticAsianLevyEnginePtr(
                            new ContinuousArithmeticAsianLevyEngine(bsProcess,runningAverage, startDate));
        }

using QuantLib::FdBlackScholesAsianEngine;
typedef boost::shared_ptr<PricingEngine> FdBlackScholesAsianEnginePtr;

SWIGINTERN FdBlackScholesAsianEnginePtr *new_FdBlackScholesAsianEnginePtr(GeneralizedBlackScholesProcessPtr const &process,Size tGrid,Size xGrid,Size aGrid){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new FdBlackScholesAsianEnginePtr(
                            new FdBlackScholesAsianEngine(bsProcess,tGrid, xGrid, aGrid));
        }
SWIGINTERN FDShoutEnginePtr *new_FDShoutEnginePtr__SWIG_0(GeneralizedBlackScholesProcessPtr const &process,Size timeSteps=100,Size gridPoints=100,bool timeDependent=false){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new FDShoutEnginePtr(
                               new FDShoutEngine<>(bsProcess,timeSteps,
                                                   gridPoints,timeDependent));
        }

using QuantLib::BaroneAdesiWhaleyApproximationEngine;
typedef boost::shared_ptr<PricingEngine>
    BaroneAdesiWhaleyApproximationEnginePtr;

SWIGINTERN BaroneAdesiWhaleyApproximationEnginePtr *new_BaroneAdesiWhaleyApproximationEnginePtr(GeneralizedBlackScholesProcessPtr const &process){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new BaroneAdesiWhaleyApproximationEnginePtr(
                         new BaroneAdesiWhaleyApproximationEngine(bsProcess));
        }

using QuantLib::BjerksundStenslandApproximationEngine;
typedef boost::shared_ptr<PricingEngine>
    BjerksundStenslandApproximationEnginePtr;

SWIGINTERN BjerksundStenslandApproximationEnginePtr *new_BjerksundStenslandApproximationEnginePtr(GeneralizedBlackScholesProcessPtr const &process){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new BjerksundStenslandApproximationEnginePtr(
                        new BjerksundStenslandApproximationEngine(bsProcess));
        }

using QuantLib::AnalyticDigitalAmericanEngine;
typedef boost::shared_ptr<PricingEngine> AnalyticDigitalAmericanEnginePtr;

SWIGINTERN AnalyticDigitalAmericanEnginePtr *new_AnalyticDigitalAmericanEnginePtr(GeneralizedBlackScholesProcessPtr const &process){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new AnalyticDigitalAmericanEnginePtr(
                                new AnalyticDigitalAmericanEngine(bsProcess));
        }

using QuantLib::AnalyticDigitalAmericanKOEngine;
typedef boost::shared_ptr<PricingEngine> AnalyticDigitalAmericanKOEnginePtr;

SWIGINTERN AnalyticDigitalAmericanKOEnginePtr *new_AnalyticDigitalAmericanKOEnginePtr(GeneralizedBlackScholesProcessPtr const &process){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new AnalyticDigitalAmericanKOEnginePtr(
                                new AnalyticDigitalAmericanKOEngine(bsProcess));
        }

using QuantLib::DividendVanillaOption;
typedef boost::shared_ptr<Instrument> DividendVanillaOptionPtr;

SWIGINTERN DividendVanillaOptionPtr *new_DividendVanillaOptionPtr(boost::shared_ptr< Payoff > const &payoff,boost::shared_ptr< Exercise > const &exercise,std::vector< Date,std::allocator< Date > > const &dividendDates,std::vector< Real,std::allocator< Real > > const &dividends){
            boost::shared_ptr<StrikedTypePayoff> stPayoff =
                 boost::dynamic_pointer_cast<StrikedTypePayoff>(payoff);
            QL_REQUIRE(stPayoff, "wrong payoff given");
            return new DividendVanillaOptionPtr(
                          new DividendVanillaOption(stPayoff,exercise,
                                                    dividendDates,dividends));
        }
SWIGINTERN SampledCurve DividendVanillaOptionPtr_priceCurve(DividendVanillaOptionPtr *self){
            return boost::dynamic_pointer_cast<DividendVanillaOption>(*self)
                ->result<SampledCurve>("priceCurve");
        }
SWIGINTERN Volatility DividendVanillaOptionPtr_impliedVolatility__SWIG_0(DividendVanillaOptionPtr *self,Real targetValue,GeneralizedBlackScholesProcessPtr const &process,Real accuracy=1.0e-4,Size maxEvaluations=100,Volatility minVol=1.0e-4,Volatility maxVol=4.0){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return boost::dynamic_pointer_cast<DividendVanillaOption>(*self)
                ->impliedVolatility(targetValue, bsProcess, accuracy,
                                    maxEvaluations, minVol, maxVol);
        }
SWIGINTERN Real DividendVanillaOptionPtr_delta(DividendVanillaOptionPtr *self){
        return boost::dynamic_pointer_cast<DividendVanillaOption>(*self)->delta();
    }
SWIGINTERN Real DividendVanillaOptionPtr_gamma(DividendVanillaOptionPtr *self){
        return boost::dynamic_pointer_cast<DividendVanillaOption>(*self)->gamma();
    }
SWIGINTERN Real DividendVanillaOptionPtr_theta(DividendVanillaOptionPtr *self){
        return boost::dynamic_pointer_cast<DividendVanillaOption>(*self)->theta();
    }
SWIGINTERN Real DividendVanillaOptionPtr_thetaPerDay(DividendVanillaOptionPtr *self){
        return boost::dynamic_pointer_cast<DividendVanillaOption>(*self)->thetaPerDay();
    }
SWIGINTERN Real DividendVanillaOptionPtr_vega(DividendVanillaOptionPtr *self){
        return boost::dynamic_pointer_cast<DividendVanillaOption>(*self)->vega();
    }
SWIGINTERN Real DividendVanillaOptionPtr_rho(DividendVanillaOptionPtr *self){
        return boost::dynamic_pointer_cast<DividendVanillaOption>(*self)->rho();
    }
SWIGINTERN Real DividendVanillaOptionPtr_dividendRho(DividendVanillaOptionPtr *self){
        return boost::dynamic_pointer_cast<DividendVanillaOption>(*self)->dividendRho();
    }
SWIGINTERN Real DividendVanillaOptionPtr_strikeSensitivity(DividendVanillaOptionPtr *self){
        return boost::dynamic_pointer_cast<DividendVanillaOption>(*self)->strikeSensitivity();
    }

using QuantLib::AnalyticDividendEuropeanEngine;
typedef boost::shared_ptr<PricingEngine> AnalyticDividendEuropeanEnginePtr;

SWIGINTERN AnalyticDividendEuropeanEnginePtr *new_AnalyticDividendEuropeanEnginePtr(GeneralizedBlackScholesProcessPtr const &process){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new AnalyticDividendEuropeanEnginePtr(
                               new AnalyticDividendEuropeanEngine(bsProcess));
        }

using QuantLib::FDDividendEuropeanEngine;
using QuantLib::FDDividendAmericanEngine;
typedef boost::shared_ptr<PricingEngine> FDDividendEuropeanEnginePtr;
typedef boost::shared_ptr<PricingEngine> FDDividendAmericanEnginePtr;

SWIGINTERN FDDividendEuropeanEnginePtr *new_FDDividendEuropeanEnginePtr__SWIG_0(GeneralizedBlackScholesProcessPtr const &process,Size timeSteps=100,Size gridPoints=100,bool timeDependent=false){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new FDDividendEuropeanEnginePtr(
                   new FDDividendEuropeanEngine<>(bsProcess,timeSteps,
                                                  gridPoints, timeDependent));
        }
SWIGINTERN FDDividendAmericanEnginePtr *new_FDDividendAmericanEnginePtr__SWIG_0(GeneralizedBlackScholesProcessPtr const &process,Size timeSteps=100,Size gridPoints=100,bool timeDependent=false){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new FDDividendAmericanEnginePtr(
                   new FDDividendAmericanEngine<>(bsProcess,timeSteps,
                                                  gridPoints, timeDependent));
        }

using QuantLib::BarrierOption;
typedef boost::shared_ptr<Instrument> BarrierOptionPtr;

SWIGINTERN BarrierOptionPtr *new_BarrierOptionPtr(Barrier::Type barrierType,Real barrier,Real rebate,boost::shared_ptr< Payoff > const &payoff,boost::shared_ptr< Exercise > const &exercise){
            boost::shared_ptr<StrikedTypePayoff> stPayoff =
                 boost::dynamic_pointer_cast<StrikedTypePayoff>(payoff);
            QL_REQUIRE(stPayoff, "wrong payoff given");
            return new BarrierOptionPtr(
                               new BarrierOption(barrierType, barrier, rebate,
                                                 stPayoff,exercise));
        }
SWIGINTERN SampledCurve BarrierOptionPtr_priceCurve(BarrierOptionPtr *self){
            return boost::dynamic_pointer_cast<BarrierOption>(*self)
                ->result<SampledCurve>("priceCurve");
        }
SWIGINTERN Volatility BarrierOptionPtr_impliedVolatility__SWIG_0(BarrierOptionPtr *self,Real targetValue,GeneralizedBlackScholesProcessPtr const &process,Real accuracy=1.0e-4,Size maxEvaluations=100,Volatility minVol=1.0e-4,Volatility maxVol=4.0){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return boost::dynamic_pointer_cast<BarrierOption>(*self)
                 ->impliedVolatility(targetValue, bsProcess, accuracy,
                                     maxEvaluations, minVol, maxVol);
        }
SWIGINTERN Real BarrierOptionPtr_delta(BarrierOptionPtr *self){
        return boost::dynamic_pointer_cast<BarrierOption>(*self)->delta();
    }
SWIGINTERN Real BarrierOptionPtr_gamma(BarrierOptionPtr *self){
        return boost::dynamic_pointer_cast<BarrierOption>(*self)->gamma();
    }
SWIGINTERN Real BarrierOptionPtr_theta(BarrierOptionPtr *self){
        return boost::dynamic_pointer_cast<BarrierOption>(*self)->theta();
    }
SWIGINTERN Real BarrierOptionPtr_thetaPerDay(BarrierOptionPtr *self){
        return boost::dynamic_pointer_cast<BarrierOption>(*self)->thetaPerDay();
    }
SWIGINTERN Real BarrierOptionPtr_vega(BarrierOptionPtr *self){
        return boost::dynamic_pointer_cast<BarrierOption>(*self)->vega();
    }
SWIGINTERN Real BarrierOptionPtr_rho(BarrierOptionPtr *self){
        return boost::dynamic_pointer_cast<BarrierOption>(*self)->rho();
    }
SWIGINTERN Real BarrierOptionPtr_dividendRho(BarrierOptionPtr *self){
        return boost::dynamic_pointer_cast<BarrierOption>(*self)->dividendRho();
    }
SWIGINTERN Real BarrierOptionPtr_strikeSensitivity(BarrierOptionPtr *self){
        return boost::dynamic_pointer_cast<BarrierOption>(*self)->strikeSensitivity();
    }

using QuantLib::AnalyticBarrierEngine;
typedef boost::shared_ptr<PricingEngine> AnalyticBarrierEnginePtr;

SWIGINTERN AnalyticBarrierEnginePtr *new_AnalyticBarrierEnginePtr(GeneralizedBlackScholesProcessPtr const &process){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new AnalyticBarrierEnginePtr(
                                        new AnalyticBarrierEngine(bsProcess));
        }

using QuantLib::MCBarrierEngine;
typedef boost::shared_ptr<PricingEngine> MCBarrierEnginePtr;

SWIGINTERN MCBarrierEnginePtr *new_MCBarrierEnginePtr(GeneralizedBlackScholesProcessPtr const &process,std::string const &traits,Size timeSteps=Null< Size >(),Size timeStepsPerYear=Null< Size >(),bool brownianBridge=false,bool antitheticVariate=false,intOrNull requiredSamples=Null< Size >(),doubleOrNull requiredTolerance=Null< Real >(),intOrNull maxSamples=Null< Size >(),bool isBiased=false,BigInteger seed=0){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            std::string s = boost::algorithm::to_lower_copy(traits);
            if (s == "pseudorandom" || s == "pr")
                return new MCBarrierEnginePtr(
                         new MCBarrierEngine<PseudoRandom>(bsProcess,
                                                           timeSteps,
                                                           timeStepsPerYear,
                                                           brownianBridge,
                                                           antitheticVariate,
                                                           requiredSamples,
                                                           requiredTolerance,
                                                           maxSamples,
                                                           isBiased,
                                                           seed));
            else if (s == "lowdiscrepancy" || s == "ld")
                return new MCBarrierEnginePtr(
                       new MCBarrierEngine<LowDiscrepancy>(bsProcess,
                                                           timeSteps,
                                                           timeStepsPerYear,
                                                           brownianBridge,
                                                           antitheticVariate,
                                                           requiredSamples,
                                                           requiredTolerance,
                                                           maxSamples,
                                                           isBiased,
                                                           seed));
            else
                QL_FAIL("unknown Monte Carlo engine type: "+s);
        }

using QuantLib::FdmSchemeDesc;


using QuantLib::FdBlackScholesBarrierEngine;
typedef boost::shared_ptr<PricingEngine> FdBlackScholesBarrierEnginePtr;

SWIGINTERN FdBlackScholesBarrierEnginePtr *new_FdBlackScholesBarrierEnginePtr__SWIG_0(GeneralizedBlackScholesProcessPtr const &process,Size tGrid=100,Size xGrid=100,Size dampingSteps=0,FdmSchemeDesc const &schemeDesc=FdmSchemeDesc::Douglas(),bool localVol=false,Real illegalLocalVolOverwrite=-Null< Real >()){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new FdBlackScholesBarrierEnginePtr(
                            new FdBlackScholesBarrierEngine(bsProcess,
                                                              tGrid,  xGrid, dampingSteps, 
                                                              schemeDesc, localVol,
                                                              illegalLocalVolOverwrite));
        }

using QuantLib::AnalyticBinaryBarrierEngine;
typedef boost::shared_ptr<PricingEngine> AnalyticBinaryBarrierEnginePtr;

SWIGINTERN AnalyticBinaryBarrierEnginePtr *new_AnalyticBinaryBarrierEnginePtr(GeneralizedBlackScholesProcessPtr const &process){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new AnalyticBinaryBarrierEnginePtr(
                                        new AnalyticBinaryBarrierEngine(bsProcess));
        }

using QuantLib::BinomialBarrierEngine;
using QuantLib::DiscretizedDermanKaniBarrierOption;
typedef boost::shared_ptr<PricingEngine> BinomialBarrierEnginePtr;

SWIGINTERN BinomialBarrierEnginePtr *new_BinomialBarrierEnginePtr__SWIG_0(GeneralizedBlackScholesProcessPtr const &process,std::string const &type,Size steps,Size max_steps=0){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            std::string s = boost::algorithm::to_lower_copy(type);
            if (s == "crr" || s == "coxrossrubinstein")
                return new BinomialBarrierEnginePtr(
                    new BinomialBarrierEngine<CoxRossRubinstein,
                                          DiscretizedDermanKaniBarrierOption>(
                                                  bsProcess,steps,max_steps));
            else if (s == "jr" || s == "jarrowrudd")
                return new BinomialBarrierEnginePtr(
                    new BinomialBarrierEngine<JarrowRudd,
                                          DiscretizedDermanKaniBarrierOption>(
                                                  bsProcess,steps,max_steps));
            else if (s == "eqp" || s == "additiveeqpbinomialtree")
                return new BinomialBarrierEnginePtr(
                    new BinomialBarrierEngine<AdditiveEQPBinomialTree,
                                          DiscretizedDermanKaniBarrierOption>(
                                                  bsProcess,steps,max_steps));
            else if (s == "trigeorgis")
                return new BinomialBarrierEnginePtr(
                    new BinomialBarrierEngine<Trigeorgis,
                                          DiscretizedDermanKaniBarrierOption>(
                                                  bsProcess,steps,max_steps));
            else if (s == "tian")
                return new BinomialBarrierEnginePtr(
                    new BinomialBarrierEngine<Tian,
                                          DiscretizedDermanKaniBarrierOption>(
                                                  bsProcess,steps,max_steps));
            else if (s == "lr" || s == "leisenreimer")
                return new BinomialBarrierEnginePtr(
                    new BinomialBarrierEngine<LeisenReimer,
                                          DiscretizedDermanKaniBarrierOption>(
                                                  bsProcess,steps,max_steps));
            else if (s == "j4" || s == "joshi4")
                return new BinomialBarrierEnginePtr(
                    new BinomialBarrierEngine<Joshi4,
                                          DiscretizedDermanKaniBarrierOption>(
                                                  bsProcess,steps,max_steps));
            else
                QL_FAIL("unknown binomial barrier engine type: "+s);
        }

using QuantLib::QuantoEngine;
using QuantLib::ForwardVanillaEngine;
typedef boost::shared_ptr<PricingEngine> ForwardEuropeanEnginePtr;
typedef boost::shared_ptr<PricingEngine> QuantoEuropeanEnginePtr;
typedef boost::shared_ptr<PricingEngine> QuantoForwardEuropeanEnginePtr;

SWIGINTERN ForwardEuropeanEnginePtr *new_ForwardEuropeanEnginePtr(GeneralizedBlackScholesProcessPtr const &process){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new ForwardEuropeanEnginePtr(
                 new ForwardVanillaEngine<AnalyticEuropeanEngine>(bsProcess));
        }
SWIGINTERN QuantoEuropeanEnginePtr *new_QuantoEuropeanEnginePtr(GeneralizedBlackScholesProcessPtr const &process,Handle< YieldTermStructure > const &foreignRiskFreeRate,Handle< BlackVolTermStructure > const &exchangeRateVolatility,Handle< Quote > const &correlation){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new QuantoEuropeanEnginePtr(
                new QuantoEngine<VanillaOption,AnalyticEuropeanEngine>(
                                                       bsProcess,
                                                       foreignRiskFreeRate,
                                                       exchangeRateVolatility,
                                                       correlation));
        }
SWIGINTERN QuantoForwardEuropeanEnginePtr *new_QuantoForwardEuropeanEnginePtr(GeneralizedBlackScholesProcessPtr const &process,Handle< YieldTermStructure > const &foreignRiskFreeRate,Handle< BlackVolTermStructure > const &exchangeRateVolatility,Handle< Quote > const &correlation){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new QuantoForwardEuropeanEnginePtr(
                new QuantoEngine<ForwardVanillaOption,AnalyticEuropeanEngine>(
                                                       bsProcess,
                                                       foreignRiskFreeRate,
                                                       exchangeRateVolatility,
                                                       correlation));
        }

using QuantLib::BlackCalculator;

SWIGINTERN BlackCalculator *new_BlackCalculator__SWIG_0(boost::shared_ptr< Payoff > const &payoff,Real forward,Real stdDev,Real discount=1.0){

            boost::shared_ptr<StrikedTypePayoff> stPayoff =
                boost::dynamic_pointer_cast<StrikedTypePayoff>(payoff);

            QL_REQUIRE(stPayoff, "wrong payoff given");

            return new BlackCalculator(stPayoff,forward,stdDev,discount);
        }

using QuantLib::Average;
using QuantLib::ContinuousAveragingAsianOption;
using QuantLib::DiscreteAveragingAsianOption;
typedef boost::shared_ptr<Instrument> ContinuousAveragingAsianOptionPtr;
typedef boost::shared_ptr<Instrument> DiscreteAveragingAsianOptionPtr;

SWIGINTERN ContinuousAveragingAsianOptionPtr *new_ContinuousAveragingAsianOptionPtr(Average::Type averageType,boost::shared_ptr< Payoff > const &payoff,boost::shared_ptr< Exercise > const &exercise){
            boost::shared_ptr<StrikedTypePayoff> stPayoff =
                 boost::dynamic_pointer_cast<StrikedTypePayoff>(payoff);
            QL_REQUIRE(stPayoff, "wrong payoff given");
            return new ContinuousAveragingAsianOptionPtr(
                       new ContinuousAveragingAsianOption(averageType,
                                                          stPayoff,exercise));
        }
SWIGINTERN Real ContinuousAveragingAsianOptionPtr_delta(ContinuousAveragingAsianOptionPtr *self){
        return boost::dynamic_pointer_cast<ContinuousAveragingAsianOption>(*self)->delta();
    }
SWIGINTERN Real ContinuousAveragingAsianOptionPtr_gamma(ContinuousAveragingAsianOptionPtr *self){
        return boost::dynamic_pointer_cast<ContinuousAveragingAsianOption>(*self)->gamma();
    }
SWIGINTERN Real ContinuousAveragingAsianOptionPtr_theta(ContinuousAveragingAsianOptionPtr *self){
        return boost::dynamic_pointer_cast<ContinuousAveragingAsianOption>(*self)->theta();
    }
SWIGINTERN Real ContinuousAveragingAsianOptionPtr_thetaPerDay(ContinuousAveragingAsianOptionPtr *self){
        return boost::dynamic_pointer_cast<ContinuousAveragingAsianOption>(*self)->thetaPerDay();
    }
SWIGINTERN Real ContinuousAveragingAsianOptionPtr_vega(ContinuousAveragingAsianOptionPtr *self){
        return boost::dynamic_pointer_cast<ContinuousAveragingAsianOption>(*self)->vega();
    }
SWIGINTERN Real ContinuousAveragingAsianOptionPtr_rho(ContinuousAveragingAsianOptionPtr *self){
        return boost::dynamic_pointer_cast<ContinuousAveragingAsianOption>(*self)->rho();
    }
SWIGINTERN Real ContinuousAveragingAsianOptionPtr_dividendRho(ContinuousAveragingAsianOptionPtr *self){
        return boost::dynamic_pointer_cast<ContinuousAveragingAsianOption>(*self)->dividendRho();
    }
SWIGINTERN Real ContinuousAveragingAsianOptionPtr_strikeSensitivity(ContinuousAveragingAsianOptionPtr *self){
        return boost::dynamic_pointer_cast<ContinuousAveragingAsianOption>(*self)->strikeSensitivity();
    }
SWIGINTERN DiscreteAveragingAsianOptionPtr *new_DiscreteAveragingAsianOptionPtr(Average::Type averageType,Real runningAccumulator,Size pastFixings,std::vector< Date,std::allocator< Date > > const &fixingDates,boost::shared_ptr< Payoff > const &payoff,boost::shared_ptr< Exercise > const &exercise){
            boost::shared_ptr<StrikedTypePayoff> stPayoff =
                 boost::dynamic_pointer_cast<StrikedTypePayoff>(payoff);
            QL_REQUIRE(stPayoff, "wrong payoff given");
            return new DiscreteAveragingAsianOptionPtr(
                          new DiscreteAveragingAsianOption(averageType,
                                                           runningAccumulator,
                                                           pastFixings,
                                                           fixingDates,
                                                           stPayoff,
                                                           exercise));
        }
SWIGINTERN Real DiscreteAveragingAsianOptionPtr_delta(DiscreteAveragingAsianOptionPtr *self){
        return boost::dynamic_pointer_cast<DiscreteAveragingAsianOption>(*self)->delta();
    }
SWIGINTERN Real DiscreteAveragingAsianOptionPtr_gamma(DiscreteAveragingAsianOptionPtr *self){
        return boost::dynamic_pointer_cast<DiscreteAveragingAsianOption>(*self)->gamma();
    }
SWIGINTERN Real DiscreteAveragingAsianOptionPtr_theta(DiscreteAveragingAsianOptionPtr *self){
        return boost::dynamic_pointer_cast<DiscreteAveragingAsianOption>(*self)->theta();
    }
SWIGINTERN Real DiscreteAveragingAsianOptionPtr_thetaPerDay(DiscreteAveragingAsianOptionPtr *self){
        return boost::dynamic_pointer_cast<DiscreteAveragingAsianOption>(*self)->thetaPerDay();
    }
SWIGINTERN Real DiscreteAveragingAsianOptionPtr_vega(DiscreteAveragingAsianOptionPtr *self){
        return boost::dynamic_pointer_cast<DiscreteAveragingAsianOption>(*self)->vega();
    }
SWIGINTERN Real DiscreteAveragingAsianOptionPtr_rho(DiscreteAveragingAsianOptionPtr *self){
        return boost::dynamic_pointer_cast<DiscreteAveragingAsianOption>(*self)->rho();
    }
SWIGINTERN Real DiscreteAveragingAsianOptionPtr_dividendRho(DiscreteAveragingAsianOptionPtr *self){
        return boost::dynamic_pointer_cast<DiscreteAveragingAsianOption>(*self)->dividendRho();
    }
SWIGINTERN Real DiscreteAveragingAsianOptionPtr_strikeSensitivity(DiscreteAveragingAsianOptionPtr *self){
        return boost::dynamic_pointer_cast<DiscreteAveragingAsianOption>(*self)->strikeSensitivity();
    }

using QuantLib::AnalyticContinuousGeometricAveragePriceAsianEngine;
typedef boost::shared_ptr<PricingEngine>
    AnalyticContinuousGeometricAveragePriceAsianEnginePtr;

SWIGINTERN AnalyticContinuousGeometricAveragePriceAsianEnginePtr *new_AnalyticContinuousGeometricAveragePriceAsianEnginePtr(GeneralizedBlackScholesProcessPtr const &process){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new AnalyticContinuousGeometricAveragePriceAsianEnginePtr(
                new AnalyticContinuousGeometricAveragePriceAsianEngine(
                                                                  bsProcess));
        }

using QuantLib::AnalyticDiscreteGeometricAveragePriceAsianEngine;
typedef boost::shared_ptr<PricingEngine>
    AnalyticDiscreteGeometricAveragePriceAsianEnginePtr;

SWIGINTERN AnalyticDiscreteGeometricAveragePriceAsianEnginePtr *new_AnalyticDiscreteGeometricAveragePriceAsianEnginePtr(GeneralizedBlackScholesProcessPtr const &process){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new AnalyticDiscreteGeometricAveragePriceAsianEnginePtr(
                new AnalyticDiscreteGeometricAveragePriceAsianEngine(
                                                                  bsProcess));
        }

using QuantLib::AnalyticDiscreteGeometricAverageStrikeAsianEngine;
typedef boost::shared_ptr<PricingEngine>
    AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr;

SWIGINTERN AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr *new_AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr(GeneralizedBlackScholesProcessPtr const &process){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr(
                new AnalyticDiscreteGeometricAverageStrikeAsianEngine(
                                                                  bsProcess));
        }

using QuantLib::MCDiscreteArithmeticAPEngine;
typedef boost::shared_ptr<PricingEngine> MCDiscreteArithmeticAPEnginePtr;

SWIGINTERN MCDiscreteArithmeticAPEnginePtr *new_MCDiscreteArithmeticAPEnginePtr(GeneralizedBlackScholesProcessPtr const &process,std::string const &traits,bool brownianBridge=false,bool antitheticVariate=false,bool controlVariate=false,intOrNull requiredSamples=Null< Size >(),doubleOrNull requiredTolerance=Null< Real >(),intOrNull maxSamples=Null< Size >(),BigInteger seed=0){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            std::string s = boost::algorithm::to_lower_copy(traits);
            if (s == "pseudorandom" || s == "pr")
                return new MCDiscreteArithmeticAPEnginePtr(
                         new MCDiscreteArithmeticAPEngine<PseudoRandom>(
                                                            bsProcess,
                                                            brownianBridge,
                                                            antitheticVariate,
                                                            controlVariate,
                                                            requiredSamples,
                                                            requiredTolerance,
                                                            maxSamples,
                                                            seed));
            else if (s == "lowdiscrepancy" || s == "ld")
                return new MCDiscreteArithmeticAPEnginePtr(
                       new MCDiscreteArithmeticAPEngine<LowDiscrepancy>(
                                                            bsProcess,
                                                            brownianBridge,
                                                            antitheticVariate,
                                                            controlVariate,
                                                            requiredSamples,
                                                            requiredTolerance,
                                                            maxSamples,
                                                            seed));
            else
                QL_FAIL("unknown Monte Carlo engine type: "+s);
        }

using QuantLib::MCDiscreteArithmeticASEngine;
typedef boost::shared_ptr<PricingEngine> MCDiscreteArithmeticASEnginePtr;

SWIGINTERN MCDiscreteArithmeticASEnginePtr *new_MCDiscreteArithmeticASEnginePtr(GeneralizedBlackScholesProcessPtr const &process,std::string const &traits,bool brownianBridge=false,bool antitheticVariate=false,intOrNull requiredSamples=Null< Size >(),doubleOrNull requiredTolerance=Null< Real >(),intOrNull maxSamples=Null< Size >(),BigInteger seed=0){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            std::string s = boost::algorithm::to_lower_copy(traits);
            if (s == "pseudorandom" || s == "pr")
                return new MCDiscreteArithmeticASEnginePtr(
                         new MCDiscreteArithmeticASEngine<PseudoRandom>(
                                                            bsProcess,
                                                            brownianBridge,
                                                            antitheticVariate,
                                                            requiredSamples,
                                                            requiredTolerance,
                                                            maxSamples,
                                                            seed));
            else if (s == "lowdiscrepancy" || s == "ld")
                return new MCDiscreteArithmeticASEnginePtr(
                       new MCDiscreteArithmeticASEngine<LowDiscrepancy>(
                                                            bsProcess,
                                                            brownianBridge,
                                                            antitheticVariate,
                                                            requiredSamples,
                                                            requiredTolerance,
                                                            maxSamples,
                                                            seed));
            else
                QL_FAIL("unknown Monte Carlo engine type: "+s);
        }

using QuantLib::MCDiscreteGeometricAPEngine;
typedef boost::shared_ptr<PricingEngine> MCDiscreteGeometricAPEnginePtr;

SWIGINTERN MCDiscreteGeometricAPEnginePtr *new_MCDiscreteGeometricAPEnginePtr(GeneralizedBlackScholesProcessPtr const &process,std::string const &traits,bool brownianBridge=false,bool antitheticVariate=false,intOrNull requiredSamples=Null< Size >(),doubleOrNull requiredTolerance=Null< Real >(),intOrNull maxSamples=Null< Size >(),BigInteger seed=0){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            std::string s = boost::algorithm::to_lower_copy(traits);
            if (s == "pseudorandom" || s == "pr")
                return new MCDiscreteGeometricAPEnginePtr(
                         new MCDiscreteGeometricAPEngine<PseudoRandom>(
                                                            bsProcess,
                                                            brownianBridge,
                                                            antitheticVariate,
                                                            requiredSamples,
                                                            requiredTolerance,
                                                            maxSamples,
                                                            seed));
            else if (s == "lowdiscrepancy" || s == "ld")
                return new MCDiscreteGeometricAPEnginePtr(
                       new MCDiscreteGeometricAPEngine<LowDiscrepancy>(
                                                            bsProcess,
                                                            brownianBridge,
                                                            antitheticVariate,
                                                            requiredSamples,
                                                            requiredTolerance,
                                                            maxSamples,
                                                            seed));
            else
                QL_FAIL("unknown Monte Carlo engine type: "+s);
        }

using QuantLib::VarianceGammaEngine;
typedef boost::shared_ptr<PricingEngine>
    VarianceGammaEnginePtr;

SWIGINTERN VarianceGammaEnginePtr *new_VarianceGammaEnginePtr(VarianceGammaProcessPtr const &process){
            boost::shared_ptr<VarianceGammaProcess> vgProcess =
                boost::dynamic_pointer_cast<VarianceGammaProcess>(process);
            QL_REQUIRE(vgProcess, "Variance-Gamma process required");
            return new VarianceGammaEnginePtr(new VarianceGammaEngine(vgProcess));
        }

using QuantLib::FFTVarianceGammaEngine;
typedef boost::shared_ptr<PricingEngine>
    FFTVarianceGammaEnginePtr;

SWIGINTERN FFTVarianceGammaEnginePtr *new_FFTVarianceGammaEnginePtr__SWIG_0(VarianceGammaProcessPtr const &process,Real logStrikeSpacing=0.001){
            boost::shared_ptr<VarianceGammaProcess> vgProcess =
                boost::dynamic_pointer_cast<VarianceGammaProcess>(process);
            QL_REQUIRE(vgProcess, "Variance Gamma process required");
            return new FFTVarianceGammaEnginePtr(new FFTVarianceGammaEngine(vgProcess, logStrikeSpacing));
        }
SWIGINTERN void FFTVarianceGammaEnginePtr_precalculate(FFTVarianceGammaEnginePtr *self,std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > const &optionList){
            boost::dynamic_pointer_cast<FFTVarianceGammaEngine>(*self)->precalculate(optionList);
        }

using QuantLib::DoubleBarrierOption;
using QuantLib::DoubleBarrier;


using QuantLib::DoubleBarrierOption;
typedef boost::shared_ptr<Instrument> DoubleBarrierOptionPtr;

SWIGINTERN DoubleBarrierOptionPtr *new_DoubleBarrierOptionPtr(DoubleBarrier::Type barrierType,Real barrier_lo,Real barrier_hi,Real rebate,boost::shared_ptr< Payoff > const &payoff,boost::shared_ptr< Exercise > const &exercise){
            boost::shared_ptr<StrikedTypePayoff> stPayoff =
                 boost::dynamic_pointer_cast<StrikedTypePayoff>(payoff);
            QL_REQUIRE(stPayoff, "wrong payoff given");
            return new DoubleBarrierOptionPtr(
                               new DoubleBarrierOption(barrierType, barrier_lo, 
                                                 barrier_hi, rebate,
                                                 stPayoff,exercise));
        }
SWIGINTERN Real DoubleBarrierOptionPtr_delta(DoubleBarrierOptionPtr *self){
        return boost::dynamic_pointer_cast<DoubleBarrierOption>(*self)->delta();
    }
SWIGINTERN Real DoubleBarrierOptionPtr_gamma(DoubleBarrierOptionPtr *self){
        return boost::dynamic_pointer_cast<DoubleBarrierOption>(*self)->gamma();
    }
SWIGINTERN Real DoubleBarrierOptionPtr_theta(DoubleBarrierOptionPtr *self){
        return boost::dynamic_pointer_cast<DoubleBarrierOption>(*self)->theta();
    }
SWIGINTERN Real DoubleBarrierOptionPtr_thetaPerDay(DoubleBarrierOptionPtr *self){
        return boost::dynamic_pointer_cast<DoubleBarrierOption>(*self)->thetaPerDay();
    }
SWIGINTERN Real DoubleBarrierOptionPtr_vega(DoubleBarrierOptionPtr *self){
        return boost::dynamic_pointer_cast<DoubleBarrierOption>(*self)->vega();
    }
SWIGINTERN Real DoubleBarrierOptionPtr_rho(DoubleBarrierOptionPtr *self){
        return boost::dynamic_pointer_cast<DoubleBarrierOption>(*self)->rho();
    }
SWIGINTERN Real DoubleBarrierOptionPtr_dividendRho(DoubleBarrierOptionPtr *self){
        return boost::dynamic_pointer_cast<DoubleBarrierOption>(*self)->dividendRho();
    }
SWIGINTERN Real DoubleBarrierOptionPtr_strikeSensitivity(DoubleBarrierOptionPtr *self){
        return boost::dynamic_pointer_cast<DoubleBarrierOption>(*self)->strikeSensitivity();
    }

using QuantLib::QuantoDoubleBarrierOption;
typedef boost::shared_ptr<Instrument> QuantoDoubleBarrierOptionPtr;

SWIGINTERN QuantoDoubleBarrierOptionPtr *new_QuantoDoubleBarrierOptionPtr(DoubleBarrier::Type barrierType,Real barrier_lo,Real barrier_hi,Real rebate,boost::shared_ptr< Payoff > const &payoff,boost::shared_ptr< Exercise > const &exercise){
            boost::shared_ptr<StrikedTypePayoff> stPayoff =
                 boost::dynamic_pointer_cast<StrikedTypePayoff>(payoff);
            QL_REQUIRE(stPayoff, "wrong payoff given");
            return new QuantoDoubleBarrierOptionPtr(
                         new QuantoDoubleBarrierOption(barrierType, barrier_lo, 
                                      barrier_hi, rebate, stPayoff, exercise));
        }
SWIGINTERN Real QuantoDoubleBarrierOptionPtr_qvega(QuantoDoubleBarrierOptionPtr *self){
            return boost::dynamic_pointer_cast<QuantoDoubleBarrierOption>(*self)
                ->qvega();
        }
SWIGINTERN Real QuantoDoubleBarrierOptionPtr_qrho(QuantoDoubleBarrierOptionPtr *self){
            return boost::dynamic_pointer_cast<QuantoDoubleBarrierOption>(*self)
                ->qrho();
        }
SWIGINTERN Real QuantoDoubleBarrierOptionPtr_qlambda(QuantoDoubleBarrierOptionPtr *self){
            return boost::dynamic_pointer_cast<QuantoDoubleBarrierOption>(*self)
                ->qlambda();
        }

using QuantLib::AnalyticDoubleBarrierEngine;
typedef boost::shared_ptr<PricingEngine> AnalyticDoubleBarrierEnginePtr;

SWIGINTERN AnalyticDoubleBarrierEnginePtr *new_AnalyticDoubleBarrierEnginePtr__SWIG_0(GeneralizedBlackScholesProcessPtr const &process,int series=5){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new AnalyticDoubleBarrierEnginePtr(
                            new AnalyticDoubleBarrierEngine(bsProcess, series));
        }

using QuantLib::WulinYongDoubleBarrierEngine;
typedef boost::shared_ptr<PricingEngine> WulinYongDoubleBarrierEnginePtr;

SWIGINTERN WulinYongDoubleBarrierEnginePtr *new_WulinYongDoubleBarrierEnginePtr__SWIG_0(GeneralizedBlackScholesProcessPtr const &process,int series=5){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new WulinYongDoubleBarrierEnginePtr(
                            new WulinYongDoubleBarrierEngine(bsProcess, series));
        }

using QuantLib::VannaVolgaDoubleBarrierEngine;
using QuantLib::DeltaVolQuote;
typedef boost::shared_ptr<PricingEngine> VannaVolgaDoubleBarrierEnginePtr;

SWIGINTERN bool boost_shared_ptr_Sl_DeltaVolQuote_Sg____nonzero__(boost::shared_ptr< DeltaVolQuote > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_DeltaVolQuote_Sg____bool__(boost::shared_ptr< DeltaVolQuote > *self){
                return !!(*self);
            }
SWIGINTERN boost::shared_ptr< Observable > boost_shared_ptr_Sl_DeltaVolQuote_Sg__asObservable(boost::shared_ptr< DeltaVolQuote > *self){
        return boost::shared_ptr<Observable>(*self);
    }
SWIGINTERN boost::shared_ptr< DeltaVolQuote > *new_boost_shared_ptr_Sl_DeltaVolQuote_Sg___SWIG_0(Real delta,Handle< Quote > const &vol,Time maturity,DeltaVolQuote::DeltaType deltaType){
        return new boost::shared_ptr<DeltaVolQuote>(
                          new DeltaVolQuote(delta, vol, maturity, deltaType));
    }
SWIGINTERN boost::shared_ptr< DeltaVolQuote > *new_boost_shared_ptr_Sl_DeltaVolQuote_Sg___SWIG_1(Handle< Quote > const &vol,DeltaVolQuote::DeltaType deltaType,Time maturity,DeltaVolQuote::AtmType atmType){
        return new boost::shared_ptr<DeltaVolQuote>(
                        new DeltaVolQuote(vol, deltaType, maturity, atmType));
    }
SWIGINTERN bool Handle_Sl_DeltaVolQuote_Sg____nonzero__(Handle< DeltaVolQuote > *self){
            return !self->empty();
        }
SWIGINTERN bool Handle_Sl_DeltaVolQuote_Sg____bool__(Handle< DeltaVolQuote > *self){
            return !self->empty();
        }
SWIGINTERN boost::shared_ptr< Observable > Handle_Sl_DeltaVolQuote_Sg__asObservable(Handle< DeltaVolQuote > *self){
        return boost::shared_ptr<Observable>(*self);
    }
SWIGINTERN VannaVolgaDoubleBarrierEnginePtr *new_VannaVolgaDoubleBarrierEnginePtr__SWIG_0(Handle< DeltaVolQuote > const atmVol,Handle< DeltaVolQuote > const vol25Put,Handle< DeltaVolQuote > const vol25Call,Handle< Quote > const spotFX,Handle< YieldTermStructure > const domesticTS,Handle< YieldTermStructure > const foreignTS,std::string const &type="ik",bool const adaptVanDelta=false,Real const bsPriceWithSmile=0.0,int series=5){
            std::string s = boost::algorithm::to_lower_copy(type);
            if (s == "ik" || s == "analytic")
                return new VannaVolgaDoubleBarrierEnginePtr(
                   new VannaVolgaDoubleBarrierEngine<AnalyticDoubleBarrierEngine>(
                                        atmVol, vol25Put, vol25Call, spotFX, 
                                        domesticTS, foreignTS, adaptVanDelta, 
                                        bsPriceWithSmile, series));
            else if (s == "wo")
                return new VannaVolgaDoubleBarrierEnginePtr(
                   new VannaVolgaDoubleBarrierEngine<WulinYongDoubleBarrierEngine>(
                                        atmVol, vol25Put, vol25Call, spotFX, 
                                        domesticTS, foreignTS, adaptVanDelta, 
                                        bsPriceWithSmile, series));
            else
                QL_FAIL("unknown binomial engine type: "+s);
        }

using QuantLib::AnalyticDoubleBarrierBinaryEngine;
typedef boost::shared_ptr<PricingEngine> AnalyticDoubleBarrierBinaryEnginePtr;

SWIGINTERN AnalyticDoubleBarrierBinaryEnginePtr *new_AnalyticDoubleBarrierBinaryEnginePtr(GeneralizedBlackScholesProcessPtr const &process){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            return new AnalyticDoubleBarrierBinaryEnginePtr(
                            new AnalyticDoubleBarrierBinaryEngine(bsProcess));
        }

using QuantLib::BinomialDoubleBarrierEngine;
using QuantLib::DiscretizedDermanKaniDoubleBarrierOption;
typedef boost::shared_ptr<PricingEngine> BinomialDoubleBarrierEnginePtr;

SWIGINTERN BinomialDoubleBarrierEnginePtr *new_BinomialDoubleBarrierEnginePtr(GeneralizedBlackScholesProcessPtr const &process,std::string const &type,Size steps){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            std::string s = boost::algorithm::to_lower_copy(type);
            if (s == "crr" || s == "coxrossrubinstein")
                return new BinomialDoubleBarrierEnginePtr(
                    new BinomialDoubleBarrierEngine<CoxRossRubinstein,
                                     DiscretizedDermanKaniDoubleBarrierOption>(
                                                  bsProcess,steps));
            else if (s == "jr" || s == "jarrowrudd")
                return new BinomialDoubleBarrierEnginePtr(
                    new BinomialDoubleBarrierEngine<JarrowRudd,
                                     DiscretizedDermanKaniDoubleBarrierOption>(
                                                  bsProcess,steps));
            else if (s == "eqp" || s == "additiveeqpbinomialtree")
                return new BinomialDoubleBarrierEnginePtr(
                    new BinomialDoubleBarrierEngine<AdditiveEQPBinomialTree,
                                     DiscretizedDermanKaniDoubleBarrierOption>(
                                                  bsProcess,steps));
            else if (s == "trigeorgis")
                return new BinomialDoubleBarrierEnginePtr(
                    new BinomialDoubleBarrierEngine<Trigeorgis,
                                     DiscretizedDermanKaniDoubleBarrierOption>(
                                                  bsProcess,steps));
            else if (s == "tian")
                return new BinomialDoubleBarrierEnginePtr(
                    new BinomialDoubleBarrierEngine<Tian,
                                     DiscretizedDermanKaniDoubleBarrierOption>(
                                                  bsProcess,steps));
            else if (s == "lr" || s == "leisenreimer")
                return new BinomialDoubleBarrierEnginePtr(
                    new BinomialDoubleBarrierEngine<LeisenReimer,
                                     DiscretizedDermanKaniDoubleBarrierOption>(
                                                  bsProcess,steps));
            else if (s == "j4" || s == "joshi4")
                return new BinomialDoubleBarrierEnginePtr(
                    new BinomialDoubleBarrierEngine<Joshi4,
                                     DiscretizedDermanKaniDoubleBarrierOption>(
                                                  bsProcess,steps));
            else
                QL_FAIL("unknown binomial double barrier engine type: "+s);
        }

using QuantLib::PlainVanillaPayoff;
using QuantLib::PercentageStrikePayoff;
using QuantLib::CashOrNothingPayoff;
using QuantLib::AssetOrNothingPayoff;
using QuantLib::SuperSharePayoff;
using QuantLib::GapPayoff;
typedef boost::shared_ptr<Payoff> PlainVanillaPayoffPtr;
typedef boost::shared_ptr<Payoff> PercentageStrikePayoffPtr;
typedef boost::shared_ptr<Payoff> CashOrNothingPayoffPtr;
typedef boost::shared_ptr<Payoff> AssetOrNothingPayoffPtr;
typedef boost::shared_ptr<Payoff> SuperSharePayoffPtr;
typedef boost::shared_ptr<Payoff> GapPayoffPtr;

SWIGINTERN PlainVanillaPayoffPtr *new_PlainVanillaPayoffPtr(Option::Type type,Real strike){
            return new PlainVanillaPayoffPtr(
                                        new PlainVanillaPayoff(type, strike));
        }
SWIGINTERN Option::Type PlainVanillaPayoffPtr_optionType(PlainVanillaPayoffPtr *self){
          	return boost::dynamic_pointer_cast<
									PlainVanillaPayoff>(*self)->optionType();
		}
SWIGINTERN Real PlainVanillaPayoffPtr_strike(PlainVanillaPayoffPtr *self){
          	return boost::dynamic_pointer_cast<
									PlainVanillaPayoff>(*self)->strike();
		}
SWIGINTERN PercentageStrikePayoffPtr *new_PercentageStrikePayoffPtr(Option::Type type,Real moneyness){
            return new PercentageStrikePayoffPtr(
                                 new PercentageStrikePayoff(type, moneyness));
        }
SWIGINTERN CashOrNothingPayoffPtr *new_CashOrNothingPayoffPtr(Option::Type type,Real strike,Real payoff){
            return new CashOrNothingPayoffPtr(
                               new CashOrNothingPayoff(type, strike, payoff));
        }
SWIGINTERN AssetOrNothingPayoffPtr *new_AssetOrNothingPayoffPtr(Option::Type type,Real strike){
            return new AssetOrNothingPayoffPtr(
                                      new AssetOrNothingPayoff(type, strike));
        }
SWIGINTERN SuperSharePayoffPtr *new_SuperSharePayoffPtr(Option::Type type,Real strike,Real increment){
            return new SuperSharePayoffPtr(
                               new SuperSharePayoff(type, strike, increment));
        }
SWIGINTERN GapPayoffPtr *new_GapPayoffPtr(Option::Type type,Real strike,Real strikePayoff){
            return new GapPayoffPtr(
                               new GapPayoff(type, strike, strikePayoff));
        }

using QuantLib::BasketOption;
using QuantLib::BasketPayoff;
using QuantLib::MinBasketPayoff;
using QuantLib::MaxBasketPayoff;
using QuantLib::AverageBasketPayoff;
typedef boost::shared_ptr<Instrument> BasketOptionPtr;
typedef boost::shared_ptr<Payoff> BasketPayoffPtr;
typedef boost::shared_ptr<Payoff> MinBasketPayoffPtr;
typedef boost::shared_ptr<Payoff> MaxBasketPayoffPtr;
typedef boost::shared_ptr<Payoff> AverageBasketPayoffPtr;

SWIGINTERN MinBasketPayoffPtr *new_MinBasketPayoffPtr(boost::shared_ptr< Payoff > const p){
            return new MinBasketPayoffPtr(new MinBasketPayoff(p));
        }
SWIGINTERN MaxBasketPayoffPtr *new_MaxBasketPayoffPtr(boost::shared_ptr< Payoff > const p){
            return new MaxBasketPayoffPtr(new MaxBasketPayoff(p));
        }
SWIGINTERN AverageBasketPayoffPtr *new_AverageBasketPayoffPtr__SWIG_0(boost::shared_ptr< Payoff > const p,Array const &a){
            return new AverageBasketPayoffPtr(new AverageBasketPayoff(p, a));
        }
SWIGINTERN AverageBasketPayoffPtr *new_AverageBasketPayoffPtr__SWIG_1(boost::shared_ptr< Payoff > const p,Size n){
            return new AverageBasketPayoffPtr(new AverageBasketPayoff(p, n));
        }
SWIGINTERN BasketOptionPtr *new_BasketOptionPtr(boost::shared_ptr< Payoff > const &payoff,boost::shared_ptr< Exercise > const &exercise){
            boost::shared_ptr<BasketPayoff> stPayoff =
                 boost::dynamic_pointer_cast<BasketPayoff>(payoff);
            QL_REQUIRE(stPayoff, "wrong payoff given");
            return new BasketOptionPtr(new BasketOption(stPayoff,exercise));
        }

using QuantLib::MCEuropeanBasketEngine;
typedef boost::shared_ptr<PricingEngine> MCEuropeanBasketEnginePtr;

SWIGINTERN MCEuropeanBasketEnginePtr *new_MCEuropeanBasketEnginePtr(StochasticProcessArrayPtr const &process,std::string const &traits,Size timeSteps=Null< Size >(),Size timeStepsPerYear=Null< Size >(),bool brownianBridge=false,bool antitheticVariate=false,intOrNull requiredSamples=Null< Size >(),doubleOrNull requiredTolerance=Null< Real >(),intOrNull maxSamples=Null< Size >(),BigInteger seed=0){
            boost::shared_ptr<StochasticProcessArray> processes =
                 boost::dynamic_pointer_cast<StochasticProcessArray>(process);
            QL_REQUIRE(processes, "stochastic-process array required");
            std::string s = boost::algorithm::to_lower_copy(traits);
            if (s == "pseudorandom" || s == "pr")
                return new MCEuropeanBasketEnginePtr(
                   new MCEuropeanBasketEngine<PseudoRandom>(processes,
                                                            timeSteps,
                                                            timeStepsPerYear,
                                                            brownianBridge,
                                                            antitheticVariate,
                                                            requiredSamples,
                                                            requiredTolerance,
                                                            maxSamples,
                                                            seed));
            else if (s == "lowdiscrepancy" || s == "ld")
                return new MCEuropeanBasketEnginePtr(
                   new MCEuropeanBasketEngine<LowDiscrepancy>(processes,
                                                              timeSteps,
                                                              timeStepsPerYear,
                                                              brownianBridge,
                                                              antitheticVariate,
                                                              requiredSamples,
                                                              requiredTolerance,
                                                              maxSamples,
                                                              seed));
            else
                QL_FAIL("unknown Monte Carlo engine type: "+s);
        }

using QuantLib::MCAmericanBasketEngine;
typedef boost::shared_ptr<PricingEngine> MCAmericanBasketEnginePtr;

SWIGINTERN MCAmericanBasketEnginePtr *new_MCAmericanBasketEnginePtr(StochasticProcessArrayPtr const &process,std::string const &traits,Size timeSteps=Null< Size >(),Size timeStepsPerYear=Null< Size >(),bool brownianBridge=false,bool antitheticVariate=false,intOrNull requiredSamples=Null< Size >(),doubleOrNull requiredTolerance=Null< Real >(),intOrNull maxSamples=Null< Size >(),BigInteger seed=0){
            boost::shared_ptr<StochasticProcessArray> processes =
                 boost::dynamic_pointer_cast<StochasticProcessArray>(process);
            QL_REQUIRE(processes, "stochastic-process array required");
            std::string s = boost::algorithm::to_lower_copy(traits);
            if (s == "pseudorandom" || s == "pr")
                  return new MCAmericanBasketEnginePtr(
                  new MCAmericanBasketEngine<PseudoRandom>(processes,
                                                           timeSteps,
                                                           timeStepsPerYear,
                                                           brownianBridge,
                                                           antitheticVariate,
                                                           requiredSamples,
                                                           requiredTolerance,
                                                           maxSamples,
                                                           seed));
            else if (s == "lowdiscrepancy" || s == "ld")
                return new MCAmericanBasketEnginePtr(
                new MCAmericanBasketEngine<LowDiscrepancy>(processes,
                                                           timeSteps,
                                                           timeStepsPerYear,
                                                           brownianBridge,
                                                           antitheticVariate,
                                                           requiredSamples,
                                                           requiredTolerance,
                                                           maxSamples,
                                                           seed));
            else
                QL_FAIL("unknown Monte Carlo engine type: "+s);
        }

using QuantLib::StulzEngine;
typedef boost::shared_ptr<PricingEngine> StulzEnginePtr;

SWIGINTERN StulzEnginePtr *new_StulzEnginePtr(GeneralizedBlackScholesProcessPtr const &process1,GeneralizedBlackScholesProcessPtr const &process2,Real correlation){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess1 =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                    process1);
            QL_REQUIRE(bsProcess1, "Black-Scholes process required");
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess2 =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                    process2);
            QL_REQUIRE(bsProcess2, "Black-Scholes process required");
            return new StulzEnginePtr(
                          new StulzEngine(bsProcess1,bsProcess2,correlation));
        }

using QuantLib::EverestOption;
typedef boost::shared_ptr<Instrument> EverestOptionPtr;
using QuantLib::MCEverestEngine;
typedef boost::shared_ptr<PricingEngine> MCEverestEnginePtr;

SWIGINTERN EverestOptionPtr *new_EverestOptionPtr(Real notional,Rate guarantee,boost::shared_ptr< Exercise > const &exercise){
            return new EverestOptionPtr(new EverestOption(notional,guarantee,
                                                          exercise));
        }
SWIGINTERN MCEverestEnginePtr *new_MCEverestEnginePtr(StochasticProcessArrayPtr const &process,std::string const &traits,Size timeSteps=Null< Size >(),Size timeStepsPerYear=Null< Size >(),bool brownianBridge=false,bool antitheticVariate=false,intOrNull requiredSamples=Null< Size >(),doubleOrNull requiredTolerance=Null< Real >(),intOrNull maxSamples=Null< Size >(),BigInteger seed=0){
            boost::shared_ptr<StochasticProcessArray> processes =
                 boost::dynamic_pointer_cast<StochasticProcessArray>(process);
            QL_REQUIRE(processes, "stochastic-process array required");
            std::string s = boost::algorithm::to_lower_copy(traits);
            if (s == "pseudorandom" || s == "pr")
                return new MCEverestEnginePtr(
                        new MCEverestEngine<PseudoRandom>(processes,
                                                          timeSteps,
                                                          timeStepsPerYear,
                                                          brownianBridge,
                                                          antitheticVariate,
                                                          requiredSamples,
                                                          requiredTolerance,
                                                          maxSamples,
                                                          seed));
            else if (s == "lowdiscrepancy" || s == "ld")
                return new MCEverestEnginePtr(
                      new MCEverestEngine<LowDiscrepancy>(processes,
                                                          timeSteps,
                                                          timeStepsPerYear,
                                                          brownianBridge,
                                                          antitheticVariate,
                                                          requiredSamples,
                                                          requiredTolerance,
                                                          maxSamples,
                                                          seed));
            else
                QL_FAIL("unknown Monte Carlo engine type: "+s);
        }

using QuantLib::HimalayaOption;
typedef boost::shared_ptr<Instrument> HimalayaOptionPtr;
using QuantLib::MCHimalayaEngine;
typedef boost::shared_ptr<PricingEngine> MCHimalayaEnginePtr;

SWIGINTERN HimalayaOptionPtr *new_HimalayaOptionPtr(std::vector< Date,std::allocator< Date > > const &fixingDates,Real strike){
            return new HimalayaOptionPtr(new HimalayaOption(fixingDates,
                                                            strike));
        }
SWIGINTERN MCHimalayaEnginePtr *new_MCHimalayaEnginePtr(StochasticProcessArrayPtr const &process,std::string const &traits,bool brownianBridge=false,bool antitheticVariate=false,intOrNull requiredSamples=Null< Size >(),doubleOrNull requiredTolerance=Null< Real >(),intOrNull maxSamples=Null< Size >(),BigInteger seed=0){
            boost::shared_ptr<StochasticProcessArray> processes =
                 boost::dynamic_pointer_cast<StochasticProcessArray>(process);
            QL_REQUIRE(processes, "stochastic-process array required");
            std::string s = boost::algorithm::to_lower_copy(traits);
            if (s == "pseudorandom" || s == "pr")
                return new MCHimalayaEnginePtr(
                       new MCHimalayaEngine<PseudoRandom>(processes,
                                                          brownianBridge,
                                                          antitheticVariate,
                                                          requiredSamples,
                                                          requiredTolerance,
                                                          maxSamples,
                                                          seed));
            else if (s == "lowdiscrepancy" || s == "ld")
                return new MCHimalayaEnginePtr(
                     new MCHimalayaEngine<LowDiscrepancy>(processes,
                                                          brownianBridge,
                                                          antitheticVariate,
                                                          requiredSamples,
                                                          requiredTolerance,
                                                          maxSamples,
                                                          seed));
            else
                QL_FAIL("unknown Monte Carlo engine type: "+s);
        }

using QuantLib::blackFormula;
using QuantLib::blackFormulaImpliedStdDev;
using QuantLib::blackFormulaCashItmProbability;
using QuantLib::bachelierBlackFormula;
using QuantLib::bachelierBlackFormulaImpliedVol;


using QuantLib::BlackDeltaCalculator;


using QuantLib::Callability;
using QuantLib::SoftCallability;
typedef boost::shared_ptr<Callability> CallabilityPtr;
typedef boost::shared_ptr<Callability> SoftCallabilityPtr;
typedef Callability::Price CallabilityPrice;
using QuantLib::CallabilitySchedule;

SWIGINTERN bool boost_shared_ptr_Sl_Callability_Sg____nonzero__(boost::shared_ptr< Callability > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_Callability_Sg____bool__(boost::shared_ptr< Callability > *self){
                return !!(*self);
            }
SWIGINTERN boost::shared_ptr< Callability > *new_boost_shared_ptr_Sl_Callability_Sg_(CallabilityPrice const &price,Callability::Type type,Date const &date){
        return new boost::shared_ptr<Callability>(
                                            new Callability(price,type,date));
    }

using QuantLib::SoftCallability;
typedef boost::shared_ptr<Callability> SoftCallabilityPtr;

SWIGINTERN SoftCallabilityPtr *new_SoftCallabilityPtr(CallabilityPrice const &price,Date const &date,Real trigger){
            return new SoftCallabilityPtr(new SoftCallability(price,date,
                                                              trigger));
        }

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


      namespace swig {
	template <>  struct traits<std::vector< boost::shared_ptr< Callability >, std::allocator< boost::shared_ptr< Callability > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "boost::shared_ptr< Callability >" "," "std::allocator< boost::shared_ptr< Callability > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg__iterator(std::vector< boost::shared_ptr< Callability > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____nonzero__(std::vector< boost::shared_ptr< Callability > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____bool__(std::vector< boost::shared_ptr< Callability > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< boost::shared_ptr< Callability > >::size_type std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____len__(std::vector< boost::shared_ptr< Callability > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____getslice__(std::vector< boost::shared_ptr< Callability > > *self,std::vector< boost::shared_ptr< Callability > >::difference_type i,std::vector< boost::shared_ptr< Callability > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____setslice____SWIG_0(std::vector< boost::shared_ptr< Callability > > *self,std::vector< boost::shared_ptr< Callability > >::difference_type i,std::vector< boost::shared_ptr< Callability > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >());
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____setslice____SWIG_1(std::vector< boost::shared_ptr< Callability > > *self,std::vector< boost::shared_ptr< Callability > >::difference_type i,std::vector< boost::shared_ptr< Callability > >::difference_type j,std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____delslice__(std::vector< boost::shared_ptr< Callability > > *self,std::vector< boost::shared_ptr< Callability > >::difference_type i,std::vector< boost::shared_ptr< Callability > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____delitem____SWIG_0(std::vector< boost::shared_ptr< Callability > > *self,std::vector< boost::shared_ptr< Callability > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____getitem____SWIG_0(std::vector< boost::shared_ptr< Callability > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >::difference_type id = i;
      std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____setitem____SWIG_0(std::vector< boost::shared_ptr< Callability > > *self,PySliceObject *slice,std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >::difference_type id = i;
      std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____setitem____SWIG_1(std::vector< boost::shared_ptr< Callability > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >::difference_type id = i;
      std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____delitem____SWIG_1(std::vector< boost::shared_ptr< Callability > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >::difference_type id = i;
      std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< boost::shared_ptr< Callability > >::value_type const &std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____getitem____SWIG_1(std::vector< boost::shared_ptr< Callability > > const *self,std::vector< boost::shared_ptr< Callability > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____setitem____SWIG_2(std::vector< boost::shared_ptr< Callability > > *self,std::vector< boost::shared_ptr< Callability > >::difference_type i,std::vector< boost::shared_ptr< Callability > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< boost::shared_ptr< Callability > >::value_type std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg__pop(std::vector< boost::shared_ptr< Callability > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg__append(std::vector< boost::shared_ptr< Callability > > *self,std::vector< boost::shared_ptr< Callability > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< boost::shared_ptr< Callability > >::iterator std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg__erase__SWIG_0(std::vector< boost::shared_ptr< Callability > > *self,std::vector< boost::shared_ptr< Callability > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< boost::shared_ptr< Callability > >::iterator std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg__erase__SWIG_1(std::vector< boost::shared_ptr< Callability > > *self,std::vector< boost::shared_ptr< Callability > >::iterator first,std::vector< boost::shared_ptr< Callability > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< boost::shared_ptr< Callability > >::iterator std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg__insert__SWIG_0(std::vector< boost::shared_ptr< Callability > > *self,std::vector< boost::shared_ptr< Callability > >::iterator pos,std::vector< boost::shared_ptr< Callability > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg__insert__SWIG_1(std::vector< boost::shared_ptr< Callability > > *self,std::vector< boost::shared_ptr< Callability > >::iterator pos,std::vector< boost::shared_ptr< Callability > >::size_type n,std::vector< boost::shared_ptr< Callability > >::value_type const &x){ self->insert(pos, n, x); }

  using QuantLib::Seasonality;
  using QuantLib::MultiplicativePriceSeasonality;
  typedef boost::shared_ptr<Seasonality> MultiplicativePriceSeasonalityPtr;

SWIGINTERN bool boost_shared_ptr_Sl_Seasonality_Sg____nonzero__(boost::shared_ptr< Seasonality > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_Seasonality_Sg____bool__(boost::shared_ptr< Seasonality > *self){
                return !!(*self);
            }
SWIGINTERN MultiplicativePriceSeasonalityPtr *new_MultiplicativePriceSeasonalityPtr(Date const &seasonalityBaseDate,Frequency frequency,std::vector< Rate,std::allocator< Rate > > const &seasonalityFactors){
            return new MultiplicativePriceSeasonalityPtr(
                       new MultiplicativePriceSeasonality(seasonalityBaseDate,
                                                          frequency,
                                                          seasonalityFactors));
        }

  using QuantLib::InflationTermStructure;
  using QuantLib::YoYInflationTermStructure;
  using QuantLib::ZeroInflationTermStructure;

SWIGINTERN bool boost_shared_ptr_Sl_YoYInflationTermStructure_Sg____nonzero__(boost::shared_ptr< YoYInflationTermStructure > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_YoYInflationTermStructure_Sg____bool__(boost::shared_ptr< YoYInflationTermStructure > *self){
                return !!(*self);
            }
SWIGINTERN boost::shared_ptr< Observable > boost_shared_ptr_Sl_YoYInflationTermStructure_Sg__asObservable(boost::shared_ptr< YoYInflationTermStructure > *self){
        return boost::shared_ptr<Observable>(*self);
    }
SWIGINTERN bool Handle_Sl_YoYInflationTermStructure_Sg____nonzero__(Handle< YoYInflationTermStructure > *self){
            return !self->empty();
        }
SWIGINTERN bool Handle_Sl_YoYInflationTermStructure_Sg____bool__(Handle< YoYInflationTermStructure > *self){
            return !self->empty();
        }
SWIGINTERN boost::shared_ptr< Observable > Handle_Sl_YoYInflationTermStructure_Sg__asObservable(Handle< YoYInflationTermStructure > *self){
        return boost::shared_ptr<Observable>(*self);
    }
SWIGINTERN bool boost_shared_ptr_Sl_ZeroInflationTermStructure_Sg____nonzero__(boost::shared_ptr< ZeroInflationTermStructure > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_ZeroInflationTermStructure_Sg____bool__(boost::shared_ptr< ZeroInflationTermStructure > *self){
                return !!(*self);
            }
SWIGINTERN boost::shared_ptr< Observable > boost_shared_ptr_Sl_ZeroInflationTermStructure_Sg__asObservable(boost::shared_ptr< ZeroInflationTermStructure > *self){
        return boost::shared_ptr<Observable>(*self);
    }
SWIGINTERN bool Handle_Sl_ZeroInflationTermStructure_Sg____nonzero__(Handle< ZeroInflationTermStructure > *self){
            return !self->empty();
        }
SWIGINTERN bool Handle_Sl_ZeroInflationTermStructure_Sg____bool__(Handle< ZeroInflationTermStructure > *self){
            return !self->empty();
        }
SWIGINTERN boost::shared_ptr< Observable > Handle_Sl_ZeroInflationTermStructure_Sg__asObservable(Handle< ZeroInflationTermStructure > *self){
        return boost::shared_ptr<Observable>(*self);
    }

#include <ql/indexes/inflationindex.hpp>
#include <ql/indexes/inflation/all.hpp>
using QuantLib::Region;
using QuantLib::CustomRegion;
using QuantLib::InflationIndex;
using QuantLib::ZeroInflationIndex;
using QuantLib::YoYInflationIndex;
typedef boost::shared_ptr<Index> InflationIndexPtr;
typedef boost::shared_ptr<Index> ZeroInflationIndexPtr;
typedef boost::shared_ptr<Index> YoYInflationIndexPtr;

SWIGINTERN bool InflationIndexPtr_interpolated(InflationIndexPtr const *self){
            return boost::dynamic_pointer_cast<InflationIndex>(*self)
                ->interpolated();
        }
SWIGINTERN Frequency InflationIndexPtr_frequency(InflationIndexPtr const *self){
            return boost::dynamic_pointer_cast<InflationIndex>(*self)
                ->frequency();
        }
SWIGINTERN Period InflationIndexPtr_availabilityLag(InflationIndexPtr const *self){
            return boost::dynamic_pointer_cast<InflationIndex>(*self)
                ->availabilityLag();
        }
SWIGINTERN Currency InflationIndexPtr_currency(InflationIndexPtr const *self){
            return boost::dynamic_pointer_cast<InflationIndex>(*self)
                ->currency();
        }
SWIGINTERN ZeroInflationIndexPtr *new_ZeroInflationIndexPtr__SWIG_0(std::string const &familyName,Region const &region,bool revised,bool interpolated,Frequency frequency,Period const &availabilityLag,Currency const &currency,Handle< ZeroInflationTermStructure > const &h=Handle< ZeroInflationTermStructure >()){
          return new ZeroInflationIndexPtr(
              new ZeroInflationIndex(familyName, region, revised, interpolated,
                                     frequency, availabilityLag, currency, h));
      }

using QuantLib::EUHICP;
typedef boost::shared_ptr<Index> EUHICPPtr;

SWIGINTERN EUHICPPtr *new_EUHICPPtr__SWIG_0(bool interpolated,Handle< ZeroInflationTermStructure > const &h=Handle< ZeroInflationTermStructure >()){
          return new EUHICPPtr(new EUHICP(interpolated,h));
      }

using QuantLib::EUHICPXT;
typedef boost::shared_ptr<Index> EUHICPXTPtr;

SWIGINTERN EUHICPXTPtr *new_EUHICPXTPtr__SWIG_0(bool interpolated,Handle< ZeroInflationTermStructure > const &h=Handle< ZeroInflationTermStructure >()){
          return new EUHICPXTPtr(new EUHICPXT(interpolated,h));
      }

using QuantLib::FRHICP;
typedef boost::shared_ptr<Index> FRHICPPtr;

SWIGINTERN FRHICPPtr *new_FRHICPPtr__SWIG_0(bool interpolated,Handle< ZeroInflationTermStructure > const &h=Handle< ZeroInflationTermStructure >()){
          return new FRHICPPtr(new FRHICP(interpolated,h));
      }

using QuantLib::UKRPI;
typedef boost::shared_ptr<Index> UKRPIPtr;

SWIGINTERN UKRPIPtr *new_UKRPIPtr__SWIG_0(bool interpolated,Handle< ZeroInflationTermStructure > const &h=Handle< ZeroInflationTermStructure >()){
          return new UKRPIPtr(new UKRPI(interpolated,h));
      }

using QuantLib::USCPI;
typedef boost::shared_ptr<Index> USCPIPtr;

SWIGINTERN USCPIPtr *new_USCPIPtr__SWIG_0(bool interpolated,Handle< ZeroInflationTermStructure > const &h=Handle< ZeroInflationTermStructure >()){
          return new USCPIPtr(new USCPI(interpolated,h));
      }

using QuantLib::ZACPI;
typedef boost::shared_ptr<Index> ZACPIPtr;

SWIGINTERN ZACPIPtr *new_ZACPIPtr__SWIG_0(bool interpolated,Handle< ZeroInflationTermStructure > const &h=Handle< ZeroInflationTermStructure >()){
          return new ZACPIPtr(new ZACPI(interpolated,h));
      }

using QuantLib::YYEUHICP;
typedef boost::shared_ptr<Index> YYEUHICPPtr;

SWIGINTERN YYEUHICPPtr *new_YYEUHICPPtr__SWIG_0(bool interpolated,Handle< YoYInflationTermStructure > const &h=Handle< YoYInflationTermStructure >()){
          return new YYEUHICPPtr(new YYEUHICP(interpolated,h));
      }

using QuantLib::YYEUHICPXT;
typedef boost::shared_ptr<Index> YYEUHICPXTPtr;

SWIGINTERN YYEUHICPXTPtr *new_YYEUHICPXTPtr__SWIG_0(bool interpolated,Handle< YoYInflationTermStructure > const &h=Handle< YoYInflationTermStructure >()){
          return new YYEUHICPXTPtr(new YYEUHICPXT(interpolated,h));
      }

using QuantLib::YYFRHICP;
typedef boost::shared_ptr<Index> YYFRHICPPtr;

SWIGINTERN YYFRHICPPtr *new_YYFRHICPPtr__SWIG_0(bool interpolated,Handle< YoYInflationTermStructure > const &h=Handle< YoYInflationTermStructure >()){
          return new YYFRHICPPtr(new YYFRHICP(interpolated,h));
      }

using QuantLib::YYUKRPI;
typedef boost::shared_ptr<Index> YYUKRPIPtr;

SWIGINTERN YYUKRPIPtr *new_YYUKRPIPtr__SWIG_0(bool interpolated,Handle< YoYInflationTermStructure > const &h=Handle< YoYInflationTermStructure >()){
          return new YYUKRPIPtr(new YYUKRPI(interpolated,h));
      }

using QuantLib::YYUSCPI;
typedef boost::shared_ptr<Index> YYUSCPIPtr;

SWIGINTERN YYUSCPIPtr *new_YYUSCPIPtr__SWIG_0(bool interpolated,Handle< YoYInflationTermStructure > const &h=Handle< YoYInflationTermStructure >()){
          return new YYUSCPIPtr(new YYUSCPI(interpolated,h));
      }

using QuantLib::YYZACPI;
typedef boost::shared_ptr<Index> YYZACPIPtr;

SWIGINTERN YYZACPIPtr *new_YYZACPIPtr__SWIG_0(bool interpolated,Handle< YoYInflationTermStructure > const &h=Handle< YoYInflationTermStructure >()){
          return new YYZACPIPtr(new YYZACPI(interpolated,h));
      }

    using QuantLib::CPI;


typedef QuantLib::BootstrapHelper<ZeroInflationTermStructure> ZeroHelper;
typedef QuantLib::BootstrapHelper<YoYInflationTermStructure> YoYHelper;

using QuantLib::ZeroCouponInflationSwapHelper;
typedef boost::shared_ptr<ZeroHelper> ZeroCouponInflationSwapHelperPtr;

using QuantLib::YearOnYearInflationSwapHelper;
typedef boost::shared_ptr<YoYHelper> YearOnYearInflationSwapHelperPtr;

SWIGINTERN bool boost_shared_ptr_Sl_ZeroHelper_Sg____nonzero__(boost::shared_ptr< ZeroHelper > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_ZeroHelper_Sg____bool__(boost::shared_ptr< ZeroHelper > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_YoYHelper_Sg____nonzero__(boost::shared_ptr< YoYHelper > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_YoYHelper_Sg____bool__(boost::shared_ptr< YoYHelper > *self){
                return !!(*self);
            }

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


      namespace swig {
	template <>  struct traits<std::vector< boost::shared_ptr< ZeroHelper >, std::allocator< boost::shared_ptr< ZeroHelper > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "boost::shared_ptr< ZeroHelper >" "," "std::allocator< boost::shared_ptr< ZeroHelper > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg__iterator(std::vector< boost::shared_ptr< ZeroHelper > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____nonzero__(std::vector< boost::shared_ptr< ZeroHelper > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____bool__(std::vector< boost::shared_ptr< ZeroHelper > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< boost::shared_ptr< ZeroHelper > >::size_type std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____len__(std::vector< boost::shared_ptr< ZeroHelper > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > *std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____getslice__(std::vector< boost::shared_ptr< ZeroHelper > > *self,std::vector< boost::shared_ptr< ZeroHelper > >::difference_type i,std::vector< boost::shared_ptr< ZeroHelper > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____setslice____SWIG_0(std::vector< boost::shared_ptr< ZeroHelper > > *self,std::vector< boost::shared_ptr< ZeroHelper > >::difference_type i,std::vector< boost::shared_ptr< ZeroHelper > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >());
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____setslice____SWIG_1(std::vector< boost::shared_ptr< ZeroHelper > > *self,std::vector< boost::shared_ptr< ZeroHelper > >::difference_type i,std::vector< boost::shared_ptr< ZeroHelper > >::difference_type j,std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____delslice__(std::vector< boost::shared_ptr< ZeroHelper > > *self,std::vector< boost::shared_ptr< ZeroHelper > >::difference_type i,std::vector< boost::shared_ptr< ZeroHelper > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____delitem____SWIG_0(std::vector< boost::shared_ptr< ZeroHelper > > *self,std::vector< boost::shared_ptr< ZeroHelper > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > *std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____getitem____SWIG_0(std::vector< boost::shared_ptr< ZeroHelper > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____setitem____SWIG_0(std::vector< boost::shared_ptr< ZeroHelper > > *self,PySliceObject *slice,std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____setitem____SWIG_1(std::vector< boost::shared_ptr< ZeroHelper > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____delitem____SWIG_1(std::vector< boost::shared_ptr< ZeroHelper > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____getitem____SWIG_1(std::vector< boost::shared_ptr< ZeroHelper > > const *self,std::vector< boost::shared_ptr< ZeroHelper > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____setitem____SWIG_2(std::vector< boost::shared_ptr< ZeroHelper > > *self,std::vector< boost::shared_ptr< ZeroHelper > >::difference_type i,std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< boost::shared_ptr< ZeroHelper > >::value_type std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg__pop(std::vector< boost::shared_ptr< ZeroHelper > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg__append(std::vector< boost::shared_ptr< ZeroHelper > > *self,std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< boost::shared_ptr< ZeroHelper > >::iterator std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg__erase__SWIG_0(std::vector< boost::shared_ptr< ZeroHelper > > *self,std::vector< boost::shared_ptr< ZeroHelper > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< boost::shared_ptr< ZeroHelper > >::iterator std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg__erase__SWIG_1(std::vector< boost::shared_ptr< ZeroHelper > > *self,std::vector< boost::shared_ptr< ZeroHelper > >::iterator first,std::vector< boost::shared_ptr< ZeroHelper > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< boost::shared_ptr< ZeroHelper > >::iterator std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg__insert__SWIG_0(std::vector< boost::shared_ptr< ZeroHelper > > *self,std::vector< boost::shared_ptr< ZeroHelper > >::iterator pos,std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg__insert__SWIG_1(std::vector< boost::shared_ptr< ZeroHelper > > *self,std::vector< boost::shared_ptr< ZeroHelper > >::iterator pos,std::vector< boost::shared_ptr< ZeroHelper > >::size_type n,std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &x){ self->insert(pos, n, x); }

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


      namespace swig {
	template <>  struct traits<std::vector< boost::shared_ptr< YoYHelper >, std::allocator< boost::shared_ptr< YoYHelper > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "boost::shared_ptr< YoYHelper >" "," "std::allocator< boost::shared_ptr< YoYHelper > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg__iterator(std::vector< boost::shared_ptr< YoYHelper > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____nonzero__(std::vector< boost::shared_ptr< YoYHelper > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____bool__(std::vector< boost::shared_ptr< YoYHelper > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< boost::shared_ptr< YoYHelper > >::size_type std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____len__(std::vector< boost::shared_ptr< YoYHelper > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > *std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____getslice__(std::vector< boost::shared_ptr< YoYHelper > > *self,std::vector< boost::shared_ptr< YoYHelper > >::difference_type i,std::vector< boost::shared_ptr< YoYHelper > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____setslice____SWIG_0(std::vector< boost::shared_ptr< YoYHelper > > *self,std::vector< boost::shared_ptr< YoYHelper > >::difference_type i,std::vector< boost::shared_ptr< YoYHelper > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >());
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____setslice____SWIG_1(std::vector< boost::shared_ptr< YoYHelper > > *self,std::vector< boost::shared_ptr< YoYHelper > >::difference_type i,std::vector< boost::shared_ptr< YoYHelper > >::difference_type j,std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____delslice__(std::vector< boost::shared_ptr< YoYHelper > > *self,std::vector< boost::shared_ptr< YoYHelper > >::difference_type i,std::vector< boost::shared_ptr< YoYHelper > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____delitem____SWIG_0(std::vector< boost::shared_ptr< YoYHelper > > *self,std::vector< boost::shared_ptr< YoYHelper > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > *std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____getitem____SWIG_0(std::vector< boost::shared_ptr< YoYHelper > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____setitem____SWIG_0(std::vector< boost::shared_ptr< YoYHelper > > *self,PySliceObject *slice,std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____setitem____SWIG_1(std::vector< boost::shared_ptr< YoYHelper > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____delitem____SWIG_1(std::vector< boost::shared_ptr< YoYHelper > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< boost::shared_ptr< YoYHelper > >::value_type const &std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____getitem____SWIG_1(std::vector< boost::shared_ptr< YoYHelper > > const *self,std::vector< boost::shared_ptr< YoYHelper > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____setitem____SWIG_2(std::vector< boost::shared_ptr< YoYHelper > > *self,std::vector< boost::shared_ptr< YoYHelper > >::difference_type i,std::vector< boost::shared_ptr< YoYHelper > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< boost::shared_ptr< YoYHelper > >::value_type std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg__pop(std::vector< boost::shared_ptr< YoYHelper > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg__append(std::vector< boost::shared_ptr< YoYHelper > > *self,std::vector< boost::shared_ptr< YoYHelper > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< boost::shared_ptr< YoYHelper > >::iterator std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg__erase__SWIG_0(std::vector< boost::shared_ptr< YoYHelper > > *self,std::vector< boost::shared_ptr< YoYHelper > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< boost::shared_ptr< YoYHelper > >::iterator std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg__erase__SWIG_1(std::vector< boost::shared_ptr< YoYHelper > > *self,std::vector< boost::shared_ptr< YoYHelper > >::iterator first,std::vector< boost::shared_ptr< YoYHelper > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< boost::shared_ptr< YoYHelper > >::iterator std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg__insert__SWIG_0(std::vector< boost::shared_ptr< YoYHelper > > *self,std::vector< boost::shared_ptr< YoYHelper > >::iterator pos,std::vector< boost::shared_ptr< YoYHelper > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg__insert__SWIG_1(std::vector< boost::shared_ptr< YoYHelper > > *self,std::vector< boost::shared_ptr< YoYHelper > >::iterator pos,std::vector< boost::shared_ptr< YoYHelper > >::size_type n,std::vector< boost::shared_ptr< YoYHelper > >::value_type const &x){ self->insert(pos, n, x); }
SWIGINTERN ZeroCouponInflationSwapHelperPtr *new_ZeroCouponInflationSwapHelperPtr(Rate rate,Period const &lag,Date const &maturity,Calendar const &calendar,BusinessDayConvention bdc,DayCounter const &dayCounter,ZeroInflationIndexPtr const &index){
            Handle<Quote> quote(
                boost::shared_ptr<Quote>(new SimpleQuote(rate)));
            boost::shared_ptr<ZeroInflationIndex> zeroIndex =
                boost::dynamic_pointer_cast<ZeroInflationIndex>(index);
            return new ZeroCouponInflationSwapHelperPtr(
                new ZeroCouponInflationSwapHelper(quote,lag,maturity,
                                                  calendar,bdc,
                                                  dayCounter,zeroIndex));
        }
SWIGINTERN YearOnYearInflationSwapHelperPtr *new_YearOnYearInflationSwapHelperPtr(Rate rate,Period const &lag,Date const &maturity,Calendar const &calendar,BusinessDayConvention bdc,DayCounter const &dayCounter,YoYInflationIndexPtr const &index){
            Handle<Quote> quote(
                boost::shared_ptr<Quote>(new SimpleQuote(rate)));
            boost::shared_ptr<YoYInflationIndex> yoyIndex =
                boost::dynamic_pointer_cast<YoYInflationIndex>(index);
            return new YearOnYearInflationSwapHelperPtr(
                new YearOnYearInflationSwapHelper(quote,lag,maturity,
                                                  calendar,bdc,
                                                  dayCounter,yoyIndex));
        }

using QuantLib::PiecewiseZeroInflationCurve;
using QuantLib::PiecewiseYoYInflationCurve;


typedef boost::shared_ptr<ZeroInflationTermStructure> PiecewiseZeroInflationPtr;

SWIGINTERN PiecewiseZeroInflationPtr *new_PiecewiseZeroInflationPtr(Date const &referenceDate,Calendar const &calendar,DayCounter const &dayCounter,Period const &lag,Frequency frequency,bool indexIsInterpolated,Rate baseRate,Handle< YieldTermStructure > const &nominalTS,std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > const &instruments,Real accuracy=1.0e-12,Linear const &i=Linear()){
            return new PiecewiseZeroInflationPtr(
                new PiecewiseZeroInflationCurve<Linear>(
                                        referenceDate, calendar, dayCounter,
                                        lag, frequency, indexIsInterpolated,
                                        baseRate, nominalTS, instruments,
                                        accuracy, i));
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &PiecewiseZeroInflationPtr_dates(PiecewiseZeroInflationPtr *self){
            typedef PiecewiseZeroInflationCurve<Linear> PiecewiseZeroInflation;
            return boost::dynamic_pointer_cast<PiecewiseZeroInflation>(*self)->dates();
        }
SWIGINTERN std::vector< Time,std::allocator< Time > > const &PiecewiseZeroInflationPtr_times(PiecewiseZeroInflationPtr *self){
            typedef PiecewiseZeroInflationCurve<Linear> PiecewiseZeroInflation;
            return boost::dynamic_pointer_cast<PiecewiseZeroInflation>(*self)->times();
        }
SWIGINTERN std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > PiecewiseZeroInflationPtr_nodes(PiecewiseZeroInflationPtr *self){
            typedef PiecewiseZeroInflationCurve<Linear> PiecewiseZeroInflation;
            return boost::dynamic_pointer_cast<PiecewiseZeroInflation>(*self)->nodes();
        }

typedef boost::shared_ptr<YoYInflationTermStructure> PiecewiseYoYInflationPtr;

SWIGINTERN PiecewiseYoYInflationPtr *new_PiecewiseYoYInflationPtr(Date const &referenceDate,Calendar const &calendar,DayCounter const &dayCounter,Period const &lag,Frequency frequency,bool indexIsInterpolated,Rate baseRate,Handle< YieldTermStructure > const &nominalTS,std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > const &instruments,Real accuracy=1.0e-12,Linear const &i=Linear()){
            return new PiecewiseYoYInflationPtr(
                new PiecewiseYoYInflationCurve<Linear>(
                                        referenceDate, calendar, dayCounter,
                                        lag, frequency, indexIsInterpolated,
                                        baseRate, nominalTS, instruments,
                                        accuracy, i));
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &PiecewiseYoYInflationPtr_dates(PiecewiseYoYInflationPtr *self){
            typedef PiecewiseYoYInflationCurve<Linear> PiecewiseYoYInflation;
            return boost::dynamic_pointer_cast<PiecewiseYoYInflation>(*self)->dates();
        }
SWIGINTERN std::vector< Time,std::allocator< Time > > const &PiecewiseYoYInflationPtr_times(PiecewiseYoYInflationPtr *self){
            typedef PiecewiseYoYInflationCurve<Linear> PiecewiseYoYInflation;
            return boost::dynamic_pointer_cast<PiecewiseYoYInflation>(*self)->times();
        }
SWIGINTERN std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > PiecewiseYoYInflationPtr_nodes(PiecewiseYoYInflationPtr *self){
            typedef PiecewiseYoYInflationCurve<Linear> PiecewiseYoYInflation;
            return boost::dynamic_pointer_cast<PiecewiseYoYInflation>(*self)->nodes();
        }


    Date inflationBaseDate(const Date& referenceDate,
                           const Period& observationLag,
                           Frequency frequency,
                           bool indexIsInterpolated) {
        if (indexIsInterpolated) {
            return referenceDate - observationLag;
        } else {
            return QuantLib::inflationPeriod(referenceDate - observationLag,
                                             frequency).first;
        }
    }



using QuantLib::ZeroCouponInflationSwap;
using QuantLib::YearOnYearInflationSwap;
typedef boost::shared_ptr<Instrument> ZeroCouponInflationSwapPtr;
typedef boost::shared_ptr<Instrument> YearOnYearInflationSwapPtr;

SWIGINTERN ZeroCouponInflationSwapPtr *new_ZeroCouponInflationSwapPtr__SWIG_0(ZeroCouponInflationSwap::Type type,Real nominal,Date const &start,Date const &maturity,Calendar const &calendar,BusinessDayConvention convention,DayCounter const &dayCounter,Rate fixedRate,ZeroInflationIndexPtr const &index,Period const &lag,bool adjustInfObsDates=false,Calendar infCalendar=Calendar(),BusinessDayConvention infConvention=Following){
            boost::shared_ptr<ZeroInflationIndex> zeroIndex =
                boost::dynamic_pointer_cast<ZeroInflationIndex>(index);
            return new ZeroCouponInflationSwapPtr(
                new ZeroCouponInflationSwap(type, nominal, start, maturity,
                                            calendar, convention, dayCounter,
                                            fixedRate, zeroIndex, lag,
                                            adjustInfObsDates,
                                            infCalendar, infConvention));
        }
SWIGINTERN Rate ZeroCouponInflationSwapPtr_fairRate(ZeroCouponInflationSwapPtr *self){
            return boost::dynamic_pointer_cast<ZeroCouponInflationSwap>(*self)
                ->fairRate();
        }
SWIGINTERN std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > ZeroCouponInflationSwapPtr_fixedLeg(ZeroCouponInflationSwapPtr *self){
            return boost::dynamic_pointer_cast<ZeroCouponInflationSwap>(*self)
                ->fixedLeg();
        }
SWIGINTERN std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > ZeroCouponInflationSwapPtr_inflationLeg(ZeroCouponInflationSwapPtr *self){
            return boost::dynamic_pointer_cast<ZeroCouponInflationSwap>(*self)
                ->inflationLeg();
        }
SWIGINTERN ZeroCouponInflationSwap::Type ZeroCouponInflationSwapPtr_type(ZeroCouponInflationSwapPtr *self){
            return boost::dynamic_pointer_cast<ZeroCouponInflationSwap>(*self)
                ->type();
        }
SWIGINTERN YearOnYearInflationSwapPtr *new_YearOnYearInflationSwapPtr__SWIG_0(YearOnYearInflationSwap::Type type,Real nominal,Schedule const &fixedSchedule,Rate fixedRate,DayCounter const &fixedDayCounter,Schedule const &yoySchedule,YoYInflationIndexPtr const &index,Period const &lag,Spread spread,DayCounter const &yoyDayCounter,Calendar const &paymentCalendar,BusinessDayConvention paymentConvention=Following){
            boost::shared_ptr<YoYInflationIndex> yoyIndex =
                boost::dynamic_pointer_cast<YoYInflationIndex>(index);
            return new YearOnYearInflationSwapPtr(
                new YearOnYearInflationSwap(type, nominal, fixedSchedule,
                                            fixedRate, fixedDayCounter,
                                            yoySchedule, yoyIndex, lag, spread,
                                            yoyDayCounter, paymentCalendar,
                                            paymentConvention));
        }
SWIGINTERN Rate YearOnYearInflationSwapPtr_fairRate(YearOnYearInflationSwapPtr *self){
            return boost::dynamic_pointer_cast<YearOnYearInflationSwap>(*self)
                ->fairRate();
        }

using QuantLib::YoYInflationCapFloor;
using QuantLib::YoYInflationCap;
using QuantLib::YoYInflationFloor;
using QuantLib::YoYInflationCollar;

typedef boost::shared_ptr<Instrument> YoYInflationCapFloorPtr;
typedef boost::shared_ptr<Instrument> YoYInflationCapPtr;
typedef boost::shared_ptr<Instrument> YoYInflationFloorPtr;
typedef boost::shared_ptr<Instrument> YoYInflationCollarPtr;

SWIGINTERN Volatility YoYInflationCapFloorPtr_impliedVolatility__SWIG_0(YoYInflationCapFloorPtr const *self,Real price,Handle< YoYInflationTermStructure > const &curve,Volatility guess,Real accuracy=1.0e-4,Size maxEvaluations=100,Volatility minVol=1.0e-7,Volatility maxVol=4.0){
             return boost::dynamic_pointer_cast<YoYInflationCapFloor>(*self)->
                 impliedVolatility(price, curve, guess, accuracy,
                                   maxEvaluations, minVol, maxVol);
         }
SWIGINTERN YoYInflationCapPtr *new_YoYInflationCapPtr(std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &leg,std::vector< Rate,std::allocator< Rate > > const &capRates){
            return new YoYInflationCapPtr(new YoYInflationCap(leg,capRates));
        }
SWIGINTERN YoYInflationFloorPtr *new_YoYInflationFloorPtr(std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &leg,std::vector< Rate,std::allocator< Rate > > const &floorRates){
            return new YoYInflationFloorPtr(
                                       new YoYInflationFloor(leg,floorRates));
        }
SWIGINTERN YoYInflationCollarPtr *new_YoYInflationCollarPtr(std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &leg,std::vector< Rate,std::allocator< Rate > > const &capRates,std::vector< Rate,std::allocator< Rate > > const &floorRates){
            return new YoYInflationCollarPtr(
                             new YoYInflationCollar(leg,capRates,floorRates));
        }

using QuantLib::ShortRateModel;

SWIGINTERN bool boost_shared_ptr_Sl_ShortRateModel_Sg____nonzero__(boost::shared_ptr< ShortRateModel > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_ShortRateModel_Sg____bool__(boost::shared_ptr< ShortRateModel > *self){
                return !!(*self);
            }
SWIGINTERN boost::shared_ptr< Observable > boost_shared_ptr_Sl_ShortRateModel_Sg__asObservable(boost::shared_ptr< ShortRateModel > *self){
        return boost::shared_ptr<Observable>(*self);
    }
SWIGINTERN bool Handle_Sl_ShortRateModel_Sg____nonzero__(Handle< ShortRateModel > *self){
            return !self->empty();
        }
SWIGINTERN bool Handle_Sl_ShortRateModel_Sg____bool__(Handle< ShortRateModel > *self){
            return !self->empty();
        }
SWIGINTERN boost::shared_ptr< Observable > Handle_Sl_ShortRateModel_Sg__asObservable(Handle< ShortRateModel > *self){
        return boost::shared_ptr<Observable>(*self);
    }

    using QuantLib::Vasicek;
    using QuantLib::HullWhite;
    using QuantLib::BlackKarasinski;
    using QuantLib::G2;
    typedef boost::shared_ptr<ShortRateModel> VasicekPtr;
    typedef boost::shared_ptr<ShortRateModel> HullWhitePtr;
    typedef boost::shared_ptr<ShortRateModel> BlackKarasinskiPtr;
    typedef boost::shared_ptr<ShortRateModel> G2Ptr;

SWIGINTERN VasicekPtr *new_VasicekPtr__SWIG_0(Rate r0=0.05,Real a=0.1,Real b=0.05,Real sigma=0.01,Real lambda=0.0){
            return new VasicekPtr(new Vasicek(r0, a, b, sigma, lambda));
        }
SWIGINTERN DiscountFactor VasicekPtr_discount(VasicekPtr const *self,Time t){
            return boost::dynamic_pointer_cast<Vasicek>(*self)->discount(t);
        }
SWIGINTERN Real VasicekPtr_discountBond(VasicekPtr const *self,Time now,Time maturity,Rate rate){
            return boost::dynamic_pointer_cast<Vasicek>(*self)->discountBond(now, maturity, rate);
        }
SWIGINTERN HullWhitePtr *new_HullWhitePtr__SWIG_0(Handle< YieldTermStructure > const &termStructure,Real a=0.1,Real sigma=0.01){
            return new HullWhitePtr(
                new HullWhite(termStructure, a, sigma));
        }
SWIGINTERN DiscountFactor HullWhitePtr_discount(HullWhitePtr const *self,Time t){
            return boost::dynamic_pointer_cast<HullWhite>(*self)->discount(t);
        }
SWIGINTERN Real HullWhitePtr_discountBond(HullWhitePtr const *self,Time now,Time maturity,Rate rate){
            return boost::dynamic_pointer_cast<HullWhite>(*self)->
                                            discountBond(now, maturity, rate);  
        }
SWIGINTERN Rate HullWhitePtr_convexityBias(Real futurePrice,Time t,Time T,Real sigma,Real a){
            return QuantLib::HullWhite::convexityBias(futurePrice, t, T, 
                                                      sigma, a);
        }
SWIGINTERN BlackKarasinskiPtr *new_BlackKarasinskiPtr__SWIG_0(Handle< YieldTermStructure > const &termStructure,Real a=0.1,Real sigma=0.1){
            return new BlackKarasinskiPtr(
                new BlackKarasinski(termStructure, a, sigma));
        }
SWIGINTERN G2Ptr *new_G2Ptr__SWIG_0(Handle< YieldTermStructure > const &termStructure,Real a=0.1,Real sigma=0.01,Real b=0.1,Real eta=0.01,Real rho=-0.75){
            return new G2Ptr(new G2(termStructure, a, sigma, b, eta, rho));
        }
SWIGINTERN DiscountFactor G2Ptr_discount(G2Ptr const *self,Time t){
            return boost::dynamic_pointer_cast<G2>(*self)->discount(t);
        }
SWIGINTERN Real G2Ptr_discountBond(G2Ptr const *self,Time t,Time T,Rate x,Rate y){
            return boost::dynamic_pointer_cast<G2>(*self)->discountBond(t, T, x, y);
        }

using QuantLib::JamshidianSwaptionEngine;
using QuantLib::TreeSwaptionEngine;
using QuantLib::AnalyticCapFloorEngine;
using QuantLib::TreeCapFloorEngine;
using QuantLib::G2SwaptionEngine;
using QuantLib::FdG2SwaptionEngine;
using QuantLib::FdHullWhiteSwaptionEngine;
typedef boost::shared_ptr<PricingEngine> JamshidianSwaptionEnginePtr;
typedef boost::shared_ptr<PricingEngine> TreeSwaptionEnginePtr;
typedef boost::shared_ptr<PricingEngine> AnalyticCapFloorEnginePtr;
typedef boost::shared_ptr<PricingEngine> TreeCapFloorEnginePtr;
typedef boost::shared_ptr<PricingEngine> G2SwaptionEnginePtr;
typedef boost::shared_ptr<PricingEngine> FdG2SwaptionEnginePtr;
typedef boost::shared_ptr<PricingEngine> FdHullWhiteSwaptionEnginePtr;

SWIGINTERN JamshidianSwaptionEnginePtr *new_JamshidianSwaptionEnginePtr__SWIG_0(boost::shared_ptr< ShortRateModel > const &model,Handle< YieldTermStructure > const &termStructure=Handle< YieldTermStructure >()){
            using QuantLib::OneFactorAffineModel;
            boost::shared_ptr<OneFactorAffineModel> m =
                 boost::dynamic_pointer_cast<OneFactorAffineModel>(model);
            QL_REQUIRE(model, "affine model required");
            return new JamshidianSwaptionEnginePtr(
                               new JamshidianSwaptionEngine(m,termStructure));
        }
SWIGINTERN TreeSwaptionEnginePtr *new_TreeSwaptionEnginePtr__SWIG_0(boost::shared_ptr< ShortRateModel > const &model,Size timeSteps,Handle< YieldTermStructure > const &termStructure=Handle< YieldTermStructure >()){
            return new TreeSwaptionEnginePtr(
                       new TreeSwaptionEngine(model,timeSteps,termStructure));
        }
SWIGINTERN TreeSwaptionEnginePtr *new_TreeSwaptionEnginePtr__SWIG_2(boost::shared_ptr< ShortRateModel > const &model,TimeGrid const &grid,Handle< YieldTermStructure > const &termStructure=Handle< YieldTermStructure >()){
            return new TreeSwaptionEnginePtr(
                            new TreeSwaptionEngine(model,grid,termStructure));
        }
SWIGINTERN TreeSwaptionEnginePtr *new_TreeSwaptionEnginePtr__SWIG_4(Handle< ShortRateModel > const &model,Size timeSteps,Handle< YieldTermStructure > const &termStructure=Handle< YieldTermStructure >()){
            return new TreeSwaptionEnginePtr(
                       new TreeSwaptionEngine(model,timeSteps,termStructure));
        }
SWIGINTERN AnalyticCapFloorEnginePtr *new_AnalyticCapFloorEnginePtr__SWIG_0(boost::shared_ptr< ShortRateModel > const &model,Handle< YieldTermStructure > const &termStructure=Handle< YieldTermStructure >()){
            using QuantLib::OneFactorAffineModel;
            boost::shared_ptr<OneFactorAffineModel> m =
                 boost::dynamic_pointer_cast<OneFactorAffineModel>(model);
            QL_REQUIRE(model, "affine model required");
            return new AnalyticCapFloorEnginePtr(
                                 new AnalyticCapFloorEngine(m,termStructure));
        }
SWIGINTERN TreeCapFloorEnginePtr *new_TreeCapFloorEnginePtr__SWIG_0(boost::shared_ptr< ShortRateModel > const &model,Size timeSteps,Handle< YieldTermStructure > const &termStructure=Handle< YieldTermStructure >()){
            return new TreeCapFloorEnginePtr(
                       new TreeCapFloorEngine(model,timeSteps,termStructure));
        }
SWIGINTERN TreeCapFloorEnginePtr *new_TreeCapFloorEnginePtr__SWIG_2(boost::shared_ptr< ShortRateModel > const &model,TimeGrid const &grid,Handle< YieldTermStructure > const &termStructure=Handle< YieldTermStructure >()){
            return new TreeCapFloorEnginePtr(
                            new TreeCapFloorEngine(model,grid,termStructure));
        }
SWIGINTERN G2SwaptionEnginePtr *new_G2SwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &model,Real range,Size intervals){
            boost::shared_ptr<G2> g2 =
                boost::dynamic_pointer_cast<G2>(model);
            return new G2SwaptionEnginePtr(
                                    new G2SwaptionEngine(g2,range,intervals));
        }
SWIGINTERN FdG2SwaptionEnginePtr *new_FdG2SwaptionEnginePtr__SWIG_0(boost::shared_ptr< ShortRateModel > const &model,Size tGrid=100,Size xGrid=50,Size yGrid=50,Size dampingSteps=0,Real invEps=1e-5,FdmSchemeDesc const &schemeDesc=FdmSchemeDesc::Hundsdorfer()){
            boost::shared_ptr<G2> g2 =
                boost::dynamic_pointer_cast<G2>(model);
            return new FdG2SwaptionEnginePtr(
                                    new FdG2SwaptionEngine(g2,tGrid,xGrid,yGrid,dampingSteps,invEps,schemeDesc));
        }
SWIGINTERN FdHullWhiteSwaptionEnginePtr *new_FdHullWhiteSwaptionEnginePtr__SWIG_0(boost::shared_ptr< ShortRateModel > const &model,Size tGrid=100,Size xGrid=100,Size dampingSteps=0,Real invEps=1e-5,FdmSchemeDesc const &schemeDesc=FdmSchemeDesc::Douglas()){
            boost::shared_ptr<HullWhite> hw =
                boost::dynamic_pointer_cast<HullWhite>(model);
            return new FdHullWhiteSwaptionEnginePtr(
                                    new FdHullWhiteSwaptionEngine(hw,tGrid,xGrid,dampingSteps,invEps,schemeDesc));
        }

using QuantLib::Bond;
using QuantLib::ZeroCouponBond;
using QuantLib::FixedRateBond;
using QuantLib::FloatingRateBond;
using QuantLib::DiscountingBondEngine;

typedef boost::shared_ptr<Instrument> BondPtr;
typedef boost::shared_ptr<Instrument> ZeroCouponBondPtr;
typedef boost::shared_ptr<Instrument> FixedRateBondPtr;
typedef boost::shared_ptr<Instrument> FloatingRateBondPtr;
typedef boost::shared_ptr<PricingEngine> DiscountingBondEnginePtr;

SWIGINTERN BondPtr *new_BondPtr__SWIG_0(Natural settlementDays,Calendar const &calendar,Real faceAmount,Date const &maturityDate,Date const &issueDate=Date(),Leg const &cashflows=Leg()){
            return new BondPtr(new Bond(settlementDays,
                                        calendar,
                                        faceAmount,
                                        maturityDate,
                                        issueDate,
                                        cashflows));
        }
SWIGINTERN Rate BondPtr_nextCouponRate__SWIG_0(BondPtr *self,Date const &d=Date()){
            return boost::dynamic_pointer_cast<Bond>(*self)
                ->nextCouponRate();
        }
SWIGINTERN Rate BondPtr_previousCouponRate__SWIG_0(BondPtr *self,Date const &d=Date()){
            return boost::dynamic_pointer_cast<Bond>(*self)
                ->previousCouponRate();
        }
SWIGINTERN Natural BondPtr_settlementDays(BondPtr const *self){
            return boost::dynamic_pointer_cast<Bond>(*self)
                ->settlementDays();
        }
SWIGINTERN Date BondPtr_settlementDate__SWIG_0(BondPtr *self,Date d=Date()){
            return boost::dynamic_pointer_cast<Bond>(*self)->settlementDate(d);
        }
SWIGINTERN Date BondPtr_startDate(BondPtr const *self){
            return boost::dynamic_pointer_cast<Bond>(*self)->startDate();
        }
SWIGINTERN Date BondPtr_maturityDate(BondPtr const *self){
            return boost::dynamic_pointer_cast<Bond>(*self)->maturityDate();
        }
SWIGINTERN Date BondPtr_issueDate(BondPtr const *self){
            return boost::dynamic_pointer_cast<Bond>(*self)->issueDate();
        }
SWIGINTERN std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > BondPtr_cashflows(BondPtr const *self){
            return boost::dynamic_pointer_cast<Bond>(*self)->cashflows();
        }
SWIGINTERN std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > BondPtr_redemptions(BondPtr const *self){
            return boost::dynamic_pointer_cast<Bond>(*self)->redemptions();
        }
SWIGINTERN boost::shared_ptr< CashFlow > BondPtr_redemption(BondPtr const *self){
            return boost::dynamic_pointer_cast<Bond>(*self)->redemption();
        }
SWIGINTERN Calendar BondPtr_calendar(BondPtr const *self){
            return boost::dynamic_pointer_cast<Bond>(*self)->calendar();
        }
SWIGINTERN std::vector< Real,std::allocator< Real > > BondPtr_notionals(BondPtr const *self){
            return boost::dynamic_pointer_cast<Bond>(*self)->notionals();
        }
SWIGINTERN Real BondPtr_notional__SWIG_0(BondPtr const *self,Date d=Date()){
            return boost::dynamic_pointer_cast<Bond>(*self)->notional(d);
        }
SWIGINTERN Real BondPtr_cleanPrice__SWIG_0(BondPtr *self){
            return boost::dynamic_pointer_cast<Bond>(*self)->cleanPrice();
        }
SWIGINTERN Real BondPtr_cleanPrice__SWIG_1(BondPtr *self,Rate yield,DayCounter const &dc,Compounding compounding,Frequency frequency,Date const &settlement=Date()){
            return boost::dynamic_pointer_cast<Bond>(*self)
                ->cleanPrice(yield,dc, compounding, frequency, settlement);
        }
SWIGINTERN Real BondPtr_dirtyPrice__SWIG_0(BondPtr *self){
            return boost::dynamic_pointer_cast<Bond>(*self)->dirtyPrice();
        }
SWIGINTERN Real BondPtr_dirtyPrice__SWIG_1(BondPtr *self,Rate yield,DayCounter const &dc,Compounding compounding,Frequency frequency,Date const &settlement=Date()){
            return boost::dynamic_pointer_cast<Bond>(*self)
                ->dirtyPrice(yield,dc, compounding,
                             frequency, settlement);
        }
SWIGINTERN Real BondPtr_yield__SWIG_0(BondPtr *self,DayCounter const &dc,Compounding compounding,Frequency freq,Real accuracy=1.0e-8,Size maxEvaluations=100){
            return boost::dynamic_pointer_cast<Bond>(*self)
                ->yield(dc,compounding,freq,accuracy,maxEvaluations);
        }
SWIGINTERN Real BondPtr_yield__SWIG_3(BondPtr *self,Real cleanPrice,DayCounter const &dc,Compounding compounding,Frequency freq,Date const &settlement=Date(),Real accuracy=1.0e-8,Size maxEvaluations=100){
            return boost::dynamic_pointer_cast<Bond>(*self)
                ->yield(cleanPrice,dc,compounding,freq,
                        settlement,accuracy,maxEvaluations);
        }
SWIGINTERN Real BondPtr_accruedAmount__SWIG_0(BondPtr *self,Date const &settlement=Date()){
            return boost::dynamic_pointer_cast<Bond>(*self)
                ->accruedAmount(settlement);
        }
SWIGINTERN Real BondPtr_settlementValue__SWIG_0(BondPtr const *self){
            return boost::dynamic_pointer_cast<Bond>(*self)
                ->settlementValue();
        }
SWIGINTERN Real BondPtr_settlementValue__SWIG_1(BondPtr const *self,Real cleanPrice){
            return boost::dynamic_pointer_cast<Bond>(*self)
                ->settlementValue(cleanPrice);
        }


    Real cleanPriceFromZSpread(
                   const BondPtr& bond,
                   const boost::shared_ptr<YieldTermStructure>& discountCurve,
                   Spread zSpread,
                   const DayCounter& dc,
                   Compounding compounding,
                   Frequency freq,
                   const Date& settlementDate = Date()) {
        return QuantLib::BondFunctions::cleanPrice(
                                  *(boost::dynamic_pointer_cast<Bond>(bond)),
                                  discountCurve,
                                  zSpread, dc, compounding,
                                  freq, settlementDate);
    }


SWIGINTERN ZeroCouponBondPtr *new_ZeroCouponBondPtr(Natural settlementDays,Calendar const &calendar,Real faceAmount,Date const &maturityDate,BusinessDayConvention paymentConvention=QuantLib::Following,Real redemption=100.0,Date const &issueDate=Date()){
            return new ZeroCouponBondPtr(
                new ZeroCouponBond(settlementDays, calendar, faceAmount,
                                   maturityDate,
                                   paymentConvention, redemption,
                                   issueDate));
        }
SWIGINTERN FixedRateBondPtr *new_FixedRateBondPtr__SWIG_0(Integer settlementDays,Real faceAmount,Schedule const &schedule,std::vector< Rate,std::allocator< Rate > > const &coupons,DayCounter const &paymentDayCounter,BusinessDayConvention paymentConvention=QuantLib::Following,Real redemption=100.0,Date issueDate=Date(),Calendar const &paymentCalendar=Calendar(),Period const &exCouponPeriod=Period(),Calendar const &exCouponCalendar=Calendar(),BusinessDayConvention exCouponConvention=Unadjusted,bool exCouponEndOfMonth=false){
            return new FixedRateBondPtr(
                new FixedRateBond(settlementDays, faceAmount,
                                  schedule, coupons, paymentDayCounter,
                                  paymentConvention, redemption,
                                  issueDate, paymentCalendar,
                                  exCouponPeriod, exCouponCalendar,
                                  exCouponConvention, exCouponEndOfMonth));
        }
SWIGINTERN FixedRateBondPtr *new_FixedRateBondPtr__SWIG_9(Integer settlementDays,Real faceAmount,Schedule const &schedule,std::vector< InterestRate,std::allocator< InterestRate > > const &coupons,BusinessDayConvention paymentConvention=Following,Real redemption=100.0,Date const &issueDate=Date(),Calendar const &paymentCalendar=Calendar(),Period const &exCouponPeriod=Period(),Calendar const &exCouponCalendar=Calendar(),BusinessDayConvention exCouponConvention=Unadjusted,bool exCouponEndOfMonth=false){
	       return new FixedRateBondPtr(
		      new FixedRateBond(settlementDays, faceAmount,
		                  schedule, coupons, paymentConvention,
		                  redemption, issueDate, paymentCalendar,
		                  exCouponPeriod, exCouponCalendar,
		                  exCouponConvention, exCouponEndOfMonth));
		}
SWIGINTERN Frequency FixedRateBondPtr_frequency(FixedRateBondPtr const *self){
            return boost::dynamic_pointer_cast<FixedRateBond>(*self)
                ->frequency();
        }
SWIGINTERN DayCounter FixedRateBondPtr_dayCounter(FixedRateBondPtr const *self){
            return boost::dynamic_pointer_cast<FixedRateBond>(*self)
                ->dayCounter();
        }
SWIGINTERN FloatingRateBondPtr *new_FloatingRateBondPtr(Size settlementDays,Real faceAmount,Schedule const &schedule,IborIndexPtr const &index,DayCounter const &paymentDayCounter,BusinessDayConvention paymentConvention=Following,Size fixingDays=Null< Size >(),std::vector< Real,std::allocator< Real > > const &gearings=std::vector< Real >(),std::vector< Spread,std::allocator< Spread > > const &spreads=std::vector< Spread >(),std::vector< Rate,std::allocator< Rate > > const &caps=std::vector< Rate >(),std::vector< Rate,std::allocator< Rate > > const &floors=std::vector< Rate >(),bool inArrears=false,Real redemption=100.0,Date const &issueDate=Date()){
            boost::shared_ptr<IborIndex> libor =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new FloatingRateBondPtr(
                new FloatingRateBond(settlementDays,
                                     faceAmount,
                                     schedule,
                                     libor,
                                     paymentDayCounter,
                                     paymentConvention,
                                     fixingDays,
                                     gearings,
                                     spreads,
                                     caps,
                                     floors,
                                     inArrears,
                                     redemption,
                                     issueDate));
        }

using QuantLib::CmsRateBond;
typedef boost::shared_ptr<Instrument> CmsRateBondPtr;

SWIGINTERN CmsRateBondPtr *new_CmsRateBondPtr(Size settlementDays,Real faceAmount,Schedule const &schedule,SwapIndexPtr const &index,DayCounter const &paymentDayCounter,BusinessDayConvention paymentConvention,Natural fixingDays,std::vector< Real,std::allocator< Real > > const &gearings,std::vector< Spread,std::allocator< Spread > > const &spreads,std::vector< Rate,std::allocator< Rate > > const &caps,std::vector< Rate,std::allocator< Rate > > const &floors,bool inArrears=false,Real redemption=100.0,Date const &issueDate=Date()){
            boost::shared_ptr<SwapIndex> swap =
                boost::dynamic_pointer_cast<SwapIndex>(index);
            return new CmsRateBondPtr(
                new CmsRateBond(settlementDays,
                                faceAmount,
                                schedule,
                                swap,
                                paymentDayCounter,
                                paymentConvention,
                                fixingDays,
                                gearings,
                                spreads,
                                caps,
                                floors,
                                inArrears,
                                redemption,
                                issueDate));
        }
SWIGINTERN DiscountingBondEnginePtr *new_DiscountingBondEnginePtr(Handle< YieldTermStructure > const &discountCurve){
            return new DiscountingBondEnginePtr(
                                    new DiscountingBondEngine(discountCurve));
        }

using QuantLib::CallableBond;
using QuantLib::CallableFixedRateBond;
using QuantLib::TreeCallableFixedRateBondEngine;
using QuantLib::BlackCallableFixedRateBondEngine;
typedef boost::shared_ptr<Instrument> CallableFixedRateBondPtr;
typedef boost::shared_ptr<PricingEngine> TreeCallableFixedRateBondEnginePtr;
typedef boost::shared_ptr<PricingEngine> BlackCallableFixedRateBondEnginePtr;

SWIGINTERN CallableFixedRateBondPtr *new_CallableFixedRateBondPtr(Integer settlementDays,Real faceAmount,Schedule const &schedule,std::vector< Rate,std::allocator< Rate > > const &coupons,DayCounter const &accrualDayCounter,BusinessDayConvention paymentConvention,Real redemption,Date issueDate,std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &putCallSchedule){
            return new CallableFixedRateBondPtr(
                new CallableFixedRateBond(settlementDays, faceAmount,
                                          schedule, coupons, accrualDayCounter,
                                          paymentConvention, redemption,
                                          issueDate, putCallSchedule));
        }
SWIGINTERN Real CallableFixedRateBondPtr_OAS__SWIG_0(CallableFixedRateBondPtr *self,Real cleanPrice,Handle< YieldTermStructure > const &engineTS,DayCounter const &dc,Compounding compounding,Frequency freq,Date const &settlementDate=Date(),Real accuracy=1e-10,Size maxIterations=100,Spread guess=0.0){
            return boost::dynamic_pointer_cast<CallableBond>(*self)
                ->OAS(cleanPrice,
                      engineTS,
                      dc, compounding, freq, settlementDate,
                      accuracy,
                      maxIterations,
                      guess);
        }
SWIGINTERN Real CallableFixedRateBondPtr_cleanPriceOAS__SWIG_0(CallableFixedRateBondPtr *self,Real oas,Handle< YieldTermStructure > const &engineTS,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,Date settlementDate=Date()){
            return boost::dynamic_pointer_cast<CallableBond>(*self)
                ->cleanPriceOAS(oas,
                                engineTS,
                                dayCounter,
                                compounding,
                                frequency,
                                settlementDate);
        }
SWIGINTERN Real CallableFixedRateBondPtr_effectiveDuration__SWIG_0(CallableFixedRateBondPtr *self,Real oas,Handle< YieldTermStructure > const &engineTS,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,Real bump=2e-4){
            return boost::dynamic_pointer_cast<CallableBond>(*self)
                ->effectiveDuration(oas,
                                    engineTS,
                                    dayCounter,
                                    compounding,
                                    frequency,
                                    bump);
        }
SWIGINTERN Real CallableFixedRateBondPtr_effectiveConvexity__SWIG_0(CallableFixedRateBondPtr *self,Real oas,Handle< YieldTermStructure > const &engineTS,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,Real bump=2e-4){
            return boost::dynamic_pointer_cast<CallableBond>(*self)
                ->effectiveConvexity(oas,
                                     engineTS,
                                     dayCounter,
                                     compounding,
                                     frequency,
                                     bump);
        }
SWIGINTERN TreeCallableFixedRateBondEnginePtr *new_TreeCallableFixedRateBondEnginePtr__SWIG_0(boost::shared_ptr< ShortRateModel > const &model,Size timeSteps,Handle< YieldTermStructure > const &termStructure=Handle< YieldTermStructure >()){
            return new TreeCallableFixedRateBondEnginePtr(
                new TreeCallableFixedRateBondEngine(model, timeSteps,
                                                    termStructure));
        }
SWIGINTERN TreeCallableFixedRateBondEnginePtr *new_TreeCallableFixedRateBondEnginePtr__SWIG_2(boost::shared_ptr< ShortRateModel > const &model,TimeGrid const &grid,Handle< YieldTermStructure > const &termStructure=Handle< YieldTermStructure >()){
            return new TreeCallableFixedRateBondEnginePtr(
                new TreeCallableFixedRateBondEngine(model, grid,
                                                    termStructure));
        }
SWIGINTERN BlackCallableFixedRateBondEnginePtr *new_BlackCallableFixedRateBondEnginePtr(Handle< Quote > const &fwdYieldVol,Handle< YieldTermStructure > const &discountCurve){
            return new BlackCallableFixedRateBondEnginePtr(
                new BlackCallableFixedRateBondEngine(fwdYieldVol, discountCurve));
        }

using QuantLib::CPIBond;
typedef boost::shared_ptr<Instrument> CPIBondPtr;

SWIGINTERN CPIBondPtr *new_CPIBondPtr(Natural settlementDays,Real faceAmount,bool growthOnly,Real baseCPI,Period const &observationLag,ZeroInflationIndexPtr const &cpiIndex,CPI::InterpolationType observationInterpolation,Schedule const &schedule,std::vector< Rate,std::allocator< Rate > > const &coupons,DayCounter const &accrualDayCounter,BusinessDayConvention paymentConvention=ModifiedFollowing,Date const &issueDate=Date(),Calendar const &paymentCalendar=Calendar(),Period const &exCouponPeriod=Period(),Calendar const &exCouponCalendar=Calendar(),BusinessDayConvention exCouponConvention=Unadjusted,bool exCouponEndOfMonth=false){
            boost::shared_ptr<ZeroInflationIndex> zeroIndex =
                boost::dynamic_pointer_cast<ZeroInflationIndex>(cpiIndex);
            return new CPIBondPtr(
                new CPIBond(settlementDays, faceAmount, growthOnly, baseCPI,
                            observationLag, zeroIndex, observationInterpolation,
                            schedule, coupons, accrualDayCounter,
                            paymentConvention, issueDate, paymentCalendar,
                            exCouponPeriod, exCouponCalendar,
                            exCouponConvention, exCouponEndOfMonth));
        }

using QuantLib::BondFunctions;

SWIGINTERN Date BondFunctions_startDate(BondPtr const &bond){
            return QuantLib::BondFunctions::startDate(
                    *(boost::dynamic_pointer_cast<Bond>(bond)));
        }
SWIGINTERN Date BondFunctions_maturityDate(BondPtr const &bond){
            return QuantLib::BondFunctions::maturityDate(
                    *(boost::dynamic_pointer_cast<Bond>(bond)));
        }
SWIGINTERN bool BondFunctions_isTradable__SWIG_0(BondPtr const &bond,Date settlementDate=Date()){
            return QuantLib::BondFunctions::isTradable(
                    *(boost::dynamic_pointer_cast<Bond>(bond)),
                    settlementDate);
        }
SWIGINTERN Date BondFunctions_previousCashFlowDate__SWIG_0(BondPtr const &bond,Date refDate=Date()){
            return QuantLib::BondFunctions::previousCashFlowDate(
                    *(boost::dynamic_pointer_cast<Bond>(bond)),
                    refDate);
        }
SWIGINTERN Date BondFunctions_nextCashFlowDate__SWIG_0(BondPtr const &bond,Date refDate=Date()){
            return QuantLib::BondFunctions::nextCashFlowDate(
                    *(boost::dynamic_pointer_cast<Bond>(bond)),
                    refDate);
        }
SWIGINTERN Real BondFunctions_previousCashFlowAmount__SWIG_0(BondPtr const &bond,Date refDate=Date()){
            return QuantLib::BondFunctions::previousCashFlowAmount(
                    *(boost::dynamic_pointer_cast<Bond>(bond)),
                    refDate);
        }
SWIGINTERN Real BondFunctions_nextCashFlowAmount__SWIG_0(BondPtr const &bond,Date refDate=Date()){
            return QuantLib::BondFunctions::nextCashFlowAmount(
                    *(boost::dynamic_pointer_cast<Bond>(bond)),
                    refDate);
        }
SWIGINTERN Rate BondFunctions_previousCouponRate__SWIG_0(BondPtr const &bond,Date settlementDate=Date()){
            return QuantLib::BondFunctions::previousCouponRate(
                    *(boost::dynamic_pointer_cast<Bond>(bond)),
                    settlementDate);
        }
SWIGINTERN Rate BondFunctions_nextCouponRate__SWIG_0(BondPtr const &bond,Date settlementDate=Date()){
            return QuantLib::BondFunctions::nextCouponRate(
                    *(boost::dynamic_pointer_cast<Bond>(bond)),
                    settlementDate);
        }
SWIGINTERN Date BondFunctions_accrualStartDate__SWIG_0(BondPtr const &bond,Date settlementDate=Date()){
            return QuantLib::BondFunctions::accrualStartDate(
                    *(boost::dynamic_pointer_cast<Bond>(bond)),
                    settlementDate);
        }
SWIGINTERN Date BondFunctions_accrualEndDate__SWIG_0(BondPtr const &bond,Date settlementDate=Date()){
            return QuantLib::BondFunctions::accrualEndDate(
                    *(boost::dynamic_pointer_cast<Bond>(bond)),
                    settlementDate);
        }
SWIGINTERN Time BondFunctions_accrualPeriod__SWIG_0(BondPtr const &bond,Date settlementDate=Date()){
            return QuantLib::BondFunctions::accrualPeriod(
                    *(boost::dynamic_pointer_cast<Bond>(bond)),
                    settlementDate);
        }
SWIGINTERN BigInteger BondFunctions_accrualDays__SWIG_0(BondPtr const &bond,Date settlementDate=Date()){
            return QuantLib::BondFunctions::accrualDays(
                    *(boost::dynamic_pointer_cast<Bond>(bond)),
                    settlementDate);
        }
SWIGINTERN Time BondFunctions_accruedPeriod__SWIG_0(BondPtr const &bond,Date settlementDate=Date()){
            return QuantLib::BondFunctions::accruedPeriod(
                *(boost::dynamic_pointer_cast<Bond>(bond)),
                settlementDate);
        }
SWIGINTERN BigInteger BondFunctions_accruedDays__SWIG_0(BondPtr const &bond,Date settlementDate=Date()){
            return QuantLib::BondFunctions::accruedDays(
                *(boost::dynamic_pointer_cast<Bond>(bond)),
                settlementDate);
        }
SWIGINTERN Real BondFunctions_accruedAmount__SWIG_0(BondPtr const &bond,Date settlementDate=Date()){

            return QuantLib::BondFunctions::accruedAmount(
                *(boost::dynamic_pointer_cast<Bond>(bond)), 
                settlementDate);
        }
SWIGINTERN Real BondFunctions_cleanPrice__SWIG_0(BondPtr const &bond,boost::shared_ptr< YieldTermStructure > const &discountCurve,Date settlementDate=Date()){
            return QuantLib::BondFunctions::cleanPrice(
                    *(boost::dynamic_pointer_cast<Bond>(bond)),
                    *discountCurve,
                    settlementDate);
        }
SWIGINTERN Real BondFunctions_bps__SWIG_0(BondPtr const &bond,boost::shared_ptr< YieldTermStructure > const &discountCurve,Date settlementDate=Date()){
            return QuantLib::BondFunctions::bps(
                    *(boost::dynamic_pointer_cast<Bond>(bond)),
                    *discountCurve,
                    settlementDate);
        }
SWIGINTERN Rate BondFunctions_atmRate__SWIG_0(BondPtr const &bond,boost::shared_ptr< YieldTermStructure > const &discountCurve,Date settlementDate=Date(),Real cleanPrice=Null< Real >()){
            return QuantLib::BondFunctions::atmRate(
                    *(boost::dynamic_pointer_cast<Bond>(bond)),
                    *discountCurve,
                    settlementDate,
                    cleanPrice);
        }
SWIGINTERN Real BondFunctions_cleanPrice__SWIG_2(BondPtr const &bond,InterestRate const &yield,Date settlementDate=Date()){
            return QuantLib::BondFunctions::cleanPrice(
                    *(boost::dynamic_pointer_cast<Bond>(bond)),
                    yield,
                    settlementDate);
        }
SWIGINTERN Real BondFunctions_cleanPrice__SWIG_4(BondPtr const &bond,Rate yield,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,Date settlementDate=Date()){
            return QuantLib::BondFunctions::cleanPrice(
                    *(boost::dynamic_pointer_cast<Bond>(bond)),
                    yield,
                    dayCounter,
                    compounding,
                    frequency,
                    settlementDate);
        }
SWIGINTERN Real BondFunctions_bps__SWIG_2(BondPtr const &bond,InterestRate const &yield,Date settlementDate=Date()){
            return QuantLib::BondFunctions::bps(
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        yield,
                        settlementDate);
        }
SWIGINTERN Real BondFunctions_bps__SWIG_4(BondPtr const &bond,Rate yield,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,Date settlementDate=Date()){
            return QuantLib::BondFunctions::bps(
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        yield,
                        dayCounter,
                        compounding,
                        frequency,
                        settlementDate);
        }
SWIGINTERN Rate BondFunctions_yield__SWIG_0(BondPtr const &bond,Real cleanPrice,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,Date settlementDate=Date(),Real accuracy=1.0e-10,Size maxIterations=100,Rate guess=0.05){
            return QuantLib::BondFunctions::yield(
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        cleanPrice,
                        dayCounter,
                        compounding,
                        frequency,
                        settlementDate,
                        accuracy,
                        maxIterations,
                        guess);
        }
SWIGINTERN Rate BondFunctions_yieldBrent__SWIG_0(Brent solver,BondPtr const &bond,Real cleanPrice,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,Date settlementDate=Date(),Real accuracy=1.0e-10,Rate guess=0.05){
            return QuantLib::BondFunctions::yield<Brent>(
                        solver,
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        cleanPrice,
                        dayCounter,
                        compounding,
                        frequency,
                        settlementDate,
                        accuracy,
                        guess);
        }
SWIGINTERN Rate BondFunctions_yieldBisection__SWIG_0(Bisection solver,BondPtr const &bond,Real cleanPrice,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,Date settlementDate=Date(),Real accuracy=1.0e-10,Rate guess=0.05){
            return QuantLib::BondFunctions::yield<Bisection>(
                        solver,
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        cleanPrice,
                        dayCounter,
                        compounding,
                        frequency,
                        settlementDate,
                        accuracy,
                        guess);
        }
SWIGINTERN Rate BondFunctions_yieldFalsePosition__SWIG_0(FalsePosition solver,BondPtr const &bond,Real cleanPrice,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,Date settlementDate=Date(),Real accuracy=1.0e-10,Rate guess=0.05){
            return QuantLib::BondFunctions::yield<FalsePosition>(
                        solver,
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        cleanPrice,
                        dayCounter,
                        compounding,
                        frequency,
                        settlementDate,
                        accuracy,
                        guess);
        }
SWIGINTERN Rate BondFunctions_yieldRidder__SWIG_0(Ridder solver,BondPtr const &bond,Real cleanPrice,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,Date settlementDate=Date(),Real accuracy=1.0e-10,Rate guess=0.05){
            return QuantLib::BondFunctions::yield<Ridder>(
                        solver,
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        cleanPrice,
                        dayCounter,
                        compounding,
                        frequency,
                        settlementDate,
                        accuracy,
                        guess);
        }
SWIGINTERN Rate BondFunctions_yieldSecant__SWIG_0(Secant solver,BondPtr const &bond,Real cleanPrice,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,Date settlementDate=Date(),Real accuracy=1.0e-10,Rate guess=0.05){
            return QuantLib::BondFunctions::yield<Secant>(
                        solver,
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        cleanPrice,
                        dayCounter,
                        compounding,
                        frequency,
                        settlementDate,
                        accuracy,
                        guess);
        }
SWIGINTERN Rate BondFunctions_yieldNewton__SWIG_0(Newton solver,BondPtr const &bond,Real cleanPrice,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,Date settlementDate=Date(),Real accuracy=1.0e-10,Rate guess=0.05){
            return QuantLib::BondFunctions::yield<Newton>(
                        solver,
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        cleanPrice,
                        dayCounter,
                        compounding,
                        frequency,
                        settlementDate,
                        accuracy,
                        guess);
        }
SWIGINTERN Rate BondFunctions_yieldNewtonSafe__SWIG_0(NewtonSafe solver,BondPtr const &bond,Real cleanPrice,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,Date settlementDate=Date(),Real accuracy=1.0e-10,Rate guess=0.05){
            return QuantLib::BondFunctions::yield<NewtonSafe>(
                        solver,
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        cleanPrice,
                        dayCounter,
                        compounding,
                        frequency,
                        settlementDate,
                        accuracy,
                        guess);
        }
SWIGINTERN Time BondFunctions_duration__SWIG_0(BondPtr const &bond,InterestRate const &yield,Duration::Type type=Duration::Modified,Date settlementDate=Date()){
            return QuantLib::BondFunctions::duration(
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        yield,
                        type,
                        settlementDate);
        }
SWIGINTERN Time BondFunctions_duration__SWIG_3(BondPtr const &bond,Rate yield,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,Duration::Type type=Duration::Modified,Date settlementDate=Date()){
            return QuantLib::BondFunctions::duration(
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        yield,
                        dayCounter,
                        compounding,
                        frequency,
                        type,
                        settlementDate);
        }
SWIGINTERN Real BondFunctions_convexity__SWIG_0(BondPtr const &bond,InterestRate const &yield,Date settlementDate=Date()){
            return QuantLib::BondFunctions::convexity(
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        yield,
                        settlementDate);
        }
SWIGINTERN Real BondFunctions_convexity__SWIG_2(BondPtr const &bond,Rate yield,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,Date settlementDate=Date()){
            return QuantLib::BondFunctions::convexity(
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        yield,
                        dayCounter,
                        compounding,
                        frequency,
                        settlementDate);
        }
SWIGINTERN Real BondFunctions_basisPointValue__SWIG_0(BondPtr const &bond,InterestRate const &yield,Date settlementDate=Date()){
            return QuantLib::BondFunctions::basisPointValue(
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        yield,
                        settlementDate);
        }
SWIGINTERN Real BondFunctions_basisPointValue__SWIG_2(BondPtr const &bond,Rate yield,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,Date settlementDate=Date()){
            return QuantLib::BondFunctions::basisPointValue(
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        yield,
                        dayCounter,
                        compounding,
                        frequency,
                        settlementDate);
        }
SWIGINTERN Real BondFunctions_yieldValueBasisPoint__SWIG_0(BondPtr const &bond,InterestRate const &yield,Date settlementDate=Date()){
            return QuantLib::BondFunctions::yieldValueBasisPoint(
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        yield,
                        settlementDate);
        }
SWIGINTERN Real BondFunctions_yieldValueBasisPoint__SWIG_2(BondPtr const &bond,Rate yield,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,Date settlementDate=Date()){
            return QuantLib::BondFunctions::yieldValueBasisPoint(
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        yield,
                        dayCounter,
                        compounding,
                        frequency,
                        settlementDate);
        }
SWIGINTERN Spread BondFunctions_zSpread__SWIG_0(BondPtr const &bond,Real cleanPrice,boost::shared_ptr< YieldTermStructure > const &discountCurve,DayCounter const &dayCounter,Compounding compounding,Frequency frequency,Date settlementDate=Date(),Real accuracy=1.0e-10,Size maxIterations=100,Rate guess=0.0){
            return QuantLib::BondFunctions::zSpread(
                        *(boost::dynamic_pointer_cast<Bond>(bond)),
                        cleanPrice,
                        discountCurve,
                        dayCounter,
                        compounding,
                        frequency,
                        settlementDate,
                        accuracy,
                        maxIterations,
                        guess);

        }

using QuantLib::CapFloor;
using QuantLib::Cap;
using QuantLib::Floor;
using QuantLib::Collar;

typedef boost::shared_ptr<Instrument> CapFloorPtr;
typedef boost::shared_ptr<Instrument> CapPtr;
typedef boost::shared_ptr<Instrument> FloorPtr;
typedef boost::shared_ptr<Instrument> CollarPtr;

SWIGINTERN Volatility CapFloorPtr_impliedVolatility__SWIG_0(CapFloorPtr const *self,Real price,Handle< YieldTermStructure > const &disc,Volatility guess,Real accuracy=1.0e-4,Natural maxEvaluations=100,Volatility minVol=1.0e-7,Volatility maxVol=4.0,VolatilityType type=ShiftedLognormal,Real displacement=0.0){
            return boost::dynamic_pointer_cast<CapFloor>(*self)->
                impliedVolatility(price, disc, guess, accuracy,
                                  maxEvaluations, minVol, maxVol,
                                  type, displacement);
        }
SWIGINTERN Leg const &CapFloorPtr_floatingLeg(CapFloorPtr const *self){
            return boost::dynamic_pointer_cast<CapFloor>(*self)->floatingLeg();
        }
SWIGINTERN std::vector< Rate,std::allocator< Rate > > const &CapFloorPtr_capRates(CapFloorPtr const *self){
            return boost::dynamic_pointer_cast<CapFloor>(*self)->capRates();
        }
SWIGINTERN std::vector< Rate,std::allocator< Rate > > const &CapFloorPtr_floorRates(CapFloorPtr const *self){
            return boost::dynamic_pointer_cast<CapFloor>(*self)->floorRates();
        }
SWIGINTERN Date CapFloorPtr_startDate(CapFloorPtr const *self){
            return boost::dynamic_pointer_cast<CapFloor>(*self)->startDate();
        }
SWIGINTERN Date CapFloorPtr_maturityDate(CapFloorPtr const *self){
            return boost::dynamic_pointer_cast<CapFloor>(*self)->maturityDate();
        }
SWIGINTERN Rate CapFloorPtr_atmRate(CapFloorPtr const *self,boost::shared_ptr< YieldTermStructure > const &discountCurve){
            return boost::dynamic_pointer_cast<CapFloor>(*self)->atmRate(*discountCurve);
        }
SWIGINTERN CapPtr *new_CapPtr(std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &leg,std::vector< Rate,std::allocator< Rate > > const &capRates){
            return new CapPtr(new Cap(leg,capRates));
        }
SWIGINTERN FloorPtr *new_FloorPtr(std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &leg,std::vector< Rate,std::allocator< Rate > > const &floorRates){
            return new FloorPtr(new Floor(leg,floorRates));
        }
SWIGINTERN CollarPtr *new_CollarPtr(std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &leg,std::vector< Rate,std::allocator< Rate > > const &capRates,std::vector< Rate,std::allocator< Rate > > const &floorRates){
            return new CollarPtr(new Collar(leg,capRates,floorRates));
        }

using QuantLib::BlackCapFloorEngine;
typedef boost::shared_ptr<PricingEngine> BlackCapFloorEnginePtr;

SWIGINTERN BlackCapFloorEnginePtr *new_BlackCapFloorEnginePtr__SWIG_0(Handle< YieldTermStructure > const &termStructure,Handle< Quote > const &vol){
            return new BlackCapFloorEnginePtr(
                                  new BlackCapFloorEngine(termStructure,vol));
        }
SWIGINTERN BlackCapFloorEnginePtr *new_BlackCapFloorEnginePtr__SWIG_1(Handle< YieldTermStructure > const &termStructure,Handle< OptionletVolatilityStructure > const &vol){
            return new BlackCapFloorEnginePtr(
                                  new BlackCapFloorEngine(termStructure,vol));
        }

using QuantLib::BachelierCapFloorEngine;
typedef boost::shared_ptr<PricingEngine> BachelierCapFloorEnginePtr;

SWIGINTERN BachelierCapFloorEnginePtr *new_BachelierCapFloorEnginePtr__SWIG_0(Handle< YieldTermStructure > const &termStructure,Handle< Quote > const &vol){
            return new BachelierCapFloorEnginePtr(
                                new BachelierCapFloorEngine(termStructure,vol));
        }
SWIGINTERN BachelierCapFloorEnginePtr *new_BachelierCapFloorEnginePtr__SWIG_1(Handle< YieldTermStructure > const &termStructure,Handle< OptionletVolatilityStructure > const &vol){
            return new BachelierCapFloorEnginePtr(
                                new BachelierCapFloorEngine(termStructure,vol));
        }

using QuantLib::Dividend;

SWIGINTERN bool boost_shared_ptr_Sl_Dividend_Sg____nonzero__(boost::shared_ptr< Dividend > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_Dividend_Sg____bool__(boost::shared_ptr< Dividend > *self){
                return !!(*self);
            }

using QuantLib::FixedDividend;
using QuantLib::FractionalDividend;

typedef boost::shared_ptr<Dividend> FixedDividendPtr;
typedef boost::shared_ptr<Dividend> FractionalDividendPtr;

SWIGINTERN FixedDividendPtr *new_FixedDividendPtr(Real amount,Date const &date){
            return new FixedDividendPtr(new FixedDividend(amount,date));
        }
SWIGINTERN FractionalDividendPtr *new_FractionalDividendPtr(Rate rate,Date const &date){
            return new FractionalDividendPtr(
                                     new FractionalDividend(rate,date));
        }

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


      namespace swig {
	template <>  struct traits<std::vector< boost::shared_ptr< Dividend >, std::allocator< boost::shared_ptr< Dividend > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "boost::shared_ptr< Dividend >" "," "std::allocator< boost::shared_ptr< Dividend > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg__iterator(std::vector< boost::shared_ptr< Dividend > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____nonzero__(std::vector< boost::shared_ptr< Dividend > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____bool__(std::vector< boost::shared_ptr< Dividend > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< boost::shared_ptr< Dividend > >::size_type std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____len__(std::vector< boost::shared_ptr< Dividend > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____getslice__(std::vector< boost::shared_ptr< Dividend > > *self,std::vector< boost::shared_ptr< Dividend > >::difference_type i,std::vector< boost::shared_ptr< Dividend > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____setslice____SWIG_0(std::vector< boost::shared_ptr< Dividend > > *self,std::vector< boost::shared_ptr< Dividend > >::difference_type i,std::vector< boost::shared_ptr< Dividend > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >());
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____setslice____SWIG_1(std::vector< boost::shared_ptr< Dividend > > *self,std::vector< boost::shared_ptr< Dividend > >::difference_type i,std::vector< boost::shared_ptr< Dividend > >::difference_type j,std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____delslice__(std::vector< boost::shared_ptr< Dividend > > *self,std::vector< boost::shared_ptr< Dividend > >::difference_type i,std::vector< boost::shared_ptr< Dividend > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____delitem____SWIG_0(std::vector< boost::shared_ptr< Dividend > > *self,std::vector< boost::shared_ptr< Dividend > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____getitem____SWIG_0(std::vector< boost::shared_ptr< Dividend > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >::difference_type id = i;
      std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____setitem____SWIG_0(std::vector< boost::shared_ptr< Dividend > > *self,PySliceObject *slice,std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >::difference_type id = i;
      std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____setitem____SWIG_1(std::vector< boost::shared_ptr< Dividend > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >::difference_type id = i;
      std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____delitem____SWIG_1(std::vector< boost::shared_ptr< Dividend > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >::difference_type id = i;
      std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< boost::shared_ptr< Dividend > >::value_type const &std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____getitem____SWIG_1(std::vector< boost::shared_ptr< Dividend > > const *self,std::vector< boost::shared_ptr< Dividend > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____setitem____SWIG_2(std::vector< boost::shared_ptr< Dividend > > *self,std::vector< boost::shared_ptr< Dividend > >::difference_type i,std::vector< boost::shared_ptr< Dividend > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< boost::shared_ptr< Dividend > >::value_type std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg__pop(std::vector< boost::shared_ptr< Dividend > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg__append(std::vector< boost::shared_ptr< Dividend > > *self,std::vector< boost::shared_ptr< Dividend > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< boost::shared_ptr< Dividend > >::iterator std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg__erase__SWIG_0(std::vector< boost::shared_ptr< Dividend > > *self,std::vector< boost::shared_ptr< Dividend > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< boost::shared_ptr< Dividend > >::iterator std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg__erase__SWIG_1(std::vector< boost::shared_ptr< Dividend > > *self,std::vector< boost::shared_ptr< Dividend > >::iterator first,std::vector< boost::shared_ptr< Dividend > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< boost::shared_ptr< Dividend > >::iterator std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg__insert__SWIG_0(std::vector< boost::shared_ptr< Dividend > > *self,std::vector< boost::shared_ptr< Dividend > >::iterator pos,std::vector< boost::shared_ptr< Dividend > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg__insert__SWIG_1(std::vector< boost::shared_ptr< Dividend > > *self,std::vector< boost::shared_ptr< Dividend > >::iterator pos,std::vector< boost::shared_ptr< Dividend > >::size_type n,std::vector< boost::shared_ptr< Dividend > >::value_type const &x){ self->insert(pos, n, x); }

using QuantLib::ConvertibleZeroCouponBond;
using QuantLib::ConvertibleFixedCouponBond;
using QuantLib::ConvertibleFloatingRateBond;
using QuantLib::BinomialConvertibleEngine;
typedef boost::shared_ptr<Instrument> ConvertibleZeroCouponBondPtr;
typedef boost::shared_ptr<Instrument> ConvertibleFixedCouponBondPtr;
typedef boost::shared_ptr<Instrument> ConvertibleFloatingRateBondPtr;
typedef boost::shared_ptr<PricingEngine> BinomialConvertibleEnginePtr;

SWIGINTERN ConvertibleZeroCouponBondPtr *new_ConvertibleZeroCouponBondPtr__SWIG_0(boost::shared_ptr< Exercise > const &exercise,Real conversionRatio,std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &dividends,std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &callability,Handle< Quote > const &creditSpread,Date const &issueDate,Integer settlementDays,DayCounter const &dayCounter,Schedule const &schedule,Real redemption=100.0){
            return new ConvertibleZeroCouponBondPtr(
                     new ConvertibleZeroCouponBond(exercise, conversionRatio,
                                                   dividends, callability,
                                                   creditSpread,
                                                   issueDate, settlementDays,
                                                   dayCounter, schedule,
                                                   redemption));
        }
SWIGINTERN ConvertibleFixedCouponBondPtr *new_ConvertibleFixedCouponBondPtr__SWIG_0(boost::shared_ptr< Exercise > const &exercise,Real conversionRatio,std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &dividends,std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &callability,Handle< Quote > const &creditSpread,Date const &issueDate,Integer settlementDays,std::vector< Rate,std::allocator< Rate > > const &coupons,DayCounter const &dayCounter,Schedule const &schedule,Real redemption=100.0){
            return new ConvertibleFixedCouponBondPtr(
                    new ConvertibleFixedCouponBond(exercise, conversionRatio,
                                                   dividends, callability,
                                                   creditSpread,
                                                   issueDate, settlementDays,
                                                   coupons, dayCounter,
                                                   schedule, redemption));
        }
SWIGINTERN ConvertibleFloatingRateBondPtr *new_ConvertibleFloatingRateBondPtr__SWIG_0(boost::shared_ptr< Exercise > const &exercise,Real conversionRatio,std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &dividends,std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &callability,Handle< Quote > const &creditSpread,Date const &issueDate,Integer settlementDays,IborIndexPtr const &index,Integer fixingDays,std::vector< Spread,std::allocator< Spread > > const &spreads,DayCounter const &dayCounter,Schedule const &schedule,Real redemption=100.0){
            boost::shared_ptr<IborIndex> libor =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new ConvertibleFloatingRateBondPtr(
                   new ConvertibleFloatingRateBond(exercise, conversionRatio,
                                                   dividends, callability,
                                                   creditSpread,
                                                   issueDate, settlementDays,
                                                   libor, fixingDays, spreads,
                                                   dayCounter, schedule,
                                                   redemption));
        }
SWIGINTERN BinomialConvertibleEnginePtr *new_BinomialConvertibleEnginePtr(GeneralizedBlackScholesProcessPtr const &process,std::string const &type,Size steps){
            boost::shared_ptr<GeneralizedBlackScholesProcess> bsProcess =
                 boost::dynamic_pointer_cast<GeneralizedBlackScholesProcess>(
                                                                     process);
            QL_REQUIRE(bsProcess, "Black-Scholes process required");
            std::string s = boost::algorithm::to_lower_copy(type);
            if (s == "crr" || s == "coxrossrubinstein")
                return new BinomialConvertibleEnginePtr(
                    new BinomialConvertibleEngine<CoxRossRubinstein>(
                                                            bsProcess,steps));
            else if (s == "jr" || s == "jarrowrudd")
                return new BinomialConvertibleEnginePtr(
                    new BinomialConvertibleEngine<JarrowRudd>(
                                                            bsProcess,steps));
            else if (s == "eqp")
                return new BinomialConvertibleEnginePtr(
                    new BinomialConvertibleEngine<AdditiveEQPBinomialTree>(
                                                            bsProcess,steps));
            else if (s == "trigeorgis")
                return new BinomialConvertibleEnginePtr(
                    new BinomialConvertibleEngine<Trigeorgis>(
                                                            bsProcess,steps));
            else if (s == "tian")
                return new BinomialConvertibleEnginePtr(
                    new BinomialConvertibleEngine<Tian>(bsProcess,steps));
            else if (s == "lr" || s == "leisenreimer")
                return new BinomialConvertibleEnginePtr(
                    new BinomialConvertibleEngine<LeisenReimer>(
                                                            bsProcess,steps));
            else if (s == "j4" || s == "joshi4")
                return new BinomialConvertibleEnginePtr(
                    new BinomialConvertibleEngine<Joshi4>(bsProcess,steps));
            else
                QL_FAIL("unknown binomial engine type: "+s);
        }

using QuantLib::DefaultProbabilityTermStructure;

SWIGINTERN bool boost_shared_ptr_Sl_DefaultProbabilityTermStructure_Sg____nonzero__(boost::shared_ptr< DefaultProbabilityTermStructure > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_DefaultProbabilityTermStructure_Sg____bool__(boost::shared_ptr< DefaultProbabilityTermStructure > *self){
                return !!(*self);
            }
SWIGINTERN boost::shared_ptr< Observable > boost_shared_ptr_Sl_DefaultProbabilityTermStructure_Sg__asObservable(boost::shared_ptr< DefaultProbabilityTermStructure > *self){
        return boost::shared_ptr<Observable>(*self);
    }
SWIGINTERN bool Handle_Sl_DefaultProbabilityTermStructure_Sg____nonzero__(Handle< DefaultProbabilityTermStructure > *self){
            return !self->empty();
        }
SWIGINTERN bool Handle_Sl_DefaultProbabilityTermStructure_Sg____bool__(Handle< DefaultProbabilityTermStructure > *self){
            return !self->empty();
        }
SWIGINTERN boost::shared_ptr< Observable > Handle_Sl_DefaultProbabilityTermStructure_Sg__asObservable(Handle< DefaultProbabilityTermStructure > *self){
        return boost::shared_ptr<Observable>(*self);
    }

using QuantLib::FlatHazardRate;
typedef boost::shared_ptr<DefaultProbabilityTermStructure> FlatHazardRatePtr;

SWIGINTERN FlatHazardRatePtr *new_FlatHazardRatePtr__SWIG_0(Integer settlementDays,Calendar const &calendar,Handle< Quote > const &hazardRate,DayCounter const &dayCounter){
            return new FlatHazardRatePtr(
                           new FlatHazardRate(settlementDays,calendar,
                                              hazardRate,dayCounter));
        }
SWIGINTERN FlatHazardRatePtr *new_FlatHazardRatePtr__SWIG_1(Date const &todaysDate,Handle< Quote > const &hazardRate,DayCounter const &dayCounter){
            return new FlatHazardRatePtr(
                        new FlatHazardRate(todaysDate,hazardRate,dayCounter));
        }

using QuantLib::InterpolatedHazardRateCurve;


typedef boost::shared_ptr<DefaultProbabilityTermStructure> HazardRateCurvePtr;

SWIGINTERN HazardRateCurvePtr *new_HazardRateCurvePtr__SWIG_0(std::vector< Date,std::allocator< Date > > const &dates,std::vector< Real,std::allocator< Real > > const &hazardRates,DayCounter const &dayCounter,Calendar const &calendar=Calendar(),BackwardFlat const &i=BackwardFlat()){
            return new HazardRateCurvePtr(
                new InterpolatedHazardRateCurve<BackwardFlat>(dates,hazardRates,
                                                              dayCounter,
                                                              calendar,i));
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &HazardRateCurvePtr_dates(HazardRateCurvePtr *self){
            typedef InterpolatedHazardRateCurve<BackwardFlat> HazardRateCurve;
            return boost::dynamic_pointer_cast<HazardRateCurve>(*self)->dates();
        }
SWIGINTERN std::vector< Real,std::allocator< Real > > const &HazardRateCurvePtr_hazardRates(HazardRateCurvePtr *self){
            typedef InterpolatedHazardRateCurve<BackwardFlat> HazardRateCurve;
            return boost::dynamic_pointer_cast<HazardRateCurve>(*self)->hazardRates();
        }
SWIGINTERN std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > HazardRateCurvePtr_nodes(HazardRateCurvePtr *self){
            typedef InterpolatedHazardRateCurve<BackwardFlat> HazardRateCurve;
            return boost::dynamic_pointer_cast<HazardRateCurve>(*self)->nodes();
        }

using QuantLib::InterpolatedDefaultDensityCurve;


typedef boost::shared_ptr<DefaultProbabilityTermStructure> DefaultDensityCurvePtr;

SWIGINTERN DefaultDensityCurvePtr *new_DefaultDensityCurvePtr__SWIG_0(std::vector< Date,std::allocator< Date > > const &dates,std::vector< Real,std::allocator< Real > > const &densities,DayCounter const &dayCounter,Calendar const &calendar=Calendar(),Linear const &i=Linear()){
            return new DefaultDensityCurvePtr(
                new InterpolatedDefaultDensityCurve<Linear>(dates,
                                                                  densities,
                                                                  dayCounter,
                                                                  calendar,i));
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &DefaultDensityCurvePtr_dates(DefaultDensityCurvePtr *self){
            typedef InterpolatedDefaultDensityCurve<Linear> DefaultDensityCurve;
            return boost::dynamic_pointer_cast<DefaultDensityCurve>(*self)->dates();
        }
SWIGINTERN std::vector< Real,std::allocator< Real > > const &DefaultDensityCurvePtr_defaultDensities(DefaultDensityCurvePtr *self){
            typedef InterpolatedDefaultDensityCurve<Linear> DefaultDensityCurve;
            return boost::dynamic_pointer_cast<DefaultDensityCurve>(*self)->defaultDensities();
        }
SWIGINTERN std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > DefaultDensityCurvePtr_nodes(DefaultDensityCurvePtr *self){
            typedef InterpolatedDefaultDensityCurve<Linear> DefaultDensityCurve;
            return boost::dynamic_pointer_cast<DefaultDensityCurve>(*self)->nodes();
        }

using QuantLib::DefaultProbabilityHelper;
using QuantLib::SpreadCdsHelper;
typedef boost::shared_ptr<DefaultProbabilityHelper> SpreadCdsHelperPtr;
using QuantLib::UpfrontCdsHelper;
typedef boost::shared_ptr<DefaultProbabilityHelper> UpfrontCdsHelperPtr;

SWIGINTERN bool boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg____nonzero__(boost::shared_ptr< DefaultProbabilityHelper > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg____bool__(boost::shared_ptr< DefaultProbabilityHelper > *self){
                return !!(*self);
            }

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


      namespace swig {
	template <>  struct traits<std::vector< boost::shared_ptr< DefaultProbabilityHelper >, std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "boost::shared_ptr< DefaultProbabilityHelper >" "," "std::allocator< boost::shared_ptr< DefaultProbabilityHelper > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg__iterator(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____nonzero__(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____bool__(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____len__(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____getslice__(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *self,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type i,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____setslice____SWIG_0(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *self,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type i,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >());
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____setslice____SWIG_1(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *self,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type i,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type j,std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____delslice__(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *self,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type i,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____delitem____SWIG_0(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *self,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____getitem____SWIG_0(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____setitem____SWIG_0(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *self,PySliceObject *slice,std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____setitem____SWIG_1(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____delitem____SWIG_1(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____getitem____SWIG_1(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *self,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____setitem____SWIG_2(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *self,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type i,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg__pop(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg__append(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *self,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg__erase__SWIG_0(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *self,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg__erase__SWIG_1(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *self,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator first,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg__insert__SWIG_0(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *self,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator pos,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg__insert__SWIG_1(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *self,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator pos,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type n,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &x){ self->insert(pos, n, x); }
SWIGINTERN SpreadCdsHelperPtr *new_SpreadCdsHelperPtr__SWIG_0(Handle< Quote > const &spread,Period const &tenor,Integer settlementDays,Calendar const &calendar,Frequency frequency,BusinessDayConvention convention,DateGeneration::Rule rule,DayCounter const &dayCounter,Real recoveryRate,Handle< YieldTermStructure > const &discountCurve,bool settlesAccrual=true,bool paysAtDefaultTime=true){
            return new SpreadCdsHelperPtr(
                new SpreadCdsHelper(spread,tenor,settlementDays,calendar,
                                    frequency,convention,rule,dayCounter,
                                    recoveryRate,discountCurve,
                                    settlesAccrual,paysAtDefaultTime));
        }
SWIGINTERN SpreadCdsHelperPtr *new_SpreadCdsHelperPtr__SWIG_3(Rate spread,Period const &tenor,Integer settlementDays,Calendar const &calendar,Frequency frequency,BusinessDayConvention convention,DateGeneration::Rule rule,DayCounter const &dayCounter,Real recoveryRate,Handle< YieldTermStructure > const &discountCurve,bool settlesAccrual=true,bool paysAtDefaultTime=true){
            return new SpreadCdsHelperPtr(
                new SpreadCdsHelper(spread,tenor,settlementDays,calendar,
                                    frequency,convention,rule,dayCounter,
                                    recoveryRate,discountCurve,
                                    settlesAccrual,paysAtDefaultTime));
        }
SWIGINTERN UpfrontCdsHelperPtr *new_UpfrontCdsHelperPtr__SWIG_0(Handle< Quote > const &upfront,Rate spread,Period const &tenor,Integer settlementDays,Calendar const &calendar,Frequency frequency,BusinessDayConvention convention,DateGeneration::Rule rule,DayCounter const &dayCounter,Real recoveryRate,Handle< YieldTermStructure > const &discountCurve,Natural upfrontSettlementDays=0,bool settlesAccrual=true,bool paysAtDefaultTime=true){
            return new UpfrontCdsHelperPtr(
                new UpfrontCdsHelper(upfront,spread,tenor,
                                     settlementDays,calendar,
                                     frequency,convention,rule,dayCounter,
                                     recoveryRate,discountCurve,upfrontSettlementDays,
                                     settlesAccrual,paysAtDefaultTime));
        }
SWIGINTERN UpfrontCdsHelperPtr *new_UpfrontCdsHelperPtr__SWIG_4(Rate upfront,Rate spread,Period const &tenor,Integer settlementDays,Calendar const &calendar,Frequency frequency,BusinessDayConvention convention,DateGeneration::Rule rule,DayCounter const &dayCounter,Real recoveryRate,Handle< YieldTermStructure > const &discountCurve,Natural upfrontSettlementDays=0,bool settlesAccrual=true,bool paysAtDefaultTime=true){
            return new UpfrontCdsHelperPtr(
                new UpfrontCdsHelper(upfront,spread,tenor,
                                     settlementDays,calendar,
                                     frequency,convention,rule,dayCounter,
                                     recoveryRate,discountCurve,upfrontSettlementDays,
                                     settlesAccrual,paysAtDefaultTime));
        }

using QuantLib::HazardRate;
using QuantLib::DefaultDensity;


using QuantLib::PiecewiseDefaultCurve;


typedef boost::shared_ptr<DefaultProbabilityTermStructure> PiecewiseFlatHazardRatePtr;

SWIGINTERN PiecewiseFlatHazardRatePtr *new_PiecewiseFlatHazardRatePtr__SWIG_0(Date const &referenceDate,std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &instruments,DayCounter const &dayCounter,Real accuracy=1.0e-12,BackwardFlat const &i=BackwardFlat()){
            return new PiecewiseFlatHazardRatePtr(
                new PiecewiseDefaultCurve<HazardRate,BackwardFlat>(
                                                 referenceDate,instruments,
                                                 dayCounter, accuracy, i));
        }
SWIGINTERN PiecewiseFlatHazardRatePtr *new_PiecewiseFlatHazardRatePtr__SWIG_3(Integer settlementDays,Calendar const &calendar,std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &instruments,DayCounter const &dayCounter,Real accuracy=1.0e-12,BackwardFlat const &i=BackwardFlat()){
            return new PiecewiseFlatHazardRatePtr(
                new PiecewiseDefaultCurve<HazardRate,BackwardFlat>(
                                        settlementDays, calendar, instruments,
                                        dayCounter, accuracy, i));
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &PiecewiseFlatHazardRatePtr_dates(PiecewiseFlatHazardRatePtr *self){
            typedef PiecewiseDefaultCurve<HazardRate,BackwardFlat> PiecewiseFlatHazardRate;
            return boost::dynamic_pointer_cast<PiecewiseFlatHazardRate>(*self)->dates();
        }
SWIGINTERN std::vector< Time,std::allocator< Time > > const &PiecewiseFlatHazardRatePtr_times(PiecewiseFlatHazardRatePtr *self){
            typedef PiecewiseDefaultCurve<HazardRate,BackwardFlat> PiecewiseFlatHazardRate;
            return boost::dynamic_pointer_cast<PiecewiseFlatHazardRate>(*self)->times();
        }
SWIGINTERN std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > PiecewiseFlatHazardRatePtr_nodes(PiecewiseFlatHazardRatePtr *self){
            typedef PiecewiseDefaultCurve<HazardRate,BackwardFlat> PiecewiseFlatHazardRate;
            return boost::dynamic_pointer_cast<PiecewiseFlatHazardRate>(*self)->nodes();
        }

using QuantLib::Protection;


using QuantLib::CreditDefaultSwap;
using QuantLib::MidPointCdsEngine;
using QuantLib::IntegralCdsEngine;

typedef boost::shared_ptr<Instrument> CreditDefaultSwapPtr;
typedef boost::shared_ptr<PricingEngine> MidPointCdsEnginePtr;
typedef boost::shared_ptr<PricingEngine> IntegralCdsEnginePtr;

SWIGINTERN CreditDefaultSwapPtr *new_CreditDefaultSwapPtr__SWIG_0(Protection::Side side,Real notional,Rate spread,Schedule const &schedule,BusinessDayConvention paymentConvention,DayCounter const &dayCounter,bool settlesAccrual=true,bool paysAtDefaultTime=true){
            return new CreditDefaultSwapPtr(
                    new CreditDefaultSwap(side, notional, spread, schedule,
                                          paymentConvention, dayCounter,
                                          settlesAccrual, paysAtDefaultTime));
        }
SWIGINTERN CreditDefaultSwapPtr *new_CreditDefaultSwapPtr__SWIG_3(Protection::Side side,Real notional,Rate upfront,Rate spread,Schedule const &schedule,BusinessDayConvention paymentConvention,DayCounter const &dayCounter,bool settlesAccrual=true,bool paysAtDefaultTime=true){
            return new CreditDefaultSwapPtr(
                    new CreditDefaultSwap(side, notional, upfront, spread,
                                          schedule, paymentConvention,
                                          dayCounter, settlesAccrual,
                                          paysAtDefaultTime));
        }
SWIGINTERN Protection::Side CreditDefaultSwapPtr_side(CreditDefaultSwapPtr const *self){
            return boost::dynamic_pointer_cast<CreditDefaultSwap>(*self)
                ->side();
        }
SWIGINTERN Real CreditDefaultSwapPtr_notional(CreditDefaultSwapPtr const *self){
            return boost::dynamic_pointer_cast<CreditDefaultSwap>(*self)
                ->notional();
        }
SWIGINTERN Rate CreditDefaultSwapPtr_runningSpread(CreditDefaultSwapPtr const *self){
            return boost::dynamic_pointer_cast<CreditDefaultSwap>(*self)
                ->runningSpread();
        }
SWIGINTERN doubleOrNull CreditDefaultSwapPtr_upfront(CreditDefaultSwapPtr const *self){
            boost::optional<Rate> result =
                boost::dynamic_pointer_cast<CreditDefaultSwap>(*self)
                ->upfront();
            if (result)
                return *result;
            else
                return Null<double>();
        }
SWIGINTERN bool CreditDefaultSwapPtr_settlesAccrual(CreditDefaultSwapPtr const *self){
            return boost::dynamic_pointer_cast<CreditDefaultSwap>(*self)
                ->settlesAccrual();
        }
SWIGINTERN bool CreditDefaultSwapPtr_paysAtDefaultTime(CreditDefaultSwapPtr const *self){
            return boost::dynamic_pointer_cast<CreditDefaultSwap>(*self)
                ->paysAtDefaultTime();
        }
SWIGINTERN Rate CreditDefaultSwapPtr_fairSpread(CreditDefaultSwapPtr const *self){
            return boost::dynamic_pointer_cast<CreditDefaultSwap>(*self)
                ->fairSpread();
        }
SWIGINTERN Rate CreditDefaultSwapPtr_fairUpfront(CreditDefaultSwapPtr const *self){
            return boost::dynamic_pointer_cast<CreditDefaultSwap>(*self)
                ->fairUpfront();
        }
SWIGINTERN Real CreditDefaultSwapPtr_couponLegBPS(CreditDefaultSwapPtr const *self){
            return boost::dynamic_pointer_cast<CreditDefaultSwap>(*self)
                ->couponLegBPS();
        }
SWIGINTERN Real CreditDefaultSwapPtr_couponLegNPV(CreditDefaultSwapPtr const *self){
            return boost::dynamic_pointer_cast<CreditDefaultSwap>(*self)
                ->couponLegNPV();
        }
SWIGINTERN Real CreditDefaultSwapPtr_defaultLegNPV(CreditDefaultSwapPtr const *self){
            return boost::dynamic_pointer_cast<CreditDefaultSwap>(*self)
                ->defaultLegNPV();
        }
SWIGINTERN Real CreditDefaultSwapPtr_upfrontBPS(CreditDefaultSwapPtr const *self){
            return boost::dynamic_pointer_cast<CreditDefaultSwap>(*self)
                ->upfrontBPS();
        }
SWIGINTERN Real CreditDefaultSwapPtr_upfrontNPV(CreditDefaultSwapPtr const *self){
            return boost::dynamic_pointer_cast<CreditDefaultSwap>(*self)
                ->upfrontNPV();
        }
SWIGINTERN Rate CreditDefaultSwapPtr_impliedHazardRate__SWIG_0(CreditDefaultSwapPtr const *self,Real targetNPV,Handle< YieldTermStructure > const &discountCurve,DayCounter const &dayCounter,Real recoveryRate=0.4,Real accuracy=1.0e-6){
            return boost::dynamic_pointer_cast<CreditDefaultSwap>(*self)
                ->impliedHazardRate(targetNPV, discountCurve, dayCounter,
                                    recoveryRate, accuracy);
        }
SWIGINTERN std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > CreditDefaultSwapPtr_coupons(CreditDefaultSwapPtr *self){
            return boost::dynamic_pointer_cast<CreditDefaultSwap>(*self)
                ->coupons();
        }
SWIGINTERN MidPointCdsEnginePtr *new_MidPointCdsEnginePtr(Handle< DefaultProbabilityTermStructure > const &probability,Real recoveryRate,Handle< YieldTermStructure > const &discountCurve){
            return new MidPointCdsEnginePtr(
                              new MidPointCdsEngine(probability, recoveryRate,
                                                    discountCurve));
        }
SWIGINTERN IntegralCdsEnginePtr *new_IntegralCdsEnginePtr__SWIG_0(Period const &integrationStep,Handle< DefaultProbabilityTermStructure > const &probability,Real recoveryRate,Handle< YieldTermStructure > const &discountCurve,bool includeSettlementDateFlows=false){
            return new IntegralCdsEnginePtr(
                              new IntegralCdsEngine(integrationStep, probability,
                                                    recoveryRate, discountCurve,
													includeSettlementDateFlows));
        }

using QuantLib::InterpolatedDiscountCurve;


typedef boost::shared_ptr<YieldTermStructure> DiscountCurvePtr;

SWIGINTERN DiscountCurvePtr *new_DiscountCurvePtr__SWIG_0(std::vector< Date,std::allocator< Date > > const &dates,std::vector< DiscountFactor,std::allocator< DiscountFactor > > const &discounts,DayCounter const &dayCounter,Calendar const &calendar=Calendar(),LogLinear const &i=LogLinear()){
            return new DiscountCurvePtr(
                new InterpolatedDiscountCurve<LogLinear>(dates,discounts,
                                                            dayCounter,
                                                            calendar,i));
        }
SWIGINTERN std::vector< Time,std::allocator< Time > > const &DiscountCurvePtr_times(DiscountCurvePtr *self){
            typedef InterpolatedDiscountCurve<LogLinear> DiscountCurve;
            return boost::dynamic_pointer_cast<DiscountCurve>(*self)->times();
        }
SWIGINTERN std::vector< Real,std::allocator< Real > > const &DiscountCurvePtr_data(DiscountCurvePtr *self){
            typedef InterpolatedDiscountCurve<LogLinear> DiscountCurve;
            return boost::dynamic_pointer_cast<DiscountCurve>(*self)->data();
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &DiscountCurvePtr_dates(DiscountCurvePtr *self){
            typedef InterpolatedDiscountCurve<LogLinear> DiscountCurve;
            return boost::dynamic_pointer_cast<DiscountCurve>(*self)->dates();
        }
SWIGINTERN std::vector< DiscountFactor,std::allocator< DiscountFactor > > const &DiscountCurvePtr_discounts(DiscountCurvePtr *self){
            typedef InterpolatedDiscountCurve<LogLinear> DiscountCurve;
            return boost::dynamic_pointer_cast<DiscountCurve>(*self)->discounts();
        }
SWIGINTERN std::vector< std::pair< Date,DiscountFactor >,std::allocator< std::pair< Date,DiscountFactor > > > DiscountCurvePtr_nodes(DiscountCurvePtr *self){
            typedef InterpolatedDiscountCurve<LogLinear> DiscountCurve;
            return boost::dynamic_pointer_cast<DiscountCurve>(*self)->nodes();
        }

using QuantLib::NormalDistribution;
using QuantLib::CumulativeNormalDistribution;
using QuantLib::MoroInverseCumulativeNormal;
using QuantLib::InverseCumulativeNormal;
using QuantLib::BivariateCumulativeNormalDistribution;
using QuantLib::BinomialDistribution;
using QuantLib::CumulativeBinomialDistribution;
using QuantLib::BivariateCumulativeNormalDistributionDr78;
using QuantLib::BivariateCumulativeNormalDistributionWe04DP;
using QuantLib::CumulativeChiSquareDistribution;
using QuantLib::NonCentralCumulativeChiSquareDistribution;
using QuantLib::InverseNonCentralCumulativeChiSquareDistribution;
using QuantLib::CumulativeGammaDistribution;
using QuantLib::GammaFunction;
using QuantLib::PoissonDistribution;
using QuantLib::CumulativePoissonDistribution;
using QuantLib::InverseCumulativePoisson;
using QuantLib::StudentDistribution;
using QuantLib::CumulativeStudentDistribution;
using QuantLib::InverseCumulativeStudent;


using QuantLib::Money;

SWIGINTERN Money Money_operator_Sa_(Money *self,Money const &m){ return *self+m; }
SWIGINTERN Money Money_operator_Ss_(Money *self,Money const &m){ return *self-m; }
SWIGINTERN Money Money_operator_Sm_(Money *self,Decimal x){ return *self*x; }
SWIGINTERN Money Money_operator_Sd___SWIG_0(Money *self,Decimal x){ return *self/x; }
SWIGINTERN Decimal Money_operator_Sd___SWIG_1(Money *self,Money const &m){ return *self/m; }
SWIGINTERN Money Money___rmul__(Money *self,Decimal x){ return *self*x; }
SWIGINTERN bool Money___lt__(Money *self,Money const &other){
            return *self < other;
        }
SWIGINTERN bool Money___gt__(Money *self,Money const &other){
            return other < *self;
        }
SWIGINTERN bool Money___le__(Money *self,Money const &other){
            return !(other < *self);
        }
SWIGINTERN bool Money___ge__(Money *self,Money const &other){
            return !(*self < other);
        }
SWIGINTERN int Money___cmp__(Money *self,Money const &other){
            if (*self < other)
                return -1;
            else if (*self == other)
                return 0;
            else
                return 1;
        }
SWIGINTERN std::string Money___str__(Money *self){
            std::ostringstream out;
            out << *self;
            return out.str();
        }
SWIGINTERN void Money_setConversionType(Money::ConversionType type){
            Money::conversionType = type;
        }
SWIGINTERN void Money_setBaseCurrency(Currency const &c){
            Money::baseCurrency = c;
        }

using QuantLib::ExchangeRate;
using QuantLib::ExchangeRateManager;


using QuantLib::Futures;


using QuantLib::TimeBasket;

SWIGINTERN Real TimeBasket___getitem__(TimeBasket *self,Date const &d){
            return (*self)[d];
        }
SWIGINTERN void TimeBasket___setitem__(TimeBasket *self,Date const &d,Real value){
            (*self)[d] = value;
        }
SWIGINTERN PyObject *TimeBasket_items(TimeBasket *self){
            PyObject* itemList = PyList_New(self->size());
            TimeBasket::iterator i;
            Size j;
            for (i=self->begin(), j=0; i!=self->end(); ++i, ++j) {
                Date* d = new Date(i->first);
                PyObject* item = PyTuple_New(2);
                PyTuple_SetItem(item,0,
                                SWIG_NewPointerObj((void *) d,
                                                   SWIGTYPE_p_Date,1));
                PyTuple_SetItem(item,1,PyFloat_FromDouble(i->second));
                PyList_SetItem(itemList,j,item);
            }
            return itemList;
        }
SWIGINTERN bool TimeBasket___contains__(TimeBasket *self,Date const &d){
            return self->hasDate(d);
        }
SWIGINTERN PyObject *TimeBasket___iter__(TimeBasket *self){
            #if PY_VERSION_HEX >= 0x02020000
            PyObject* keyList = PyList_New(self->size());
            TimeBasket::iterator i;
            Size j;
            for (i=self->begin(), j=0; i!=self->end(); ++i, ++j) {
                Date* d = new Date(i->first);
                PyList_SetItem(keyList,j,
                               SWIG_NewPointerObj((void *) d,
                                                  SWIGTYPE_p_Date,1));
            }
            PyObject* iter = PyObject_GetIter(keyList);
            Py_DECREF(keyList);
            return iter;
            #else
            throw std::runtime_error("Python 2.2 or later is needed"
                                     " for iterator support");
            #endif
            }

using QuantLib::Swap;
using QuantLib::VanillaSwap;
using QuantLib::NonstandardSwap;
using QuantLib::DiscountingSwapEngine;
using QuantLib::FloatFloatSwap;

typedef boost::shared_ptr<Instrument> SwapPtr;
typedef boost::shared_ptr<Instrument> VanillaSwapPtr;
typedef boost::shared_ptr<Instrument> NonstandardSwapPtr;
typedef boost::shared_ptr<PricingEngine> DiscountingSwapEnginePtr;
typedef boost::shared_ptr<Instrument> FloatFloatSwapPtr;

SWIGINTERN SwapPtr *new_SwapPtr(std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &firstLeg,std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &secondLeg){
            return new SwapPtr(new Swap(firstLeg, secondLeg));
        }
SWIGINTERN Date SwapPtr_startDate(SwapPtr *self){
            return boost::dynamic_pointer_cast<Swap>(*self)->startDate();
        }
SWIGINTERN Date SwapPtr_maturityDate(SwapPtr *self){
            return boost::dynamic_pointer_cast<Swap>(*self)->maturityDate();
        }
SWIGINTERN Leg const &SwapPtr_leg(SwapPtr *self,Size i){
            return boost::dynamic_pointer_cast<Swap>(*self)->leg(i);
        }
SWIGINTERN Real SwapPtr_legNPV(SwapPtr const *self,Size j){
            return boost::dynamic_pointer_cast<Swap>(*self)->legNPV(j);
        }
SWIGINTERN VanillaSwapPtr *new_VanillaSwapPtr(VanillaSwap::Type type,Real nominal,Schedule const &fixedSchedule,Rate fixedRate,DayCounter const &fixedDayCount,Schedule const &floatSchedule,IborIndexPtr const &index,Spread spread,DayCounter const &floatingDayCount){
            boost::shared_ptr<IborIndex> libor =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new VanillaSwapPtr(
                    new VanillaSwap(type, nominal,fixedSchedule,fixedRate,
                                    fixedDayCount,floatSchedule,libor,
                                    spread, floatingDayCount));
        }
SWIGINTERN Rate VanillaSwapPtr_fairRate(VanillaSwapPtr *self){
            return boost::dynamic_pointer_cast<VanillaSwap>(*self)->fairRate();
        }
SWIGINTERN Spread VanillaSwapPtr_fairSpread(VanillaSwapPtr *self){
            return boost::dynamic_pointer_cast<VanillaSwap>(*self)
                 ->fairSpread();
        }
SWIGINTERN Real VanillaSwapPtr_fixedLegBPS(VanillaSwapPtr *self){
            return boost::dynamic_pointer_cast<VanillaSwap>(*self)
                 ->fixedLegBPS();
        }
SWIGINTERN Real VanillaSwapPtr_floatingLegBPS(VanillaSwapPtr *self){
            return boost::dynamic_pointer_cast<VanillaSwap>(*self)
                 ->floatingLegBPS();
        }
SWIGINTERN Real VanillaSwapPtr_fixedLegNPV(VanillaSwapPtr *self){
            return boost::dynamic_pointer_cast<VanillaSwap> (*self)
                ->fixedLegNPV();
        }
SWIGINTERN Real VanillaSwapPtr_floatingLegNPV(VanillaSwapPtr *self){
            return boost::dynamic_pointer_cast<VanillaSwap> (*self)
                ->floatingLegNPV();
        }
SWIGINTERN Leg const &VanillaSwapPtr_fixedLeg(VanillaSwapPtr *self){
            return boost::dynamic_pointer_cast<VanillaSwap> (*self)
                ->fixedLeg();
        }
SWIGINTERN Leg const &VanillaSwapPtr_floatingLeg(VanillaSwapPtr *self){
            return boost::dynamic_pointer_cast<VanillaSwap> (*self)
                ->floatingLeg();
        }
SWIGINTERN Real VanillaSwapPtr_nominal(VanillaSwapPtr *self){
            return boost::dynamic_pointer_cast<VanillaSwap> (*self)
                ->nominal();
        }
SWIGINTERN Schedule const &VanillaSwapPtr_fixedSchedule(VanillaSwapPtr *self){
            return boost::dynamic_pointer_cast<VanillaSwap> (*self)
                ->fixedSchedule();
        }
SWIGINTERN Schedule const &VanillaSwapPtr_floatingSchedule(VanillaSwapPtr *self){
            return boost::dynamic_pointer_cast<VanillaSwap> (*self)
                ->floatingSchedule();
        }
SWIGINTERN Rate VanillaSwapPtr_fixedRate(VanillaSwapPtr *self){
            return boost::dynamic_pointer_cast<VanillaSwap> (*self)
                ->fixedRate();
        }
SWIGINTERN Spread VanillaSwapPtr_spread(VanillaSwapPtr *self){
            return boost::dynamic_pointer_cast<VanillaSwap> (*self)
                ->spread();
        }
SWIGINTERN DayCounter const &VanillaSwapPtr_floatingDayCount(VanillaSwapPtr *self){
            return boost::dynamic_pointer_cast<VanillaSwap> (*self)
                ->floatingDayCount();
        }
SWIGINTERN DayCounter const &VanillaSwapPtr_fixedDayCount(VanillaSwapPtr *self){
            return boost::dynamic_pointer_cast<VanillaSwap> (*self)
                ->fixedDayCount();
        }
SWIGINTERN NonstandardSwapPtr *new_NonstandardSwapPtr__SWIG_0(VanillaSwap::Type type,std::vector< Real,std::allocator< Real > > const &fixedNominal,std::vector< Real,std::allocator< Real > > const &floatingNominal,Schedule const &fixedSchedule,std::vector< Real,std::allocator< Real > > const &fixedRate,DayCounter const &fixedDayCount,Schedule const &floatSchedule,IborIndexPtr const &index,std::vector< Real,std::allocator< Real > > const &gearing,std::vector< Spread,std::allocator< Spread > > const &spread,DayCounter const &floatDayCount,bool const intermediateCapitalExchange=false,bool const finalCapitalExchange=false,BusinessDayConvention paymentConvention=Following){
            boost::shared_ptr<IborIndex> libor =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new NonstandardSwapPtr(
                new NonstandardSwap(type,fixedNominal,floatingNominal,fixedSchedule,fixedRate,
                                    fixedDayCount,floatSchedule,libor,gearing,
                                    spread,floatDayCount,intermediateCapitalExchange,
                                    finalCapitalExchange, paymentConvention));
        }
SWIGINTERN Leg const &NonstandardSwapPtr_fixedLeg(NonstandardSwapPtr *self){
            return boost::dynamic_pointer_cast<NonstandardSwap> (*self)
                ->fixedLeg();
        }
SWIGINTERN Leg const &NonstandardSwapPtr_floatingLeg(NonstandardSwapPtr *self){
            return boost::dynamic_pointer_cast<NonstandardSwap> (*self)
                ->floatingLeg();
        }
SWIGINTERN std::vector< Real,std::allocator< Real > > NonstandardSwapPtr_fixedNominals(NonstandardSwapPtr *self){
            return boost::dynamic_pointer_cast<NonstandardSwap> (*self)
                ->fixedNominal();
        }
SWIGINTERN std::vector< Real,std::allocator< Real > > NonstandardSwapPtr_floatingNominals(NonstandardSwapPtr *self){
            return boost::dynamic_pointer_cast<NonstandardSwap> (*self)
                ->floatingNominal();
        }
SWIGINTERN Schedule const &NonstandardSwapPtr_fixedSchedule(NonstandardSwapPtr *self){
            return boost::dynamic_pointer_cast<NonstandardSwap> (*self)
                ->fixedSchedule();
        }
SWIGINTERN Schedule const &NonstandardSwapPtr_floatingSchedule(NonstandardSwapPtr *self){
            return boost::dynamic_pointer_cast<NonstandardSwap> (*self)
                ->floatingSchedule();
        }
SWIGINTERN std::vector< Rate,std::allocator< Rate > > NonstandardSwapPtr_fixedRate(NonstandardSwapPtr *self){
            return boost::dynamic_pointer_cast<NonstandardSwap> (*self)
                ->fixedRate();
        }
SWIGINTERN std::vector< Spread,std::allocator< Spread > > NonstandardSwapPtr_spreads(NonstandardSwapPtr *self){
            return boost::dynamic_pointer_cast<NonstandardSwap> (*self)
                ->spreads();
        }
SWIGINTERN std::vector< Spread,std::allocator< Spread > > NonstandardSwapPtr_gearings(NonstandardSwapPtr *self){
            return boost::dynamic_pointer_cast<NonstandardSwap> (*self)
                ->gearings();
        }
SWIGINTERN DayCounter const &NonstandardSwapPtr_floatingDayCount(NonstandardSwapPtr *self){
            return boost::dynamic_pointer_cast<NonstandardSwap> (*self)
                ->floatingDayCount();
        }
SWIGINTERN DayCounter const &NonstandardSwapPtr_fixedDayCount(NonstandardSwapPtr *self){
            return boost::dynamic_pointer_cast<NonstandardSwap> (*self)
                ->fixedDayCount();
        }
SWIGINTERN DiscountingSwapEnginePtr *new_DiscountingSwapEnginePtr__SWIG_0(Handle< YieldTermStructure > const &discountCurve,Date const &settlementDate=Date(),Date const &npvDate=Date()){
            return new DiscountingSwapEnginePtr(
                                    new DiscountingSwapEngine(discountCurve,
                                                              boost::none,
                                                              settlementDate,
                                                              npvDate));
        }
SWIGINTERN DiscountingSwapEnginePtr *new_DiscountingSwapEnginePtr__SWIG_3(Handle< YieldTermStructure > const &discountCurve,bool includeSettlementDateFlows,Date const &settlementDate=Date(),Date const &npvDate=Date()){
            return new DiscountingSwapEnginePtr(
                         new DiscountingSwapEngine(discountCurve,
                                                   includeSettlementDateFlows,
                                                   settlementDate,
                                                   npvDate));
        }

using QuantLib::AssetSwap;
typedef boost::shared_ptr<Instrument> AssetSwapPtr;

SWIGINTERN AssetSwapPtr *new_AssetSwapPtr(bool payFixedRate,BondPtr const &bond,Real bondCleanPrice,InterestRateIndexPtr const &index,Spread spread,Schedule const &floatSchedule=Schedule(),DayCounter const &floatingDayCount=DayCounter(),bool parAssetSwap=true){
            const boost::shared_ptr<Bond> b =
                boost::dynamic_pointer_cast<Bond>(bond);
            const boost::shared_ptr<IborIndex> i =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new AssetSwapPtr(
                new AssetSwap(payFixedRate,b,bondCleanPrice,i,spread,
                              floatSchedule,floatingDayCount,parAssetSwap));
        }
SWIGINTERN Real AssetSwapPtr_fairCleanPrice(AssetSwapPtr *self){
            return boost::dynamic_pointer_cast<AssetSwap>(*self)
                ->fairCleanPrice();
        }
SWIGINTERN Spread AssetSwapPtr_fairSpread(AssetSwapPtr *self){
            return boost::dynamic_pointer_cast<AssetSwap>(*self)
                ->fairSpread();
        }
SWIGINTERN FloatFloatSwapPtr *new_FloatFloatSwapPtr__SWIG_0(VanillaSwap::Type type,std::vector< Real,std::allocator< Real > > const &nominal1,std::vector< Real,std::allocator< Real > > const &nominal2,Schedule const &schedule1,InterestRateIndexPtr const &indexPtr1,DayCounter const &dayCount1,Schedule const &schedule2,InterestRateIndexPtr const &indexPtr2,DayCounter const &dayCount2,bool const intermediateCapitalExchange=false,bool const finalCapitalExchange=false,std::vector< Real,std::allocator< Real > > const &gearing1=std::vector< Real >(),std::vector< Real,std::allocator< Real > > const &spread1=std::vector< Real >(),std::vector< Real,std::allocator< Real > > const &cappedRate1=std::vector< Real >(),std::vector< Real,std::allocator< Real > > const &flooredRate1=std::vector< Real >(),std::vector< Real,std::allocator< Real > > const &gearing2=std::vector< Real >(),std::vector< Real,std::allocator< Real > > const &spread2=std::vector< Real >(),std::vector< Real,std::allocator< Real > > const &cappedRate2=std::vector< Real >(),std::vector< Real,std::allocator< Real > > const &flooredRate2=std::vector< Real >(),BusinessDayConvention paymentConvention1=Following,BusinessDayConvention paymentConvention2=Following){
            boost::shared_ptr<InterestRateIndex> index1 =
                boost::dynamic_pointer_cast<InterestRateIndex>(indexPtr1);
            boost::shared_ptr<InterestRateIndex> index2 =
                boost::dynamic_pointer_cast<InterestRateIndex>(indexPtr2);
            return new FloatFloatSwapPtr(
                    new FloatFloatSwap(type, nominal1,nominal2,schedule1,
                                    index1,dayCount1,schedule2,
                                    index2, dayCount2,
                                    intermediateCapitalExchange, finalCapitalExchange,
                                    gearing1, spread1, cappedRate1,
                                    flooredRate1, gearing2, spread2,
                                    cappedRate2, flooredRate2,
                                    paymentConvention1, paymentConvention2));
        }

using QuantLib::Pillar;
using QuantLib::RateHelper;
using QuantLib::DepositRateHelper;
using QuantLib::FraRateHelper;
using QuantLib::FuturesRateHelper;
using QuantLib::SwapRateHelper;
using QuantLib::BondHelper;
using QuantLib::FixedRateBondHelper;
using QuantLib::OISRateHelper;
using QuantLib::DatedOISRateHelper;
using QuantLib::FxSwapRateHelper;
typedef boost::shared_ptr<RateHelper> DepositRateHelperPtr;
typedef boost::shared_ptr<RateHelper> FraRateHelperPtr;
typedef boost::shared_ptr<RateHelper> FuturesRateHelperPtr;
typedef boost::shared_ptr<RateHelper> SwapRateHelperPtr;
typedef boost::shared_ptr<RateHelper> BondHelperPtr;
typedef boost::shared_ptr<RateHelper> FixedRateBondHelperPtr;
typedef boost::shared_ptr<RateHelper> OISRateHelperPtr;
typedef boost::shared_ptr<RateHelper> DatedOISRateHelperPtr;
typedef boost::shared_ptr<RateHelper> FxSwapRateHelperPtr;

SWIGINTERN bool boost_shared_ptr_Sl_RateHelper_Sg____nonzero__(boost::shared_ptr< RateHelper > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_RateHelper_Sg____bool__(boost::shared_ptr< RateHelper > *self){
                return !!(*self);
            }
SWIGINTERN DepositRateHelperPtr *new_DepositRateHelperPtr__SWIG_0(Handle< Quote > const &rate,Period const &tenor,Natural fixingDays,Calendar const &calendar,BusinessDayConvention convention,bool endOfMonth,DayCounter const &dayCounter){
            return new DepositRateHelperPtr(
                new DepositRateHelper(rate,tenor,fixingDays,
                                      calendar,convention,
                                      endOfMonth, dayCounter));
        }
SWIGINTERN DepositRateHelperPtr *new_DepositRateHelperPtr__SWIG_1(Rate rate,Period const &tenor,Natural fixingDays,Calendar const &calendar,BusinessDayConvention convention,bool endOfMonth,DayCounter const &dayCounter){
            return new DepositRateHelperPtr(
                new DepositRateHelper(rate, tenor, fixingDays,
                                      calendar, convention,
                                      endOfMonth, dayCounter));
        }
SWIGINTERN DepositRateHelperPtr *new_DepositRateHelperPtr__SWIG_2(Handle< Quote > const &rate,IborIndexPtr const &index){
            boost::shared_ptr<IborIndex> libor =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new DepositRateHelperPtr(
                new DepositRateHelper(rate, libor));
        }
SWIGINTERN DepositRateHelperPtr *new_DepositRateHelperPtr__SWIG_3(Rate rate,IborIndexPtr const &index){
            boost::shared_ptr<IborIndex> libor =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new DepositRateHelperPtr(
                new DepositRateHelper(rate, libor));
        }
SWIGINTERN FraRateHelperPtr *new_FraRateHelperPtr__SWIG_0(Handle< Quote > const &rate,Natural monthsToStart,Natural monthsToEnd,Natural fixingDays,Calendar const &calendar,BusinessDayConvention convention,bool endOfMonth,DayCounter const &dayCounter){
            return new FraRateHelperPtr(
                new FraRateHelper(rate,monthsToStart,monthsToEnd,
                                  fixingDays,calendar,convention,
                                  endOfMonth,dayCounter));
        }
SWIGINTERN FraRateHelperPtr *new_FraRateHelperPtr__SWIG_1(Rate rate,Natural monthsToStart,Natural monthsToEnd,Natural fixingDays,Calendar const &calendar,BusinessDayConvention convention,bool endOfMonth,DayCounter const &dayCounter){
            return new FraRateHelperPtr(
                new FraRateHelper(rate,monthsToStart,monthsToEnd,
                                  fixingDays,calendar,convention,
                                  endOfMonth,dayCounter));
        }
SWIGINTERN FraRateHelperPtr *new_FraRateHelperPtr__SWIG_2(Handle< Quote > const &rate,Natural monthsToStart,IborIndexPtr const &index){
            boost::shared_ptr<IborIndex> libor =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new FraRateHelperPtr(
                new FraRateHelper(rate,monthsToStart,libor));
        }
SWIGINTERN FraRateHelperPtr *new_FraRateHelperPtr__SWIG_3(Rate rate,Natural monthsToStart,IborIndexPtr const &index){
            boost::shared_ptr<IborIndex> libor =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new FraRateHelperPtr(
                new FraRateHelper(rate,monthsToStart,libor));
        }
SWIGINTERN FuturesRateHelperPtr *new_FuturesRateHelperPtr__SWIG_0(Handle< Quote > const &price,Date const &iborStartDate,Natural nMonths,Calendar const &calendar,BusinessDayConvention convention,bool endOfMonth,DayCounter const &dayCounter,Handle< Quote > const &convexityAdjustment,Futures::Type type=Futures::IMM){
            return new FuturesRateHelperPtr(
                new FuturesRateHelper(price,iborStartDate,nMonths,
                                      calendar,convention,endOfMonth,
                                      dayCounter,convexityAdjustment,type));
        }
SWIGINTERN FuturesRateHelperPtr *new_FuturesRateHelperPtr__SWIG_2(Real price,Date const &iborStartDate,Natural nMonths,Calendar const &calendar,BusinessDayConvention convention,bool endOfMonth,DayCounter const &dayCounter,Rate convexityAdjustment=0.0,Futures::Type type=Futures::IMM){
            return new FuturesRateHelperPtr(
                new FuturesRateHelper(price,iborStartDate,nMonths,
                                      calendar,convention,endOfMonth,
                                      dayCounter,convexityAdjustment,type));
        }
SWIGINTERN FuturesRateHelperPtr *new_FuturesRateHelperPtr__SWIG_5(Handle< Quote > const &price,Date const &iborStartDate,Date const &iborEndDate,DayCounter const &dayCounter,Handle< Quote > const &convexityAdjustment,Futures::Type type=Futures::IMM){
            return new FuturesRateHelperPtr(
                new FuturesRateHelper(price,iborStartDate,iborEndDate,
                                      dayCounter,convexityAdjustment,type));
        }
SWIGINTERN FuturesRateHelperPtr *new_FuturesRateHelperPtr__SWIG_7(Real price,Date const &iborStartDate,Date const &iborEndDate,DayCounter const &dayCounter,Rate convexityAdjustment=0.0,Futures::Type type=Futures::IMM){
            return new FuturesRateHelperPtr(
                new FuturesRateHelper(price,iborStartDate,iborEndDate,
                                      dayCounter,convexityAdjustment,type));
        }
SWIGINTERN FuturesRateHelperPtr *new_FuturesRateHelperPtr__SWIG_10(Handle< Quote > const &price,Date const &iborStartDate,IborIndexPtr const &index,Handle< Quote > const &convexityAdjustment,Futures::Type type=Futures::IMM){
            boost::shared_ptr<IborIndex> libor =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new FuturesRateHelperPtr(
                new FuturesRateHelper(price,iborStartDate,libor,
                                      convexityAdjustment,type));
        }
SWIGINTERN FuturesRateHelperPtr *new_FuturesRateHelperPtr__SWIG_12(Real price,Date const &iborStartDate,IborIndexPtr const &index,Real convexityAdjustment=0.0,Futures::Type type=Futures::IMM){
            boost::shared_ptr<IborIndex> libor =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new FuturesRateHelperPtr(
                new FuturesRateHelper(price,iborStartDate,libor,
                                      convexityAdjustment,type));
        }
SWIGINTERN SwapRateHelperPtr *new_SwapRateHelperPtr__SWIG_0(Handle< Quote > const &rate,Period const &tenor,Calendar const &calendar,Frequency fixedFrequency,BusinessDayConvention fixedConvention,DayCounter const &fixedDayCount,IborIndexPtr const &index,Handle< Quote > const &spread=Handle< Quote >(),Period const &fwdStart=0*Days,Handle< YieldTermStructure > const &discountingCurve=Handle< YieldTermStructure >(),Natural settlementDays=Null< Natural >(),Pillar::Choice pillar=Pillar::LastRelevantDate,Date customPillarDate=Date()){
            boost::shared_ptr<IborIndex> libor =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new SwapRateHelperPtr(
                new SwapRateHelper(rate, tenor, calendar,
                                   fixedFrequency, fixedConvention,
                                   fixedDayCount, libor,
                                   spread, fwdStart,
                                   discountingCurve, settlementDays,
                                   pillar, customPillarDate));
        }
SWIGINTERN SwapRateHelperPtr *new_SwapRateHelperPtr__SWIG_7(Rate rate,Period const &tenor,Calendar const &calendar,Frequency fixedFrequency,BusinessDayConvention fixedConvention,DayCounter const &fixedDayCount,IborIndexPtr const &index,Handle< Quote > const &spread=Handle< Quote >(),Period const &fwdStart=0*Days,Handle< YieldTermStructure > const &discountingCurve=Handle< YieldTermStructure >(),Natural settlementDays=Null< Natural >(),Pillar::Choice pillar=Pillar::LastRelevantDate,Date customPillarDate=Date()){
            boost::shared_ptr<IborIndex> libor =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new SwapRateHelperPtr(
                new SwapRateHelper(rate, tenor, calendar,
                                   fixedFrequency, fixedConvention,
                                   fixedDayCount, libor,
                                   spread, fwdStart,
                                   discountingCurve, settlementDays,
                                   pillar, customPillarDate));
        }
SWIGINTERN SwapRateHelperPtr *new_SwapRateHelperPtr__SWIG_14(Handle< Quote > const &rate,SwapIndexPtr const &index,Handle< Quote > const &spread=Handle< Quote >(),Period const &fwdStart=0*Days,Handle< YieldTermStructure > const &discountingCurve=Handle< YieldTermStructure >(),Pillar::Choice pillar=Pillar::LastRelevantDate,Date customPillarDate=Date()){
            boost::shared_ptr<SwapIndex> swapIndex =
                boost::dynamic_pointer_cast<SwapIndex>(index);
            return new SwapRateHelperPtr(
                new SwapRateHelper(rate, swapIndex,
                                   spread, fwdStart,
                                   discountingCurve,
                                   pillar, customPillarDate));
        }
SWIGINTERN SwapRateHelperPtr *new_SwapRateHelperPtr__SWIG_20(Rate rate,SwapIndexPtr const &index,Handle< Quote > const &spread=Handle< Quote >(),Period const &fwdStart=0*Days,Handle< YieldTermStructure > const &discountingCurve=Handle< YieldTermStructure >(),Pillar::Choice pillar=Pillar::LastRelevantDate,Date customPillarDate=Date()){
            boost::shared_ptr<SwapIndex> swapIndex =
                boost::dynamic_pointer_cast<SwapIndex>(index);
            return new SwapRateHelperPtr(
                new SwapRateHelper(rate, swapIndex,
                                   spread, fwdStart,
                                   discountingCurve,
                                   pillar, customPillarDate));
        }
SWIGINTERN VanillaSwapPtr SwapRateHelperPtr_swap(SwapRateHelperPtr *self){
            return boost::dynamic_pointer_cast<SwapRateHelper>(*self)->swap();
        }
SWIGINTERN BondHelperPtr *new_BondHelperPtr__SWIG_0(Handle< Quote > const &cleanPrice,BondPtr const &bond,bool useCleanPrice=true){
            boost::shared_ptr<Bond> b = boost::dynamic_pointer_cast<Bond>(bond);
            return new BondHelperPtr(
                new BondHelper(cleanPrice, b, useCleanPrice));
        }
SWIGINTERN BondPtr BondHelperPtr_bond(BondHelperPtr *self){
            return BondPtr(boost::dynamic_pointer_cast<BondHelper>(*self)->bond());
        }
SWIGINTERN FixedRateBondHelperPtr *new_FixedRateBondHelperPtr__SWIG_0(Handle< Quote > const &cleanPrice,Size settlementDays,Real faceAmount,Schedule const &schedule,std::vector< Rate,std::allocator< Rate > > const &coupons,DayCounter const &paymentDayCounter,BusinessDayConvention paymentConvention=Following,Real redemption=100.0,Date const &issueDate=Date(),Calendar const &paymentCalendar=Calendar(),Period const &exCouponPeriod=Period(),Calendar const &exCouponCalendar=Calendar(),BusinessDayConvention exCouponConvention=Unadjusted,bool exCouponEndOfMonth=false,bool useCleanPrice=true){
            return new FixedRateBondHelperPtr(
                new FixedRateBondHelper(cleanPrice, settlementDays, faceAmount,
                                        schedule, coupons, paymentDayCounter,
                                        paymentConvention, redemption,
                                        issueDate, paymentCalendar,
                                        exCouponPeriod, exCouponCalendar,
                                        exCouponConvention, exCouponEndOfMonth,
                                        useCleanPrice));
        }
SWIGINTERN FixedRateBondPtr FixedRateBondHelperPtr_bond(FixedRateBondHelperPtr *self){
            return FixedRateBondPtr(boost::dynamic_pointer_cast<FixedRateBondHelper>(*self)->bond());
        }
SWIGINTERN OISRateHelperPtr *new_OISRateHelperPtr__SWIG_0(Natural settlementDays,Period const &tenor,Handle< Quote > const &rate,OvernightIndexPtr const &index,Handle< YieldTermStructure > const &discountingCurve=Handle< YieldTermStructure >(),bool telescopicValueDates=false,Natural paymentLag=0,BusinessDayConvention paymentConvention=Following,Frequency paymentFrequency=Annual,Calendar const &paymentCalendar=Calendar(),Period const &forwardStart=0*Days,Spread const overnightSpread=0.0){
            boost::shared_ptr<OvernightIndex> overnight =
                boost::dynamic_pointer_cast<OvernightIndex>(index);
            return new OISRateHelperPtr(
                new OISRateHelper(settlementDays,tenor,rate,
                                  overnight,discountingCurve,
                                  telescopicValueDates, paymentLag,
                                  paymentConvention, paymentFrequency,
                                  paymentCalendar, forwardStart,
                                  overnightSpread));
        }
SWIGINTERN DatedOISRateHelperPtr *new_DatedOISRateHelperPtr__SWIG_0(Date const &startDate,Date const &endDate,Handle< Quote > const &rate,OvernightIndexPtr const &index,Handle< YieldTermStructure > const &discountingCurve=Handle< YieldTermStructure >()){
            boost::shared_ptr<OvernightIndex> overnight =
                boost::dynamic_pointer_cast<OvernightIndex>(index);
            return new DatedOISRateHelperPtr(
                new DatedOISRateHelper(startDate,endDate,rate,
                                       overnight,discountingCurve));
        }
SWIGINTERN FxSwapRateHelperPtr *new_FxSwapRateHelperPtr__SWIG_0(Handle< Quote > const &fwdPoint,Handle< Quote > const &spotFx,Period const &tenor,Natural fixingDays,Calendar const &calendar,BusinessDayConvention convention,bool endOfMonth,bool isFxBaseCurrencyCollateralCurrency,Handle< YieldTermStructure > const &coll=Handle< YieldTermStructure >(),Calendar const &tradingCalendar=Calendar()){
            return new FxSwapRateHelperPtr(
                new FxSwapRateHelper(fwdPoint, spotFx, tenor,
                                     fixingDays, calendar, convention,
                                     endOfMonth,
                                     isFxBaseCurrencyCollateralCurrency,
                                     coll, tradingCalendar));
        }

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


      namespace swig {
	template <>  struct traits<std::vector< boost::shared_ptr< RateHelper >, std::allocator< boost::shared_ptr< RateHelper > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "boost::shared_ptr< RateHelper >" "," "std::allocator< boost::shared_ptr< RateHelper > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg__iterator(std::vector< boost::shared_ptr< RateHelper > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____nonzero__(std::vector< boost::shared_ptr< RateHelper > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____bool__(std::vector< boost::shared_ptr< RateHelper > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< boost::shared_ptr< RateHelper > >::size_type std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____len__(std::vector< boost::shared_ptr< RateHelper > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____getslice__(std::vector< boost::shared_ptr< RateHelper > > *self,std::vector< boost::shared_ptr< RateHelper > >::difference_type i,std::vector< boost::shared_ptr< RateHelper > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____setslice____SWIG_0(std::vector< boost::shared_ptr< RateHelper > > *self,std::vector< boost::shared_ptr< RateHelper > >::difference_type i,std::vector< boost::shared_ptr< RateHelper > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >());
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____setslice____SWIG_1(std::vector< boost::shared_ptr< RateHelper > > *self,std::vector< boost::shared_ptr< RateHelper > >::difference_type i,std::vector< boost::shared_ptr< RateHelper > >::difference_type j,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____delslice__(std::vector< boost::shared_ptr< RateHelper > > *self,std::vector< boost::shared_ptr< RateHelper > >::difference_type i,std::vector< boost::shared_ptr< RateHelper > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____delitem____SWIG_0(std::vector< boost::shared_ptr< RateHelper > > *self,std::vector< boost::shared_ptr< RateHelper > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____getitem____SWIG_0(std::vector< boost::shared_ptr< RateHelper > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____setitem____SWIG_0(std::vector< boost::shared_ptr< RateHelper > > *self,PySliceObject *slice,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____setitem____SWIG_1(std::vector< boost::shared_ptr< RateHelper > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____delitem____SWIG_1(std::vector< boost::shared_ptr< RateHelper > > *self,PySliceObject *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >::difference_type id = i;
      std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< boost::shared_ptr< RateHelper > >::value_type const &std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____getitem____SWIG_1(std::vector< boost::shared_ptr< RateHelper > > const *self,std::vector< boost::shared_ptr< RateHelper > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____setitem____SWIG_2(std::vector< boost::shared_ptr< RateHelper > > *self,std::vector< boost::shared_ptr< RateHelper > >::difference_type i,std::vector< boost::shared_ptr< RateHelper > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< boost::shared_ptr< RateHelper > >::value_type std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg__pop(std::vector< boost::shared_ptr< RateHelper > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg__append(std::vector< boost::shared_ptr< RateHelper > > *self,std::vector< boost::shared_ptr< RateHelper > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< boost::shared_ptr< RateHelper > >::iterator std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg__erase__SWIG_0(std::vector< boost::shared_ptr< RateHelper > > *self,std::vector< boost::shared_ptr< RateHelper > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< boost::shared_ptr< RateHelper > >::iterator std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg__erase__SWIG_1(std::vector< boost::shared_ptr< RateHelper > > *self,std::vector< boost::shared_ptr< RateHelper > >::iterator first,std::vector< boost::shared_ptr< RateHelper > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< boost::shared_ptr< RateHelper > >::iterator std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg__insert__SWIG_0(std::vector< boost::shared_ptr< RateHelper > > *self,std::vector< boost::shared_ptr< RateHelper > >::iterator pos,std::vector< boost::shared_ptr< RateHelper > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg__insert__SWIG_1(std::vector< boost::shared_ptr< RateHelper > > *self,std::vector< boost::shared_ptr< RateHelper > >::iterator pos,std::vector< boost::shared_ptr< RateHelper > >::size_type n,std::vector< boost::shared_ptr< RateHelper > >::value_type const &x){ self->insert(pos, n, x); }

using QuantLib::FittedBondDiscountCurve;

typedef boost::shared_ptr<YieldTermStructure> FittedBondDiscountCurvePtr;
typedef QuantLib::FittedBondDiscountCurve::FittingMethod FittingMethod;

std::vector<boost::shared_ptr<BondHelper> > convert_bond_helpers(
                 const std::vector<boost::shared_ptr<RateHelper> >& helpers) {
    std::vector<boost::shared_ptr<BondHelper> > result(helpers.size());
    for (Size i=0; i<helpers.size(); ++i)
        result[i] = boost::dynamic_pointer_cast<BondHelper>(helpers[i]);
    return result;
}

SWIGINTERN FittedBondDiscountCurvePtr *new_FittedBondDiscountCurvePtr__SWIG_0(Natural settlementDays,Calendar const &calendar,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &helpers,DayCounter const &dayCounter,FittingMethod const &fittingMethod,Real accuracy=1.0e-10,Size maxEvaluations=10000,Array const &guess=Array(),Real simplexLambda=1.0){
            return new FittedBondDiscountCurvePtr(
                new FittedBondDiscountCurve(settlementDays,
                                            calendar,
                                            convert_bond_helpers(helpers),
                                            dayCounter,
                                            fittingMethod,
                                            accuracy,
                                            maxEvaluations,
                                            guess,
                                            simplexLambda));
        }
SWIGINTERN FittedBondDiscountCurvePtr *new_FittedBondDiscountCurvePtr__SWIG_5(Date const &referenceDate,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &helpers,DayCounter const &dayCounter,FittingMethod const &fittingMethod,Real accuracy=1.0e-10,Size maxEvaluations=10000,Array const &guess=Array(),Real simplexLambda=1.0){
            return new FittedBondDiscountCurvePtr(
                new FittedBondDiscountCurve(referenceDate,
                                            convert_bond_helpers(helpers),
                                            dayCounter,
                                            fittingMethod,
                                            accuracy,
                                            maxEvaluations,
                                            guess,
                                            simplexLambda));
        }
SWIGINTERN FittingMethod const &FittedBondDiscountCurvePtr_fitResults(FittedBondDiscountCurvePtr const *self){
            return boost::dynamic_pointer_cast<FittedBondDiscountCurve>(*self)
                ->fitResults();
        }

using QuantLib::ExponentialSplinesFitting;
using QuantLib::NelsonSiegelFitting;
using QuantLib::SvenssonFitting;
using QuantLib::CubicBSplinesFitting;
using QuantLib::SimplePolynomialFitting;


using QuantLib::InterpolatedForwardCurve;


typedef boost::shared_ptr<YieldTermStructure> ForwardCurvePtr;

SWIGINTERN ForwardCurvePtr *new_ForwardCurvePtr__SWIG_0(std::vector< Date,std::allocator< Date > > const &dates,std::vector< Rate,std::allocator< Rate > > const &forwards,DayCounter const &dayCounter,Calendar const &calendar=Calendar(),BackwardFlat const &i=BackwardFlat()){
            return new ForwardCurvePtr(
                new InterpolatedForwardCurve<BackwardFlat>(dates,forwards,
                                                           dayCounter,
                                                           calendar,i));
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &ForwardCurvePtr_dates(ForwardCurvePtr *self){
            typedef InterpolatedForwardCurve<BackwardFlat> ForwardCurve;
            return boost::dynamic_pointer_cast<ForwardCurve>(*self)->dates();
        }
SWIGINTERN std::vector< Rate,std::allocator< Rate > > const &ForwardCurvePtr_forwards(ForwardCurvePtr *self){
            typedef InterpolatedForwardCurve<BackwardFlat> ForwardCurve;
            return boost::dynamic_pointer_cast<ForwardCurve>(*self)->forwards();
        }
SWIGINTERN std::vector< std::pair< Date,Rate >,std::allocator< std::pair< Date,Rate > > > ForwardCurvePtr_nodes(ForwardCurvePtr *self){
            typedef InterpolatedForwardCurve<BackwardFlat> ForwardCurve;
            return boost::dynamic_pointer_cast<ForwardCurve>(*self)->nodes();
        }

using QuantLib::Position;
using QuantLib::ForwardRateAgreement;
typedef boost::shared_ptr<Instrument> ForwardRateAgreementPtr;

SWIGINTERN ForwardRateAgreementPtr *new_ForwardRateAgreementPtr__SWIG_0(Date const &valueDate,Date const &maturityDate,Position::Type type,Rate strikeForwardRate,Real notionalAmount,IborIndexPtr const &index,Handle< YieldTermStructure > const &discountCurve=Handle< YieldTermStructure >()){
             
            boost::shared_ptr<IborIndex> libor =
                boost::dynamic_pointer_cast<IborIndex>(index);

            return new ForwardRateAgreementPtr(
                   new ForwardRateAgreement(valueDate, maturityDate, type,
                                            strikeForwardRate, notionalAmount,
                                            libor, discountCurve));
        }
SWIGINTERN Real ForwardRateAgreementPtr_spotIncome(ForwardRateAgreementPtr const *self,Handle< YieldTermStructure > const &discount){
            return boost::dynamic_pointer_cast<ForwardRateAgreement>(*self)
                ->spotIncome(discount);
        }
SWIGINTERN Real ForwardRateAgreementPtr_spotValue(ForwardRateAgreementPtr const *self){
            return boost::dynamic_pointer_cast<ForwardRateAgreement>(*self)
                ->spotValue();
        }
SWIGINTERN InterestRate ForwardRateAgreementPtr_forwardRate(ForwardRateAgreementPtr const *self){
            return boost::dynamic_pointer_cast<ForwardRateAgreement>(*self)
                ->forwardRate();
        }

using QuantLib::Gaussian1dModel;


SWIGINTERN bool boost_shared_ptr_Sl_Gaussian1dModel_Sg____nonzero__(boost::shared_ptr< Gaussian1dModel > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_Gaussian1dModel_Sg____bool__(boost::shared_ptr< Gaussian1dModel > *self){
                return !!(*self);
            }

using QuantLib::Gsr;
using QuantLib::MarkovFunctional;

typedef boost::shared_ptr<Gaussian1dModel> GsrPtr;
typedef boost::shared_ptr<Gaussian1dModel> MarkovFunctionalPtr;

SWIGINTERN GsrPtr *new_GsrPtr__SWIG_0(Handle< YieldTermStructure > const &termStructure,std::vector< Date,std::allocator< Date > > const &volstepdates,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &volatilities,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &reversions,Real const T=60.0){
            return new GsrPtr(new Gsr(termStructure, volstepdates,
                                      volatilities, reversions, T));
        }
SWIGINTERN void GsrPtr_calibrateVolatilitiesIterative__SWIG_0(GsrPtr *self,std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &helpers,OptimizationMethod &method,EndCriteria const &endCriteria,Constraint const &constraint=Constraint(),std::vector< Real,std::allocator< Real > > const &weights=std::vector< Real >()){
            boost::dynamic_pointer_cast<Gsr>(*self)
                ->calibrateVolatilitiesIterative(helpers, method, endCriteria,
                                                 constraint, weights);
        }
SWIGINTERN void GsrPtr_calibrate__SWIG_0(GsrPtr *self,std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &helpers,OptimizationMethod &method,EndCriteria const &endCriteria,Constraint const &constraint=Constraint(),std::vector< Real,std::allocator< Real > > const &weights=std::vector< Real >(),std::vector< bool,std::allocator< bool > > const &fixParameters=std::vector< bool >()){
            boost::dynamic_pointer_cast<Gsr>(*self)
                ->calibrate(helpers, method, endCriteria,
                            constraint, weights, fixParameters);
        }
SWIGINTERN Array GsrPtr_params(GsrPtr const *self){
            return boost::dynamic_pointer_cast<Gsr>(*self)->params();
        }
SWIGINTERN Real GsrPtr_value(GsrPtr *self,Array const &params,std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &helpers){
            return boost::dynamic_pointer_cast<Gsr>(*self)->value(params, helpers);
        }
SWIGINTERN EndCriteria::Type GsrPtr_endCriteria(GsrPtr const *self){
            return boost::dynamic_pointer_cast<Gsr>(*self)->endCriteria();
        }
SWIGINTERN void GsrPtr_setParams(GsrPtr *self,Array const &params){
            boost::dynamic_pointer_cast<Gsr>(*self)->setParams(params);
        }
SWIGINTERN Integer GsrPtr_functionEvaluation(GsrPtr const *self){
            return boost::dynamic_pointer_cast<Gsr>(*self)->functionEvaluation();
        }
SWIGINTERN Array const &GsrPtr_reversion(GsrPtr const *self){
            return boost::dynamic_pointer_cast<Gsr>(*self)->reversion();
        }
SWIGINTERN Array const &GsrPtr_volatility(GsrPtr const *self){
            return boost::dynamic_pointer_cast<Gsr>(*self)->volatility();
        }
SWIGINTERN MarkovFunctionalPtr *new_MarkovFunctionalPtr__SWIG_0(Handle< YieldTermStructure > const &termStructure,Real const reversion,std::vector< Date,std::allocator< Date > > const &volstepdates,std::vector< Real,std::allocator< Real > > const &volatilities,Handle< SwaptionVolatilityStructure > const &swaptionVol,std::vector< Date,std::allocator< Date > > const &swaptionExpiries,std::vector< Period,std::allocator< Period > > const &swaptionTenors,SwapIndexPtr const &swapIndexBase,Size const yGridPoints=64,Real const yStdDevs=7.0,Size const gaussHermitePoints=32,Real const digitalGap=1E-5,Real const marketRateAccuracy=1E-7,Real const lowerRateBound=0.0,Real const upperRateBound=2.0,int const adjustments=MarkovFunctional::ModelSettings::KahaleSmile|MarkovFunctional::ModelSettings::SmileExponentialExtrapolation,std::vector< Real,std::allocator< Real > > const &smileMoneyCheckpoints=std::vector< Real >()){
            const boost::shared_ptr<SwapIndex> swapIndex =
                boost::dynamic_pointer_cast<SwapIndex>(swapIndexBase);
            MarkovFunctional::ModelSettings modelSettings =
                MarkovFunctional::ModelSettings(yGridPoints, yStdDevs,
                                                gaussHermitePoints, digitalGap,
                                                marketRateAccuracy,
                                                lowerRateBound,
                                                upperRateBound,
                                                adjustments,
                                                smileMoneyCheckpoints);
            return new MarkovFunctionalPtr(
                new MarkovFunctional(termStructure, reversion,
                                     volstepdates, volatilities,
                                     swaptionVol, swaptionExpiries,
                                     swaptionTenors, swapIndex,
                                     modelSettings));
        }
SWIGINTERN void MarkovFunctionalPtr_calibrate__SWIG_0(MarkovFunctionalPtr *self,std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &helper,OptimizationMethod &method,EndCriteria const &endCriteria,Constraint const &constraint=Constraint(),std::vector< Real,std::allocator< Real > > const &weights=std::vector< Real >(),std::vector< bool,std::allocator< bool > > const &fixParameters=std::vector< bool >()){
            boost::dynamic_pointer_cast<MarkovFunctional>(*self)->calibrate(helper, method, 
                                                                            endCriteria, constraint, weights, fixParameters);
        }
SWIGINTERN Array const &MarkovFunctionalPtr_volatility(MarkovFunctionalPtr const *self){
            return boost::dynamic_pointer_cast<MarkovFunctional>(*self)
                ->volatility();
        }

using QuantLib::Gaussian1dSwaptionEngine;
using QuantLib::Gaussian1dJamshidianSwaptionEngine;
using QuantLib::Gaussian1dNonstandardSwaptionEngine;
using QuantLib::Gaussian1dFloatFloatSwaptionEngine;
 
typedef boost::shared_ptr<PricingEngine> Gaussian1dSwaptionEnginePtr;
typedef boost::shared_ptr<PricingEngine> Gaussian1dJamshidianSwaptionEnginePtr;
typedef boost::shared_ptr<PricingEngine> Gaussian1dNonstandardSwaptionEnginePtr;
typedef boost::shared_ptr<PricingEngine> Gaussian1dFloatFloatSwaptionEnginePtr;

SWIGINTERN Gaussian1dSwaptionEnginePtr *new_Gaussian1dSwaptionEnginePtr__SWIG_0(boost::shared_ptr< Gaussian1dModel > const &model,int const integrationPoints=64,Real const stddevs=7.0,bool const extrapolatePayoff=true,bool const flatPayoffExtrapolation=false,Handle< YieldTermStructure > const &discountCurve=Handle< YieldTermStructure >()){
            return new Gaussian1dSwaptionEnginePtr(new Gaussian1dSwaptionEngine(model, integrationPoints, 
                    stddevs, extrapolatePayoff, flatPayoffExtrapolation, discountCurve));
        }
SWIGINTERN Gaussian1dJamshidianSwaptionEnginePtr *new_Gaussian1dJamshidianSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &model){
            return new Gaussian1dJamshidianSwaptionEnginePtr(new Gaussian1dJamshidianSwaptionEngine(model));
        }
SWIGINTERN Gaussian1dNonstandardSwaptionEnginePtr *new_Gaussian1dNonstandardSwaptionEnginePtr__SWIG_0(boost::shared_ptr< Gaussian1dModel > const &model,int const integrationPoints=64,Real const stddevs=7.0,bool const extrapolatePayoff=true,bool const flatPayoffExtrapolation=false,Handle< Quote > const &oas=Handle< Quote >(),Handle< YieldTermStructure > const &discountCurve=Handle< YieldTermStructure >()){
            return new Gaussian1dNonstandardSwaptionEnginePtr(new Gaussian1dNonstandardSwaptionEngine(model, integrationPoints, 
                    stddevs, extrapolatePayoff, flatPayoffExtrapolation, oas, discountCurve));
        }
SWIGINTERN Gaussian1dFloatFloatSwaptionEnginePtr *new_Gaussian1dFloatFloatSwaptionEnginePtr__SWIG_0(boost::shared_ptr< Gaussian1dModel > const &model,int const integrationPoints=64,Real const stddevs=7.0,bool const extrapolatePayoff=true,bool const flatPayoffExtrapolation=false,Handle< Quote > const &oas=Handle< Quote >(),Handle< YieldTermStructure > const &discountCurve=Handle< YieldTermStructure >(),bool const includeTodaysExercise=false,Gaussian1dFloatFloatSwaptionEngine::Probabilities const probabilities=Gaussian1dFloatFloatSwaptionEngine::None){
            return new Gaussian1dFloatFloatSwaptionEnginePtr(
                new Gaussian1dFloatFloatSwaptionEngine(model,
                                                       integrationPoints,
                                                       stddevs,
                                                       extrapolatePayoff,
                                                       flatPayoffExtrapolation,
                                                       oas,
                                                       discountCurve,
                                                       includeTodaysExercise,
                                                       probabilities));
        }

using QuantLib::SegmentIntegral;
using QuantLib::TrapezoidIntegral;
using QuantLib::Default;
using QuantLib::MidPoint;
using QuantLib::SimpsonIntegral;
using QuantLib::GaussKronrodAdaptive;
using QuantLib::GaussKronrodNonAdaptive;
using QuantLib::GaussLobattoIntegral;
using QuantLib::GaussLaguerreIntegration;
using QuantLib::GaussHermiteIntegration;
using QuantLib::GaussJacobiIntegration;
using QuantLib::GaussHyperbolicIntegration;
using QuantLib::GaussLegendreIntegration;
using QuantLib::GaussChebyshevIntegration;
using QuantLib::GaussChebyshev2ndIntegration;
using QuantLib::GaussGegenbauerIntegration;

SWIGINTERN Real SegmentIntegral___call__(SegmentIntegral *self,PyObject *pyFunction,Real a,Real b){
            UnaryFunction f(pyFunction);
            return (*self)(f, a, b);
        }
SWIGINTERN Real TrapezoidIntegral_Sl_Default_Sg____call__(TrapezoidIntegral< Default > *self,PyObject *pyFunction,Real a,Real b){
            UnaryFunction f(pyFunction);
            return (*self)(f, a, b);
        }
SWIGINTERN Real TrapezoidIntegral_Sl_MidPoint_Sg____call__(TrapezoidIntegral< MidPoint > *self,PyObject *pyFunction,Real a,Real b){
            UnaryFunction f(pyFunction);
            return (*self)(f, a, b);
        }
SWIGINTERN Real SimpsonIntegral___call__(SimpsonIntegral *self,PyObject *pyFunction,Real a,Real b){
            UnaryFunction f(pyFunction);
            return (*self)(f, a, b);
        }
SWIGINTERN Real GaussKronrodAdaptive___call__(GaussKronrodAdaptive *self,PyObject *pyFunction,Real a,Real b){
            UnaryFunction f(pyFunction);
            return (*self)(f, a, b);
        }
SWIGINTERN Real GaussKronrodNonAdaptive___call__(GaussKronrodNonAdaptive *self,PyObject *pyFunction,Real a,Real b){
            UnaryFunction f(pyFunction);
            return (*self)(f, a, b);
        }
SWIGINTERN Real GaussLobattoIntegral___call__(GaussLobattoIntegral *self,PyObject *pyFunction,Real a,Real b){
            UnaryFunction f(pyFunction);
            return (*self)(f, a, b);
        }
SWIGINTERN Real GaussLaguerreIntegration___call__(GaussLaguerreIntegration *self,PyObject *pyFunction){
            UnaryFunction f(pyFunction);
            return (*self)(f);
        }
SWIGINTERN Real GaussHermiteIntegration___call__(GaussHermiteIntegration *self,PyObject *pyFunction){
            UnaryFunction f(pyFunction);
            return (*self)(f);
        }
SWIGINTERN Real GaussJacobiIntegration___call__(GaussJacobiIntegration *self,PyObject *pyFunction){
            UnaryFunction f(pyFunction);
            return (*self)(f);
        }
SWIGINTERN Real GaussHyperbolicIntegration___call__(GaussHyperbolicIntegration *self,PyObject *pyFunction){
            UnaryFunction f(pyFunction);
            return (*self)(f);
        }
SWIGINTERN Real GaussLegendreIntegration___call__(GaussLegendreIntegration *self,PyObject *pyFunction){
            UnaryFunction f(pyFunction);
            return (*self)(f);
        }
SWIGINTERN Real GaussChebyshevIntegration___call__(GaussChebyshevIntegration *self,PyObject *pyFunction){
            UnaryFunction f(pyFunction);
            return (*self)(f);
        }
SWIGINTERN Real GaussChebyshev2ndIntegration___call__(GaussChebyshev2ndIntegration *self,PyObject *pyFunction){
            UnaryFunction f(pyFunction);
            return (*self)(f);
        }
SWIGINTERN Real GaussGegenbauerIntegration___call__(GaussGegenbauerIntegration *self,PyObject *pyFunction){
            UnaryFunction f(pyFunction);
            return (*self)(f);
        }

using QuantLib::Sample;

using QuantLib::LecuyerUniformRng;
using QuantLib::KnuthUniformRng;
using QuantLib::MersenneTwisterUniformRng;

typedef QuantLib::PseudoRandom::urng_type UniformRandomGenerator;

using QuantLib::CLGaussianRng;
using QuantLib::BoxMullerGaussianRng;
using QuantLib::InverseCumulativeRng;

typedef QuantLib::PseudoRandom::rng_type GaussianRandomGenerator;

using QuantLib::RandomSequenceGenerator;

typedef QuantLib::PseudoRandom::ursg_type UniformRandomSequenceGenerator;
using QuantLib::SobolBrownianGenerator;

using QuantLib::HaltonRsg;
using QuantLib::SobolRsg;
using QuantLib::SobolBrownianBridgeRsg;

typedef QuantLib::LowDiscrepancy::ursg_type
    UniformLowDiscrepancySequenceGenerator;

using QuantLib::InverseCumulativeRsg;

typedef QuantLib::PseudoRandom::rsg_type GaussianRandomSequenceGenerator;
typedef QuantLib::LowDiscrepancy::rsg_type
    GaussianLowDiscrepancySequenceGenerator;

SWIGINTERN double Sample_Sl_Real_Sg__value(Sample< Real > *self){ return self->value; }
SWIGINTERN Real Sample_Sl_Real_Sg__weight(Sample< Real > *self){ return self->weight; }
SWIGINTERN Array Sample_Sl_Array_Sg__value(Sample< Array > *self){ return self->value; }
SWIGINTERN Real Sample_Sl_Array_Sg__weight(Sample< Array > *self){ return self->weight; }
SWIGINTERN std::vector< double,std::allocator< double > > Sample_Sl_std_vector_Sl_Real_Sg__Sg__value(Sample< std::vector< Real > > *self){ return self->value; }
SWIGINTERN Real Sample_Sl_std_vector_Sl_Real_Sg__Sg__weight(Sample< std::vector< Real > > *self){ return self->weight; }
SWIGINTERN Real UniformRandomGenerator_nextValue(UniformRandomGenerator const *self){
			return (*self).next().value;
		}
SWIGINTERN Real GaussianRandomGenerator_nextValue(GaussianRandomGenerator const *self){
			return (*self).next().value;
		}
SWIGINTERN std::vector< unsigned int,std::allocator< unsigned int > > SobolRsg_nextInt32Sequence(SobolRsg *self){
        const std::vector<boost::uint_least32_t> &tmp = self->nextInt32Sequence();
        std::vector<unsigned int> outp(tmp.size());
        std::copy(tmp.begin(),tmp.end(),outp.begin());
        return outp;
      }

Matrix getCovariance(const Array& volatilities, const Matrix& correlations) {
    return QuantLib::getCovariance(volatilities.begin(),
                                   volatilities.end(),
                                   correlations);
}


using QuantLib::Path;

SWIGINTERN Real Path___getitem__(Path *self,Integer i){
            Integer size_ = Integer(self->length());
            if (i>=0 && i<size_) {
                return (*self)[i];
            } else if (i<0 && -i<=size_) {
                return (*self)[size_+i];
            } else {
                throw std::out_of_range("path index out of range");
            }
        }

typedef QuantLib::PathGenerator<GaussianRandomSequenceGenerator>
    GaussianPathGenerator;

SWIGINTERN Path Sample_Sl_Path_Sg__value(Sample< Path > *self){ return self->value; }
SWIGINTERN Real Sample_Sl_Path_Sg__weight(Sample< Path > *self){ return self->weight; }
SWIGINTERN GaussianPathGenerator *new_GaussianPathGenerator(StochasticProcess1DPtr const &process,Time length,Size steps,GaussianRandomSequenceGenerator const &rsg,bool brownianBridge){
            boost::shared_ptr<StochasticProcess1D> process1d =
                boost::dynamic_pointer_cast<StochasticProcess1D>(process);
            return new GaussianPathGenerator(process1d,length,steps,
                                             rsg,brownianBridge);
        }

typedef QuantLib::PathGenerator<GaussianLowDiscrepancySequenceGenerator>
    GaussianSobolPathGenerator;

SWIGINTERN GaussianSobolPathGenerator *new_GaussianSobolPathGenerator(StochasticProcess1DPtr const &process,Time length,Size steps,GaussianLowDiscrepancySequenceGenerator const &rsg,bool brownianBridge){
            boost::shared_ptr<StochasticProcess1D> process1d =
                boost::dynamic_pointer_cast<StochasticProcess1D>(process);
            return new GaussianSobolPathGenerator(process1d,length,steps,
                                                  rsg,brownianBridge);
        }

using QuantLib::MultiPath;

SWIGINTERN Path const &MultiPath___getitem__(MultiPath *self,Integer i){
            Integer assets_ = Integer(self->assetNumber());
            if (i>=0 && i<assets_) {
                return (*self)[i];
            } else if (i<0 && -i<=assets_) {
                return (*self)[assets_+i];
            } else {
                throw std::out_of_range("multi-path index out of range");
            }
        }

typedef QuantLib::MultiPathGenerator<GaussianRandomSequenceGenerator>
    GaussianMultiPathGenerator;

SWIGINTERN MultiPath Sample_Sl_MultiPath_Sg__value(Sample< MultiPath > *self){ return self->value; }
SWIGINTERN Real Sample_Sl_MultiPath_Sg__weight(Sample< MultiPath > *self){ return self->weight; }
SWIGINTERN GaussianMultiPathGenerator *new_GaussianMultiPathGenerator__SWIG_0(boost::shared_ptr< StochasticProcess > const &process,std::vector< Time,std::allocator< Time > > const &times,GaussianRandomSequenceGenerator const &generator,bool brownianBridge=false){
          return new GaussianMultiPathGenerator(process,
                                                QuantLib::TimeGrid(
                                                    times.begin(),
                                                    times.end()),
                                                generator,
                                                brownianBridge);
      }

using QuantLib::BrownianBridge;

SWIGINTERN std::vector< Real,std::allocator< Real > > BrownianBridge_transform(BrownianBridge *self,std::vector< Real,std::allocator< Real > > const &input){
      std::vector<Real> outp(input.size());
      self->transform(input.begin(),input.end(),outp.begin());
      return outp;
    }
SWIGINTERN std::vector< unsigned int,std::allocator< unsigned int > > BrownianBridge_bridgeIndex(BrownianBridge const *self){
    	const std::vector<Size> &tmp = self->bridgeIndex();
    	std::vector<unsigned int> outp(tmp.size());
    	std::copy(tmp.begin(), tmp.end(), outp.begin());
    	return outp;
    }
SWIGINTERN std::vector< unsigned int,std::allocator< unsigned int > > BrownianBridge_leftIndex(BrownianBridge const *self){
    	const std::vector<Size> &tmp = self->leftIndex();
    	std::vector<unsigned int> outp(tmp.size());
    	std::copy(tmp.begin(), tmp.end(), outp.begin());
    	return outp;
    }
SWIGINTERN std::vector< unsigned int,std::allocator< unsigned int > > BrownianBridge_rightIndex(BrownianBridge const *self){
    	const std::vector<Size> &tmp = self->rightIndex();
    	std::vector<unsigned int> outp(tmp.size());
    	std::copy(tmp.begin(), tmp.end(), outp.begin());
    	return outp;
    }

typedef QuantLib::BoundaryCondition<QuantLib::TridiagonalOperator>
        DefaultBoundaryCondition;

SWIGINTERN bool boost_shared_ptr_Sl_DefaultBoundaryCondition_Sg____nonzero__(boost::shared_ptr< DefaultBoundaryCondition > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_DefaultBoundaryCondition_Sg____bool__(boost::shared_ptr< DefaultBoundaryCondition > *self){
                return !!(*self);
            }

using QuantLib::NeumannBC;
using QuantLib::DirichletBC;
typedef boost::shared_ptr<DefaultBoundaryCondition> NeumannBCPtr;
typedef boost::shared_ptr<DefaultBoundaryCondition> DirichletBCPtr;

SWIGINTERN NeumannBCPtr *new_NeumannBCPtr(Real value,DefaultBoundaryCondition::Side side){
            return new NeumannBCPtr(new NeumannBC(value, side));
        }
SWIGINTERN DirichletBCPtr *new_DirichletBCPtr(Real value,DefaultBoundaryCondition::Side side){
            return new DirichletBCPtr(new DirichletBC(value, side));
        }

using QuantLib::TridiagonalOperator;

SWIGINTERN TridiagonalOperator TridiagonalOperator___add__(TridiagonalOperator *self,TridiagonalOperator const &O){
            return *self+O;
        }
SWIGINTERN TridiagonalOperator TridiagonalOperator___sub__(TridiagonalOperator *self,TridiagonalOperator const &O){
            return *self-O;
        }
SWIGINTERN TridiagonalOperator TridiagonalOperator___mul__(TridiagonalOperator *self,Real a){
            return *self*a;
        }
SWIGINTERN TridiagonalOperator TridiagonalOperator___div__(TridiagonalOperator *self,Real a){
            return *self/a;
        }
SWIGINTERN TridiagonalOperator TridiagonalOperator___iadd__(TridiagonalOperator *self,TridiagonalOperator const &O){
            return *self+O;
        }
SWIGINTERN TridiagonalOperator TridiagonalOperator___isub__(TridiagonalOperator *self,TridiagonalOperator const &O){
            return *self-O;
        }
SWIGINTERN TridiagonalOperator TridiagonalOperator___imul__(TridiagonalOperator *self,Real a){
            return *self*a;
        }
SWIGINTERN TridiagonalOperator TridiagonalOperator___rmul__(TridiagonalOperator *self,Real a){
            return *self*a;
        }
SWIGINTERN TridiagonalOperator TridiagonalOperator___idiv__(TridiagonalOperator *self,Real a){
            return *self/a;
        }

using QuantLib::DPlus;
using QuantLib::DMinus;
using QuantLib::DZero;
using QuantLib::DPlusDMinus;


using QuantLib::Discount;
using QuantLib::ZeroYield;
using QuantLib::ForwardRate;


using QuantLib::PiecewiseYieldCurve;


typedef boost::shared_ptr<YieldTermStructure> PiecewiseFlatForwardPtr;

SWIGINTERN PiecewiseFlatForwardPtr *new_PiecewiseFlatForwardPtr__SWIG_0(Date const &referenceDate,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &instruments,DayCounter const &dayCounter,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &jumps=std::vector< Handle< Quote > >(),std::vector< Date,std::allocator< Date > > const &jumpDates=std::vector< Date >(),Real accuracy=1.0e-12,BackwardFlat const &i=BackwardFlat()){
            return new PiecewiseFlatForwardPtr(
                new PiecewiseYieldCurve<ForwardRate,BackwardFlat>(
                                                 referenceDate,instruments,
                                                 dayCounter, jumps, jumpDates,
                                                 accuracy,i));
        }
SWIGINTERN PiecewiseFlatForwardPtr *new_PiecewiseFlatForwardPtr__SWIG_5(Integer settlementDays,Calendar const &calendar,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &instruments,DayCounter const &dayCounter,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &jumps=std::vector< Handle< Quote > >(),std::vector< Date,std::allocator< Date > > const &jumpDates=std::vector< Date >(),Real accuracy=1.0e-12,BackwardFlat const &i=BackwardFlat()){
            return new PiecewiseFlatForwardPtr(
                new PiecewiseYieldCurve<ForwardRate,BackwardFlat>(
                                        settlementDays, calendar, instruments,
                                        dayCounter, jumps, jumpDates,
                                        accuracy, i));
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &PiecewiseFlatForwardPtr_dates(PiecewiseFlatForwardPtr *self){
            typedef PiecewiseYieldCurve<ForwardRate,BackwardFlat> PiecewiseFlatForward;
            return boost::dynamic_pointer_cast<PiecewiseFlatForward>(*self)->dates();
        }
SWIGINTERN std::vector< Time,std::allocator< Time > > const &PiecewiseFlatForwardPtr_times(PiecewiseFlatForwardPtr *self){
            typedef PiecewiseYieldCurve<ForwardRate,BackwardFlat> PiecewiseFlatForward;
            return boost::dynamic_pointer_cast<PiecewiseFlatForward>(*self)->times();
        }
SWIGINTERN std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > PiecewiseFlatForwardPtr_nodes(PiecewiseFlatForwardPtr *self){
            typedef PiecewiseYieldCurve<ForwardRate,BackwardFlat> PiecewiseFlatForward;
            return boost::dynamic_pointer_cast<PiecewiseFlatForward>(*self)->nodes();
        }

typedef boost::shared_ptr<YieldTermStructure> PiecewiseLinearForwardPtr;

SWIGINTERN PiecewiseLinearForwardPtr *new_PiecewiseLinearForwardPtr__SWIG_0(Date const &referenceDate,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &instruments,DayCounter const &dayCounter,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &jumps=std::vector< Handle< Quote > >(),std::vector< Date,std::allocator< Date > > const &jumpDates=std::vector< Date >(),Real accuracy=1.0e-12,Linear const &i=Linear()){
            return new PiecewiseLinearForwardPtr(
                new PiecewiseYieldCurve<ForwardRate,Linear>(
                                                 referenceDate,instruments,
                                                 dayCounter, jumps, jumpDates,
                                                 accuracy,i));
        }
SWIGINTERN PiecewiseLinearForwardPtr *new_PiecewiseLinearForwardPtr__SWIG_5(Integer settlementDays,Calendar const &calendar,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &instruments,DayCounter const &dayCounter,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &jumps=std::vector< Handle< Quote > >(),std::vector< Date,std::allocator< Date > > const &jumpDates=std::vector< Date >(),Real accuracy=1.0e-12,Linear const &i=Linear()){
            return new PiecewiseLinearForwardPtr(
                new PiecewiseYieldCurve<ForwardRate,Linear>(
                                        settlementDays, calendar, instruments,
                                        dayCounter, jumps, jumpDates,
                                        accuracy, i));
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &PiecewiseLinearForwardPtr_dates(PiecewiseLinearForwardPtr *self){
            typedef PiecewiseYieldCurve<ForwardRate,Linear> PiecewiseLinearForward;
            return boost::dynamic_pointer_cast<PiecewiseLinearForward>(*self)->dates();
        }
SWIGINTERN std::vector< Time,std::allocator< Time > > const &PiecewiseLinearForwardPtr_times(PiecewiseLinearForwardPtr *self){
            typedef PiecewiseYieldCurve<ForwardRate,Linear> PiecewiseLinearForward;
            return boost::dynamic_pointer_cast<PiecewiseLinearForward>(*self)->times();
        }
SWIGINTERN std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > PiecewiseLinearForwardPtr_nodes(PiecewiseLinearForwardPtr *self){
            typedef PiecewiseYieldCurve<ForwardRate,Linear> PiecewiseLinearForward;
            return boost::dynamic_pointer_cast<PiecewiseLinearForward>(*self)->nodes();
        }

typedef boost::shared_ptr<YieldTermStructure> PiecewiseLinearZeroPtr;

SWIGINTERN PiecewiseLinearZeroPtr *new_PiecewiseLinearZeroPtr__SWIG_0(Date const &referenceDate,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &instruments,DayCounter const &dayCounter,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &jumps=std::vector< Handle< Quote > >(),std::vector< Date,std::allocator< Date > > const &jumpDates=std::vector< Date >(),Real accuracy=1.0e-12,Linear const &i=Linear()){
            return new PiecewiseLinearZeroPtr(
                new PiecewiseYieldCurve<ZeroYield,Linear>(
                                                 referenceDate,instruments,
                                                 dayCounter, jumps, jumpDates,
                                                 accuracy,i));
        }
SWIGINTERN PiecewiseLinearZeroPtr *new_PiecewiseLinearZeroPtr__SWIG_5(Integer settlementDays,Calendar const &calendar,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &instruments,DayCounter const &dayCounter,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &jumps=std::vector< Handle< Quote > >(),std::vector< Date,std::allocator< Date > > const &jumpDates=std::vector< Date >(),Real accuracy=1.0e-12,Linear const &i=Linear()){
            return new PiecewiseLinearZeroPtr(
                new PiecewiseYieldCurve<ZeroYield,Linear>(
                                        settlementDays, calendar, instruments,
                                        dayCounter, jumps, jumpDates,
                                        accuracy, i));
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &PiecewiseLinearZeroPtr_dates(PiecewiseLinearZeroPtr *self){
            typedef PiecewiseYieldCurve<ZeroYield,Linear> PiecewiseLinearZero;
            return boost::dynamic_pointer_cast<PiecewiseLinearZero>(*self)->dates();
        }
SWIGINTERN std::vector< Time,std::allocator< Time > > const &PiecewiseLinearZeroPtr_times(PiecewiseLinearZeroPtr *self){
            typedef PiecewiseYieldCurve<ZeroYield,Linear> PiecewiseLinearZero;
            return boost::dynamic_pointer_cast<PiecewiseLinearZero>(*self)->times();
        }
SWIGINTERN std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > PiecewiseLinearZeroPtr_nodes(PiecewiseLinearZeroPtr *self){
            typedef PiecewiseYieldCurve<ZeroYield,Linear> PiecewiseLinearZero;
            return boost::dynamic_pointer_cast<PiecewiseLinearZero>(*self)->nodes();
        }

typedef boost::shared_ptr<YieldTermStructure> PiecewiseCubicZeroPtr;

SWIGINTERN PiecewiseCubicZeroPtr *new_PiecewiseCubicZeroPtr__SWIG_0(Date const &referenceDate,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &instruments,DayCounter const &dayCounter,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &jumps=std::vector< Handle< Quote > >(),std::vector< Date,std::allocator< Date > > const &jumpDates=std::vector< Date >(),Real accuracy=1.0e-12,Cubic const &i=Cubic()){
            return new PiecewiseCubicZeroPtr(
                new PiecewiseYieldCurve<ZeroYield,Cubic>(
                                                 referenceDate,instruments,
                                                 dayCounter, jumps, jumpDates,
                                                 accuracy,i));
        }
SWIGINTERN PiecewiseCubicZeroPtr *new_PiecewiseCubicZeroPtr__SWIG_5(Integer settlementDays,Calendar const &calendar,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &instruments,DayCounter const &dayCounter,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &jumps=std::vector< Handle< Quote > >(),std::vector< Date,std::allocator< Date > > const &jumpDates=std::vector< Date >(),Real accuracy=1.0e-12,Cubic const &i=Cubic()){
            return new PiecewiseCubicZeroPtr(
                new PiecewiseYieldCurve<ZeroYield,Cubic>(
                                        settlementDays, calendar, instruments,
                                        dayCounter, jumps, jumpDates,
                                        accuracy, i));
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &PiecewiseCubicZeroPtr_dates(PiecewiseCubicZeroPtr *self){
            typedef PiecewiseYieldCurve<ZeroYield,Cubic> PiecewiseCubicZero;
            return boost::dynamic_pointer_cast<PiecewiseCubicZero>(*self)->dates();
        }
SWIGINTERN std::vector< Time,std::allocator< Time > > const &PiecewiseCubicZeroPtr_times(PiecewiseCubicZeroPtr *self){
            typedef PiecewiseYieldCurve<ZeroYield,Cubic> PiecewiseCubicZero;
            return boost::dynamic_pointer_cast<PiecewiseCubicZero>(*self)->times();
        }
SWIGINTERN std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > PiecewiseCubicZeroPtr_nodes(PiecewiseCubicZeroPtr *self){
            typedef PiecewiseYieldCurve<ZeroYield,Cubic> PiecewiseCubicZero;
            return boost::dynamic_pointer_cast<PiecewiseCubicZero>(*self)->nodes();
        }

typedef boost::shared_ptr<YieldTermStructure> PiecewiseLogCubicDiscountPtr;

SWIGINTERN PiecewiseLogCubicDiscountPtr *new_PiecewiseLogCubicDiscountPtr__SWIG_0(Date const &referenceDate,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &instruments,DayCounter const &dayCounter,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &jumps=std::vector< Handle< Quote > >(),std::vector< Date,std::allocator< Date > > const &jumpDates=std::vector< Date >(),Real accuracy=1.0e-12,MonotonicLogCubic const &i=MonotonicLogCubic()){
            return new PiecewiseLogCubicDiscountPtr(
                new PiecewiseYieldCurve<Discount,MonotonicLogCubic>(
                                                 referenceDate,instruments,
                                                 dayCounter, jumps, jumpDates,
                                                 accuracy,i));
        }
SWIGINTERN PiecewiseLogCubicDiscountPtr *new_PiecewiseLogCubicDiscountPtr__SWIG_5(Integer settlementDays,Calendar const &calendar,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &instruments,DayCounter const &dayCounter,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &jumps=std::vector< Handle< Quote > >(),std::vector< Date,std::allocator< Date > > const &jumpDates=std::vector< Date >(),Real accuracy=1.0e-12,MonotonicLogCubic const &i=MonotonicLogCubic()){
            return new PiecewiseLogCubicDiscountPtr(
                new PiecewiseYieldCurve<Discount,MonotonicLogCubic>(
                                        settlementDays, calendar, instruments,
                                        dayCounter, jumps, jumpDates,
                                        accuracy, i));
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &PiecewiseLogCubicDiscountPtr_dates(PiecewiseLogCubicDiscountPtr *self){
            typedef PiecewiseYieldCurve<Discount,MonotonicLogCubic> PiecewiseLogCubicDiscount;
            return boost::dynamic_pointer_cast<PiecewiseLogCubicDiscount>(*self)->dates();
        }
SWIGINTERN std::vector< Time,std::allocator< Time > > const &PiecewiseLogCubicDiscountPtr_times(PiecewiseLogCubicDiscountPtr *self){
            typedef PiecewiseYieldCurve<Discount,MonotonicLogCubic> PiecewiseLogCubicDiscount;
            return boost::dynamic_pointer_cast<PiecewiseLogCubicDiscount>(*self)->times();
        }
SWIGINTERN std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > PiecewiseLogCubicDiscountPtr_nodes(PiecewiseLogCubicDiscountPtr *self){
            typedef PiecewiseYieldCurve<Discount,MonotonicLogCubic> PiecewiseLogCubicDiscount;
            return boost::dynamic_pointer_cast<PiecewiseLogCubicDiscount>(*self)->nodes();
        }

using QuantLib::Settings;

SWIGINTERN Date Settings_getEvaluationDate(Settings *self){
            return self->evaluationDate();
        }
SWIGINTERN void Settings_setEvaluationDate(Settings *self,Date const &d){
            self->evaluationDate() = d;
        }
SWIGINTERN void Settings_includeReferenceDateEvents(Settings *self,bool b){
            self->includeReferenceDateEvents() = b;
        }
SWIGINTERN void Settings_includeTodaysCashFlows(Settings *self,bool b){
            self->includeTodaysCashFlows() = b;
        }

using QuantLib::Statistics;
using QuantLib::IncrementalStatistics;
using QuantLib::RiskStatistics;
using QuantLib::GenericSequenceStatistics;

SWIGINTERN void Statistics_add__SWIG_2(Statistics *self,std::vector< Real,std::allocator< Real > > const &values){
            self->addSequence(values.begin(), values.end());
        }
SWIGINTERN void Statistics_add__SWIG_3(Statistics *self,std::vector< Real,std::allocator< Real > > const &values,std::vector< Real,std::allocator< Real > > const &weights){
            self->addSequence(values.begin(), values.end(), weights.begin());
        }
SWIGINTERN void IncrementalStatistics_add__SWIG_2(IncrementalStatistics *self,std::vector< Real,std::allocator< Real > > const &values){
            self->addSequence(values.begin(), values.end());
        }
SWIGINTERN void IncrementalStatistics_add__SWIG_3(IncrementalStatistics *self,std::vector< Real,std::allocator< Real > > const &values,std::vector< Real,std::allocator< Real > > const &weights){
            self->addSequence(values.begin(), values.end(), weights.begin());
        }

using QuantLib::CapFloorTermVolatilityStructure;

SWIGINTERN bool boost_shared_ptr_Sl_CapFloorTermVolatilityStructure_Sg____nonzero__(boost::shared_ptr< CapFloorTermVolatilityStructure > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_CapFloorTermVolatilityStructure_Sg____bool__(boost::shared_ptr< CapFloorTermVolatilityStructure > *self){
                return !!(*self);
            }
SWIGINTERN boost::shared_ptr< Observable > boost_shared_ptr_Sl_CapFloorTermVolatilityStructure_Sg__asObservable(boost::shared_ptr< CapFloorTermVolatilityStructure > *self){
        return boost::shared_ptr<Observable>(*self);
    }
SWIGINTERN bool Handle_Sl_CapFloorTermVolatilityStructure_Sg____nonzero__(Handle< CapFloorTermVolatilityStructure > *self){
            return !self->empty();
        }
SWIGINTERN bool Handle_Sl_CapFloorTermVolatilityStructure_Sg____bool__(Handle< CapFloorTermVolatilityStructure > *self){
            return !self->empty();
        }
SWIGINTERN boost::shared_ptr< Observable > Handle_Sl_CapFloorTermVolatilityStructure_Sg__asObservable(Handle< CapFloorTermVolatilityStructure > *self){
        return boost::shared_ptr<Observable>(*self);
    }

using QuantLib::CapFloorTermVolCurve;
typedef boost::shared_ptr<CapFloorTermVolatilityStructure> CapFloorTermVolCurvePtr;

SWIGINTERN CapFloorTermVolCurvePtr *new_CapFloorTermVolCurvePtr__SWIG_0(Date const &referenceDate,Calendar const &calendar,BusinessDayConvention bdc,std::vector< Period,std::allocator< Period > > const &lengths,std::vector< Volatility,std::allocator< Volatility > > const &vols,DayCounter const &dc=QuantLib::Actual365Fixed()){
            return new CapFloorTermVolCurvePtr(
                new CapFloorTermVolCurve(referenceDate,calendar,bdc,
                                         lengths,vols,dc));
        }
SWIGINTERN CapFloorTermVolCurvePtr *new_CapFloorTermVolCurvePtr__SWIG_2(Natural settlementDays,Calendar const &calendar,BusinessDayConvention bdc,std::vector< Period,std::allocator< Period > > const &lengths,std::vector< Volatility,std::allocator< Volatility > > const &vols,DayCounter const &dc=QuantLib::Actual365Fixed()){
            return new CapFloorTermVolCurvePtr(
                new CapFloorTermVolCurve(settlementDays,calendar,bdc,
                                         lengths,vols,dc));
        }

using QuantLib::CapFloorTermVolSurface;
typedef boost::shared_ptr<CapFloorTermVolatilityStructure> CapFloorTermVolSurfacePtr;

SWIGINTERN CapFloorTermVolSurfacePtr *new_CapFloorTermVolSurfacePtr__SWIG_0(Natural settlementDays,Calendar const &calendar,BusinessDayConvention bdc,std::vector< Period,std::allocator< Period > > const &optionTenors,std::vector< Rate,std::allocator< Rate > > const &strikes,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &quotes,DayCounter const &dc=QuantLib::Actual365Fixed()){
            return new CapFloorTermVolSurfacePtr(new CapFloorTermVolSurface(settlementDays, 
            calendar,
            bdc,
            optionTenors,
            strikes,
            quotes,
            dc));
        }
SWIGINTERN CapFloorTermVolSurfacePtr *new_CapFloorTermVolSurfacePtr__SWIG_2(Date const &settlementDate,Calendar const &calendar,BusinessDayConvention bdc,std::vector< Period,std::allocator< Period > > const &optionTenors,std::vector< Rate,std::allocator< Rate > > const &strikes,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &quotes,DayCounter const &dc=QuantLib::Actual365Fixed()){
            return new CapFloorTermVolSurfacePtr(new CapFloorTermVolSurface(settlementDate, 
            calendar,
            bdc,
            optionTenors,
            strikes,
            quotes,
            dc));
        }
SWIGINTERN CapFloorTermVolSurfacePtr *new_CapFloorTermVolSurfacePtr__SWIG_4(Date const &settlementDate,Calendar const &calendar,BusinessDayConvention bdc,std::vector< Period,std::allocator< Period > > const &optionTenors,std::vector< Rate,std::allocator< Rate > > const &strikes,Matrix const &volatilities,DayCounter const &dc=QuantLib::Actual365Fixed()){
            return new CapFloorTermVolSurfacePtr(new CapFloorTermVolSurface(settlementDate, 
            calendar,
            bdc,
            optionTenors,
            strikes,
            volatilities,
            dc));
        }
SWIGINTERN CapFloorTermVolSurfacePtr *new_CapFloorTermVolSurfacePtr__SWIG_6(Natural settlementDays,Calendar const &calendar,BusinessDayConvention bdc,std::vector< Period,std::allocator< Period > > const &optionTenors,std::vector< Rate,std::allocator< Rate > > const &strikes,Matrix const &volatilities,DayCounter const &dc=QuantLib::Actual365Fixed()){ 
            return new CapFloorTermVolSurfacePtr(new CapFloorTermVolSurface(settlementDays, 
            calendar,
            bdc,
            optionTenors,
            strikes,
            volatilities,
            dc));
        }

using QuantLib::StrippedOptionletBase;
using QuantLib::VolatilityType;

SWIGINTERN bool boost_shared_ptr_Sl_StrippedOptionletBase_Sg____nonzero__(boost::shared_ptr< StrippedOptionletBase > *self){
                return !!(*self);
            }
SWIGINTERN bool boost_shared_ptr_Sl_StrippedOptionletBase_Sg____bool__(boost::shared_ptr< StrippedOptionletBase > *self){
                return !!(*self);
            }

using QuantLib::OptionletStripper1;
typedef boost::shared_ptr<StrippedOptionletBase> OptionletStripper1Ptr;

SWIGINTERN OptionletStripper1Ptr *new_OptionletStripper1Ptr(CapFloorTermVolSurfacePtr const &parVolSurface,IborIndexPtr const &index,Rate switchStrikes=Null< Rate >(),Real accuracy=1.0e-6,Natural maxIter=100,Handle< YieldTermStructure > const &discount=Handle< YieldTermStructure >(),VolatilityType type=ShiftedLognormal,Real displacement=0.0,bool dontThrow=false){
            boost::shared_ptr<CapFloorTermVolSurface> surface = 
                boost::dynamic_pointer_cast<CapFloorTermVolSurface>(parVolSurface);
            boost::shared_ptr<IborIndex> idx =
                boost::dynamic_pointer_cast<IborIndex>(index);
            return new OptionletStripper1Ptr(new OptionletStripper1(surface,
                                                                    idx,
                                                                    switchStrikes,
                                                                    accuracy,
                                                                    maxIter,
                                                                    discount,
                                                                    type,
                                                                    displacement,
                                                                    dontThrow));
        }
SWIGINTERN Matrix const &OptionletStripper1Ptr_capFloorPrices(OptionletStripper1Ptr const *self){
            return boost::dynamic_pointer_cast<OptionletStripper1>(*self)
                ->capFloorPrices();
        }
SWIGINTERN Matrix const &OptionletStripper1Ptr_capFloorVolatilities(OptionletStripper1Ptr const *self){
            return boost::dynamic_pointer_cast<OptionletStripper1>(*self)
                ->capFloorVolatilities();
        }
SWIGINTERN Matrix const &OptionletStripper1Ptr_optionletPrices(OptionletStripper1Ptr const *self){
            return boost::dynamic_pointer_cast<OptionletStripper1>(*self)
                ->optionletPrices();
        }
SWIGINTERN Rate OptionletStripper1Ptr_switchStrike(OptionletStripper1Ptr const *self){
            return boost::dynamic_pointer_cast<OptionletStripper1>(*self)
                ->switchStrike();
        }

using QuantLib::StrippedOptionletAdapter;
typedef boost::shared_ptr<OptionletVolatilityStructure>
   StrippedOptionletAdapterPtr;

SWIGINTERN StrippedOptionletAdapterPtr *new_StrippedOptionletAdapterPtr(boost::shared_ptr< StrippedOptionletBase > const &stripper){
            return new StrippedOptionletAdapterPtr(
                new StrippedOptionletAdapter(stripper));
        }

using QuantLib::Actual365Fixed;
using QuantLib::Swaption;
using QuantLib::NonstandardSwaption;
using QuantLib::Settlement;
using QuantLib::FloatFloatSwaption;
typedef boost::shared_ptr<Instrument> SwaptionPtr;
typedef boost::shared_ptr<Instrument> NonstandardSwaptionPtr;
typedef boost::shared_ptr<Instrument> FloatFloatSwaptionPtr;

SWIGINTERN SwaptionPtr *new_SwaptionPtr__SWIG_0(VanillaSwapPtr const &simpleSwap,boost::shared_ptr< Exercise > const &exercise,Settlement::Type type=Settlement::Physical){
            boost::shared_ptr<VanillaSwap> swap =
                 boost::dynamic_pointer_cast<VanillaSwap>(simpleSwap);
            QL_REQUIRE(swap, "simple swap required");
            return new SwaptionPtr(new Swaption(swap,exercise,type));
        }

using QuantLib::BasketGeneratingEngine;

SWIGINTERN NonstandardSwaptionPtr *new_NonstandardSwaptionPtr__SWIG_0(NonstandardSwapPtr const &nonstandardSwap,boost::shared_ptr< Exercise > const &exercise,Settlement::Type type=Settlement::Physical){
            boost::shared_ptr<NonstandardSwap> swap =
                 boost::dynamic_pointer_cast<NonstandardSwap>(nonstandardSwap);
            QL_REQUIRE(swap, "nonstandard swap required");
            return new NonstandardSwaptionPtr(new NonstandardSwaption(swap,exercise,type));
        }
SWIGINTERN std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > NonstandardSwaptionPtr_calibrationBasket(NonstandardSwaptionPtr *self,boost::shared_ptr< Index > standardSwapBase,boost::shared_ptr< SwaptionVolatilityStructure > swaptionVolatility,std::string typeStr){

            BasketGeneratingEngine::CalibrationBasketType type;
            if(typeStr == "Naive")
                type = BasketGeneratingEngine::Naive;
            else if(typeStr == "MaturityStrikeByDeltaGamma")
                type = BasketGeneratingEngine::MaturityStrikeByDeltaGamma;
            else
                QL_FAIL("type " << typeStr << "unknown.");
            boost::shared_ptr<SwapIndex> swapIndex =
                boost::dynamic_pointer_cast<SwapIndex>(standardSwapBase);
            return boost::dynamic_pointer_cast<NonstandardSwaption>(*self)->
                calibrationBasket(swapIndex, swaptionVolatility, type);
        }
SWIGINTERN FloatFloatSwaptionPtr *new_FloatFloatSwaptionPtr(FloatFloatSwapPtr const &simpleSwap,boost::shared_ptr< Exercise > const &exercise){
            boost::shared_ptr<FloatFloatSwap> swap =
                 boost::dynamic_pointer_cast<FloatFloatSwap>(simpleSwap);
            QL_REQUIRE(swap, "floatfloat swap required");
            return new FloatFloatSwaptionPtr(new FloatFloatSwaption(swap,exercise));
        }
SWIGINTERN std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > FloatFloatSwaptionPtr_calibrationBasket(FloatFloatSwaptionPtr *self,boost::shared_ptr< Index > standardSwapBase,boost::shared_ptr< SwaptionVolatilityStructure > swaptionVolatility,std::string typeStr){

            BasketGeneratingEngine::CalibrationBasketType type;
            if(typeStr == "Naive")
                type = BasketGeneratingEngine::Naive;
            else if(typeStr == "MaturityStrikeByDeltaGamma")
                type = BasketGeneratingEngine::MaturityStrikeByDeltaGamma;
            else
                QL_FAIL("type " << typeStr << "unknown.");
            boost::shared_ptr<SwapIndex> swapIndex =
                boost::dynamic_pointer_cast<SwapIndex>(standardSwapBase);
            return boost::dynamic_pointer_cast<FloatFloatSwaption>(*self)->
                calibrationBasket(swapIndex, swaptionVolatility, type);
        }
SWIGINTERN Real FloatFloatSwaptionPtr_underlyingValue(FloatFloatSwaptionPtr *self){
            return boost::dynamic_pointer_cast<FloatFloatSwaption>(*self)->result<Real>("underlyingValue");
        }

using QuantLib::BlackSwaptionEngine;
using QuantLib::BachelierSwaptionEngine;
typedef boost::shared_ptr<PricingEngine> BlackSwaptionEnginePtr;
typedef boost::shared_ptr<PricingEngine> BachelierSwaptionEnginePtr;

SWIGINTERN BlackSwaptionEnginePtr *new_BlackSwaptionEnginePtr__SWIG_0(Handle< YieldTermStructure > const &discountCurve,Handle< Quote > const &vol,DayCounter const &dc=Actual365Fixed(),Real displacement=0.0){
            return new BlackSwaptionEnginePtr(
                          new BlackSwaptionEngine(discountCurve, vol, dc, displacement));
        }
SWIGINTERN BlackSwaptionEnginePtr *new_BlackSwaptionEnginePtr__SWIG_3(Handle< YieldTermStructure > const &discountCurve,Handle< SwaptionVolatilityStructure > const &v){
            return new BlackSwaptionEnginePtr(
                                   new BlackSwaptionEngine(discountCurve, v));
        }
SWIGINTERN Real BlackSwaptionEnginePtr_vega(BlackSwaptionEnginePtr *self){
                return boost::dynamic_pointer_cast<Swaption>(*self)->result<Real>("vega");
        }
SWIGINTERN BachelierSwaptionEnginePtr *new_BachelierSwaptionEnginePtr__SWIG_0(Handle< YieldTermStructure > const &discountCurve,Handle< Quote > const &vol,DayCounter const &dc=Actual365Fixed()){
            return new BlackSwaptionEnginePtr(
                          new BachelierSwaptionEngine(discountCurve, vol, dc));
        }
SWIGINTERN BachelierSwaptionEnginePtr *new_BachelierSwaptionEnginePtr__SWIG_2(Handle< YieldTermStructure > const &discountCurve,Handle< SwaptionVolatilityStructure > const &v){
            return new BlackSwaptionEnginePtr(
                                   new BachelierSwaptionEngine(discountCurve, v));
        }


void enableTracing() { 
    QL_TRACE_ENABLE;
}

void disableTracing() {
    QL_TRACE_DISABLE;
}



using QuantLib::ConstantEstimator;
using QuantLib::SimpleLocalEstimator;
using QuantLib::GarmanKlassSigma1;
using QuantLib::ParkinsonSigma;
using QuantLib::GarmanKlassSigma3;
using QuantLib::GarmanKlassSigma4;
using QuantLib::GarmanKlassSigma5;
using QuantLib::GarmanKlassSigma6;


using QuantLib::InterpolatedZeroCurve;


typedef boost::shared_ptr<YieldTermStructure> ZeroCurvePtr;

SWIGINTERN ZeroCurvePtr *new_ZeroCurvePtr__SWIG_0(std::vector< Date,std::allocator< Date > > const &dates,std::vector< Rate,std::allocator< Rate > > const &yields,DayCounter const &dayCounter,Calendar const &calendar=Calendar(),Linear const &i=Linear(),Compounding compounding=Continuous,Frequency frequency=Annual){
            return new ZeroCurvePtr(
                new InterpolatedZeroCurve<Linear>(dates,yields,
                                                        dayCounter,
                                                        calendar,i,
                                                        compounding,
                                                        frequency));
        }
SWIGINTERN std::vector< Time,std::allocator< Time > > const &ZeroCurvePtr_times(ZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<Linear> ZeroCurve;
            return boost::dynamic_pointer_cast<ZeroCurve>(*self)->times();
        }
SWIGINTERN std::vector< Real,std::allocator< Real > > const &ZeroCurvePtr_data(ZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<Linear> ZeroCurve;
            return boost::dynamic_pointer_cast<ZeroCurve>(*self)->data();
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &ZeroCurvePtr_dates(ZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<Linear> ZeroCurve;
            return boost::dynamic_pointer_cast<ZeroCurve>(*self)->dates();
        }
SWIGINTERN std::vector< Rate,std::allocator< Rate > > const &ZeroCurvePtr_zeroRates(ZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<Linear> ZeroCurve;
            return boost::dynamic_pointer_cast<ZeroCurve>(*self)->zeroRates();
        }
SWIGINTERN std::vector< std::pair< Date,Rate >,std::allocator< std::pair< Date,Rate > > > ZeroCurvePtr_nodes(ZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<Linear> ZeroCurve;
            return boost::dynamic_pointer_cast<ZeroCurve>(*self)->nodes();
        }

typedef boost::shared_ptr<YieldTermStructure> LogLinearZeroCurvePtr;

SWIGINTERN LogLinearZeroCurvePtr *new_LogLinearZeroCurvePtr__SWIG_0(std::vector< Date,std::allocator< Date > > const &dates,std::vector< Rate,std::allocator< Rate > > const &yields,DayCounter const &dayCounter,Calendar const &calendar=Calendar(),LogLinear const &i=LogLinear(),Compounding compounding=Continuous,Frequency frequency=Annual){
            return new LogLinearZeroCurvePtr(
                new InterpolatedZeroCurve<LogLinear>(dates,yields,
                                                        dayCounter,
                                                        calendar,i,
                                                        compounding,
                                                        frequency));
        }
SWIGINTERN std::vector< Time,std::allocator< Time > > const &LogLinearZeroCurvePtr_times(LogLinearZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<LogLinear> LogLinearZeroCurve;
            return boost::dynamic_pointer_cast<LogLinearZeroCurve>(*self)->times();
        }
SWIGINTERN std::vector< Real,std::allocator< Real > > const &LogLinearZeroCurvePtr_data(LogLinearZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<LogLinear> LogLinearZeroCurve;
            return boost::dynamic_pointer_cast<LogLinearZeroCurve>(*self)->data();
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &LogLinearZeroCurvePtr_dates(LogLinearZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<LogLinear> LogLinearZeroCurve;
            return boost::dynamic_pointer_cast<LogLinearZeroCurve>(*self)->dates();
        }
SWIGINTERN std::vector< Rate,std::allocator< Rate > > const &LogLinearZeroCurvePtr_zeroRates(LogLinearZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<LogLinear> LogLinearZeroCurve;
            return boost::dynamic_pointer_cast<LogLinearZeroCurve>(*self)->zeroRates();
        }
SWIGINTERN std::vector< std::pair< Date,Rate >,std::allocator< std::pair< Date,Rate > > > LogLinearZeroCurvePtr_nodes(LogLinearZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<LogLinear> LogLinearZeroCurve;
            return boost::dynamic_pointer_cast<LogLinearZeroCurve>(*self)->nodes();
        }

typedef boost::shared_ptr<YieldTermStructure> CubicZeroCurvePtr;

SWIGINTERN CubicZeroCurvePtr *new_CubicZeroCurvePtr__SWIG_0(std::vector< Date,std::allocator< Date > > const &dates,std::vector< Rate,std::allocator< Rate > > const &yields,DayCounter const &dayCounter,Calendar const &calendar=Calendar(),Cubic const &i=Cubic(),Compounding compounding=Continuous,Frequency frequency=Annual){
            return new CubicZeroCurvePtr(
                new InterpolatedZeroCurve<Cubic>(dates,yields,
                                                        dayCounter,
                                                        calendar,i,
                                                        compounding,
                                                        frequency));
        }
SWIGINTERN std::vector< Time,std::allocator< Time > > const &CubicZeroCurvePtr_times(CubicZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<Cubic> CubicZeroCurve;
            return boost::dynamic_pointer_cast<CubicZeroCurve>(*self)->times();
        }
SWIGINTERN std::vector< Real,std::allocator< Real > > const &CubicZeroCurvePtr_data(CubicZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<Cubic> CubicZeroCurve;
            return boost::dynamic_pointer_cast<CubicZeroCurve>(*self)->data();
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &CubicZeroCurvePtr_dates(CubicZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<Cubic> CubicZeroCurve;
            return boost::dynamic_pointer_cast<CubicZeroCurve>(*self)->dates();
        }
SWIGINTERN std::vector< Rate,std::allocator< Rate > > const &CubicZeroCurvePtr_zeroRates(CubicZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<Cubic> CubicZeroCurve;
            return boost::dynamic_pointer_cast<CubicZeroCurve>(*self)->zeroRates();
        }
SWIGINTERN std::vector< std::pair< Date,Rate >,std::allocator< std::pair< Date,Rate > > > CubicZeroCurvePtr_nodes(CubicZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<Cubic> CubicZeroCurve;
            return boost::dynamic_pointer_cast<CubicZeroCurve>(*self)->nodes();
        }

typedef boost::shared_ptr<YieldTermStructure> LogCubicZeroCurvePtr;

SWIGINTERN LogCubicZeroCurvePtr *new_LogCubicZeroCurvePtr__SWIG_0(std::vector< Date,std::allocator< Date > > const &dates,std::vector< Rate,std::allocator< Rate > > const &yields,DayCounter const &dayCounter,Calendar const &calendar=Calendar(),DefaultLogCubic const &i=DefaultLogCubic(),Compounding compounding=Continuous,Frequency frequency=Annual){
            return new LogCubicZeroCurvePtr(
                new InterpolatedZeroCurve<DefaultLogCubic>(dates,yields,
                                                        dayCounter,
                                                        calendar,i,
                                                        compounding,
                                                        frequency));
        }
SWIGINTERN std::vector< Time,std::allocator< Time > > const &LogCubicZeroCurvePtr_times(LogCubicZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<DefaultLogCubic> LogCubicZeroCurve;
            return boost::dynamic_pointer_cast<LogCubicZeroCurve>(*self)->times();
        }
SWIGINTERN std::vector< Real,std::allocator< Real > > const &LogCubicZeroCurvePtr_data(LogCubicZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<DefaultLogCubic> LogCubicZeroCurve;
            return boost::dynamic_pointer_cast<LogCubicZeroCurve>(*self)->data();
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &LogCubicZeroCurvePtr_dates(LogCubicZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<DefaultLogCubic> LogCubicZeroCurve;
            return boost::dynamic_pointer_cast<LogCubicZeroCurve>(*self)->dates();
        }
SWIGINTERN std::vector< Rate,std::allocator< Rate > > const &LogCubicZeroCurvePtr_zeroRates(LogCubicZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<DefaultLogCubic> LogCubicZeroCurve;
            return boost::dynamic_pointer_cast<LogCubicZeroCurve>(*self)->zeroRates();
        }
SWIGINTERN std::vector< std::pair< Date,Rate >,std::allocator< std::pair< Date,Rate > > > LogCubicZeroCurvePtr_nodes(LogCubicZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<DefaultLogCubic> LogCubicZeroCurve;
            return boost::dynamic_pointer_cast<LogCubicZeroCurve>(*self)->nodes();
        }

typedef boost::shared_ptr<YieldTermStructure> ForwardFlatZeroCurvePtr;

SWIGINTERN ForwardFlatZeroCurvePtr *new_ForwardFlatZeroCurvePtr__SWIG_0(std::vector< Date,std::allocator< Date > > const &dates,std::vector< Rate,std::allocator< Rate > > const &yields,DayCounter const &dayCounter,Calendar const &calendar=Calendar(),ForwardFlat const &i=ForwardFlat(),Compounding compounding=Continuous,Frequency frequency=Annual){
            return new ForwardFlatZeroCurvePtr(
                new InterpolatedZeroCurve<ForwardFlat>(dates,yields,
                                                        dayCounter,
                                                        calendar,i,
                                                        compounding,
                                                        frequency));
        }
SWIGINTERN std::vector< Time,std::allocator< Time > > const &ForwardFlatZeroCurvePtr_times(ForwardFlatZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<ForwardFlat> ForwardFlatZeroCurve;
            return boost::dynamic_pointer_cast<ForwardFlatZeroCurve>(*self)->times();
        }
SWIGINTERN std::vector< Real,std::allocator< Real > > const &ForwardFlatZeroCurvePtr_data(ForwardFlatZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<ForwardFlat> ForwardFlatZeroCurve;
            return boost::dynamic_pointer_cast<ForwardFlatZeroCurve>(*self)->data();
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &ForwardFlatZeroCurvePtr_dates(ForwardFlatZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<ForwardFlat> ForwardFlatZeroCurve;
            return boost::dynamic_pointer_cast<ForwardFlatZeroCurve>(*self)->dates();
        }
SWIGINTERN std::vector< Rate,std::allocator< Rate > > const &ForwardFlatZeroCurvePtr_zeroRates(ForwardFlatZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<ForwardFlat> ForwardFlatZeroCurve;
            return boost::dynamic_pointer_cast<ForwardFlatZeroCurve>(*self)->zeroRates();
        }
SWIGINTERN std::vector< std::pair< Date,Rate >,std::allocator< std::pair< Date,Rate > > > ForwardFlatZeroCurvePtr_nodes(ForwardFlatZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<ForwardFlat> ForwardFlatZeroCurve;
            return boost::dynamic_pointer_cast<ForwardFlatZeroCurve>(*self)->nodes();
        }

typedef boost::shared_ptr<YieldTermStructure> BackwardFlatZeroCurvePtr;

SWIGINTERN BackwardFlatZeroCurvePtr *new_BackwardFlatZeroCurvePtr__SWIG_0(std::vector< Date,std::allocator< Date > > const &dates,std::vector< Rate,std::allocator< Rate > > const &yields,DayCounter const &dayCounter,Calendar const &calendar=Calendar(),BackwardFlat const &i=BackwardFlat(),Compounding compounding=Continuous,Frequency frequency=Annual){
            return new BackwardFlatZeroCurvePtr(
                new InterpolatedZeroCurve<BackwardFlat>(dates,yields,
                                                        dayCounter,
                                                        calendar,i,
                                                        compounding,
                                                        frequency));
        }
SWIGINTERN std::vector< Time,std::allocator< Time > > const &BackwardFlatZeroCurvePtr_times(BackwardFlatZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<BackwardFlat> BackwardFlatZeroCurve;
            return boost::dynamic_pointer_cast<BackwardFlatZeroCurve>(*self)->times();
        }
SWIGINTERN std::vector< Real,std::allocator< Real > > const &BackwardFlatZeroCurvePtr_data(BackwardFlatZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<BackwardFlat> BackwardFlatZeroCurve;
            return boost::dynamic_pointer_cast<BackwardFlatZeroCurve>(*self)->data();
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &BackwardFlatZeroCurvePtr_dates(BackwardFlatZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<BackwardFlat> BackwardFlatZeroCurve;
            return boost::dynamic_pointer_cast<BackwardFlatZeroCurve>(*self)->dates();
        }
SWIGINTERN std::vector< Rate,std::allocator< Rate > > const &BackwardFlatZeroCurvePtr_zeroRates(BackwardFlatZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<BackwardFlat> BackwardFlatZeroCurve;
            return boost::dynamic_pointer_cast<BackwardFlatZeroCurve>(*self)->zeroRates();
        }
SWIGINTERN std::vector< std::pair< Date,Rate >,std::allocator< std::pair< Date,Rate > > > BackwardFlatZeroCurvePtr_nodes(BackwardFlatZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<BackwardFlat> BackwardFlatZeroCurve;
            return boost::dynamic_pointer_cast<BackwardFlatZeroCurve>(*self)->nodes();
        }

typedef boost::shared_ptr<YieldTermStructure> MonotonicCubicZeroCurvePtr;

SWIGINTERN MonotonicCubicZeroCurvePtr *new_MonotonicCubicZeroCurvePtr__SWIG_0(std::vector< Date,std::allocator< Date > > const &dates,std::vector< Rate,std::allocator< Rate > > const &yields,DayCounter const &dayCounter,Calendar const &calendar=Calendar(),MonotonicCubic const &i=MonotonicCubic(),Compounding compounding=Continuous,Frequency frequency=Annual){
            return new MonotonicCubicZeroCurvePtr(
                new InterpolatedZeroCurve<MonotonicCubic>(dates,yields,
                                                        dayCounter,
                                                        calendar,i,
                                                        compounding,
                                                        frequency));
        }
SWIGINTERN std::vector< Time,std::allocator< Time > > const &MonotonicCubicZeroCurvePtr_times(MonotonicCubicZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<MonotonicCubic> MonotonicCubicZeroCurve;
            return boost::dynamic_pointer_cast<MonotonicCubicZeroCurve>(*self)->times();
        }
SWIGINTERN std::vector< Real,std::allocator< Real > > const &MonotonicCubicZeroCurvePtr_data(MonotonicCubicZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<MonotonicCubic> MonotonicCubicZeroCurve;
            return boost::dynamic_pointer_cast<MonotonicCubicZeroCurve>(*self)->data();
        }
SWIGINTERN std::vector< Date,std::allocator< Date > > const &MonotonicCubicZeroCurvePtr_dates(MonotonicCubicZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<MonotonicCubic> MonotonicCubicZeroCurve;
            return boost::dynamic_pointer_cast<MonotonicCubicZeroCurve>(*self)->dates();
        }
SWIGINTERN std::vector< Rate,std::allocator< Rate > > const &MonotonicCubicZeroCurvePtr_zeroRates(MonotonicCubicZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<MonotonicCubic> MonotonicCubicZeroCurve;
            return boost::dynamic_pointer_cast<MonotonicCubicZeroCurve>(*self)->zeroRates();
        }
SWIGINTERN std::vector< std::pair< Date,Rate >,std::allocator< std::pair< Date,Rate > > > MonotonicCubicZeroCurvePtr_nodes(MonotonicCubicZeroCurvePtr *self){
            typedef InterpolatedZeroCurve<MonotonicCubic> MonotonicCubicZeroCurve;
            return boost::dynamic_pointer_cast<MonotonicCubicZeroCurve>(*self)->nodes();
        }

    ZeroCurvePtr as_zerocurve(const boost::shared_ptr<YieldTermStructure> & curve) {
        return boost::dynamic_pointer_cast<QuantLib::ZeroCurve>(curve);
    }


using QuantLib::Forward;
typedef boost::shared_ptr<Instrument> ForwardPtr;

SWIGINTERN Real ForwardPtr_forwardValue(ForwardPtr *self){
                return boost::dynamic_pointer_cast<Forward>(*self)
                    -> forwardValue();
            }
SWIGINTERN InterestRate ForwardPtr_impliedYield(ForwardPtr *self,Real underlyingSpotValue,Real forwardValue,Date settlementDate,Compounding compoundingConvention,DayCounter dayCounter){
                    return boost::dynamic_pointer_cast<Forward>(*self)
                        -> impliedYield(underlyingSpotValue, forwardValue,
                                        settlementDate, compoundingConvention, 
                                        dayCounter);
                }

using QuantLib::FixedRateBondForward;
using QuantLib::FixedRateBond;
using QuantLib::BusinessDayConvention;
using QuantLib::Position;
typedef boost::shared_ptr<Instrument> FixedRateBondForwardPtr;

SWIGINTERN FixedRateBondForwardPtr *new_FixedRateBondForwardPtr__SWIG_0(Date const &valueDate,Date const &maturityDate,Position::Type type,Real strike,Natural settlementDays,DayCounter const &dayCounter,Calendar const &calendar,BusinessDayConvention businessDayConvention,FixedRateBondPtr const &fixedBond,Handle< YieldTermStructure > const &discountCurve=Handle< YieldTermStructure >(),Handle< YieldTermStructure > const &incomeDiscountCurve=Handle< YieldTermStructure >()){
                const boost::shared_ptr<FixedRateBond>& fixedCouponBond = 
                    boost::dynamic_pointer_cast<FixedRateBond>(fixedBond);
                return new FixedRateBondForwardPtr(
                       new FixedRateBondForward(
                            valueDate, maturityDate, type, strike,
                            settlementDays, dayCounter, calendar,
                            businessDayConvention, fixedCouponBond,
                            discountCurve,  incomeDiscountCurve));
            }
SWIGINTERN Real FixedRateBondForwardPtr_forwardPrice(FixedRateBondForwardPtr *self){
                return boost::dynamic_pointer_cast<FixedRateBondForward>(*self)
                    -> forwardPrice();
            }
SWIGINTERN Real FixedRateBondForwardPtr_cleanForwardPrice(FixedRateBondForwardPtr *self){
                return boost::dynamic_pointer_cast<FixedRateBondForward>(*self)
                    -> cleanForwardPrice();
            }
SWIGINTERN Real FixedRateBondForwardPtr_spotIncome(FixedRateBondForwardPtr *self,Handle< YieldTermStructure > const &incomeDiscountCurve){
                return boost::dynamic_pointer_cast<FixedRateBondForward>(*self)
                    -> spotIncome(incomeDiscountCurve);
            }
SWIGINTERN Real FixedRateBondForwardPtr_spotValue(FixedRateBondForwardPtr *self){
                return boost::dynamic_pointer_cast<FixedRateBondForward>(*self)
                    -> spotValue();
            }
#ifdef __cplusplus
extern "C" {
#endif
SWIGINTERN int Swig_var___hexversion___set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable __hexversion__ is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var___hexversion___get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_From_int(static_cast< int >(__hexversion__));
  return pyobj;
}


SWIGINTERN int Swig_var___version___set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable __version__ is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var___version___get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_FromCharPtr(__version__);
  return pyobj;
}


SWIGINTERN PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SwigPyIterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator_value",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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);
  {
    try {
      try {
        result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value();
      }
      catch(swig::stop_iteration &_e) {
        {
          (void)_e;
          SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
          SWIG_fail;
        }
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator_incr",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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(obj1, &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);
  {
    try {
      try {
        result = (swig::SwigPyIterator *)(arg1)->incr(arg2);
      }
      catch(swig::stop_iteration &_e) {
        {
          (void)_e;
          SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
          SWIG_fail;
        }
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator_incr",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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);
  {
    try {
      try {
        result = (swig::SwigPyIterator *)(arg1)->incr();
      }
      catch(swig::stop_iteration &_e) {
        {
          (void)_e;
          SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
          SWIG_fail;
        }
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    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, args);
    }
  }
  if (argc == 2) {
    int _v;
    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, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"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 *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator_decr",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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(obj1, &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);
  {
    try {
      try {
        result = (swig::SwigPyIterator *)(arg1)->decr(arg2);
      }
      catch(swig::stop_iteration &_e) {
        {
          (void)_e;
          SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
          SWIG_fail;
        }
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator_decr",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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);
  {
    try {
      try {
        result = (swig::SwigPyIterator *)(arg1)->decr();
      }
      catch(swig::stop_iteration &_e) {
        {
          (void)_e;
          SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
          SWIG_fail;
        }
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    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, args);
    }
  }
  if (argc == 2) {
    int _v;
    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, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"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 *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  swig::SwigPyIterator *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  ptrdiff_t result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator_distance",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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(obj1, &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_ValueError, "invalid null reference " "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); 
  }
  arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
  {
    try {
      try {
        result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2);
      }
      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;
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  swig::SwigPyIterator *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator_equal",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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(obj1, &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_ValueError, "invalid null reference " "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); 
  }
  arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
  {
    try {
      try {
        result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);
      }
      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;
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator_copy",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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);
  {
    try {
      result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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);
  {
    try {
      try {
        result = (PyObject *)(arg1)->next();
      }
      catch(swig::stop_iteration &_e) {
        {
          (void)_e;
          SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
          SWIG_fail;
        }
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator___next__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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);
  {
    try {
      try {
        result = (PyObject *)(arg1)->__next__();
      }
      catch(swig::stop_iteration &_e) {
        {
          (void)_e;
          SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
          SWIG_fail;
        }
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator_previous",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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);
  {
    try {
      try {
        result = (PyObject *)(arg1)->previous();
      }
      catch(swig::stop_iteration &_e) {
        {
          (void)_e;
          SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
          SWIG_fail;
        }
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  ptrdiff_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator_advance",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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(obj1, &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);
  {
    try {
      try {
        result = (swig::SwigPyIterator *)(arg1)->advance(arg2);
      }
      catch(swig::stop_iteration &_e) {
        {
          (void)_e;
          SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
          SWIG_fail;
        }
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  swig::SwigPyIterator *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator___eq__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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(obj1, &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_ValueError, "invalid null reference " "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); 
  }
  arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
  {
    try {
      result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  swig::SwigPyIterator *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator___ne__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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(obj1, &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_ValueError, "invalid null reference " "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); 
  }
  arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
  {
    try {
      result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  ptrdiff_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator___iadd__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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(obj1, &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);
  {
    try {
      try {
        result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2);
      }
      catch(swig::stop_iteration &_e) {
        {
          (void)_e;
          SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
          SWIG_fail;
        }
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  ptrdiff_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator___isub__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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(obj1, &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);
  {
    try {
      try {
        result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2);
      }
      catch(swig::stop_iteration &_e) {
        {
          (void)_e;
          SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
          SWIG_fail;
        }
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  ptrdiff_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator___add__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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(obj1, &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);
  {
    try {
      try {
        result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2);
      }
      catch(swig::stop_iteration &_e) {
        {
          (void)_e;
          SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
          SWIG_fail;
        }
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  ptrdiff_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator___sub__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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(obj1, &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);
  {
    try {
      try {
        result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2);
      }
      catch(swig::stop_iteration &_e) {
        {
          (void)_e;
          SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
          SWIG_fail;
        }
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
  swig::SwigPyIterator *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  ptrdiff_t result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwigPyIterator___sub__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &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(obj1, &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_ValueError, "invalid null reference " "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); 
  }
  arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
  {
    try {
      result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    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, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_SwigPyIterator___sub____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    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, args);
      }
    }
  }
  
fail:
  Py_INCREF(Py_NotImplemented);
  return Py_NotImplemented;
}


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

SWIGINTERN PyObject *_wrap_new_Period__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Period",0,0)) SWIG_fail;
  {
    try {
      result = (Period *)new Period();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Period, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Period__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  TimeUnit arg2 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Period *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Period",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Period" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Period" "', argument " "2"" of type '" "TimeUnit""'");
  } 
  arg2 = static_cast< TimeUnit >(val2);
  {
    try {
      result = (Period *)new Period(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Period, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Period__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Frequency arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  Period *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Period",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Period" "', argument " "1"" of type '" "Frequency""'");
  } 
  arg1 = static_cast< Frequency >(val1);
  {
    try {
      result = (Period *)new Period(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Period, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Period_length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = (Period *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Integer result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Period_length",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Period, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Period_length" "', argument " "1"" of type '" "Period const *""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (Integer)((Period const *)arg1)->length();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Period_units(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = (Period *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  TimeUnit result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Period_units",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Period, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Period_units" "', argument " "1"" of type '" "Period const *""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (TimeUnit)((Period const *)arg1)->units();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Period_frequency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = (Period *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Frequency result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Period_frequency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Period, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Period_frequency" "', argument " "1"" of type '" "Period const *""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (Frequency)((Period const *)arg1)->frequency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Period__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  Period *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Period",1,1,&obj0)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Period" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Period" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (Period *)new_Period__SWIG_3((std::string const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Period, 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_Period(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Period__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Period__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Period__SWIG_3(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_Period__SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Period'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Period::Period()\n"
    "    Period::Period(Integer,TimeUnit)\n"
    "    Period::Period(Frequency)\n"
    "    Period::Period(std::string const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Period___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = (Period *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Period___str__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Period, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Period___str__" "', argument " "1"" of type '" "Period *""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = Period___str__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Period___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = (Period *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Period___repr__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Period, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Period___repr__" "', argument " "1"" of type '" "Period *""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = Period___repr__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Period___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = (Period *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Period result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Period___neg__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Period, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Period___neg__" "', argument " "1"" of type '" "Period *""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = Period___neg__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Period(static_cast< const Period& >(result))), SWIGTYPE_p_Period, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Period___mul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = (Period *) 0 ;
  Integer arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Period result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Period___mul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Period, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Period___mul__" "', argument " "1"" of type '" "Period *""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Period___mul__" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  {
    try {
      result = Period___mul__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Period(static_cast< const Period& >(result))), SWIGTYPE_p_Period, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Period___rmul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = (Period *) 0 ;
  Integer arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Period result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Period___rmul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Period, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Period___rmul__" "', argument " "1"" of type '" "Period *""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Period___rmul__" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  {
    try {
      result = Period___rmul__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Period(static_cast< const Period& >(result))), SWIGTYPE_p_Period, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Period___lt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = (Period *) 0 ;
  Period *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Period___lt__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Period, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Period___lt__" "', argument " "1"" of type '" "Period *""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Period___lt__" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Period___lt__" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  {
    try {
      result = (bool)Period___lt__(arg1,(Period const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Period___gt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = (Period *) 0 ;
  Period *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Period___gt__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Period, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Period___gt__" "', argument " "1"" of type '" "Period *""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Period___gt__" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Period___gt__" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  {
    try {
      result = (bool)Period___gt__(arg1,(Period const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Period___le__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = (Period *) 0 ;
  Period *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Period___le__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Period, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Period___le__" "', argument " "1"" of type '" "Period *""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Period___le__" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Period___le__" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  {
    try {
      result = (bool)Period___le__(arg1,(Period const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Period___ge__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = (Period *) 0 ;
  Period *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Period___ge__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Period, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Period___ge__" "', argument " "1"" of type '" "Period *""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Period___ge__" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Period___ge__" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  {
    try {
      result = (bool)Period___ge__(arg1,(Period const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Period___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = (Period *) 0 ;
  Period *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Period___eq__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Period, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Period___eq__" "', argument " "1"" of type '" "Period *""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Period___eq__" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Period___eq__" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  {
    try {
      result = (bool)Period___eq__(arg1,(Period const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Period___cmp__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = (Period *) 0 ;
  Period *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  int result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Period___cmp__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Period, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Period___cmp__" "', argument " "1"" of type '" "Period *""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Period___cmp__" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Period___cmp__" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  {
    try {
      result = (int)Period___cmp__(arg1,(Period const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Period(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = (Period *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Period",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Period, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Period" "', argument " "1"" of type '" "Period *""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Period_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Period, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_PeriodVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_iterator" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_Period_Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector___nonzero__" "', argument " "1"" of type '" "std::vector< Period > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_Period_Sg____nonzero__((std::vector< Period > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector___bool__" "', argument " "1"" of type '" "std::vector< Period > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_Period_Sg____bool__((std::vector< Period > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Period >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector___len__" "', argument " "1"" of type '" "std::vector< Period > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    try {
      result = std_vector_Sl_Period_Sg____len__((std::vector< Period > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  std::vector< Period >::difference_type arg2 ;
  std::vector< Period >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< Period,std::allocator< Period > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector___getslice__" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PeriodVector___getslice__" "', argument " "2"" of type '" "std::vector< Period >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Period >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PeriodVector___getslice__" "', argument " "3"" of type '" "std::vector< Period >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< Period >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< Period,std::allocator< Period > > *)std_vector_Sl_Period_Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  std::vector< Period >::difference_type arg2 ;
  std::vector< Period >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector___setslice__" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PeriodVector___setslice__" "', argument " "2"" of type '" "std::vector< Period >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Period >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PeriodVector___setslice__" "', argument " "3"" of type '" "std::vector< Period >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< Period >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_Period_Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  std::vector< Period >::difference_type arg2 ;
  std::vector< Period >::difference_type arg3 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector___setslice__" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PeriodVector___setslice__" "', argument " "2"" of type '" "std::vector< Period >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Period >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PeriodVector___setslice__" "', argument " "3"" of type '" "std::vector< Period >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< Period >::difference_type >(val3);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "PeriodVector___setslice__" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PeriodVector___setslice__" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_Period_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Period,std::allocator< Period > >**)(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_PeriodVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Period,std::allocator< Period > >**)(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< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_PeriodVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PeriodVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Period >::__setslice__(std::vector< Period >::difference_type,std::vector< Period >::difference_type)\n"
    "    std::vector< Period >::__setslice__(std::vector< Period >::difference_type,std::vector< Period >::difference_type,std::vector< Period,std::allocator< Period > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_PeriodVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  std::vector< Period >::difference_type arg2 ;
  std::vector< Period >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector___delslice__" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PeriodVector___delslice__" "', argument " "2"" of type '" "std::vector< Period >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Period >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PeriodVector___delslice__" "', argument " "3"" of type '" "std::vector< Period >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< Period >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_Period_Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  std::vector< Period >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector___delitem__" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PeriodVector___delitem__" "', argument " "2"" of type '" "std::vector< Period >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Period >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_Period_Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< Period,std::allocator< Period > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector___getitem__" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PeriodVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< Period,std::allocator< Period > > *)std_vector_Sl_Period_Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< Period,std::allocator< Period > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector___setitem__" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PeriodVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PeriodVector___setitem__" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PeriodVector___setitem__" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_Period_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< Period,std::allocator< Period > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector___setitem__" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PeriodVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_Period_Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector___delitem__" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PeriodVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_Period_Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Period,std::allocator< Period > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_PeriodVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Period,std::allocator< Period > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_PeriodVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PeriodVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Period >::__delitem__(std::vector< Period >::difference_type)\n"
    "    std::vector< Period >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_PeriodVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  std::vector< Period >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< Period >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector___getitem__" "', argument " "1"" of type '" "std::vector< Period > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PeriodVector___getitem__" "', argument " "2"" of type '" "std::vector< Period >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Period >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< Period >::value_type *) &std_vector_Sl_Period_Sg____getitem____SWIG_1((std::vector< Period > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Period, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Period,std::allocator< Period > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_PeriodVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Period,std::allocator< Period > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_PeriodVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PeriodVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Period >::__getitem__(PySliceObject *)\n"
    "    std::vector< Period >::__getitem__(std::vector< Period >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_PeriodVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  std::vector< Period >::difference_type arg2 ;
  std::vector< Period >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector___setitem__" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PeriodVector___setitem__" "', argument " "2"" of type '" "std::vector< Period >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Period >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PeriodVector___setitem__" "', argument " "3"" of type '" "std::vector< Period >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PeriodVector___setitem__" "', argument " "3"" of type '" "std::vector< Period >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< Period >::value_type * >(argp3);
  {
    try {
      try {
        std_vector_Sl_Period_Sg____setitem____SWIG_2(arg1,arg2,(Period const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Period,std::allocator< Period > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_PeriodVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Period,std::allocator< Period > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Period,std::allocator< Period > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_PeriodVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Period,std::allocator< Period > >**)(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_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_PeriodVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PeriodVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Period >::__setitem__(PySliceObject *,std::vector< Period,std::allocator< Period > > const &)\n"
    "    std::vector< Period >::__setitem__(PySliceObject *)\n"
    "    std::vector< Period >::__setitem__(std::vector< Period >::difference_type,std::vector< Period >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_PeriodVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Period >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_pop" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_Period_Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< Period >::value_type(static_cast< const std::vector< Period >::value_type& >(result))), SWIGTYPE_p_Period, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  std::vector< Period >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_append" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PeriodVector_append" "', argument " "2"" of type '" "std::vector< Period >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PeriodVector_append" "', argument " "2"" of type '" "std::vector< Period >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< Period >::value_type * >(argp2);
  {
    try {
      std_vector_Sl_Period_Sg__append(arg1,(Period const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PeriodVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PeriodVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< Period > *)new std::vector< Period >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PeriodVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< Period > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PeriodVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PeriodVector" "', argument " "1"" of type '" "std::vector< Period > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PeriodVector" "', argument " "1"" of type '" "std::vector< Period > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< Period > *)new std::vector< Period >((std::vector< Period > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_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_PeriodVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_empty" "', argument " "1"" of type '" "std::vector< Period > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    try {
      result = (bool)((std::vector< Period > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Period >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_size" "', argument " "1"" of type '" "std::vector< Period > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    try {
      result = ((std::vector< Period > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  std::vector< Period > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_swap" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PeriodVector_swap" "', argument " "2"" of type '" "std::vector< Period > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PeriodVector_swap" "', argument " "2"" of type '" "std::vector< Period > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< Period > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Period >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_begin" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Period >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Period >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_end" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Period >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Period >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_rbegin" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Period >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Period >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_rend" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Period >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_clear" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< Period > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_get_allocator" "', argument " "1"" of type '" "std::vector< Period > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    try {
      result = ((std::vector< Period > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< Period >::allocator_type(static_cast< const std::vector< Period >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_Period_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PeriodVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Period > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PeriodVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PeriodVector" "', argument " "1"" of type '" "std::vector< Period >::size_type""'");
  } 
  arg1 = static_cast< std::vector< Period >::size_type >(val1);
  {
    try {
      result = (std::vector< Period > *)new std::vector< Period >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_pop_back" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  std::vector< Period >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_resize" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PeriodVector_resize" "', argument " "2"" of type '" "std::vector< Period >::size_type""'");
  } 
  arg2 = static_cast< std::vector< Period >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  std::vector< Period >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< Period >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_erase" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PeriodVector_erase" "', argument " "2"" of type '" "std::vector< Period >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Period >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Period >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PeriodVector_erase" "', argument " "2"" of type '" "std::vector< Period >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_Period_Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Period >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  std::vector< Period >::iterator arg2 ;
  std::vector< Period >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< Period >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_erase" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PeriodVector_erase" "', argument " "2"" of type '" "std::vector< Period >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Period >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Period >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PeriodVector_erase" "', argument " "2"" of type '" "std::vector< Period >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PeriodVector_erase" "', argument " "3"" of type '" "std::vector< Period >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Period >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Period >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PeriodVector_erase" "', argument " "3"" of type '" "std::vector< Period >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_Period_Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Period >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Period,std::allocator< Period > >**)(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< Period >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_PeriodVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Period,std::allocator< Period > >**)(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< Period >::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< Period >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_PeriodVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PeriodVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Period >::erase(std::vector< Period >::iterator)\n"
    "    std::vector< Period >::erase(std::vector< Period >::iterator,std::vector< Period >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_PeriodVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period >::size_type arg1 ;
  std::vector< Period >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< Period > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PeriodVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PeriodVector" "', argument " "1"" of type '" "std::vector< Period >::size_type""'");
  } 
  arg1 = static_cast< std::vector< Period >::size_type >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PeriodVector" "', argument " "2"" of type '" "std::vector< Period >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PeriodVector" "', argument " "2"" of type '" "std::vector< Period >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< Period >::value_type * >(argp2);
  {
    try {
      result = (std::vector< Period > *)new std::vector< Period >(arg1,(std::vector< Period >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PeriodVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_PeriodVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_PeriodVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Period,std::allocator< Period > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_PeriodVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_PeriodVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_PeriodVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Period >::vector()\n"
    "    std::vector< Period >::vector(std::vector< Period > const &)\n"
    "    std::vector< Period >::vector(std::vector< Period >::size_type)\n"
    "    std::vector< Period >::vector(std::vector< Period >::size_type,std::vector< Period >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_PeriodVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  std::vector< Period >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_push_back" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PeriodVector_push_back" "', argument " "2"" of type '" "std::vector< Period >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PeriodVector_push_back" "', argument " "2"" of type '" "std::vector< Period >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< Period >::value_type * >(argp2);
  {
    try {
      (arg1)->push_back((std::vector< Period >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Period >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_front" "', argument " "1"" of type '" "std::vector< Period > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    try {
      result = (std::vector< Period >::value_type *) &((std::vector< Period > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Period, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Period >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_back" "', argument " "1"" of type '" "std::vector< Period > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    try {
      result = (std::vector< Period >::value_type *) &((std::vector< Period > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Period, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  std::vector< Period >::size_type arg2 ;
  std::vector< Period >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_assign" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PeriodVector_assign" "', argument " "2"" of type '" "std::vector< Period >::size_type""'");
  } 
  arg2 = static_cast< std::vector< Period >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PeriodVector_assign" "', argument " "3"" of type '" "std::vector< Period >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PeriodVector_assign" "', argument " "3"" of type '" "std::vector< Period >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< Period >::value_type * >(argp3);
  {
    try {
      (arg1)->assign(arg2,(std::vector< Period >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  std::vector< Period >::size_type arg2 ;
  std::vector< Period >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_resize" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PeriodVector_resize" "', argument " "2"" of type '" "std::vector< Period >::size_type""'");
  } 
  arg2 = static_cast< std::vector< Period >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PeriodVector_resize" "', argument " "3"" of type '" "std::vector< Period >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PeriodVector_resize" "', argument " "3"" of type '" "std::vector< Period >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< Period >::value_type * >(argp3);
  {
    try {
      (arg1)->resize(arg2,(std::vector< Period >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Period,std::allocator< Period > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_PeriodVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Period,std::allocator< Period > >**)(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_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_PeriodVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PeriodVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Period >::resize(std::vector< Period >::size_type)\n"
    "    std::vector< Period >::resize(std::vector< Period >::size_type,std::vector< Period >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_PeriodVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  std::vector< Period >::iterator arg2 ;
  std::vector< Period >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< Period >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_insert" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PeriodVector_insert" "', argument " "2"" of type '" "std::vector< Period >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Period >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Period >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PeriodVector_insert" "', argument " "2"" of type '" "std::vector< Period >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PeriodVector_insert" "', argument " "3"" of type '" "std::vector< Period >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PeriodVector_insert" "', argument " "3"" of type '" "std::vector< Period >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< Period >::value_type * >(argp3);
  {
    try {
      result = std_vector_Sl_Period_Sg__insert__SWIG_0(arg1,arg2,(Period const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Period >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  std::vector< Period >::iterator arg2 ;
  std::vector< Period >::size_type arg3 ;
  std::vector< Period >::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 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_insert" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PeriodVector_insert" "', argument " "2"" of type '" "std::vector< Period >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Period >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Period >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PeriodVector_insert" "', argument " "2"" of type '" "std::vector< Period >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PeriodVector_insert" "', argument " "3"" of type '" "std::vector< Period >::size_type""'");
  } 
  arg3 = static_cast< std::vector< Period >::size_type >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "PeriodVector_insert" "', argument " "4"" of type '" "std::vector< Period >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PeriodVector_insert" "', argument " "4"" of type '" "std::vector< Period >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< Period >::value_type * >(argp4);
  {
    try {
      std_vector_Sl_Period_Sg__insert__SWIG_1(arg1,arg2,arg3,(Period const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Period,std::allocator< Period > >**)(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< Period >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_PeriodVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Period,std::allocator< Period > >**)(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< Period >::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_Period, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_PeriodVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PeriodVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Period >::insert(std::vector< Period >::iterator,std::vector< Period >::value_type const &)\n"
    "    std::vector< Period >::insert(std::vector< Period >::iterator,std::vector< Period >::size_type,std::vector< Period >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_PeriodVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  std::vector< Period >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_reserve" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PeriodVector_reserve" "', argument " "2"" of type '" "std::vector< Period >::size_type""'");
  } 
  arg2 = static_cast< std::vector< Period >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PeriodVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Period >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodVector_capacity" "', argument " "1"" of type '" "std::vector< Period > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    try {
      result = ((std::vector< Period > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PeriodVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Period > *arg1 = (std::vector< Period > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PeriodVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PeriodVector" "', argument " "1"" of type '" "std::vector< Period > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Period > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PeriodVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_Period_std__allocatorT_Period_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Date__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Date",0,0)) SWIG_fail;
  {
    try {
      result = (Date *)new Date();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Date, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Date__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Day arg1 ;
  Month arg2 ;
  Year arg3 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Date *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Date",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Date" "', argument " "1"" of type '" "Day""'");
  } 
  arg1 = static_cast< Day >(val1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Date" "', argument " "2"" of type '" "Month""'");
  } 
  arg2 = static_cast< Month >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Date" "', argument " "3"" of type '" "Year""'");
  } 
  arg3 = static_cast< Year >(val3);
  {
    try {
      result = (Date *)new Date(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Date, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Date__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Day arg1 ;
  Month arg2 ;
  Year arg3 ;
  Hour arg4 ;
  Minute arg5 ;
  Second arg6 ;
  Millisecond arg7 ;
  Microsecond arg8 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Date *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Date",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Date" "', argument " "1"" of type '" "Day""'");
  } 
  arg1 = static_cast< Day >(val1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Date" "', argument " "2"" of type '" "Month""'");
  } 
  arg2 = static_cast< Month >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Date" "', argument " "3"" of type '" "Year""'");
  } 
  arg3 = static_cast< Year >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Date" "', argument " "4"" of type '" "Hour""'");
  } 
  arg4 = static_cast< Hour >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Date" "', argument " "5"" of type '" "Minute""'");
  } 
  arg5 = static_cast< Minute >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Date" "', argument " "6"" of type '" "Second""'");
  } 
  arg6 = static_cast< Second >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Date" "', argument " "7"" of type '" "Millisecond""'");
  } 
  arg7 = static_cast< Millisecond >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Date" "', argument " "8"" of type '" "Microsecond""'");
  } 
  arg8 = static_cast< Microsecond >(val8);
  {
    try {
      result = (Date *)new_Date__SWIG_2(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Date, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Date__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Day arg1 ;
  Month arg2 ;
  Year arg3 ;
  Hour arg4 ;
  Minute arg5 ;
  Second arg6 ;
  Millisecond arg7 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Date *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Date",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Date" "', argument " "1"" of type '" "Day""'");
  } 
  arg1 = static_cast< Day >(val1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Date" "', argument " "2"" of type '" "Month""'");
  } 
  arg2 = static_cast< Month >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Date" "', argument " "3"" of type '" "Year""'");
  } 
  arg3 = static_cast< Year >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Date" "', argument " "4"" of type '" "Hour""'");
  } 
  arg4 = static_cast< Hour >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Date" "', argument " "5"" of type '" "Minute""'");
  } 
  arg5 = static_cast< Minute >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Date" "', argument " "6"" of type '" "Second""'");
  } 
  arg6 = static_cast< Second >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Date" "', argument " "7"" of type '" "Millisecond""'");
  } 
  arg7 = static_cast< Millisecond >(val7);
  {
    try {
      result = (Date *)new_Date__SWIG_2(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Date, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Date__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Day arg1 ;
  Month arg2 ;
  Year arg3 ;
  Hour arg4 ;
  Minute arg5 ;
  Second arg6 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Date *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Date",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Date" "', argument " "1"" of type '" "Day""'");
  } 
  arg1 = static_cast< Day >(val1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Date" "', argument " "2"" of type '" "Month""'");
  } 
  arg2 = static_cast< Month >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Date" "', argument " "3"" of type '" "Year""'");
  } 
  arg3 = static_cast< Year >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Date" "', argument " "4"" of type '" "Hour""'");
  } 
  arg4 = static_cast< Hour >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Date" "', argument " "5"" of type '" "Minute""'");
  } 
  arg5 = static_cast< Minute >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Date" "', argument " "6"" of type '" "Second""'");
  } 
  arg6 = static_cast< Second >(val6);
  {
    try {
      result = (Date *)new_Date__SWIG_2(arg1,arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Date, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Date__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BigInteger arg1 ;
  long val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  Date *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Date",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_long(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Date" "', argument " "1"" of type '" "BigInteger""'");
  } 
  arg1 = static_cast< BigInteger >(val1);
  {
    try {
      result = (Date *)new Date(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Date, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_weekday(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Weekday result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_weekday",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date_weekday" "', argument " "1"" of type '" "Date const *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (Weekday)((Date const *)arg1)->weekday();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_dayOfMonth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Day result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_dayOfMonth",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date_dayOfMonth" "', argument " "1"" of type '" "Date const *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (Day)((Date const *)arg1)->dayOfMonth();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_dayOfYear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Day result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_dayOfYear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date_dayOfYear" "', argument " "1"" of type '" "Date const *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (Day)((Date const *)arg1)->dayOfYear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_month(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Month result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_month",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date_month" "', argument " "1"" of type '" "Date const *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (Month)((Date const *)arg1)->month();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_year(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Year result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_year",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date_year" "', argument " "1"" of type '" "Date const *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (Year)((Date const *)arg1)->year();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_hours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Hour result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_hours",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date_hours" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (Hour)Date_hours(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_minutes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Minute result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_minutes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date_minutes" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (Minute)Date_minutes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_seconds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Second result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_seconds",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date_seconds" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (Second)Date_seconds(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_milliseconds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Millisecond result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_milliseconds",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date_milliseconds" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (Millisecond)Date_milliseconds(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_microseconds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Microsecond result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_microseconds",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date_microseconds" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (Microsecond)Date_microseconds(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_fractionOfDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_fractionOfDay",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date_fractionOfDay" "', argument " "1"" of type '" "Date const *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (Time)Date_fractionOfDay((Date const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_fractionOfSecond(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_fractionOfSecond",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date_fractionOfSecond" "', argument " "1"" of type '" "Date const *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (Time)Date_fractionOfSecond((Date const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_serialNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BigInteger result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_serialNumber",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date_serialNumber" "', argument " "1"" of type '" "Date const *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (BigInteger)((Date const *)arg1)->serialNumber();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_long(static_cast< long >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_isLeap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Year arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_isLeap",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Date_isLeap" "', argument " "1"" of type '" "Year""'");
  } 
  arg1 = static_cast< Year >(val1);
  {
    try {
      result = (bool)Date::isLeap(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_minDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_minDate",0,0)) SWIG_fail;
  {
    try {
      result = Date::minDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_maxDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_maxDate",0,0)) SWIG_fail;
  {
    try {
      result = Date::maxDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_todaysDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_todaysDate",0,0)) SWIG_fail;
  {
    try {
      result = Date::todaysDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_localDateTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_localDateTime",0,0)) SWIG_fail;
  {
    try {
      result = Date_localDateTime();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_universalDateTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_universalDateTime",0,0)) SWIG_fail;
  {
    try {
      result = Date_universalDateTime();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_endOfMonth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_endOfMonth",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date_endOfMonth" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Date_endOfMonth" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = Date::endOfMonth((Date const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_isEndOfMonth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_isEndOfMonth",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date_isEndOfMonth" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Date_isEndOfMonth" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (bool)Date::isEndOfMonth((Date const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_nextWeekday(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Weekday arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_nextWeekday",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date_nextWeekday" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Date_nextWeekday" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Date_nextWeekday" "', argument " "2"" of type '" "Weekday""'");
  } 
  arg2 = static_cast< Weekday >(val2);
  {
    try {
      result = Date::nextWeekday((Date const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_nthWeekday(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Weekday arg2 ;
  Month arg3 ;
  Year arg4 ;
  size_t val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_nthWeekday",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Date_nthWeekday" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Date_nthWeekday" "', argument " "2"" of type '" "Weekday""'");
  } 
  arg2 = static_cast< Weekday >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Date_nthWeekday" "', argument " "3"" of type '" "Month""'");
  } 
  arg3 = static_cast< Month >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Date_nthWeekday" "', argument " "4"" of type '" "Year""'");
  } 
  arg4 = static_cast< Year >(val4);
  {
    try {
      result = Date::nthWeekday(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  BigInteger arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  long val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date___add__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date___add__" "', argument " "1"" of type '" "Date const *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_long(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Date___add__" "', argument " "2"" of type '" "BigInteger""'");
  } 
  arg2 = static_cast< BigInteger >(val2);
  {
    try {
      result = ((Date const *)arg1)->operator +(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  BigInteger arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  long val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date___sub__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date___sub__" "', argument " "1"" of type '" "Date const *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_long(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Date___sub__" "', argument " "2"" of type '" "BigInteger""'");
  } 
  arg2 = static_cast< BigInteger >(val2);
  {
    try {
      result = ((Date const *)arg1)->operator -(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  Period *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date___add__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date___add__" "', argument " "1"" of type '" "Date const *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Date___add__" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Date___add__" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  {
    try {
      result = ((Date const *)arg1)->operator +((Period const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date___add__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_Date___add____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_long(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_Date___add____SWIG_0(self, args);
      }
    }
  }
  
fail:
  Py_INCREF(Py_NotImplemented);
  return Py_NotImplemented;
}


SWIGINTERN PyObject *_wrap_Date___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  Period *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date___sub__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date___sub__" "', argument " "1"" of type '" "Date const *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Date___sub__" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Date___sub__" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  {
    try {
      result = ((Date const *)arg1)->operator -((Period const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Date__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  std::string arg2 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Date",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Date" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Date" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Date" "', argument " "2"" of type '" "std::string""'"); 
    }
    arg2 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    try {
      result = (Date *)new_Date__SWIG_6((std::string const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Date, 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_Date(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[9] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 8) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Date__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_long(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Date__SWIG_5(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (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_new_Date__SWIG_6(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_Date__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_Date__SWIG_4(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_Date__SWIG_3(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_Date__SWIG_2(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Date'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Date::Date()\n"
    "    Date::Date(Day,Month,Year)\n"
    "    Date::Date(Day,Month,Year,Hour,Minute,Second,Millisecond,Microsecond)\n"
    "    Date::Date(Day,Month,Year,Hour,Minute,Second,Millisecond)\n"
    "    Date::Date(Day,Month,Year,Hour,Minute,Second)\n"
    "    Date::Date(BigInteger)\n"
    "    Date::Date(std::string const &,std::string)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Date_weekdayNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Integer result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_weekdayNumber",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date_weekdayNumber" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (Integer)Date_weekdayNumber(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date___str__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date___str__" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = Date___str__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date___repr__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date___repr__" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = Date___repr__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date_ISO(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date_ISO",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date_ISO" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = Date_ISO(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date___sub____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BigInteger result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date___sub__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date___sub__" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Date___sub__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Date___sub__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (BigInteger)Date_operator_Ss___SWIG_2(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_long(static_cast< long >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date___sub__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_Date___sub____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_Date___sub____SWIG_2(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_long(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_Date___sub____SWIG_0(self, args);
      }
    }
  }
  
fail:
  Py_INCREF(Py_NotImplemented);
  return Py_NotImplemented;
}


SWIGINTERN PyObject *_wrap_Date___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date___eq__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date___eq__" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Date___eq__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Date___eq__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (bool)Date___eq__(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date___cmp__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  int result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date___cmp__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date___cmp__" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Date___cmp__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Date___cmp__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (int)Date___cmp__(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date___nonzero__" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (bool)Date___nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date___bool__" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (bool)Date___bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date___hash__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  int result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date___hash__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date___hash__" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (int)Date___hash__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date___lt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date___lt__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date___lt__" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Date___lt__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Date___lt__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (bool)Date___lt__(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date___gt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date___gt__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date___gt__" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Date___gt__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Date___gt__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (bool)Date___gt__(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date___le__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date___le__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date___le__" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Date___le__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Date___le__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (bool)Date___le__(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Date___ge__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Date___ge__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Date___ge__" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Date___ge__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Date___ge__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (bool)Date___ge__(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Date(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Date",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Date, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Date" "', argument " "1"" of type '" "Date *""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Date_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Date, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_DateParser_parseFormatted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  std::string *arg2 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateParser_parseFormatted",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateParser_parseFormatted" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateParser_parseFormatted" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateParser_parseFormatted" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateParser_parseFormatted" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      result = DateParser::parseFormatted((std::string const &)*arg1,(std::string const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateParser_parseISO(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateParser_parseISO",1,1,&obj0)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateParser_parseISO" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateParser_parseISO" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = DateParser::parseISO((std::string const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateParser_parse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  std::string arg2 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateParser_parse",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateParser_parse" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateParser_parse" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "DateParser_parse" "', argument " "2"" of type '" "std::string""'"); 
    }
    arg2 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    try {
      result = DateParser_parse((std::string const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DateParser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DateParser *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DateParser",0,0)) SWIG_fail;
  {
    try {
      result = (DateParser *)new DateParser();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DateParser, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DateParser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DateParser *arg1 = (DateParser *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DateParser",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DateParser, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DateParser" "', argument " "1"" of type '" "DateParser *""'"); 
  }
  arg1 = reinterpret_cast< DateParser * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DateParser_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DateParser, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_PeriodParser_parse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  Period result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PeriodParser_parse",1,1,&obj0)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PeriodParser_parse" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PeriodParser_parse" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = PeriodParser::parse((std::string const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Period(static_cast< const Period& >(result))), SWIGTYPE_p_Period, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PeriodParser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PeriodParser *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PeriodParser",0,0)) SWIG_fail;
  {
    try {
      result = (PeriodParser *)new PeriodParser();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PeriodParser, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PeriodParser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PeriodParser *arg1 = (PeriodParser *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PeriodParser",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PeriodParser, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PeriodParser" "', argument " "1"" of type '" "PeriodParser *""'"); 
  }
  arg1 = reinterpret_cast< PeriodParser * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PeriodParser_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_PeriodParser, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_DateVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_iterator" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_Date_Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector___nonzero__" "', argument " "1"" of type '" "std::vector< Date > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_Date_Sg____nonzero__((std::vector< Date > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector___bool__" "', argument " "1"" of type '" "std::vector< Date > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_Date_Sg____bool__((std::vector< Date > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector___len__" "', argument " "1"" of type '" "std::vector< Date > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    try {
      result = std_vector_Sl_Date_Sg____len__((std::vector< Date > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  std::vector< Date >::difference_type arg2 ;
  std::vector< Date >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector___getslice__" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateVector___getslice__" "', argument " "2"" of type '" "std::vector< Date >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Date >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateVector___getslice__" "', argument " "3"" of type '" "std::vector< Date >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< Date >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< Date,std::allocator< Date > > *)std_vector_Sl_Date_Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  std::vector< Date >::difference_type arg2 ;
  std::vector< Date >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector___setslice__" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateVector___setslice__" "', argument " "2"" of type '" "std::vector< Date >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Date >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateVector___setslice__" "', argument " "3"" of type '" "std::vector< Date >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< Date >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_Date_Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  std::vector< Date >::difference_type arg2 ;
  std::vector< Date >::difference_type arg3 ;
  std::vector< Date,std::allocator< Date > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector___setslice__" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateVector___setslice__" "', argument " "2"" of type '" "std::vector< Date >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Date >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateVector___setslice__" "', argument " "3"" of type '" "std::vector< Date >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< Date >::difference_type >(val3);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DateVector___setslice__" "', argument " "4"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateVector___setslice__" "', argument " "4"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_Date_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< Date,std::allocator< Date > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(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_DateVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(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< Date,std::allocator< Date > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_DateVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DateVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Date >::__setslice__(std::vector< Date >::difference_type,std::vector< Date >::difference_type)\n"
    "    std::vector< Date >::__setslice__(std::vector< Date >::difference_type,std::vector< Date >::difference_type,std::vector< Date,std::allocator< Date > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DateVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  std::vector< Date >::difference_type arg2 ;
  std::vector< Date >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector___delslice__" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateVector___delslice__" "', argument " "2"" of type '" "std::vector< Date >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Date >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateVector___delslice__" "', argument " "3"" of type '" "std::vector< Date >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< Date >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_Date_Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  std::vector< Date >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector___delitem__" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateVector___delitem__" "', argument " "2"" of type '" "std::vector< Date >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Date >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_Date_Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector___getitem__" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DateVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< Date,std::allocator< Date > > *)std_vector_Sl_Date_Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< Date,std::allocator< Date > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector___setitem__" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DateVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DateVector___setitem__" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateVector___setitem__" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_Date_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< Date,std::allocator< Date > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector___setitem__" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DateVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_Date_Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector___delitem__" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DateVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_Date_Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_DateVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DateVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DateVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Date >::__delitem__(std::vector< Date >::difference_type)\n"
    "    std::vector< Date >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DateVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  std::vector< Date >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< Date >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector___getitem__" "', argument " "1"" of type '" "std::vector< Date > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateVector___getitem__" "', argument " "2"" of type '" "std::vector< Date >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Date >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< Date >::value_type *) &std_vector_Sl_Date_Sg____getitem____SWIG_1((std::vector< Date > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Date, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_DateVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DateVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DateVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Date >::__getitem__(PySliceObject *)\n"
    "    std::vector< Date >::__getitem__(std::vector< Date >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DateVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  std::vector< Date >::difference_type arg2 ;
  std::vector< Date >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector___setitem__" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateVector___setitem__" "', argument " "2"" of type '" "std::vector< Date >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Date >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DateVector___setitem__" "', argument " "3"" of type '" "std::vector< Date >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateVector___setitem__" "', argument " "3"" of type '" "std::vector< Date >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< Date >::value_type * >(argp3);
  {
    try {
      try {
        std_vector_Sl_Date_Sg____setitem____SWIG_2(arg1,arg2,(Date const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_DateVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Date,std::allocator< Date > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DateVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(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_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DateVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DateVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Date >::__setitem__(PySliceObject *,std::vector< Date,std::allocator< Date > > const &)\n"
    "    std::vector< Date >::__setitem__(PySliceObject *)\n"
    "    std::vector< Date >::__setitem__(std::vector< Date >::difference_type,std::vector< Date >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DateVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_pop" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_Date_Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< Date >::value_type(static_cast< const std::vector< Date >::value_type& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  std::vector< Date >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_append" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateVector_append" "', argument " "2"" of type '" "std::vector< Date >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateVector_append" "', argument " "2"" of type '" "std::vector< Date >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< Date >::value_type * >(argp2);
  {
    try {
      std_vector_Sl_Date_Sg__append(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DateVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DateVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< Date > *)new std::vector< Date >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DateVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< Date > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DateVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DateVector" "', argument " "1"" of type '" "std::vector< Date > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateVector" "', argument " "1"" of type '" "std::vector< Date > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< Date > *)new std::vector< Date >((std::vector< Date > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_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_DateVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_empty" "', argument " "1"" of type '" "std::vector< Date > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    try {
      result = (bool)((std::vector< Date > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_size" "', argument " "1"" of type '" "std::vector< Date > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    try {
      result = ((std::vector< Date > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  std::vector< Date > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_swap" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateVector_swap" "', argument " "2"" of type '" "std::vector< Date > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateVector_swap" "', argument " "2"" of type '" "std::vector< Date > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< Date > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_begin" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Date >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_end" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Date >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_rbegin" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Date >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_rend" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Date >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_clear" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< Date > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_get_allocator" "', argument " "1"" of type '" "std::vector< Date > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    try {
      result = ((std::vector< Date > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< Date >::allocator_type(static_cast< const std::vector< Date >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_Date_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DateVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DateVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateVector" "', argument " "1"" of type '" "std::vector< Date >::size_type""'");
  } 
  arg1 = static_cast< std::vector< Date >::size_type >(val1);
  {
    try {
      result = (std::vector< Date > *)new std::vector< Date >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_pop_back" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  std::vector< Date >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_resize" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateVector_resize" "', argument " "2"" of type '" "std::vector< Date >::size_type""'");
  } 
  arg2 = static_cast< std::vector< Date >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  std::vector< Date >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< Date >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_erase" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DateVector_erase" "', argument " "2"" of type '" "std::vector< Date >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Date >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Date >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DateVector_erase" "', argument " "2"" of type '" "std::vector< Date >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_Date_Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Date >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  std::vector< Date >::iterator arg2 ;
  std::vector< Date >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< Date >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_erase" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DateVector_erase" "', argument " "2"" of type '" "std::vector< Date >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Date >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Date >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DateVector_erase" "', argument " "2"" of type '" "std::vector< Date >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DateVector_erase" "', argument " "3"" of type '" "std::vector< Date >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Date >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Date >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DateVector_erase" "', argument " "3"" of type '" "std::vector< Date >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_Date_Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Date >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(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< Date >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_DateVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(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< Date >::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< Date >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_DateVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DateVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Date >::erase(std::vector< Date >::iterator)\n"
    "    std::vector< Date >::erase(std::vector< Date >::iterator,std::vector< Date >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_DateVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date >::size_type arg1 ;
  std::vector< Date >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< Date > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DateVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DateVector" "', argument " "1"" of type '" "std::vector< Date >::size_type""'");
  } 
  arg1 = static_cast< std::vector< Date >::size_type >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateVector" "', argument " "2"" of type '" "std::vector< Date >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateVector" "', argument " "2"" of type '" "std::vector< Date >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< Date >::value_type * >(argp2);
  {
    try {
      result = (std::vector< Date > *)new std::vector< Date >(arg1,(std::vector< Date >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DateVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_DateVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_DateVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_DateVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_DateVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DateVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Date >::vector()\n"
    "    std::vector< Date >::vector(std::vector< Date > const &)\n"
    "    std::vector< Date >::vector(std::vector< Date >::size_type)\n"
    "    std::vector< Date >::vector(std::vector< Date >::size_type,std::vector< Date >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DateVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  std::vector< Date >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_push_back" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateVector_push_back" "', argument " "2"" of type '" "std::vector< Date >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateVector_push_back" "', argument " "2"" of type '" "std::vector< Date >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< Date >::value_type * >(argp2);
  {
    try {
      (arg1)->push_back((std::vector< Date >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_front" "', argument " "1"" of type '" "std::vector< Date > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    try {
      result = (std::vector< Date >::value_type *) &((std::vector< Date > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Date, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_back" "', argument " "1"" of type '" "std::vector< Date > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    try {
      result = (std::vector< Date >::value_type *) &((std::vector< Date > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Date, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  std::vector< Date >::size_type arg2 ;
  std::vector< Date >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_assign" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateVector_assign" "', argument " "2"" of type '" "std::vector< Date >::size_type""'");
  } 
  arg2 = static_cast< std::vector< Date >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DateVector_assign" "', argument " "3"" of type '" "std::vector< Date >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateVector_assign" "', argument " "3"" of type '" "std::vector< Date >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< Date >::value_type * >(argp3);
  {
    try {
      (arg1)->assign(arg2,(std::vector< Date >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  std::vector< Date >::size_type arg2 ;
  std::vector< Date >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_resize" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateVector_resize" "', argument " "2"" of type '" "std::vector< Date >::size_type""'");
  } 
  arg2 = static_cast< std::vector< Date >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DateVector_resize" "', argument " "3"" of type '" "std::vector< Date >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateVector_resize" "', argument " "3"" of type '" "std::vector< Date >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< Date >::value_type * >(argp3);
  {
    try {
      (arg1)->resize(arg2,(std::vector< Date >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DateVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(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_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DateVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DateVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Date >::resize(std::vector< Date >::size_type)\n"
    "    std::vector< Date >::resize(std::vector< Date >::size_type,std::vector< Date >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DateVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  std::vector< Date >::iterator arg2 ;
  std::vector< Date >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< Date >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_insert" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DateVector_insert" "', argument " "2"" of type '" "std::vector< Date >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Date >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Date >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DateVector_insert" "', argument " "2"" of type '" "std::vector< Date >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DateVector_insert" "', argument " "3"" of type '" "std::vector< Date >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateVector_insert" "', argument " "3"" of type '" "std::vector< Date >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< Date >::value_type * >(argp3);
  {
    try {
      result = std_vector_Sl_Date_Sg__insert__SWIG_0(arg1,arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Date >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  std::vector< Date >::iterator arg2 ;
  std::vector< Date >::size_type arg3 ;
  std::vector< Date >::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 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_insert" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DateVector_insert" "', argument " "2"" of type '" "std::vector< Date >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Date >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Date >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DateVector_insert" "', argument " "2"" of type '" "std::vector< Date >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DateVector_insert" "', argument " "3"" of type '" "std::vector< Date >::size_type""'");
  } 
  arg3 = static_cast< std::vector< Date >::size_type >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DateVector_insert" "', argument " "4"" of type '" "std::vector< Date >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateVector_insert" "', argument " "4"" of type '" "std::vector< Date >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< Date >::value_type * >(argp4);
  {
    try {
      std_vector_Sl_Date_Sg__insert__SWIG_1(arg1,arg2,arg3,(Date const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(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< Date >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DateVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(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< Date >::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_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_DateVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DateVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Date >::insert(std::vector< Date >::iterator,std::vector< Date >::value_type const &)\n"
    "    std::vector< Date >::insert(std::vector< Date >::iterator,std::vector< Date >::size_type,std::vector< Date >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DateVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  std::vector< Date >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_reserve" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DateVector_reserve" "', argument " "2"" of type '" "std::vector< Date >::size_type""'");
  } 
  arg2 = static_cast< std::vector< Date >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DateVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DateVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateVector_capacity" "', argument " "1"" of type '" "std::vector< Date > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    try {
      result = ((std::vector< Date > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DateVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date > *arg1 = (std::vector< Date > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DateVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DateVector" "', argument " "1"" of type '" "std::vector< Date > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Date > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DateVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_Date_std__allocatorT_Date_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_IMM_isIMMdate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_isIMMdate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IMM_isIMMdate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_isIMMdate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IMM_isIMMdate" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      result = (bool)IMM::isIMMdate((Date const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_isIMMdate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_isIMMdate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IMM_isIMMdate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_isIMMdate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (bool)IMM::isIMMdate((Date const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_isIMMdate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_IMM_isIMMdate__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_IMM_isIMMdate__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IMM_isIMMdate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    IMM::isIMMdate(Date const &,bool)\n"
    "    IMM::isIMMdate(Date const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IMM_isIMMcode__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  bool arg2 ;
  int res1 = SWIG_OLDOBJ ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_isIMMcode",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IMM_isIMMcode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_isIMMcode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IMM_isIMMcode" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      result = (bool)IMM::isIMMcode((std::string const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_isIMMcode__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_isIMMcode",1,1,&obj0)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IMM_isIMMcode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_isIMMcode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (bool)IMM::isIMMcode((std::string const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_isIMMcode(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_IMM_isIMMcode__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_IMM_isIMMcode__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IMM_isIMMcode'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    IMM::isIMMcode(std::string const &,bool)\n"
    "    IMM::isIMMcode(std::string const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IMM_code(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_code",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IMM_code" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_code" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = IMM::code((Date const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_date__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  Date *arg2 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_date",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IMM_date" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_date" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IMM_date" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_date" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = IMM::date((std::string const &)*arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_date__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_date",1,1,&obj0)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IMM_date" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_date" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = IMM::date((std::string const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_date(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_IMM_date__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_IMM_date__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IMM_date'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    IMM::date(std::string const &,Date const &)\n"
    "    IMM::date(std::string const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IMM_nextDate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_nextDate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IMM_nextDate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_nextDate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IMM_nextDate" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      result = IMM::nextDate((Date const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_nextDate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_nextDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IMM_nextDate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_nextDate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = IMM::nextDate((Date const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_nextDate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_nextDate",0,0)) SWIG_fail;
  {
    try {
      result = IMM::nextDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_nextDate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  bool arg2 ;
  Date *arg3 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  bool val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_nextDate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IMM_nextDate" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_nextDate" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IMM_nextDate" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IMM_nextDate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_nextDate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  {
    try {
      result = IMM::nextDate((std::string const &)*arg1,arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_nextDate__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  bool arg2 ;
  int res1 = SWIG_OLDOBJ ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_nextDate",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IMM_nextDate" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_nextDate" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IMM_nextDate" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      result = IMM::nextDate((std::string const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_nextDate__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_nextDate",1,1,&obj0)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IMM_nextDate" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_nextDate" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = IMM::nextDate((std::string const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_nextDate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_IMM_nextDate__SWIG_2(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_IMM_nextDate__SWIG_1(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_IMM_nextDate__SWIG_5(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_IMM_nextDate__SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_IMM_nextDate__SWIG_4(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_IMM_nextDate__SWIG_3(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IMM_nextDate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    IMM::nextDate(Date const &,bool)\n"
    "    IMM::nextDate(Date const &)\n"
    "    IMM::nextDate()\n"
    "    IMM::nextDate(std::string const &,bool,Date const &)\n"
    "    IMM::nextDate(std::string const &,bool)\n"
    "    IMM::nextDate(std::string const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IMM_nextCode__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_nextCode",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IMM_nextCode" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_nextCode" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IMM_nextCode" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      result = IMM::nextCode((Date const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_nextCode__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_nextCode",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IMM_nextCode" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_nextCode" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = IMM::nextCode((Date const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_nextCode__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_nextCode",0,0)) SWIG_fail;
  {
    try {
      result = IMM::nextCode();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_nextCode__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  bool arg2 ;
  Date *arg3 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  bool val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_nextCode",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IMM_nextCode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_nextCode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IMM_nextCode" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IMM_nextCode" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_nextCode" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  {
    try {
      result = IMM::nextCode((std::string const &)*arg1,arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_nextCode__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  bool arg2 ;
  int res1 = SWIG_OLDOBJ ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_nextCode",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IMM_nextCode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_nextCode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IMM_nextCode" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      result = IMM::nextCode((std::string const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_nextCode__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IMM_nextCode",1,1,&obj0)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IMM_nextCode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IMM_nextCode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = IMM::nextCode((std::string const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IMM_nextCode(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_IMM_nextCode__SWIG_2(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_IMM_nextCode__SWIG_1(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_IMM_nextCode__SWIG_5(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_IMM_nextCode__SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_IMM_nextCode__SWIG_4(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_IMM_nextCode__SWIG_3(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IMM_nextCode'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    IMM::nextCode(Date const &,bool)\n"
    "    IMM::nextCode(Date const &)\n"
    "    IMM::nextCode()\n"
    "    IMM::nextCode(std::string const &,bool,Date const &)\n"
    "    IMM::nextCode(std::string const &,bool)\n"
    "    IMM::nextCode(std::string const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_IMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IMM *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IMM",0,0)) SWIG_fail;
  {
    try {
      result = (IMM *)new IMM();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IMM, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_IMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IMM *arg1 = (IMM *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_IMM",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IMM, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IMM" "', argument " "1"" of type '" "IMM *""'"); 
  }
  arg1 = reinterpret_cast< IMM * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *IMM_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_IMM, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_ASX_isASXdate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_isASXdate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ASX_isASXdate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_isASXdate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ASX_isASXdate" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      result = (bool)ASX::isASXdate((Date const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_isASXdate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_isASXdate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ASX_isASXdate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_isASXdate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (bool)ASX::isASXdate((Date const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_isASXdate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_ASX_isASXdate__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ASX_isASXdate__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ASX_isASXdate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ASX::isASXdate(Date const &,bool)\n"
    "    ASX::isASXdate(Date const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ASX_isASXcode__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  bool arg2 ;
  int res1 = SWIG_OLDOBJ ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_isASXcode",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ASX_isASXcode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_isASXcode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ASX_isASXcode" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      result = (bool)ASX::isASXcode((std::string const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_isASXcode__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_isASXcode",1,1,&obj0)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ASX_isASXcode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_isASXcode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (bool)ASX::isASXcode((std::string const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_isASXcode(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_ASX_isASXcode__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ASX_isASXcode__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ASX_isASXcode'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ASX::isASXcode(std::string const &,bool)\n"
    "    ASX::isASXcode(std::string const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ASX_code(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_code",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ASX_code" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_code" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = ASX::code((Date const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_date__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  Date *arg2 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_date",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ASX_date" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_date" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ASX_date" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_date" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = ASX::date((std::string const &)*arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_date__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_date",1,1,&obj0)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ASX_date" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_date" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = ASX::date((std::string const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_date(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_ASX_date__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_ASX_date__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ASX_date'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ASX::date(std::string const &,Date const &)\n"
    "    ASX::date(std::string const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ASX_nextDate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_nextDate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ASX_nextDate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_nextDate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ASX_nextDate" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      result = ASX::nextDate((Date const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_nextDate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_nextDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ASX_nextDate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_nextDate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = ASX::nextDate((Date const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_nextDate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_nextDate",0,0)) SWIG_fail;
  {
    try {
      result = ASX::nextDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_nextDate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  bool arg2 ;
  Date *arg3 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  bool val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_nextDate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ASX_nextDate" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_nextDate" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ASX_nextDate" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ASX_nextDate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_nextDate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  {
    try {
      result = ASX::nextDate((std::string const &)*arg1,arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_nextDate__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  bool arg2 ;
  int res1 = SWIG_OLDOBJ ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_nextDate",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ASX_nextDate" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_nextDate" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ASX_nextDate" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      result = ASX::nextDate((std::string const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_nextDate__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_nextDate",1,1,&obj0)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ASX_nextDate" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_nextDate" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = ASX::nextDate((std::string const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_nextDate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_ASX_nextDate__SWIG_2(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_ASX_nextDate__SWIG_1(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_ASX_nextDate__SWIG_5(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ASX_nextDate__SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ASX_nextDate__SWIG_4(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ASX_nextDate__SWIG_3(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ASX_nextDate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ASX::nextDate(Date const &,bool)\n"
    "    ASX::nextDate(Date const &)\n"
    "    ASX::nextDate()\n"
    "    ASX::nextDate(std::string const &,bool,Date const &)\n"
    "    ASX::nextDate(std::string const &,bool)\n"
    "    ASX::nextDate(std::string const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ASX_nextCode__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_nextCode",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ASX_nextCode" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_nextCode" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ASX_nextCode" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      result = ASX::nextCode((Date const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_nextCode__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_nextCode",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ASX_nextCode" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_nextCode" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = ASX::nextCode((Date const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_nextCode__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_nextCode",0,0)) SWIG_fail;
  {
    try {
      result = ASX::nextCode();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_nextCode__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  bool arg2 ;
  Date *arg3 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  bool val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_nextCode",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ASX_nextCode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_nextCode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ASX_nextCode" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ASX_nextCode" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_nextCode" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  {
    try {
      result = ASX::nextCode((std::string const &)*arg1,arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_nextCode__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  bool arg2 ;
  int res1 = SWIG_OLDOBJ ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_nextCode",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ASX_nextCode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_nextCode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ASX_nextCode" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      result = ASX::nextCode((std::string const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_nextCode__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ASX_nextCode",1,1,&obj0)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ASX_nextCode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ASX_nextCode" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = ASX::nextCode((std::string const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ASX_nextCode(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_ASX_nextCode__SWIG_2(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_ASX_nextCode__SWIG_1(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_ASX_nextCode__SWIG_5(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ASX_nextCode__SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ASX_nextCode__SWIG_4(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ASX_nextCode__SWIG_3(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ASX_nextCode'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ASX::nextCode(Date const &,bool)\n"
    "    ASX::nextCode(Date const &)\n"
    "    ASX::nextCode()\n"
    "    ASX::nextCode(std::string const &,bool,Date const &)\n"
    "    ASX::nextCode(std::string const &,bool)\n"
    "    ASX::nextCode(std::string const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_ASX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ASX *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ASX",0,0)) SWIG_fail;
  {
    try {
      result = (ASX *)new ASX();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ASX, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ASX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ASX *arg1 = (ASX *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ASX",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ASX, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ASX" "', argument " "1"" of type '" "ASX *""'"); 
  }
  arg1 = reinterpret_cast< ASX * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ASX_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ASX, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_IntVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_iterator" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_int_Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___nonzero__" "', argument " "1"" of type '" "std::vector< int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_int_Sg____nonzero__((std::vector< int > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___bool__" "', argument " "1"" of type '" "std::vector< int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_int_Sg____bool__((std::vector< int > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< int >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___len__" "', argument " "1"" of type '" "std::vector< int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    try {
      result = std_vector_Sl_int_Sg____len__((std::vector< int > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  std::vector< int >::difference_type arg2 ;
  std::vector< int >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< int,std::allocator< int > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___getslice__" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___getslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< int >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___getslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< int >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< int,std::allocator< int > > *)std_vector_Sl_int_Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  std::vector< int >::difference_type arg2 ;
  std::vector< int >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setslice__" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___setslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< int >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___setslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< int >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_int_Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  std::vector< int >::difference_type arg2 ;
  std::vector< int >::difference_type arg3 ;
  std::vector< int,std::allocator< int > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setslice__" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___setslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< int >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___setslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< int >::difference_type >(val3);
  {
    std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IntVector___setslice__" "', argument " "4"" of type '" "std::vector< int,std::allocator< int > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVector___setslice__" "', argument " "4"" of type '" "std::vector< int,std::allocator< int > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_int_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< int,std::allocator< int > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(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_IntVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(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< int,std::allocator< int > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_IntVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< int >::__setslice__(std::vector< int >::difference_type,std::vector< int >::difference_type)\n"
    "    std::vector< int >::__setslice__(std::vector< int >::difference_type,std::vector< int >::difference_type,std::vector< int,std::allocator< int > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IntVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  std::vector< int >::difference_type arg2 ;
  std::vector< int >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___delslice__" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___delslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< int >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___delslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< int >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_int_Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  std::vector< int >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___delitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___delitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< int >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_int_Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< int,std::allocator< int > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___getitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< int,std::allocator< int > > *)std_vector_Sl_int_Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< int,std::allocator< int > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntVector___setitem__" "', argument " "3"" of type '" "std::vector< int,std::allocator< int > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVector___setitem__" "', argument " "3"" of type '" "std::vector< int,std::allocator< int > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_int_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< int,std::allocator< int > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_int_Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___delitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_int_Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_IntVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_IntVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< int >::__delitem__(std::vector< int >::difference_type)\n"
    "    std::vector< int >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IntVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  std::vector< int >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< int >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___getitem__" "', argument " "1"" of type '" "std::vector< int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___getitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< int >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< int >::value_type *) &std_vector_Sl_int_Sg____getitem____SWIG_1((std::vector< int > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_IntVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_IntVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< int >::__getitem__(PySliceObject *)\n"
    "    std::vector< int >::__getitem__(std::vector< int >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IntVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  std::vector< int >::difference_type arg2 ;
  std::vector< int >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  std::vector< int >::value_type temp3 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___setitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< int >::difference_type >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___setitem__" "', argument " "3"" of type '" "std::vector< int >::value_type""'");
  } 
  temp3 = static_cast< std::vector< int >::value_type >(val3);
  arg3 = &temp3;
  {
    try {
      try {
        std_vector_Sl_int_Sg____setitem____SWIG_2(arg1,arg2,(int const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_IntVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< int,std::allocator< int > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_IntVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(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_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_IntVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< int >::__setitem__(PySliceObject *,std::vector< int,std::allocator< int > > const &)\n"
    "    std::vector< int >::__setitem__(PySliceObject *)\n"
    "    std::vector< int >::__setitem__(std::vector< int >::difference_type,std::vector< int >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IntVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< int >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_pop" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    try {
      try {
        result = (std::vector< int >::value_type)std_vector_Sl_int_Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  std::vector< int >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< int >::value_type temp2 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_append" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_append" "', argument " "2"" of type '" "std::vector< int >::value_type""'");
  } 
  temp2 = static_cast< std::vector< int >::value_type >(val2);
  arg2 = &temp2;
  {
    try {
      std_vector_Sl_int_Sg__append(arg1,(int const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IntVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< int > *)new std::vector< int >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< int > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IntVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< int,std::allocator< int > > *ptr = (std::vector< int,std::allocator< int > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< int > *)new std::vector< int >((std::vector< int > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_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_IntVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_empty" "', argument " "1"" of type '" "std::vector< int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    try {
      result = (bool)((std::vector< int > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< int >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_size" "', argument " "1"" of type '" "std::vector< int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    try {
      result = ((std::vector< int > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  std::vector< int > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_swap" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntVector_swap" "', argument " "2"" of type '" "std::vector< int > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVector_swap" "', argument " "2"" of type '" "std::vector< int > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< int > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< int >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_begin" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< int >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_end" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< int >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_rbegin" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< int >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_rend" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_clear" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< int > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_get_allocator" "', argument " "1"" of type '" "std::vector< int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    try {
      result = ((std::vector< int > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< int >::allocator_type(static_cast< const std::vector< int >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_int_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< int > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IntVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int >::size_type""'");
  } 
  arg1 = static_cast< std::vector< int >::size_type >(val1);
  {
    try {
      result = (std::vector< int > *)new std::vector< int >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_pop_back" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  std::vector< int >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_resize" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_resize" "', argument " "2"" of type '" "std::vector< int >::size_type""'");
  } 
  arg2 = static_cast< std::vector< int >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  std::vector< int >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< int >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_erase" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< int >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_int_Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  std::vector< int >::iterator arg2 ;
  std::vector< int >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< int >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_erase" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< int >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "3"" of type '" "std::vector< int >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< int >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "3"" of type '" "std::vector< int >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_int_Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(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< int >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_IntVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(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< int >::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< int >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_IntVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< int >::erase(std::vector< int >::iterator)\n"
    "    std::vector< int >::erase(std::vector< int >::iterator,std::vector< int >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int >::size_type arg1 ;
  std::vector< int >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  std::vector< int >::value_type temp2 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< int > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IntVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int >::size_type""'");
  } 
  arg1 = static_cast< std::vector< int >::size_type >(val1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IntVector" "', argument " "2"" of type '" "std::vector< int >::value_type""'");
  } 
  temp2 = static_cast< std::vector< int >::value_type >(val2);
  arg2 = &temp2;
  {
    try {
      result = (std::vector< int > *)new std::vector< int >(arg1,(std::vector< int >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_IntVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_IntVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_IntVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_IntVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_IntVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_IntVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< int >::vector()\n"
    "    std::vector< int >::vector(std::vector< int > const &)\n"
    "    std::vector< int >::vector(std::vector< int >::size_type)\n"
    "    std::vector< int >::vector(std::vector< int >::size_type,std::vector< int >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IntVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  std::vector< int >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< int >::value_type temp2 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_push_back" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_push_back" "', argument " "2"" of type '" "std::vector< int >::value_type""'");
  } 
  temp2 = static_cast< std::vector< int >::value_type >(val2);
  arg2 = &temp2;
  {
    try {
      (arg1)->push_back((std::vector< int >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< int >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_front" "', argument " "1"" of type '" "std::vector< int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    try {
      result = (std::vector< int >::value_type *) &((std::vector< int > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< int >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_back" "', argument " "1"" of type '" "std::vector< int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    try {
      result = (std::vector< int >::value_type *) &((std::vector< int > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  std::vector< int >::size_type arg2 ;
  std::vector< int >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  std::vector< int >::value_type temp3 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_assign" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_assign" "', argument " "2"" of type '" "std::vector< int >::size_type""'");
  } 
  arg2 = static_cast< std::vector< int >::size_type >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_assign" "', argument " "3"" of type '" "std::vector< int >::value_type""'");
  } 
  temp3 = static_cast< std::vector< int >::value_type >(val3);
  arg3 = &temp3;
  {
    try {
      (arg1)->assign(arg2,(std::vector< int >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  std::vector< int >::size_type arg2 ;
  std::vector< int >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  std::vector< int >::value_type temp3 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_resize" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_resize" "', argument " "2"" of type '" "std::vector< int >::size_type""'");
  } 
  arg2 = static_cast< std::vector< int >::size_type >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_resize" "', argument " "3"" of type '" "std::vector< int >::value_type""'");
  } 
  temp3 = static_cast< std::vector< int >::value_type >(val3);
  arg3 = &temp3;
  {
    try {
      (arg1)->resize(arg2,(std::vector< int >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_IntVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(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_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_IntVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< int >::resize(std::vector< int >::size_type)\n"
    "    std::vector< int >::resize(std::vector< int >::size_type,std::vector< int >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IntVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  std::vector< int >::iterator arg2 ;
  std::vector< int >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  std::vector< int >::value_type temp3 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< int >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_insert" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< int >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_insert" "', argument " "3"" of type '" "std::vector< int >::value_type""'");
  } 
  temp3 = static_cast< std::vector< int >::value_type >(val3);
  arg3 = &temp3;
  {
    try {
      result = std_vector_Sl_int_Sg__insert__SWIG_0(arg1,arg2,(int const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  std::vector< int >::iterator arg2 ;
  std::vector< int >::size_type arg3 ;
  std::vector< int >::value_type *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  std::vector< int >::value_type temp4 ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_insert" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< int >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_insert" "', argument " "3"" of type '" "std::vector< int >::size_type""'");
  } 
  arg3 = static_cast< std::vector< int >::size_type >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IntVector_insert" "', argument " "4"" of type '" "std::vector< int >::value_type""'");
  } 
  temp4 = static_cast< std::vector< int >::value_type >(val4);
  arg4 = &temp4;
  {
    try {
      std_vector_Sl_int_Sg__insert__SWIG_1(arg1,arg2,arg3,(int const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(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< int >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_IntVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< int,std::allocator< int > >**)(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< int >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_IntVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< int >::insert(std::vector< int >::iterator,std::vector< int >::value_type const &)\n"
    "    std::vector< int >::insert(std::vector< int >::iterator,std::vector< int >::size_type,std::vector< int >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IntVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  std::vector< int >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_reserve" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_reserve" "', argument " "2"" of type '" "std::vector< int >::size_type""'");
  } 
  arg2 = static_cast< std::vector< int >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< int >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_capacity" "', argument " "1"" of type '" "std::vector< int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    try {
      result = ((std::vector< int > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_IntVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< int > *arg1 = (std::vector< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_IntVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntVector" "', argument " "1"" of type '" "std::vector< int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< int > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *IntVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_UnsignedIntVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_iterator" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_unsigned_SS_int_Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector___nonzero__" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_unsigned_SS_int_Sg____nonzero__((std::vector< unsigned int > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector___bool__" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_unsigned_SS_int_Sg____bool__((std::vector< unsigned int > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< unsigned int >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector___len__" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    try {
      result = std_vector_Sl_unsigned_SS_int_Sg____len__((std::vector< unsigned int > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  std::vector< unsigned int >::difference_type arg2 ;
  std::vector< unsigned int >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< unsigned int,std::allocator< unsigned int > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector___getslice__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnsignedIntVector___getslice__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UnsignedIntVector___getslice__" "', argument " "3"" of type '" "std::vector< unsigned int >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< unsigned int >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< unsigned int,std::allocator< unsigned int > > *)std_vector_Sl_unsigned_SS_int_Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  std::vector< unsigned int >::difference_type arg2 ;
  std::vector< unsigned int >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector___setslice__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnsignedIntVector___setslice__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UnsignedIntVector___setslice__" "', argument " "3"" of type '" "std::vector< unsigned int >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< unsigned int >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_unsigned_SS_int_Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  std::vector< unsigned int >::difference_type arg2 ;
  std::vector< unsigned int >::difference_type arg3 ;
  std::vector< unsigned int,std::allocator< unsigned int > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector___setslice__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnsignedIntVector___setslice__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UnsignedIntVector___setslice__" "', argument " "3"" of type '" "std::vector< unsigned int >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< unsigned int >::difference_type >(val3);
  {
    std::vector< unsigned int,std::allocator< unsigned int > > *ptr = (std::vector< unsigned int,std::allocator< unsigned int > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "UnsignedIntVector___setslice__" "', argument " "4"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "UnsignedIntVector___setslice__" "', argument " "4"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_unsigned_SS_int_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< unsigned int,std::allocator< unsigned int > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(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_UnsignedIntVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(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< unsigned int,std::allocator< unsigned int > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_UnsignedIntVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'UnsignedIntVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< unsigned int >::__setslice__(std::vector< unsigned int >::difference_type,std::vector< unsigned int >::difference_type)\n"
    "    std::vector< unsigned int >::__setslice__(std::vector< unsigned int >::difference_type,std::vector< unsigned int >::difference_type,std::vector< unsigned int,std::allocator< unsigned int > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  std::vector< unsigned int >::difference_type arg2 ;
  std::vector< unsigned int >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector___delslice__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnsignedIntVector___delslice__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UnsignedIntVector___delslice__" "', argument " "3"" of type '" "std::vector< unsigned int >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< unsigned int >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_unsigned_SS_int_Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  std::vector< unsigned int >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector___delitem__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnsignedIntVector___delitem__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_unsigned_SS_int_Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< unsigned int,std::allocator< unsigned int > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector___getitem__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UnsignedIntVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< unsigned int,std::allocator< unsigned int > > *)std_vector_Sl_unsigned_SS_int_Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< unsigned int,std::allocator< unsigned int > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector___setitem__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UnsignedIntVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< unsigned int,std::allocator< unsigned int > > *ptr = (std::vector< unsigned int,std::allocator< unsigned int > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "UnsignedIntVector___setitem__" "', argument " "3"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "UnsignedIntVector___setitem__" "', argument " "3"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_unsigned_SS_int_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< unsigned int,std::allocator< unsigned int > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector___setitem__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UnsignedIntVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_unsigned_SS_int_Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector___delitem__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UnsignedIntVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_unsigned_SS_int_Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_UnsignedIntVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_UnsignedIntVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'UnsignedIntVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< unsigned int >::__delitem__(std::vector< unsigned int >::difference_type)\n"
    "    std::vector< unsigned int >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  std::vector< unsigned int >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< unsigned int >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector___getitem__" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnsignedIntVector___getitem__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< unsigned int >::value_type *) &std_vector_Sl_unsigned_SS_int_Sg____getitem____SWIG_1((std::vector< unsigned int > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_UnsignedIntVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_UnsignedIntVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'UnsignedIntVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< unsigned int >::__getitem__(PySliceObject *)\n"
    "    std::vector< unsigned int >::__getitem__(std::vector< unsigned int >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  std::vector< unsigned int >::difference_type arg2 ;
  std::vector< unsigned int >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  std::vector< unsigned int >::value_type temp3 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector___setitem__" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnsignedIntVector___setitem__" "', argument " "2"" of type '" "std::vector< unsigned int >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< unsigned int >::difference_type >(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UnsignedIntVector___setitem__" "', argument " "3"" of type '" "std::vector< unsigned int >::value_type""'");
  } 
  temp3 = static_cast< std::vector< unsigned int >::value_type >(val3);
  arg3 = &temp3;
  {
    try {
      try {
        std_vector_Sl_unsigned_SS_int_Sg____setitem____SWIG_2(arg1,arg2,(unsigned int const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_UnsignedIntVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_UnsignedIntVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(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_unsigned_SS_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_UnsignedIntVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'UnsignedIntVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< unsigned int >::__setitem__(PySliceObject *,std::vector< unsigned int,std::allocator< unsigned int > > const &)\n"
    "    std::vector< unsigned int >::__setitem__(PySliceObject *)\n"
    "    std::vector< unsigned int >::__setitem__(std::vector< unsigned int >::difference_type,std::vector< unsigned int >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< unsigned int >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_pop" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    try {
      try {
        result = (std::vector< unsigned int >::value_type)std_vector_Sl_unsigned_SS_int_Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  std::vector< unsigned int >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< unsigned int >::value_type temp2 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_append" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnsignedIntVector_append" "', argument " "2"" of type '" "std::vector< unsigned int >::value_type""'");
  } 
  temp2 = static_cast< std::vector< unsigned int >::value_type >(val2);
  arg2 = &temp2;
  {
    try {
      std_vector_Sl_unsigned_SS_int_Sg__append(arg1,(unsigned int const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UnsignedIntVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UnsignedIntVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< unsigned int > *)new std::vector< unsigned int >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UnsignedIntVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< unsigned int > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UnsignedIntVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< unsigned int,std::allocator< unsigned int > > *ptr = (std::vector< unsigned int,std::allocator< unsigned int > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_UnsignedIntVector" "', argument " "1"" of type '" "std::vector< unsigned int > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UnsignedIntVector" "', argument " "1"" of type '" "std::vector< unsigned int > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< unsigned int > *)new std::vector< unsigned int >((std::vector< unsigned int > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_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_UnsignedIntVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_empty" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    try {
      result = (bool)((std::vector< unsigned int > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< unsigned int >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_size" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    try {
      result = ((std::vector< unsigned int > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  std::vector< unsigned int > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_swap" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UnsignedIntVector_swap" "', argument " "2"" of type '" "std::vector< unsigned int > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "UnsignedIntVector_swap" "', argument " "2"" of type '" "std::vector< unsigned int > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< unsigned int > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< unsigned int >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_begin" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< unsigned int >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< unsigned int >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_end" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< unsigned int >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< unsigned int >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_rbegin" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< unsigned int >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< unsigned int >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_rend" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< unsigned int >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_clear" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< unsigned int > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_get_allocator" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    try {
      result = ((std::vector< unsigned int > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< unsigned int >::allocator_type(static_cast< const std::vector< unsigned int >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_unsigned_int_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UnsignedIntVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< unsigned int > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UnsignedIntVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UnsignedIntVector" "', argument " "1"" of type '" "std::vector< unsigned int >::size_type""'");
  } 
  arg1 = static_cast< std::vector< unsigned int >::size_type >(val1);
  {
    try {
      result = (std::vector< unsigned int > *)new std::vector< unsigned int >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_pop_back" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  std::vector< unsigned int >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_resize" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnsignedIntVector_resize" "', argument " "2"" of type '" "std::vector< unsigned int >::size_type""'");
  } 
  arg2 = static_cast< std::vector< unsigned int >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  std::vector< unsigned int >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< unsigned int >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_erase" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UnsignedIntVector_erase" "', argument " "2"" of type '" "std::vector< unsigned int >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UnsignedIntVector_erase" "', argument " "2"" of type '" "std::vector< unsigned int >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_unsigned_SS_int_Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< unsigned int >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  std::vector< unsigned int >::iterator arg2 ;
  std::vector< unsigned int >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< unsigned int >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_erase" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UnsignedIntVector_erase" "', argument " "2"" of type '" "std::vector< unsigned int >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UnsignedIntVector_erase" "', argument " "2"" of type '" "std::vector< unsigned int >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UnsignedIntVector_erase" "', argument " "3"" of type '" "std::vector< unsigned int >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UnsignedIntVector_erase" "', argument " "3"" of type '" "std::vector< unsigned int >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_unsigned_SS_int_Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< unsigned int >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(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< unsigned int >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_UnsignedIntVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(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< unsigned int >::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< unsigned int >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_UnsignedIntVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'UnsignedIntVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< unsigned int >::erase(std::vector< unsigned int >::iterator)\n"
    "    std::vector< unsigned int >::erase(std::vector< unsigned int >::iterator,std::vector< unsigned int >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_UnsignedIntVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int >::size_type arg1 ;
  std::vector< unsigned int >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  std::vector< unsigned int >::value_type temp2 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< unsigned int > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UnsignedIntVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UnsignedIntVector" "', argument " "1"" of type '" "std::vector< unsigned int >::size_type""'");
  } 
  arg1 = static_cast< std::vector< unsigned int >::size_type >(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_UnsignedIntVector" "', argument " "2"" of type '" "std::vector< unsigned int >::value_type""'");
  } 
  temp2 = static_cast< std::vector< unsigned int >::value_type >(val2);
  arg2 = &temp2;
  {
    try {
      result = (std::vector< unsigned int > *)new std::vector< unsigned int >(arg1,(std::vector< unsigned int >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UnsignedIntVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_UnsignedIntVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_UnsignedIntVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_UnsignedIntVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_UnsignedIntVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_UnsignedIntVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< unsigned int >::vector()\n"
    "    std::vector< unsigned int >::vector(std::vector< unsigned int > const &)\n"
    "    std::vector< unsigned int >::vector(std::vector< unsigned int >::size_type)\n"
    "    std::vector< unsigned int >::vector(std::vector< unsigned int >::size_type,std::vector< unsigned int >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  std::vector< unsigned int >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< unsigned int >::value_type temp2 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_push_back" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnsignedIntVector_push_back" "', argument " "2"" of type '" "std::vector< unsigned int >::value_type""'");
  } 
  temp2 = static_cast< std::vector< unsigned int >::value_type >(val2);
  arg2 = &temp2;
  {
    try {
      (arg1)->push_back((std::vector< unsigned int >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< unsigned int >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_front" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    try {
      result = (std::vector< unsigned int >::value_type *) &((std::vector< unsigned int > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< unsigned int >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_back" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    try {
      result = (std::vector< unsigned int >::value_type *) &((std::vector< unsigned int > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  std::vector< unsigned int >::size_type arg2 ;
  std::vector< unsigned int >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  std::vector< unsigned int >::value_type temp3 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_assign" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnsignedIntVector_assign" "', argument " "2"" of type '" "std::vector< unsigned int >::size_type""'");
  } 
  arg2 = static_cast< std::vector< unsigned int >::size_type >(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UnsignedIntVector_assign" "', argument " "3"" of type '" "std::vector< unsigned int >::value_type""'");
  } 
  temp3 = static_cast< std::vector< unsigned int >::value_type >(val3);
  arg3 = &temp3;
  {
    try {
      (arg1)->assign(arg2,(std::vector< unsigned int >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  std::vector< unsigned int >::size_type arg2 ;
  std::vector< unsigned int >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  std::vector< unsigned int >::value_type temp3 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_resize" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnsignedIntVector_resize" "', argument " "2"" of type '" "std::vector< unsigned int >::size_type""'");
  } 
  arg2 = static_cast< std::vector< unsigned int >::size_type >(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UnsignedIntVector_resize" "', argument " "3"" of type '" "std::vector< unsigned int >::value_type""'");
  } 
  temp3 = static_cast< std::vector< unsigned int >::value_type >(val3);
  arg3 = &temp3;
  {
    try {
      (arg1)->resize(arg2,(std::vector< unsigned int >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_UnsignedIntVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(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_AsVal_unsigned_SS_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_UnsignedIntVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'UnsignedIntVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< unsigned int >::resize(std::vector< unsigned int >::size_type)\n"
    "    std::vector< unsigned int >::resize(std::vector< unsigned int >::size_type,std::vector< unsigned int >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  std::vector< unsigned int >::iterator arg2 ;
  std::vector< unsigned int >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  std::vector< unsigned int >::value_type temp3 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< unsigned int >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_insert" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UnsignedIntVector_insert" "', argument " "2"" of type '" "std::vector< unsigned int >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UnsignedIntVector_insert" "', argument " "2"" of type '" "std::vector< unsigned int >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UnsignedIntVector_insert" "', argument " "3"" of type '" "std::vector< unsigned int >::value_type""'");
  } 
  temp3 = static_cast< std::vector< unsigned int >::value_type >(val3);
  arg3 = &temp3;
  {
    try {
      result = std_vector_Sl_unsigned_SS_int_Sg__insert__SWIG_0(arg1,arg2,(unsigned int const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< unsigned int >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  std::vector< unsigned int >::iterator arg2 ;
  std::vector< unsigned int >::size_type arg3 ;
  std::vector< unsigned int >::value_type *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  std::vector< unsigned int >::value_type temp4 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_insert" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UnsignedIntVector_insert" "', argument " "2"" of type '" "std::vector< unsigned int >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< unsigned int >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "UnsignedIntVector_insert" "', argument " "2"" of type '" "std::vector< unsigned int >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UnsignedIntVector_insert" "', argument " "3"" of type '" "std::vector< unsigned int >::size_type""'");
  } 
  arg3 = static_cast< std::vector< unsigned int >::size_type >(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "UnsignedIntVector_insert" "', argument " "4"" of type '" "std::vector< unsigned int >::value_type""'");
  } 
  temp4 = static_cast< std::vector< unsigned int >::value_type >(val4);
  arg4 = &temp4;
  {
    try {
      std_vector_Sl_unsigned_SS_int_Sg__insert__SWIG_1(arg1,arg2,arg3,(unsigned int const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(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< unsigned int >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_UnsignedIntVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(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< unsigned int >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_UnsignedIntVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'UnsignedIntVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< unsigned int >::insert(std::vector< unsigned int >::iterator,std::vector< unsigned int >::value_type const &)\n"
    "    std::vector< unsigned int >::insert(std::vector< unsigned int >::iterator,std::vector< unsigned int >::size_type,std::vector< unsigned int >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  std::vector< unsigned int >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_reserve" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnsignedIntVector_reserve" "', argument " "2"" of type '" "std::vector< unsigned int >::size_type""'");
  } 
  arg2 = static_cast< std::vector< unsigned int >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UnsignedIntVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< unsigned int >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UnsignedIntVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnsignedIntVector_capacity" "', argument " "1"" of type '" "std::vector< unsigned int > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    try {
      result = ((std::vector< unsigned int > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_UnsignedIntVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< unsigned int > *arg1 = (std::vector< unsigned int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_UnsignedIntVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_UnsignedIntVector" "', argument " "1"" of type '" "std::vector< unsigned int > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< unsigned int > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *UnsignedIntVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_DoubleVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_iterator" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_double_Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___nonzero__" "', argument " "1"" of type '" "std::vector< double > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_double_Sg____nonzero__((std::vector< double > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___bool__" "', argument " "1"" of type '" "std::vector< double > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_double_Sg____bool__((std::vector< double > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< double >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___len__" "', argument " "1"" of type '" "std::vector< double > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    try {
      result = std_vector_Sl_double_Sg____len__((std::vector< double > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  std::vector< double >::difference_type arg2 ;
  std::vector< double >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< double,std::allocator< double > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___getslice__" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___getslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< double >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector___getslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< double >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< double,std::allocator< double > > *)std_vector_Sl_double_Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  std::vector< double >::difference_type arg2 ;
  std::vector< double >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___setslice__" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___setslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< double >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector___setslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< double >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_double_Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  std::vector< double >::difference_type arg2 ;
  std::vector< double >::difference_type arg3 ;
  std::vector< double,std::allocator< double > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___setslice__" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___setslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< double >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector___setslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< double >::difference_type >(val3);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DoubleVector___setslice__" "', argument " "4"" of type '" "std::vector< double,std::allocator< double > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleVector___setslice__" "', argument " "4"" of type '" "std::vector< double,std::allocator< double > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_double_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< double,std::allocator< double > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(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_DoubleVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(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< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_DoubleVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DoubleVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< double >::__setslice__(std::vector< double >::difference_type,std::vector< double >::difference_type)\n"
    "    std::vector< double >::__setslice__(std::vector< double >::difference_type,std::vector< double >::difference_type,std::vector< double,std::allocator< double > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DoubleVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  std::vector< double >::difference_type arg2 ;
  std::vector< double >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___delslice__" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___delslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< double >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector___delslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< double >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_double_Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  std::vector< double >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___delitem__" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___delitem__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< double >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_double_Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< double,std::allocator< double > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___getitem__" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< double,std::allocator< double > > *)std_vector_Sl_double_Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< double,std::allocator< double > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___setitem__" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DoubleVector___setitem__" "', argument " "3"" of type '" "std::vector< double,std::allocator< double > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleVector___setitem__" "', argument " "3"" of type '" "std::vector< double,std::allocator< double > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_double_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< double,std::allocator< double > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___setitem__" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_double_Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___delitem__" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_double_Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_DoubleVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DoubleVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DoubleVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< double >::__delitem__(std::vector< double >::difference_type)\n"
    "    std::vector< double >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DoubleVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  std::vector< double >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< double >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___getitem__" "', argument " "1"" of type '" "std::vector< double > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___getitem__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< double >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< double >::value_type *) &std_vector_Sl_double_Sg____getitem____SWIG_1((std::vector< double > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_DoubleVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DoubleVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DoubleVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< double >::__getitem__(PySliceObject *)\n"
    "    std::vector< double >::__getitem__(std::vector< double >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DoubleVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  std::vector< double >::difference_type arg2 ;
  std::vector< double >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  std::vector< double >::value_type temp3 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___setitem__" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___setitem__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< double >::difference_type >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector___setitem__" "', argument " "3"" of type '" "std::vector< double >::value_type""'");
  } 
  temp3 = static_cast< std::vector< double >::value_type >(val3);
  arg3 = &temp3;
  {
    try {
      try {
        std_vector_Sl_double_Sg____setitem____SWIG_2(arg1,arg2,(double const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_DoubleVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DoubleVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(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_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DoubleVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DoubleVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< double >::__setitem__(PySliceObject *,std::vector< double,std::allocator< double > > const &)\n"
    "    std::vector< double >::__setitem__(PySliceObject *)\n"
    "    std::vector< double >::__setitem__(std::vector< double >::difference_type,std::vector< double >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DoubleVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< double >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_pop" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    try {
      try {
        result = (std::vector< double >::value_type)std_vector_Sl_double_Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  std::vector< double >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< double >::value_type temp2 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_append" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_append" "', argument " "2"" of type '" "std::vector< double >::value_type""'");
  } 
  temp2 = static_cast< std::vector< double >::value_type >(val2);
  arg2 = &temp2;
  {
    try {
      std_vector_Sl_double_Sg__append(arg1,(double const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DoubleVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DoubleVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< double > *)new std::vector< double >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DoubleVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< double > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DoubleVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DoubleVector" "', argument " "1"" of type '" "std::vector< double > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DoubleVector" "', argument " "1"" of type '" "std::vector< double > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< double > *)new std::vector< double >((std::vector< double > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_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_DoubleVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_empty" "', argument " "1"" of type '" "std::vector< double > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    try {
      result = (bool)((std::vector< double > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< double >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_size" "', argument " "1"" of type '" "std::vector< double > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    try {
      result = ((std::vector< double > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  std::vector< double > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_swap" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DoubleVector_swap" "', argument " "2"" of type '" "std::vector< double > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleVector_swap" "', argument " "2"" of type '" "std::vector< double > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< double > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< double >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_begin" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< double >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_end" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< double >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_rbegin" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< double >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_rend" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_clear" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_get_allocator" "', argument " "1"" of type '" "std::vector< double > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    try {
      result = ((std::vector< double > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< double >::allocator_type(static_cast< const std::vector< double >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_double_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DoubleVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< double > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DoubleVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DoubleVector" "', argument " "1"" of type '" "std::vector< double >::size_type""'");
  } 
  arg1 = static_cast< std::vector< double >::size_type >(val1);
  {
    try {
      result = (std::vector< double > *)new std::vector< double >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_pop_back" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  std::vector< double >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_resize" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_resize" "', argument " "2"" of type '" "std::vector< double >::size_type""'");
  } 
  arg2 = static_cast< std::vector< double >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  std::vector< double >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< double >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_erase" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< double >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_double_Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  std::vector< double >::iterator arg2 ;
  std::vector< double >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< double >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_erase" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< double >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "3"" of type '" "std::vector< double >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< double >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "3"" of type '" "std::vector< double >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_double_Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(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< double >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_DoubleVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(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< double >::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< double >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_DoubleVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DoubleVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< double >::erase(std::vector< double >::iterator)\n"
    "    std::vector< double >::erase(std::vector< double >::iterator,std::vector< double >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_DoubleVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double >::size_type arg1 ;
  std::vector< double >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  std::vector< double >::value_type temp2 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< double > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DoubleVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DoubleVector" "', argument " "1"" of type '" "std::vector< double >::size_type""'");
  } 
  arg1 = static_cast< std::vector< double >::size_type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DoubleVector" "', argument " "2"" of type '" "std::vector< double >::value_type""'");
  } 
  temp2 = static_cast< std::vector< double >::value_type >(val2);
  arg2 = &temp2;
  {
    try {
      result = (std::vector< double > *)new std::vector< double >(arg1,(std::vector< double >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DoubleVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_DoubleVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_DoubleVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_DoubleVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_DoubleVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DoubleVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< double >::vector()\n"
    "    std::vector< double >::vector(std::vector< double > const &)\n"
    "    std::vector< double >::vector(std::vector< double >::size_type)\n"
    "    std::vector< double >::vector(std::vector< double >::size_type,std::vector< double >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DoubleVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  std::vector< double >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< double >::value_type temp2 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_push_back" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_push_back" "', argument " "2"" of type '" "std::vector< double >::value_type""'");
  } 
  temp2 = static_cast< std::vector< double >::value_type >(val2);
  arg2 = &temp2;
  {
    try {
      (arg1)->push_back((std::vector< double >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< double >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_front" "', argument " "1"" of type '" "std::vector< double > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    try {
      result = (std::vector< double >::value_type *) &((std::vector< double > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< double >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_back" "', argument " "1"" of type '" "std::vector< double > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    try {
      result = (std::vector< double >::value_type *) &((std::vector< double > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  std::vector< double >::size_type arg2 ;
  std::vector< double >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  std::vector< double >::value_type temp3 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_assign" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_assign" "', argument " "2"" of type '" "std::vector< double >::size_type""'");
  } 
  arg2 = static_cast< std::vector< double >::size_type >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector_assign" "', argument " "3"" of type '" "std::vector< double >::value_type""'");
  } 
  temp3 = static_cast< std::vector< double >::value_type >(val3);
  arg3 = &temp3;
  {
    try {
      (arg1)->assign(arg2,(std::vector< double >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  std::vector< double >::size_type arg2 ;
  std::vector< double >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  std::vector< double >::value_type temp3 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_resize" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_resize" "', argument " "2"" of type '" "std::vector< double >::size_type""'");
  } 
  arg2 = static_cast< std::vector< double >::size_type >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector_resize" "', argument " "3"" of type '" "std::vector< double >::value_type""'");
  } 
  temp3 = static_cast< std::vector< double >::value_type >(val3);
  arg3 = &temp3;
  {
    try {
      (arg1)->resize(arg2,(std::vector< double >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DoubleVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(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_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DoubleVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DoubleVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< double >::resize(std::vector< double >::size_type)\n"
    "    std::vector< double >::resize(std::vector< double >::size_type,std::vector< double >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DoubleVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  std::vector< double >::iterator arg2 ;
  std::vector< double >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  std::vector< double >::value_type temp3 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< double >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_insert" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< double >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector_insert" "', argument " "3"" of type '" "std::vector< double >::value_type""'");
  } 
  temp3 = static_cast< std::vector< double >::value_type >(val3);
  arg3 = &temp3;
  {
    try {
      result = std_vector_Sl_double_Sg__insert__SWIG_0(arg1,arg2,(double const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  std::vector< double >::iterator arg2 ;
  std::vector< double >::size_type arg3 ;
  std::vector< double >::value_type *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  std::vector< double >::value_type temp4 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_insert" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< double >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector_insert" "', argument " "3"" of type '" "std::vector< double >::size_type""'");
  } 
  arg3 = static_cast< std::vector< double >::size_type >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DoubleVector_insert" "', argument " "4"" of type '" "std::vector< double >::value_type""'");
  } 
  temp4 = static_cast< std::vector< double >::value_type >(val4);
  arg4 = &temp4;
  {
    try {
      std_vector_Sl_double_Sg__insert__SWIG_1(arg1,arg2,arg3,(double const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(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< double >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DoubleVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(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< double >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_DoubleVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DoubleVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< double >::insert(std::vector< double >::iterator,std::vector< double >::value_type const &)\n"
    "    std::vector< double >::insert(std::vector< double >::iterator,std::vector< double >::size_type,std::vector< double >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DoubleVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  std::vector< double >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_reserve" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_reserve" "', argument " "2"" of type '" "std::vector< double >::size_type""'");
  } 
  arg2 = static_cast< std::vector< double >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< double >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_capacity" "', argument " "1"" of type '" "std::vector< double > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    try {
      result = ((std::vector< double > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DoubleVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< double > *arg1 = (std::vector< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DoubleVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DoubleVector" "', argument " "1"" of type '" "std::vector< double > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< double > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DoubleVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_StrVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_iterator" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_std_string_Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector___nonzero__" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_std_string_Sg____nonzero__((std::vector< std::string > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector___bool__" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_std_string_Sg____bool__((std::vector< std::string > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::string >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector___len__" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    try {
      result = std_vector_Sl_std_string_Sg____len__((std::vector< std::string > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  std::vector< std::string >::difference_type arg2 ;
  std::vector< std::string >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< std::string,std::allocator< std::string > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector___getslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StrVector___getslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::string >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StrVector___getslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::string >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< std::string,std::allocator< std::string > > *)std_vector_Sl_std_string_Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(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_StrVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  std::vector< std::string >::difference_type arg2 ;
  std::vector< std::string >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector___setslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StrVector___setslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::string >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StrVector___setslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::string >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_std_string_Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  std::vector< std::string >::difference_type arg2 ;
  std::vector< std::string >::difference_type arg3 ;
  std::vector< std::string,std::allocator< std::string > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector___setslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StrVector___setslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::string >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StrVector___setslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::string >::difference_type >(val3);
  {
    std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StrVector___setslice__" "', argument " "4"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StrVector___setslice__" "', argument " "4"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_std_string_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< std::string,std::allocator< std::string > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(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_StrVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(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::string,std::allocator< std::string > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_StrVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StrVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::string >::__setslice__(std::vector< std::string >::difference_type,std::vector< std::string >::difference_type)\n"
    "    std::vector< std::string >::__setslice__(std::vector< std::string >::difference_type,std::vector< std::string >::difference_type,std::vector< std::string,std::allocator< std::string > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_StrVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  std::vector< std::string >::difference_type arg2 ;
  std::vector< std::string >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector___delslice__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StrVector___delslice__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::string >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StrVector___delslice__" "', argument " "3"" of type '" "std::vector< std::string >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::string >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_std_string_Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  std::vector< std::string >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector___delitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StrVector___delitem__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::string >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_std_string_Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::string,std::allocator< std::string > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector___getitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StrVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< std::string,std::allocator< std::string > > *)std_vector_Sl_std_string_Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(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_StrVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< std::string,std::allocator< std::string > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector___setitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StrVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StrVector___setitem__" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StrVector___setitem__" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_std_string_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::string,std::allocator< std::string > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector___setitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StrVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_std_string_Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector___delitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StrVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_std_string_Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_StrVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_StrVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StrVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::string >::__delitem__(std::vector< std::string >::difference_type)\n"
    "    std::vector< std::string >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_StrVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  std::vector< std::string >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::string >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector___getitem__" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StrVector___getitem__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::string >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< std::string >::value_type *) &std_vector_Sl_std_string_Sg____getitem____SWIG_1((std::vector< std::string > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_StrVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_StrVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StrVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::string >::__getitem__(PySliceObject *)\n"
    "    std::vector< std::string >::__getitem__(std::vector< std::string >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_StrVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  std::vector< std::string >::difference_type arg2 ;
  std::vector< std::string >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector___setitem__" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StrVector___setitem__" "', argument " "2"" of type '" "std::vector< std::string >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::string >::difference_type >(val2);
  {
    std::string *ptr = (std::string *)0;
    res3 = SWIG_AsPtr_std_string(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StrVector___setitem__" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StrVector___setitem__" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_std_string_Sg____setitem____SWIG_2(arg1,arg2,(std::string const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_StrVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< std::string,std::allocator< std::string > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_StrVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(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_AsPtr_std_string(argv[2], (std::string**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_StrVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StrVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::string >::__setitem__(PySliceObject *,std::vector< std::string,std::allocator< std::string > > const &)\n"
    "    std::vector< std::string >::__setitem__(PySliceObject *)\n"
    "    std::vector< std::string >::__setitem__(std::vector< std::string >::difference_type,std::vector< std::string >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_StrVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::string >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_pop" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_std_string_Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  std::vector< std::string >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_append" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StrVector_append" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StrVector_append" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      std_vector_Sl_std_string_Sg__append(arg1,(std::string const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_StrVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_StrVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< std::string > *)new std::vector< std::string >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_StrVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< std::string > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_StrVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StrVector" "', argument " "1"" of type '" "std::vector< std::string > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StrVector" "', argument " "1"" of type '" "std::vector< std::string > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< std::string > *)new std::vector< std::string >((std::vector< std::string > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_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_StrVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_empty" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    try {
      result = (bool)((std::vector< std::string > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::string >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_size" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    try {
      result = ((std::vector< std::string > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  std::vector< std::string > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_swap" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StrVector_swap" "', argument " "2"" of type '" "std::vector< std::string > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StrVector_swap" "', argument " "2"" of type '" "std::vector< std::string > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::string > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::string >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_begin" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::string >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_end" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::string >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_rbegin" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::string >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_rend" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_clear" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< std::string > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_get_allocator" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    try {
      result = ((std::vector< std::string > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::string >::allocator_type(static_cast< const std::vector< std::string >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__string_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_StrVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::string > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_StrVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StrVector" "', argument " "1"" of type '" "std::vector< std::string >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::string >::size_type >(val1);
  {
    try {
      result = (std::vector< std::string > *)new std::vector< std::string >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_pop_back" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  std::vector< std::string >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_resize" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StrVector_resize" "', argument " "2"" of type '" "std::vector< std::string >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::string >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  std::vector< std::string >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::string >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_erase" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StrVector_erase" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::string >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::string >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StrVector_erase" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_std_string_Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  std::vector< std::string >::iterator arg2 ;
  std::vector< std::string >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< std::string >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_erase" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StrVector_erase" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::string >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::string >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StrVector_erase" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StrVector_erase" "', argument " "3"" of type '" "std::vector< std::string >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::string >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::string >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StrVector_erase" "', argument " "3"" of type '" "std::vector< std::string >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_std_string_Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< 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::vector< std::string >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_StrVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< 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::vector< 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::vector< std::string >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_StrVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StrVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::string >::erase(std::vector< std::string >::iterator)\n"
    "    std::vector< std::string >::erase(std::vector< std::string >::iterator,std::vector< std::string >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_StrVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string >::size_type arg1 ;
  std::vector< std::string >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::string > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_StrVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StrVector" "', argument " "1"" of type '" "std::vector< std::string >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::string >::size_type >(val1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_StrVector" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StrVector" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      result = (std::vector< std::string > *)new std::vector< std::string >(arg1,(std::vector< std::string >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_StrVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_StrVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_StrVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_StrVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _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_new_StrVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_StrVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::string >::vector()\n"
    "    std::vector< std::string >::vector(std::vector< std::string > const &)\n"
    "    std::vector< std::string >::vector(std::vector< std::string >::size_type)\n"
    "    std::vector< std::string >::vector(std::vector< std::string >::size_type,std::vector< std::string >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_StrVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  std::vector< std::string >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_push_back" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StrVector_push_back" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StrVector_push_back" "', argument " "2"" of type '" "std::vector< std::string >::value_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      (arg1)->push_back((std::vector< std::string >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::string >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_front" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    try {
      result = (std::vector< std::string >::value_type *) &((std::vector< std::string > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::string >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_back" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    try {
      result = (std::vector< std::string >::value_type *) &((std::vector< std::string > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  std::vector< std::string >::size_type arg2 ;
  std::vector< std::string >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_assign" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StrVector_assign" "', argument " "2"" of type '" "std::vector< std::string >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::string >::size_type >(val2);
  {
    std::string *ptr = (std::string *)0;
    res3 = SWIG_AsPtr_std_string(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StrVector_assign" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StrVector_assign" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      (arg1)->assign(arg2,(std::vector< std::string >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  std::vector< std::string >::size_type arg2 ;
  std::vector< std::string >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_resize" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StrVector_resize" "', argument " "2"" of type '" "std::vector< std::string >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::string >::size_type >(val2);
  {
    std::string *ptr = (std::string *)0;
    res3 = SWIG_AsPtr_std_string(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StrVector_resize" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StrVector_resize" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      (arg1)->resize(arg2,(std::vector< std::string >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_StrVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(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_AsPtr_std_string(argv[2], (std::string**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_StrVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StrVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::string >::resize(std::vector< std::string >::size_type)\n"
    "    std::vector< std::string >::resize(std::vector< std::string >::size_type,std::vector< std::string >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_StrVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  std::vector< std::string >::iterator arg2 ;
  std::vector< std::string >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< std::string >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_insert" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StrVector_insert" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::string >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::string >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StrVector_insert" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'");
    }
  }
  {
    std::string *ptr = (std::string *)0;
    res3 = SWIG_AsPtr_std_string(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StrVector_insert" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StrVector_insert" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      result = std_vector_Sl_std_string_Sg__insert__SWIG_0(arg1,arg2,(std::string const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::string >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  std::vector< std::string >::iterator arg2 ;
  std::vector< std::string >::size_type arg3 ;
  std::vector< std::string >::value_type *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_insert" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StrVector_insert" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::string >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::string >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StrVector_insert" "', argument " "2"" of type '" "std::vector< std::string >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StrVector_insert" "', argument " "3"" of type '" "std::vector< std::string >::size_type""'");
  } 
  arg3 = static_cast< std::vector< std::string >::size_type >(val3);
  {
    std::string *ptr = (std::string *)0;
    res4 = SWIG_AsPtr_std_string(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StrVector_insert" "', argument " "4"" of type '" "std::vector< std::string >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StrVector_insert" "', argument " "4"" of type '" "std::vector< std::string >::value_type const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      std_vector_Sl_std_string_Sg__insert__SWIG_1(arg1,arg2,arg3,(std::string const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< 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::vector< std::string >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_StrVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< 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::vector< std::string >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_StrVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StrVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::string >::insert(std::vector< std::string >::iterator,std::vector< std::string >::value_type const &)\n"
    "    std::vector< std::string >::insert(std::vector< std::string >::iterator,std::vector< std::string >::size_type,std::vector< std::string >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_StrVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  std::vector< std::string >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_reserve" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StrVector_reserve" "', argument " "2"" of type '" "std::vector< std::string >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::string >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::string >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrVector_capacity" "', argument " "1"" of type '" "std::vector< std::string > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    try {
      result = ((std::vector< std::string > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_StrVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_StrVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StrVector" "', argument " "1"" of type '" "std::vector< std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *StrVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_BoolVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_iterator" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_bool_Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector___nonzero__" "', argument " "1"" of type '" "std::vector< bool > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_bool_Sg____nonzero__((std::vector< bool > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector___bool__" "', argument " "1"" of type '" "std::vector< bool > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_bool_Sg____bool__((std::vector< bool > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< bool >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector___len__" "', argument " "1"" of type '" "std::vector< bool > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    try {
      result = std_vector_Sl_bool_Sg____len__((std::vector< bool > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  std::vector< bool >::difference_type arg2 ;
  std::vector< bool >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< bool,std::allocator< bool > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector___getslice__" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BoolVector___getslice__" "', argument " "2"" of type '" "std::vector< bool >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< bool >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BoolVector___getslice__" "', argument " "3"" of type '" "std::vector< bool >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< bool >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< bool,std::allocator< bool > > *)std_vector_Sl_bool_Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  std::vector< bool >::difference_type arg2 ;
  std::vector< bool >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector___setslice__" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BoolVector___setslice__" "', argument " "2"" of type '" "std::vector< bool >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< bool >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BoolVector___setslice__" "', argument " "3"" of type '" "std::vector< bool >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< bool >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_bool_Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  std::vector< bool >::difference_type arg2 ;
  std::vector< bool >::difference_type arg3 ;
  std::vector< bool,std::allocator< bool > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector___setslice__" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BoolVector___setslice__" "', argument " "2"" of type '" "std::vector< bool >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< bool >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BoolVector___setslice__" "', argument " "3"" of type '" "std::vector< bool >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< bool >::difference_type >(val3);
  {
    std::vector<bool,std::allocator< bool > > *ptr = (std::vector<bool,std::allocator< bool > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BoolVector___setslice__" "', argument " "4"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BoolVector___setslice__" "', argument " "4"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_bool_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< bool,std::allocator< bool > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector<bool,std::allocator< bool > >**)(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_BoolVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector<bool,std::allocator< bool > >**)(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<bool,std::allocator< bool > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_BoolVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BoolVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< bool >::__setslice__(std::vector< bool >::difference_type,std::vector< bool >::difference_type)\n"
    "    std::vector< bool >::__setslice__(std::vector< bool >::difference_type,std::vector< bool >::difference_type,std::vector< bool,std::allocator< bool > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BoolVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  std::vector< bool >::difference_type arg2 ;
  std::vector< bool >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector___delslice__" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BoolVector___delslice__" "', argument " "2"" of type '" "std::vector< bool >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< bool >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BoolVector___delslice__" "', argument " "3"" of type '" "std::vector< bool >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< bool >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_bool_Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  std::vector< bool >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector___delitem__" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BoolVector___delitem__" "', argument " "2"" of type '" "std::vector< bool >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< bool >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_bool_Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< bool,std::allocator< bool > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector___getitem__" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BoolVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< bool,std::allocator< bool > > *)std_vector_Sl_bool_Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< bool,std::allocator< bool > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector___setitem__" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BoolVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector<bool,std::allocator< bool > > *ptr = (std::vector<bool,std::allocator< bool > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BoolVector___setitem__" "', argument " "3"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BoolVector___setitem__" "', argument " "3"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_bool_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< bool,std::allocator< bool > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector___setitem__" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BoolVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_bool_Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector___delitem__" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BoolVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_bool_Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector<bool,std::allocator< bool > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_BoolVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector<bool,std::allocator< bool > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_BoolVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BoolVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< bool >::__delitem__(std::vector< bool >::difference_type)\n"
    "    std::vector< bool >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BoolVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  std::vector< bool >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< bool >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector___getitem__" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BoolVector___getitem__" "', argument " "2"" of type '" "std::vector< bool >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< bool >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< bool >::value_type)std_vector_Sl_bool_Sg____getitem____SWIG_1(arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector<bool,std::allocator< bool > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_BoolVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector<bool,std::allocator< bool > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_BoolVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BoolVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< bool >::__getitem__(PySliceObject *)\n"
    "    std::vector< bool >::__getitem__(std::vector< bool >::difference_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BoolVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  std::vector< bool >::difference_type arg2 ;
  std::vector< bool >::value_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector___setitem__" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BoolVector___setitem__" "', argument " "2"" of type '" "std::vector< bool >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< bool >::difference_type >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BoolVector___setitem__" "', argument " "3"" of type '" "std::vector< bool >::value_type""'");
  } 
  arg3 = static_cast< std::vector< bool >::value_type >(val3);
  {
    try {
      try {
        std_vector_Sl_bool_Sg____setitem____SWIG_2(arg1,arg2,arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector<bool,std::allocator< bool > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_BoolVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector<bool,std::allocator< bool > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector<bool,std::allocator< bool > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_BoolVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector<bool,std::allocator< bool > >**)(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_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_BoolVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BoolVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< bool >::__setitem__(PySliceObject *,std::vector< bool,std::allocator< bool > > const &)\n"
    "    std::vector< bool >::__setitem__(PySliceObject *)\n"
    "    std::vector< bool >::__setitem__(std::vector< bool >::difference_type,std::vector< bool >::value_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BoolVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< bool >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_pop" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    try {
      try {
        result = (std::vector< bool >::value_type)std_vector_Sl_bool_Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  std::vector< bool >::value_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_append" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BoolVector_append" "', argument " "2"" of type '" "std::vector< bool >::value_type""'");
  } 
  arg2 = static_cast< std::vector< bool >::value_type >(val2);
  {
    try {
      std_vector_Sl_bool_Sg__append(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BoolVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BoolVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< bool > *)new std::vector< bool >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BoolVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< bool > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BoolVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector<bool,std::allocator< bool > > *ptr = (std::vector<bool,std::allocator< bool > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BoolVector" "', argument " "1"" of type '" "std::vector< bool > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BoolVector" "', argument " "1"" of type '" "std::vector< bool > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< bool > *)new std::vector< bool >((std::vector< bool > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_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_BoolVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_empty" "', argument " "1"" of type '" "std::vector< bool > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    try {
      result = (bool)((std::vector< bool > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< bool >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_size" "', argument " "1"" of type '" "std::vector< bool > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    try {
      result = ((std::vector< bool > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  std::vector< bool > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_swap" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BoolVector_swap" "', argument " "2"" of type '" "std::vector< bool > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BoolVector_swap" "', argument " "2"" of type '" "std::vector< bool > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< bool > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< bool >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_begin" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< bool >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< bool >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_end" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< bool >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< bool >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_rbegin" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< bool >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< bool >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_rend" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< bool >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_clear" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< bool > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_get_allocator" "', argument " "1"" of type '" "std::vector< bool > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    try {
      result = ((std::vector< bool > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< bool >::allocator_type(static_cast< const std::vector< bool >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_bool_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BoolVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< bool > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BoolVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BoolVector" "', argument " "1"" of type '" "std::vector< bool >::size_type""'");
  } 
  arg1 = static_cast< std::vector< bool >::size_type >(val1);
  {
    try {
      result = (std::vector< bool > *)new std::vector< bool >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_pop_back" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  std::vector< bool >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_resize" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BoolVector_resize" "', argument " "2"" of type '" "std::vector< bool >::size_type""'");
  } 
  arg2 = static_cast< std::vector< bool >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  std::vector< bool >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< bool >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_erase" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BoolVector_erase" "', argument " "2"" of type '" "std::vector< bool >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< bool >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< bool >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BoolVector_erase" "', argument " "2"" of type '" "std::vector< bool >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_bool_Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< bool >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  std::vector< bool >::iterator arg2 ;
  std::vector< bool >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< bool >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_erase" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BoolVector_erase" "', argument " "2"" of type '" "std::vector< bool >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< bool >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< bool >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BoolVector_erase" "', argument " "2"" of type '" "std::vector< bool >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BoolVector_erase" "', argument " "3"" of type '" "std::vector< bool >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< bool >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< bool >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BoolVector_erase" "', argument " "3"" of type '" "std::vector< bool >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_bool_Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< bool >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector<bool,std::allocator< bool > >**)(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< bool >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_BoolVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector<bool,std::allocator< bool > >**)(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< bool >::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< bool >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_BoolVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BoolVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< bool >::erase(std::vector< bool >::iterator)\n"
    "    std::vector< bool >::erase(std::vector< bool >::iterator,std::vector< bool >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_BoolVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool >::size_type arg1 ;
  std::vector< bool >::value_type arg2 ;
  size_t val1 ;
  int ecode1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< bool > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BoolVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BoolVector" "', argument " "1"" of type '" "std::vector< bool >::size_type""'");
  } 
  arg1 = static_cast< std::vector< bool >::size_type >(val1);
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BoolVector" "', argument " "2"" of type '" "std::vector< bool >::value_type""'");
  } 
  arg2 = static_cast< std::vector< bool >::value_type >(val2);
  {
    try {
      result = (std::vector< bool > *)new std::vector< bool >(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BoolVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_BoolVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_BoolVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector<bool,std::allocator< bool > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_BoolVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_BoolVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BoolVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< bool >::vector()\n"
    "    std::vector< bool >::vector(std::vector< bool > const &)\n"
    "    std::vector< bool >::vector(std::vector< bool >::size_type)\n"
    "    std::vector< bool >::vector(std::vector< bool >::size_type,std::vector< bool >::value_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BoolVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  std::vector< bool >::value_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_push_back" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BoolVector_push_back" "', argument " "2"" of type '" "std::vector< bool >::value_type""'");
  } 
  arg2 = static_cast< std::vector< bool >::value_type >(val2);
  {
    try {
      (arg1)->push_back(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< bool >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_front" "', argument " "1"" of type '" "std::vector< bool > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    try {
      result = (std::vector< bool >::value_type)((std::vector< bool > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< bool >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_back" "', argument " "1"" of type '" "std::vector< bool > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    try {
      result = (std::vector< bool >::value_type)((std::vector< bool > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  std::vector< bool >::size_type arg2 ;
  std::vector< bool >::value_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_assign" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BoolVector_assign" "', argument " "2"" of type '" "std::vector< bool >::size_type""'");
  } 
  arg2 = static_cast< std::vector< bool >::size_type >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BoolVector_assign" "', argument " "3"" of type '" "std::vector< bool >::value_type""'");
  } 
  arg3 = static_cast< std::vector< bool >::value_type >(val3);
  {
    try {
      (arg1)->assign(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  std::vector< bool >::size_type arg2 ;
  std::vector< bool >::value_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_resize" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BoolVector_resize" "', argument " "2"" of type '" "std::vector< bool >::size_type""'");
  } 
  arg2 = static_cast< std::vector< bool >::size_type >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BoolVector_resize" "', argument " "3"" of type '" "std::vector< bool >::value_type""'");
  } 
  arg3 = static_cast< std::vector< bool >::value_type >(val3);
  {
    try {
      (arg1)->resize(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector<bool,std::allocator< bool > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_BoolVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector<bool,std::allocator< bool > >**)(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_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_BoolVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BoolVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< bool >::resize(std::vector< bool >::size_type)\n"
    "    std::vector< bool >::resize(std::vector< bool >::size_type,std::vector< bool >::value_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BoolVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  std::vector< bool >::iterator arg2 ;
  std::vector< bool >::value_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< bool >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_insert" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BoolVector_insert" "', argument " "2"" of type '" "std::vector< bool >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< bool >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< bool >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BoolVector_insert" "', argument " "2"" of type '" "std::vector< bool >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BoolVector_insert" "', argument " "3"" of type '" "std::vector< bool >::value_type""'");
  } 
  arg3 = static_cast< std::vector< bool >::value_type >(val3);
  {
    try {
      result = std_vector_Sl_bool_Sg__insert__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< bool >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  std::vector< bool >::iterator arg2 ;
  std::vector< bool >::size_type arg3 ;
  std::vector< bool >::value_type arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_insert" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BoolVector_insert" "', argument " "2"" of type '" "std::vector< bool >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< bool >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< bool >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BoolVector_insert" "', argument " "2"" of type '" "std::vector< bool >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BoolVector_insert" "', argument " "3"" of type '" "std::vector< bool >::size_type""'");
  } 
  arg3 = static_cast< std::vector< bool >::size_type >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BoolVector_insert" "', argument " "4"" of type '" "std::vector< bool >::value_type""'");
  } 
  arg4 = static_cast< std::vector< bool >::value_type >(val4);
  {
    try {
      std_vector_Sl_bool_Sg__insert__SWIG_1(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector<bool,std::allocator< bool > >**)(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< bool >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_BoolVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector<bool,std::allocator< bool > >**)(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< bool >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BoolVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BoolVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< bool >::insert(std::vector< bool >::iterator,std::vector< bool >::value_type)\n"
    "    std::vector< bool >::insert(std::vector< bool >::iterator,std::vector< bool >::size_type,std::vector< bool >::value_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BoolVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  std::vector< bool >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_reserve" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BoolVector_reserve" "', argument " "2"" of type '" "std::vector< bool >::size_type""'");
  } 
  arg2 = static_cast< std::vector< bool >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoolVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< bool >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoolVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoolVector_capacity" "', argument " "1"" of type '" "std::vector< bool > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    try {
      result = ((std::vector< bool > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BoolVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< bool > *arg1 = (std::vector< bool > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BoolVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BoolVector" "', argument " "1"" of type '" "std::vector< bool > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< bool > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BoolVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_NodePair__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::pair< Date,double > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NodePair",0,0)) SWIG_fail;
  {
    try {
      result = (std::pair< Date,double > *)new std::pair< Date,double >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__pairT_Date_double_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NodePair__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date arg1 ;
  double arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::pair< Date,double > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NodePair",2,2,&obj0,&obj1)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NodePair" "', argument " "1"" of type '" "Date""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NodePair" "', argument " "1"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NodePair" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = static_cast< double >(val2);
  {
    try {
      result = (std::pair< Date,double > *)new std::pair< Date,double >(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__pairT_Date_double_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NodePair__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::pair< Date,double > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::pair< Date,double > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NodePair",1,1,&obj0)) SWIG_fail;
  {
    std::pair< Date,double > *ptr = (std::pair< Date,double > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NodePair" "', argument " "1"" of type '" "std::pair< Date,double > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NodePair" "', argument " "1"" of type '" "std::pair< Date,double > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::pair< Date,double > *)new std::pair< Date,double >((std::pair< Date,double > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__pairT_Date_double_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_NodePair(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_NodePair__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::pair< Date,double >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_NodePair__SWIG_2(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_NodePair__SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_NodePair'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::pair< Date,double >::pair()\n"
    "    std::pair< Date,double >::pair(Date,double)\n"
    "    std::pair< Date,double >::pair(std::pair< Date,double > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_NodePair_first_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::pair< Date,double > *arg1 = (std::pair< Date,double > *) 0 ;
  Date *arg2 = (Date *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodePair_first_set",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__pairT_Date_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodePair_first_set" "', argument " "1"" of type '" "std::pair< Date,double > *""'"); 
  }
  arg1 = reinterpret_cast< std::pair< Date,double > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_Date, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NodePair_first_set" "', argument " "2"" of type '" "Date *""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  if (arg1) (arg1)->first = *arg2;
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodePair_first_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::pair< Date,double > *arg1 = (std::pair< Date,double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodePair_first_get",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__pairT_Date_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodePair_first_get" "', argument " "1"" of type '" "std::pair< Date,double > *""'"); 
  }
  arg1 = reinterpret_cast< std::pair< Date,double > * >(argp1);
  result = (Date *)& ((arg1)->first);
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Date, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodePair_second_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::pair< Date,double > *arg1 = (std::pair< Date,double > *) 0 ;
  double arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodePair_second_set",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__pairT_Date_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodePair_second_set" "', argument " "1"" of type '" "std::pair< Date,double > *""'"); 
  }
  arg1 = reinterpret_cast< std::pair< Date,double > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NodePair_second_set" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = static_cast< double >(val2);
  if (arg1) (arg1)->second = arg2;
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodePair_second_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::pair< Date,double > *arg1 = (std::pair< Date,double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  double result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodePair_second_get",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__pairT_Date_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodePair_second_get" "', argument " "1"" of type '" "std::pair< Date,double > *""'"); 
  }
  arg1 = reinterpret_cast< std::pair< Date,double > * >(argp1);
  result = (double) ((arg1)->second);
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_NodePair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::pair< Date,double > *arg1 = (std::pair< Date,double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NodePair",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__pairT_Date_double_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NodePair" "', argument " "1"" of type '" "std::pair< Date,double > *""'"); 
  }
  arg1 = reinterpret_cast< std::pair< Date,double > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NodePair_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__pairT_Date_double_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_NodeVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_iterator" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector___nonzero__" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____nonzero__((std::vector< std::pair< Date,double > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector___bool__" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____bool__((std::vector< std::pair< Date,double > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,double > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector___len__" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    try {
      result = std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____len__((std::vector< std::pair< Date,double > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  std::vector< std::pair< Date,double > >::difference_type arg2 ;
  std::vector< std::pair< Date,double > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector___getslice__" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NodeVector___getslice__" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::pair< Date,double > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NodeVector___getslice__" "', argument " "3"" of type '" "std::vector< std::pair< Date,double > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::pair< Date,double > >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > *)std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  std::vector< std::pair< Date,double > >::difference_type arg2 ;
  std::vector< std::pair< Date,double > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector___setslice__" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NodeVector___setslice__" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::pair< Date,double > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NodeVector___setslice__" "', argument " "3"" of type '" "std::vector< std::pair< Date,double > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::pair< Date,double > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  std::vector< std::pair< Date,double > >::difference_type arg2 ;
  std::vector< std::pair< Date,double > >::difference_type arg3 ;
  std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector___setslice__" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NodeVector___setslice__" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::pair< Date,double > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NodeVector___setslice__" "', argument " "3"" of type '" "std::vector< std::pair< Date,double > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::pair< Date,double > >::difference_type >(val3);
  {
    std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > *ptr = (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "NodeVector___setslice__" "', argument " "4"" of type '" "std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NodeVector___setslice__" "', argument " "4"" of type '" "std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >**)(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_NodeVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >**)(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::pair< Date,double >,std::allocator< std::pair< Date,double > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_NodeVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'NodeVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::pair< Date,double > >::__setslice__(std::vector< std::pair< Date,double > >::difference_type,std::vector< std::pair< Date,double > >::difference_type)\n"
    "    std::vector< std::pair< Date,double > >::__setslice__(std::vector< std::pair< Date,double > >::difference_type,std::vector< std::pair< Date,double > >::difference_type,std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_NodeVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  std::vector< std::pair< Date,double > >::difference_type arg2 ;
  std::vector< std::pair< Date,double > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector___delslice__" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NodeVector___delslice__" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::pair< Date,double > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NodeVector___delslice__" "', argument " "3"" of type '" "std::vector< std::pair< Date,double > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::pair< Date,double > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  std::vector< std::pair< Date,double > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector___delitem__" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NodeVector___delitem__" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::pair< Date,double > >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector___getitem__" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "NodeVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > *)std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector___setitem__" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "NodeVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > *ptr = (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NodeVector___setitem__" "', argument " "3"" of type '" "std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NodeVector___setitem__" "', argument " "3"" of type '" "std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector___setitem__" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "NodeVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector___delitem__" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "NodeVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_NodeVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_NodeVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'NodeVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::pair< Date,double > >::__delitem__(std::vector< std::pair< Date,double > >::difference_type)\n"
    "    std::vector< std::pair< Date,double > >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_NodeVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  std::vector< std::pair< Date,double > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::pair< Date,double > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector___getitem__" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NodeVector___getitem__" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::pair< Date,double > >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< std::pair< Date,double > >::value_type *) &std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____getitem____SWIG_1((std::vector< std::pair< Date,double > > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::pair< Date,double > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_NodeVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_NodeVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'NodeVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::pair< Date,double > >::__getitem__(PySliceObject *)\n"
    "    std::vector< std::pair< Date,double > >::__getitem__(std::vector< std::pair< Date,double > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_NodeVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  std::vector< std::pair< Date,double > >::difference_type arg2 ;
  std::vector< std::pair< Date,double > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector___setitem__" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NodeVector___setitem__" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::pair< Date,double > >::difference_type >(val2);
  {
    std::pair< Date,double > *ptr = (std::pair< Date,double > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NodeVector___setitem__" "', argument " "3"" of type '" "std::vector< std::pair< Date,double > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NodeVector___setitem__" "', argument " "3"" of type '" "std::vector< std::pair< Date,double > >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg____setitem____SWIG_2(arg1,arg2,(std::pair< Date,double > const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_NodeVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_NodeVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >**)(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::asptr(argv[2], (std::pair< Date,double >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_NodeVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'NodeVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::pair< Date,double > >::__setitem__(PySliceObject *,std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > const &)\n"
    "    std::vector< std::pair< Date,double > >::__setitem__(PySliceObject *)\n"
    "    std::vector< std::pair< Date,double > >::__setitem__(std::vector< std::pair< Date,double > >::difference_type,std::vector< std::pair< Date,double > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_NodeVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,double > >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_pop" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::pair< Date,double > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  std::vector< std::pair< Date,double > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_append" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    std::pair< Date,double > *ptr = (std::pair< Date,double > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NodeVector_append" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NodeVector_append" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::value_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg__append(arg1,(std::pair< Date,double > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NodeVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NodeVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< std::pair< Date,double > > *)new std::vector< std::pair< Date,double > >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NodeVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,double > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NodeVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > *ptr = (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NodeVector" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NodeVector" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< std::pair< Date,double > > *)new std::vector< std::pair< Date,double > >((std::vector< std::pair< Date,double > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_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_NodeVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_empty" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    try {
      result = (bool)((std::vector< std::pair< Date,double > > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,double > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_size" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    try {
      result = ((std::vector< std::pair< Date,double > > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  std::vector< std::pair< Date,double > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_swap" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NodeVector_swap" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NodeVector_swap" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,double > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_begin" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::pair< Date,double > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,double > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_end" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::pair< Date,double > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,double > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_rbegin" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::pair< Date,double > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,double > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_rend" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::pair< Date,double > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_clear" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< std::pair< Date,double > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_get_allocator" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    try {
      result = ((std::vector< std::pair< Date,double > > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::pair< Date,double > >::allocator_type(static_cast< const std::vector< std::pair< Date,double > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__pairT_Date_double_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NodeVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,double > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NodeVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NodeVector" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::pair< Date,double > >::size_type >(val1);
  {
    try {
      result = (std::vector< std::pair< Date,double > > *)new std::vector< std::pair< Date,double > >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_pop_back" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  std::vector< std::pair< Date,double > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_resize" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NodeVector_resize" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::pair< Date,double > >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  std::vector< std::pair< Date,double > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::pair< Date,double > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_erase" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "NodeVector_erase" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::pair< Date,double > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::pair< Date,double > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "NodeVector_erase" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::pair< Date,double > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  std::vector< std::pair< Date,double > >::iterator arg2 ;
  std::vector< std::pair< Date,double > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< std::pair< Date,double > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_erase" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "NodeVector_erase" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::pair< Date,double > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::pair< Date,double > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "NodeVector_erase" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "NodeVector_erase" "', argument " "3"" of type '" "std::vector< std::pair< Date,double > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::pair< Date,double > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::pair< Date,double > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "NodeVector_erase" "', argument " "3"" of type '" "std::vector< std::pair< Date,double > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::pair< Date,double > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >**)(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::pair< Date,double > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_NodeVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >**)(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::pair< Date,double > >::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::pair< Date,double > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_NodeVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'NodeVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::pair< Date,double > >::erase(std::vector< std::pair< Date,double > >::iterator)\n"
    "    std::vector< std::pair< Date,double > >::erase(std::vector< std::pair< Date,double > >::iterator,std::vector< std::pair< Date,double > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_NodeVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > >::size_type arg1 ;
  std::vector< std::pair< Date,double > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::pair< Date,double > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NodeVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NodeVector" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::pair< Date,double > >::size_type >(val1);
  {
    std::pair< Date,double > *ptr = (std::pair< Date,double > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NodeVector" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NodeVector" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::value_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      result = (std::vector< std::pair< Date,double > > *)new std::vector< std::pair< Date,double > >(arg1,(std::vector< std::pair< Date,double > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NodeVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_NodeVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_NodeVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_NodeVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::pair< Date,double >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_NodeVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_NodeVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::pair< Date,double > >::vector()\n"
    "    std::vector< std::pair< Date,double > >::vector(std::vector< std::pair< Date,double > > const &)\n"
    "    std::vector< std::pair< Date,double > >::vector(std::vector< std::pair< Date,double > >::size_type)\n"
    "    std::vector< std::pair< Date,double > >::vector(std::vector< std::pair< Date,double > >::size_type,std::vector< std::pair< Date,double > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_NodeVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  std::vector< std::pair< Date,double > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_push_back" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    std::pair< Date,double > *ptr = (std::pair< Date,double > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NodeVector_push_back" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NodeVector_push_back" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::value_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      (arg1)->push_back((std::vector< std::pair< Date,double > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,double > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_front" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    try {
      result = (std::vector< std::pair< Date,double > >::value_type *) &((std::vector< std::pair< Date,double > > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::pair< Date,double > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,double > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_back" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    try {
      result = (std::vector< std::pair< Date,double > >::value_type *) &((std::vector< std::pair< Date,double > > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::pair< Date,double > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  std::vector< std::pair< Date,double > >::size_type arg2 ;
  std::vector< std::pair< Date,double > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_assign" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NodeVector_assign" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::pair< Date,double > >::size_type >(val2);
  {
    std::pair< Date,double > *ptr = (std::pair< Date,double > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NodeVector_assign" "', argument " "3"" of type '" "std::vector< std::pair< Date,double > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NodeVector_assign" "', argument " "3"" of type '" "std::vector< std::pair< Date,double > >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      (arg1)->assign(arg2,(std::vector< std::pair< Date,double > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  std::vector< std::pair< Date,double > >::size_type arg2 ;
  std::vector< std::pair< Date,double > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_resize" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NodeVector_resize" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::pair< Date,double > >::size_type >(val2);
  {
    std::pair< Date,double > *ptr = (std::pair< Date,double > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NodeVector_resize" "', argument " "3"" of type '" "std::vector< std::pair< Date,double > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NodeVector_resize" "', argument " "3"" of type '" "std::vector< std::pair< Date,double > >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      (arg1)->resize(arg2,(std::vector< std::pair< Date,double > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_NodeVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >**)(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::asptr(argv[2], (std::pair< Date,double >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_NodeVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'NodeVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::pair< Date,double > >::resize(std::vector< std::pair< Date,double > >::size_type)\n"
    "    std::vector< std::pair< Date,double > >::resize(std::vector< std::pair< Date,double > >::size_type,std::vector< std::pair< Date,double > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_NodeVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  std::vector< std::pair< Date,double > >::iterator arg2 ;
  std::vector< std::pair< Date,double > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< std::pair< Date,double > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_insert" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "NodeVector_insert" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::pair< Date,double > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::pair< Date,double > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "NodeVector_insert" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::iterator""'");
    }
  }
  {
    std::pair< Date,double > *ptr = (std::pair< Date,double > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NodeVector_insert" "', argument " "3"" of type '" "std::vector< std::pair< Date,double > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NodeVector_insert" "', argument " "3"" of type '" "std::vector< std::pair< Date,double > >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      result = std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg__insert__SWIG_0(arg1,arg2,(std::pair< Date,double > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::pair< Date,double > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  std::vector< std::pair< Date,double > >::iterator arg2 ;
  std::vector< std::pair< Date,double > >::size_type arg3 ;
  std::vector< std::pair< Date,double > >::value_type *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_insert" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "NodeVector_insert" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::pair< Date,double > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::pair< Date,double > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "NodeVector_insert" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NodeVector_insert" "', argument " "3"" of type '" "std::vector< std::pair< Date,double > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< std::pair< Date,double > >::size_type >(val3);
  {
    std::pair< Date,double > *ptr = (std::pair< Date,double > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "NodeVector_insert" "', argument " "4"" of type '" "std::vector< std::pair< Date,double > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NodeVector_insert" "', argument " "4"" of type '" "std::vector< std::pair< Date,double > >::value_type const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      std_vector_Sl_std_pair_Sl_Date_Sc_double_Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(std::pair< Date,double > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >**)(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::pair< Date,double > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = swig::asptr(argv[2], (std::pair< Date,double >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_NodeVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > >**)(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::pair< Date,double > >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::pair< Date,double >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_NodeVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'NodeVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::pair< Date,double > >::insert(std::vector< std::pair< Date,double > >::iterator,std::vector< std::pair< Date,double > >::value_type const &)\n"
    "    std::vector< std::pair< Date,double > >::insert(std::vector< std::pair< Date,double > >::iterator,std::vector< std::pair< Date,double > >::size_type,std::vector< std::pair< Date,double > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_NodeVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  std::vector< std::pair< Date,double > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_reserve" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NodeVector_reserve" "', argument " "2"" of type '" "std::vector< std::pair< Date,double > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::pair< Date,double > >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NodeVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,double > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NodeVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NodeVector_capacity" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    try {
      result = ((std::vector< std::pair< Date,double > > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_NodeVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::pair< Date,double > > *arg1 = (std::vector< std::pair< Date,double > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NodeVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NodeVector" "', argument " "1"" of type '" "std::vector< std::pair< Date,double > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::pair< Date,double > > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NodeVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Exercise___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > *arg1 = (boost::shared_ptr< Exercise > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Exercise *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Exercise___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Exercise___deref__" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp1);
  {
    try {
      result = (Exercise *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Exercise, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Exercise___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > *arg1 = (boost::shared_ptr< Exercise > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Exercise___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Exercise___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Exercise_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Exercise___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > *arg1 = (boost::shared_ptr< Exercise > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Exercise___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Exercise___bool__" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Exercise_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Exercise_exerciseType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > *arg1 = (boost::shared_ptr< Exercise > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Exercise::Type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Exercise_exerciseType",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Exercise_exerciseType" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp1);
  {
    try {
      result = (Exercise::Type)boost_shared_ptr_Sl_Exercise_Sg__exerciseType(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Exercise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Exercise",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< Exercise > *)new boost::shared_ptr< Exercise >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Exercise_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Exercise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > *arg1 = (boost::shared_ptr< Exercise > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Exercise",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Exercise_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Exercise" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Exercise_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > *arg1 = (boost::shared_ptr< Exercise > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Exercise::Type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Exercise_type",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Exercise_type" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp1);
  {
    try {
      result = (Exercise::Type)(*arg1)->type();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Exercise_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > *arg1 = (boost::shared_ptr< Exercise > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Exercise_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Exercise_dates" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &(*arg1)->dates();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Exercise_lastDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > *arg1 = (boost::shared_ptr< Exercise > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Exercise_lastDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Exercise_lastDate" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp1);
  {
    try {
      result = (*arg1)->lastDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Exercise_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_Exercise_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EuropeanExercise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EuropeanExercisePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EuropeanExercise",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EuropeanExercise" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuropeanExercise" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    try {
      result = (EuropeanExercisePtr *)new_EuropeanExercisePtr((Date const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EuropeanExercisePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_EuropeanExercise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EuropeanExercisePtr *arg1 = (EuropeanExercisePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EuropeanExercise",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EuropeanExercisePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EuropeanExercise" "', argument " "1"" of type '" "EuropeanExercisePtr *""'"); 
  }
  arg1 = reinterpret_cast< EuropeanExercisePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EuropeanExercise_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EuropeanExercisePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AmericanExercise__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Date *arg2 = 0 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  AmericanExercisePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AmericanExercise",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AmericanExercise" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AmericanExercise" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AmericanExercise" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AmericanExercise" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_AmericanExercise" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (AmericanExercisePtr *)new_AmericanExercisePtr__SWIG_0((Date const &)*arg1,(Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AmericanExercisePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_AmericanExercise__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  AmericanExercisePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AmericanExercise",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AmericanExercise" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AmericanExercise" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AmericanExercise" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AmericanExercise" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (AmericanExercisePtr *)new_AmericanExercisePtr__SWIG_0((Date const &)*arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AmericanExercisePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_AmericanExercise(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_AmericanExercise__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_AmericanExercise__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_AmericanExercise'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    AmericanExercisePtr::AmericanExercisePtr(Date const &,Date const &,bool)\n"
    "    AmericanExercisePtr::AmericanExercisePtr(Date const &,Date const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_AmericanExercise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AmericanExercisePtr *arg1 = (AmericanExercisePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AmericanExercise",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AmericanExercisePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AmericanExercise" "', argument " "1"" of type '" "AmericanExercisePtr *""'"); 
  }
  arg1 = reinterpret_cast< AmericanExercisePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AmericanExercise_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AmericanExercisePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BermudanExercise__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  bool arg2 ;
  int res1 = SWIG_OLDOBJ ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BermudanExercisePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BermudanExercise",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BermudanExercise" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BermudanExercise" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BermudanExercise" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      result = (BermudanExercisePtr *)new_BermudanExercisePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BermudanExercisePtr, 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_BermudanExercise__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  BermudanExercisePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BermudanExercise",1,1,&obj0)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BermudanExercise" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BermudanExercise" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (BermudanExercisePtr *)new_BermudanExercisePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BermudanExercisePtr, 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_BermudanExercise(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_BermudanExercise__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_BermudanExercise__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BermudanExercise'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BermudanExercisePtr::BermudanExercisePtr(std::vector< Date,std::allocator< Date > > const &,bool)\n"
    "    BermudanExercisePtr::BermudanExercisePtr(std::vector< Date,std::allocator< Date > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_BermudanExercise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BermudanExercisePtr *arg1 = (BermudanExercisePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BermudanExercise",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BermudanExercisePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BermudanExercise" "', argument " "1"" of type '" "BermudanExercisePtr *""'"); 
  }
  arg1 = reinterpret_cast< BermudanExercisePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BermudanExercise_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BermudanExercisePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_RebatedExercise__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > arg1 ;
  std::vector< Real,std::allocator< Real > > arg2 ;
  Natural arg3 ;
  Calendar *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  void *argp1 ;
  int res1 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  RebatedExercisePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RebatedExercise",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RebatedExercise" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RebatedExercise" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const""'");
    } else {
      boost::shared_ptr< Exercise > * temp = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    int res = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_RebatedExercise" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const""'"); 
    }
    arg2 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RebatedExercise" "', argument " "3"" of type '" "Natural""'");
  } 
  arg3 = static_cast< Natural >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_RebatedExercise" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RebatedExercise" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_RebatedExercise" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  {
    try {
      result = (RebatedExercisePtr *)new_RebatedExercisePtr__SWIG_0(arg1,arg2,arg3,(Calendar const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RebatedExercisePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RebatedExercise__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > arg1 ;
  std::vector< Real,std::allocator< Real > > arg2 ;
  Natural arg3 ;
  Calendar *arg4 = 0 ;
  void *argp1 ;
  int res1 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  RebatedExercisePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RebatedExercise",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RebatedExercise" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RebatedExercise" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const""'");
    } else {
      boost::shared_ptr< Exercise > * temp = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    int res = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_RebatedExercise" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const""'"); 
    }
    arg2 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RebatedExercise" "', argument " "3"" of type '" "Natural""'");
  } 
  arg3 = static_cast< Natural >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_RebatedExercise" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RebatedExercise" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  {
    try {
      result = (RebatedExercisePtr *)new_RebatedExercisePtr__SWIG_0(arg1,arg2,arg3,(Calendar const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RebatedExercisePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RebatedExercise__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > arg1 ;
  std::vector< Real,std::allocator< Real > > arg2 ;
  Natural arg3 ;
  void *argp1 ;
  int res1 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  RebatedExercisePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RebatedExercise",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RebatedExercise" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RebatedExercise" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const""'");
    } else {
      boost::shared_ptr< Exercise > * temp = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    int res = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_RebatedExercise" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const""'"); 
    }
    arg2 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RebatedExercise" "', argument " "3"" of type '" "Natural""'");
  } 
  arg3 = static_cast< Natural >(val3);
  {
    try {
      result = (RebatedExercisePtr *)new_RebatedExercisePtr__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RebatedExercisePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RebatedExercise__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > arg1 ;
  std::vector< Real,std::allocator< Real > > arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  RebatedExercisePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RebatedExercise",2,2,&obj0,&obj1)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RebatedExercise" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RebatedExercise" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const""'");
    } else {
      boost::shared_ptr< Exercise > * temp = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    int res = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_RebatedExercise" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const""'"); 
    }
    arg2 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    try {
      result = (RebatedExercisePtr *)new_RebatedExercisePtr__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RebatedExercisePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RebatedExercise(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_RebatedExercise__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_RebatedExercise__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_RebatedExercise__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_RebatedExercise__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RebatedExercise'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    RebatedExercisePtr::RebatedExercisePtr(boost::shared_ptr< Exercise > const,std::vector< Real,std::allocator< Real > > const,Natural,Calendar const &,BusinessDayConvention const)\n"
    "    RebatedExercisePtr::RebatedExercisePtr(boost::shared_ptr< Exercise > const,std::vector< Real,std::allocator< Real > > const,Natural,Calendar const &)\n"
    "    RebatedExercisePtr::RebatedExercisePtr(boost::shared_ptr< Exercise > const,std::vector< Real,std::allocator< Real > > const,Natural)\n"
    "    RebatedExercisePtr::RebatedExercisePtr(boost::shared_ptr< Exercise > const,std::vector< Real,std::allocator< Real > > const)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_RebatedExercise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RebatedExercisePtr *arg1 = (RebatedExercisePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RebatedExercise",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RebatedExercisePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RebatedExercise" "', argument " "1"" of type '" "RebatedExercisePtr *""'"); 
  }
  arg1 = reinterpret_cast< RebatedExercisePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RebatedExercise_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RebatedExercisePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Observable___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Observable > *arg1 = (boost::shared_ptr< Observable > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Observable *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Observable___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Observable_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Observable___deref__" "', argument " "1"" of type '" "boost::shared_ptr< Observable > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Observable > * >(argp1);
  {
    try {
      result = (Observable *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Observable, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Observable___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Observable > *arg1 = (boost::shared_ptr< Observable > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Observable___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Observable_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Observable___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< Observable > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Observable > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Observable_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Observable___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Observable > *arg1 = (boost::shared_ptr< Observable > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Observable___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Observable_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Observable___bool__" "', argument " "1"" of type '" "boost::shared_ptr< Observable > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Observable > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Observable_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Observable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Observable > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Observable",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< Observable > *)new boost::shared_ptr< Observable >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Observable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Observable > *arg1 = (boost::shared_ptr< Observable > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Observable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Observable" "', argument " "1"" of type '" "boost::shared_ptr< Observable > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Observable > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Observable_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Observer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PyObject *arg1 = (PyObject *) 0 ;
  PyObject * obj0 = 0 ;
  PyObserver *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Observer",1,1,&obj0)) SWIG_fail;
  arg1 = obj0;
  {
    try {
      result = (PyObserver *)new PyObserver(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PyObserver, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Observer__registerWith(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PyObserver *arg1 = (PyObserver *) 0 ;
  boost::shared_ptr< Observable > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Observer__registerWith",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PyObserver, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Observer__registerWith" "', argument " "1"" of type '" "PyObserver *""'"); 
  }
  arg1 = reinterpret_cast< PyObserver * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Observable_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Observer__registerWith" "', argument " "2"" of type '" "boost::shared_ptr< Observable > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Observer__registerWith" "', argument " "2"" of type '" "boost::shared_ptr< Observable > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Observable > * >(argp2);
  {
    try {
      (arg1)->registerWith((boost::shared_ptr< Observable > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Observer__unregisterWith(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PyObserver *arg1 = (PyObserver *) 0 ;
  boost::shared_ptr< Observable > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Observer__unregisterWith",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PyObserver, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Observer__unregisterWith" "', argument " "1"" of type '" "PyObserver *""'"); 
  }
  arg1 = reinterpret_cast< PyObserver * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Observable_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Observer__unregisterWith" "', argument " "2"" of type '" "boost::shared_ptr< Observable > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Observer__unregisterWith" "', argument " "2"" of type '" "boost::shared_ptr< Observable > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Observable > * >(argp2);
  {
    try {
      (arg1)->unregisterWith((boost::shared_ptr< Observable > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Observer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PyObserver *arg1 = (PyObserver *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Observer",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PyObserver, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Observer" "', argument " "1"" of type '" "PyObserver *""'"); 
  }
  arg1 = reinterpret_cast< PyObserver * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Observer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_PyObserver, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Array__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Array",0,0)) SWIG_fail;
  {
    try {
      result = (Array *)new Array();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Array, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Array__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Real arg2 ;
  size_t val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Array *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Array",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Array" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Array" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Array *)new Array(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Array, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Array__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  Array *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Array",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Array" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  {
    try {
      result = (Array *)new Array(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Array, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Array__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array temp1 ;
  PyObject * obj0 = 0 ;
  Array *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Array",1,1,&obj0)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (Array *)new Array((Array const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Array, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Array(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Array__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      return _wrap_new_Array__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    {
      /* native sequence? */
      if (PyTuple_Check(argv[0]) || PyList_Check(argv[0])) {
        Size size = PySequence_Size(argv[0]);
        if (size == 0) {
          _v = 1;
        } else {
          PyObject* o = PySequence_GetItem(argv[0],0);
          if (PyNumber_Check(o))
          _v = 1;
          else
          _v = 0;
          Py_DECREF(o);
        }
      } else {
        /* wrapped Array? */
        Array* v;
        if (SWIG_ConvertPtr(argv[0],(void **) &v,
            SWIGTYPE_p_Array,0) != -1)
        _v = 1;
        else
        _v = 0;
      }
    }
    if (_v) {
      return _wrap_new_Array__SWIG_3(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_Array__SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Array'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Array::Array()\n"
    "    Array::Array(Size,Real)\n"
    "    Array::Array(Size)\n"
    "    Array::Array(Array const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Array___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = (Array *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Array___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Array, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Array___len__" "', argument " "1"" of type '" "Array const *""'"); 
  }
  arg1 = reinterpret_cast< Array * >(argp1);
  {
    try {
      result = ((Array const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Array___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = (Array *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Array___str__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Array, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Array___str__" "', argument " "1"" of type '" "Array *""'"); 
  }
  arg1 = reinterpret_cast< Array * >(argp1);
  {
    try {
      result = Array___str__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Array___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = (Array *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Array___add__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Array, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Array___add__" "', argument " "1"" of type '" "Array *""'"); 
  }
  arg1 = reinterpret_cast< Array * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = Array___add__(arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Array___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = (Array *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Array___sub__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Array, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Array___sub__" "', argument " "1"" of type '" "Array *""'"); 
  }
  arg1 = reinterpret_cast< Array * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = Array___sub__(arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Array___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = (Array *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Array___mul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Array, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Array___mul__" "', argument " "1"" of type '" "Array *""'"); 
  }
  arg1 = reinterpret_cast< Array * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Array___mul__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = Array___mul____SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Array___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = (Array *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Array___mul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Array, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Array___mul__" "', argument " "1"" of type '" "Array *""'"); 
  }
  arg1 = reinterpret_cast< Array * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (Real)Array___mul____SWIG_1(arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Array___mul____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = (Array *) 0 ;
  Matrix *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Matrix temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Array___mul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Array, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Array___mul__" "', argument " "1"" of type '" "Array *""'"); 
  }
  arg1 = reinterpret_cast< Array * >(argp1);
  {
    if (PyTuple_Check(obj1) || PyList_Check(obj1)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj1) ?
      PyTuple_Size(obj1) :
        PyList_Size(obj1));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj1,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp2 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj1,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp2[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp2[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Matrix,1);
    }
  }
  {
    try {
      result = Array___mul____SWIG_2(arg1,(Matrix const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Array___mul__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Array, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_Array___mul____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Array, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        /* native sequence? */
        if (PyTuple_Check(argv[1]) || PyList_Check(argv[1])) {
          Size size = PySequence_Size(argv[1]);
          if (size == 0) {
            _v = 1;
          } else {
            PyObject* o = PySequence_GetItem(argv[1],0);
            if (PyNumber_Check(o))
            _v = 1;
            else
            _v = 0;
            Py_DECREF(o);
          }
        } else {
          /* wrapped Array? */
          Array* v;
          if (SWIG_ConvertPtr(argv[1],(void **) &v,
              SWIGTYPE_p_Array,0) != -1)
          _v = 1;
          else
          _v = 0;
        }
      }
      if (_v) {
        return _wrap_Array___mul____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Array, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        /* native sequence? */
        if (PyTuple_Check(argv[1]) || PyList_Check(argv[1])) {
          _v = 1;
          /* wrapped Matrix? */
        } else {
          Matrix* m;
          if (SWIG_ConvertPtr(argv[1],(void **) &m,
              SWIGTYPE_p_Matrix,0) != -1)
          _v = 1;
          else
          _v = 0;
        }
      }
      if (_v) {
        return _wrap_Array___mul____SWIG_2(self, args);
      }
    }
  }
  
fail:
  Py_INCREF(Py_NotImplemented);
  return Py_NotImplemented;
}


SWIGINTERN PyObject *_wrap_Array___div__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = (Array *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Array___div__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Array, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Array___div__" "', argument " "1"" of type '" "Array *""'"); 
  }
  arg1 = reinterpret_cast< Array * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Array___div__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = Array___div__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Array___rmul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = (Array *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Array___rmul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Array, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Array___rmul__" "', argument " "1"" of type '" "Array *""'"); 
  }
  arg1 = reinterpret_cast< Array * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Array___rmul__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = Array___rmul__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Array___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = (Array *) 0 ;
  Integer arg2 ;
  Integer arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Array___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Array, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Array___getslice__" "', argument " "1"" of type '" "Array *""'"); 
  }
  arg1 = reinterpret_cast< Array * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Array___getslice__" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Array___getslice__" "', argument " "3"" of type '" "Integer""'");
  } 
  arg3 = static_cast< Integer >(val3);
  {
    try {
      result = Array___getslice__(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Array___setslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = (Array *) 0 ;
  Integer arg2 ;
  Integer arg3 ;
  Array *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  Array temp4 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Array___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Array, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Array___setslice__" "', argument " "1"" of type '" "Array *""'"); 
  }
  arg1 = reinterpret_cast< Array * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Array___setslice__" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Array___setslice__" "', argument " "3"" of type '" "Integer""'");
  } 
  arg3 = static_cast< Integer >(val3);
  {
    if (extractArray(obj3,&temp4)) {
      arg4 = &temp4;
    } else {
      SWIG_ConvertPtr(obj3,(void **) &arg4,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      Array___setslice__(arg1,arg2,arg3,(Array const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Array___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = (Array *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Array___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Array, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Array___nonzero__" "', argument " "1"" of type '" "Array *""'"); 
  }
  arg1 = reinterpret_cast< Array * >(argp1);
  {
    try {
      result = (bool)Array___nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Array___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = (Array *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Array___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Array, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Array___bool__" "', argument " "1"" of type '" "Array *""'"); 
  }
  arg1 = reinterpret_cast< Array * >(argp1);
  {
    try {
      result = (bool)Array___bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Array___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = (Array *) 0 ;
  Integer arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Array___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Array, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Array___getitem__" "', argument " "1"" of type '" "Array *""'"); 
  }
  arg1 = reinterpret_cast< Array * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Array___getitem__" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  {
    try {
      result = (Real)Array___getitem__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Array___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = (Array *) 0 ;
  Integer arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Array___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Array, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Array___setitem__" "', argument " "1"" of type '" "Array *""'"); 
  }
  arg1 = reinterpret_cast< Array * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Array___setitem__" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Array___setitem__" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      Array___setitem__(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Array(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = (Array *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Array",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Array, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Array" "', argument " "1"" of type '" "Array *""'"); 
  }
  arg1 = reinterpret_cast< Array * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Array_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Array, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_DefaultLexicographicalViewColumn___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DefaultLexicographicalViewColumn *arg1 = (DefaultLexicographicalViewColumn *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultLexicographicalViewColumn___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DefaultLexicographicalViewColumn, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultLexicographicalViewColumn___getitem__" "', argument " "1"" of type '" "DefaultLexicographicalViewColumn *""'"); 
  }
  arg1 = reinterpret_cast< DefaultLexicographicalViewColumn * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultLexicographicalViewColumn___getitem__" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (Real)DefaultLexicographicalViewColumn___getitem__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultLexicographicalViewColumn___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DefaultLexicographicalViewColumn *arg1 = (DefaultLexicographicalViewColumn *) 0 ;
  Size arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultLexicographicalViewColumn___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DefaultLexicographicalViewColumn, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultLexicographicalViewColumn___setitem__" "', argument " "1"" of type '" "DefaultLexicographicalViewColumn *""'"); 
  }
  arg1 = reinterpret_cast< DefaultLexicographicalViewColumn * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultLexicographicalViewColumn___setitem__" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultLexicographicalViewColumn___setitem__" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      DefaultLexicographicalViewColumn___setitem__(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DefaultLexicographicalViewColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DefaultLexicographicalViewColumn *arg1 = (DefaultLexicographicalViewColumn *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DefaultLexicographicalViewColumn",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DefaultLexicographicalViewColumn, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DefaultLexicographicalViewColumn" "', argument " "1"" of type '" "DefaultLexicographicalViewColumn *""'"); 
  }
  arg1 = reinterpret_cast< DefaultLexicographicalViewColumn * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DefaultLexicographicalViewColumn_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DefaultLexicographicalViewColumn, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_LexicographicalView_xSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DefaultLexicographicalView *arg1 = (DefaultLexicographicalView *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LexicographicalView_xSize",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DefaultLexicographicalView, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LexicographicalView_xSize" "', argument " "1"" of type '" "DefaultLexicographicalView const *""'"); 
  }
  arg1 = reinterpret_cast< DefaultLexicographicalView * >(argp1);
  {
    try {
      result = ((DefaultLexicographicalView const *)arg1)->xSize();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LexicographicalView_ySize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DefaultLexicographicalView *arg1 = (DefaultLexicographicalView *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LexicographicalView_ySize",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DefaultLexicographicalView, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LexicographicalView_ySize" "', argument " "1"" of type '" "DefaultLexicographicalView const *""'"); 
  }
  arg1 = reinterpret_cast< DefaultLexicographicalView * >(argp1);
  {
    try {
      result = ((DefaultLexicographicalView const *)arg1)->ySize();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LexicographicalView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DefaultLexicographicalView *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LexicographicalView",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Array,  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LexicographicalView" "', argument " "1"" of type '" "Array &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LexicographicalView" "', argument " "1"" of type '" "Array &""'"); 
  }
  arg1 = reinterpret_cast< Array * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LexicographicalView" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (DefaultLexicographicalView *)new_DefaultLexicographicalView(*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DefaultLexicographicalView, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LexicographicalView___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DefaultLexicographicalView *arg1 = (DefaultLexicographicalView *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LexicographicalView___str__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DefaultLexicographicalView, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LexicographicalView___str__" "', argument " "1"" of type '" "DefaultLexicographicalView *""'"); 
  }
  arg1 = reinterpret_cast< DefaultLexicographicalView * >(argp1);
  {
    try {
      result = DefaultLexicographicalView___str__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LexicographicalView___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DefaultLexicographicalView *arg1 = (DefaultLexicographicalView *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< DefaultLexicographicalViewColumn > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LexicographicalView___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DefaultLexicographicalView, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LexicographicalView___getitem__" "', argument " "1"" of type '" "DefaultLexicographicalView *""'"); 
  }
  arg1 = reinterpret_cast< DefaultLexicographicalView * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LexicographicalView___getitem__" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = DefaultLexicographicalView___getitem__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DefaultLexicographicalViewColumn(static_cast< const DefaultLexicographicalViewColumn& >(result))), SWIGTYPE_p_DefaultLexicographicalViewColumn, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_LexicographicalView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DefaultLexicographicalView *arg1 = (DefaultLexicographicalView *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LexicographicalView",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DefaultLexicographicalView, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LexicographicalView" "', argument " "1"" of type '" "DefaultLexicographicalView *""'"); 
  }
  arg1 = reinterpret_cast< DefaultLexicographicalView * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LexicographicalView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DefaultLexicographicalView, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_MatrixRow___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MatrixRow *arg1 = (MatrixRow *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MatrixRow___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MatrixRow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatrixRow___getitem__" "', argument " "1"" of type '" "MatrixRow *""'"); 
  }
  arg1 = reinterpret_cast< MatrixRow * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MatrixRow___getitem__" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (Real)MatrixRow___getitem__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MatrixRow___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MatrixRow *arg1 = (MatrixRow *) 0 ;
  Size arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MatrixRow___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MatrixRow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MatrixRow___setitem__" "', argument " "1"" of type '" "MatrixRow *""'"); 
  }
  arg1 = reinterpret_cast< MatrixRow * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MatrixRow___setitem__" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MatrixRow___setitem__" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      MatrixRow___setitem__(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MatrixRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MatrixRow *arg1 = (MatrixRow *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MatrixRow",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MatrixRow, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MatrixRow" "', argument " "1"" of type '" "MatrixRow *""'"); 
  }
  arg1 = reinterpret_cast< MatrixRow * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MatrixRow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MatrixRow, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Matrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Matrix",0,0)) SWIG_fail;
  {
    try {
      result = (Matrix *)new Matrix();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Matrix, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Matrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Size arg2 ;
  Real arg3 ;
  size_t val1 ;
  int ecode1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Matrix *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Matrix",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Matrix" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Matrix" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Matrix" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Matrix *)new Matrix(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Matrix, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Matrix__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Size arg2 ;
  size_t val1 ;
  int ecode1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Matrix *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Matrix",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Matrix" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Matrix" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (Matrix *)new Matrix(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Matrix, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Matrix__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *arg1 = 0 ;
  Matrix temp1 ;
  PyObject * obj0 = 0 ;
  Matrix *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Matrix",1,1,&obj0)) SWIG_fail;
  {
    if (PyTuple_Check(obj0) || PyList_Check(obj0)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj0) ?
      PyTuple_Size(obj0) :
        PyList_Size(obj0));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj0,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp1 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj0,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp1[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp1[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Matrix,1);
    }
  }
  {
    try {
      result = (Matrix *)new Matrix((Matrix const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Matrix, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Matrix(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Matrix__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      /* native sequence? */
      if (PyTuple_Check(argv[0]) || PyList_Check(argv[0])) {
        _v = 1;
        /* wrapped Matrix? */
      } else {
        Matrix* m;
        if (SWIG_ConvertPtr(argv[0],(void **) &m,
            SWIGTYPE_p_Matrix,0) != -1)
        _v = 1;
        else
        _v = 0;
      }
    }
    if (_v) {
      return _wrap_new_Matrix__SWIG_3(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_Matrix__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_Matrix__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Matrix'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Matrix::Matrix()\n"
    "    Matrix::Matrix(Size,Size,Real)\n"
    "    Matrix::Matrix(Size,Size)\n"
    "    Matrix::Matrix(Matrix const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Matrix_rows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *arg1 = (Matrix *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Matrix_rows",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Matrix, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Matrix_rows" "', argument " "1"" of type '" "Matrix const *""'"); 
  }
  arg1 = reinterpret_cast< Matrix * >(argp1);
  {
    try {
      result = ((Matrix const *)arg1)->rows();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Matrix_columns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *arg1 = (Matrix *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Matrix_columns",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Matrix, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Matrix_columns" "', argument " "1"" of type '" "Matrix const *""'"); 
  }
  arg1 = reinterpret_cast< Matrix * >(argp1);
  {
    try {
      result = ((Matrix const *)arg1)->columns();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Matrix___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *arg1 = (Matrix *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Matrix___str__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Matrix, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Matrix___str__" "', argument " "1"" of type '" "Matrix *""'"); 
  }
  arg1 = reinterpret_cast< Matrix * >(argp1);
  {
    try {
      result = Matrix___str__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Matrix___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *arg1 = (Matrix *) 0 ;
  Matrix *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Matrix temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Matrix___add__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Matrix, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Matrix___add__" "', argument " "1"" of type '" "Matrix *""'"); 
  }
  arg1 = reinterpret_cast< Matrix * >(argp1);
  {
    if (PyTuple_Check(obj1) || PyList_Check(obj1)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj1) ?
      PyTuple_Size(obj1) :
        PyList_Size(obj1));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj1,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp2 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj1,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp2[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp2[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Matrix,1);
    }
  }
  {
    try {
      result = Matrix___add__(arg1,(Matrix const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Matrix___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *arg1 = (Matrix *) 0 ;
  Matrix *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Matrix temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Matrix___sub__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Matrix, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Matrix___sub__" "', argument " "1"" of type '" "Matrix *""'"); 
  }
  arg1 = reinterpret_cast< Matrix * >(argp1);
  {
    if (PyTuple_Check(obj1) || PyList_Check(obj1)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj1) ?
      PyTuple_Size(obj1) :
        PyList_Size(obj1));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj1,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp2 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj1,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp2[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp2[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Matrix,1);
    }
  }
  {
    try {
      result = Matrix___sub__(arg1,(Matrix const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Matrix___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *arg1 = (Matrix *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Matrix___mul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Matrix, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Matrix___mul__" "', argument " "1"" of type '" "Matrix *""'"); 
  }
  arg1 = reinterpret_cast< Matrix * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Matrix___mul__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = Matrix___mul____SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Matrix___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *arg1 = (Matrix *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Matrix___mul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Matrix, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Matrix___mul__" "', argument " "1"" of type '" "Matrix *""'"); 
  }
  arg1 = reinterpret_cast< Matrix * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = Matrix___mul____SWIG_1(arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Matrix___mul____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *arg1 = (Matrix *) 0 ;
  Matrix *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Matrix temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Matrix___mul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Matrix, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Matrix___mul__" "', argument " "1"" of type '" "Matrix *""'"); 
  }
  arg1 = reinterpret_cast< Matrix * >(argp1);
  {
    if (PyTuple_Check(obj1) || PyList_Check(obj1)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj1) ?
      PyTuple_Size(obj1) :
        PyList_Size(obj1));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj1,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp2 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj1,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp2[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp2[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Matrix,1);
    }
  }
  {
    try {
      result = Matrix___mul____SWIG_2(arg1,(Matrix const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Matrix___mul__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Matrix, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_Matrix___mul____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Matrix, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        /* native sequence? */
        if (PyTuple_Check(argv[1]) || PyList_Check(argv[1])) {
          Size size = PySequence_Size(argv[1]);
          if (size == 0) {
            _v = 1;
          } else {
            PyObject* o = PySequence_GetItem(argv[1],0);
            if (PyNumber_Check(o))
            _v = 1;
            else
            _v = 0;
            Py_DECREF(o);
          }
        } else {
          /* wrapped Array? */
          Array* v;
          if (SWIG_ConvertPtr(argv[1],(void **) &v,
              SWIGTYPE_p_Array,0) != -1)
          _v = 1;
          else
          _v = 0;
        }
      }
      if (_v) {
        return _wrap_Matrix___mul____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Matrix, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        /* native sequence? */
        if (PyTuple_Check(argv[1]) || PyList_Check(argv[1])) {
          _v = 1;
          /* wrapped Matrix? */
        } else {
          Matrix* m;
          if (SWIG_ConvertPtr(argv[1],(void **) &m,
              SWIGTYPE_p_Matrix,0) != -1)
          _v = 1;
          else
          _v = 0;
        }
      }
      if (_v) {
        return _wrap_Matrix___mul____SWIG_2(self, args);
      }
    }
  }
  
fail:
  Py_INCREF(Py_NotImplemented);
  return Py_NotImplemented;
}


SWIGINTERN PyObject *_wrap_Matrix___div__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *arg1 = (Matrix *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Matrix___div__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Matrix, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Matrix___div__" "', argument " "1"" of type '" "Matrix *""'"); 
  }
  arg1 = reinterpret_cast< Matrix * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Matrix___div__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = Matrix___div__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Matrix___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *arg1 = (Matrix *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< MatrixRow > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Matrix___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Matrix, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Matrix___getitem__" "', argument " "1"" of type '" "Matrix *""'"); 
  }
  arg1 = reinterpret_cast< Matrix * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Matrix___getitem__" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = Matrix___getitem__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new MatrixRow(static_cast< const MatrixRow& >(result))), SWIGTYPE_p_MatrixRow, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Matrix___rmul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *arg1 = (Matrix *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Matrix___rmul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Matrix, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Matrix___rmul__" "', argument " "1"" of type '" "Matrix *""'"); 
  }
  arg1 = reinterpret_cast< Matrix * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Matrix___rmul__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = Matrix___rmul____SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Matrix___rmul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *arg1 = (Matrix *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Matrix___rmul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Matrix, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Matrix___rmul__" "', argument " "1"" of type '" "Matrix *""'"); 
  }
  arg1 = reinterpret_cast< Matrix * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = Matrix___rmul____SWIG_1(arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Matrix___rmul____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *arg1 = (Matrix *) 0 ;
  Matrix *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Matrix temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Matrix___rmul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Matrix, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Matrix___rmul__" "', argument " "1"" of type '" "Matrix *""'"); 
  }
  arg1 = reinterpret_cast< Matrix * >(argp1);
  {
    if (PyTuple_Check(obj1) || PyList_Check(obj1)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj1) ?
      PyTuple_Size(obj1) :
        PyList_Size(obj1));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj1,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp2 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj1,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp2[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp2[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Matrix,1);
    }
  }
  {
    try {
      result = Matrix___rmul____SWIG_2(arg1,(Matrix const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Matrix___rmul__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Matrix, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_Matrix___rmul____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Matrix, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        /* native sequence? */
        if (PyTuple_Check(argv[1]) || PyList_Check(argv[1])) {
          Size size = PySequence_Size(argv[1]);
          if (size == 0) {
            _v = 1;
          } else {
            PyObject* o = PySequence_GetItem(argv[1],0);
            if (PyNumber_Check(o))
            _v = 1;
            else
            _v = 0;
            Py_DECREF(o);
          }
        } else {
          /* wrapped Array? */
          Array* v;
          if (SWIG_ConvertPtr(argv[1],(void **) &v,
              SWIGTYPE_p_Array,0) != -1)
          _v = 1;
          else
          _v = 0;
        }
      }
      if (_v) {
        return _wrap_Matrix___rmul____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Matrix, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        /* native sequence? */
        if (PyTuple_Check(argv[1]) || PyList_Check(argv[1])) {
          _v = 1;
          /* wrapped Matrix? */
        } else {
          Matrix* m;
          if (SWIG_ConvertPtr(argv[1],(void **) &m,
              SWIGTYPE_p_Matrix,0) != -1)
          _v = 1;
          else
          _v = 0;
        }
      }
      if (_v) {
        return _wrap_Matrix___rmul____SWIG_2(self, args);
      }
    }
  }
  
fail:
  Py_INCREF(Py_NotImplemented);
  return Py_NotImplemented;
}


SWIGINTERN PyObject *_wrap_delete_Matrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *arg1 = (Matrix *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Matrix",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Matrix, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Matrix" "', argument " "1"" of type '" "Matrix *""'"); 
  }
  arg1 = reinterpret_cast< Matrix * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Matrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Matrix, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SalvagingAlgorithm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SalvagingAlgorithm *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SalvagingAlgorithm",0,0)) SWIG_fail;
  {
    try {
      result = (SalvagingAlgorithm *)new SalvagingAlgorithm();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SalvagingAlgorithm, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SalvagingAlgorithm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SalvagingAlgorithm *arg1 = (SalvagingAlgorithm *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SalvagingAlgorithm",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SalvagingAlgorithm, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SalvagingAlgorithm" "', argument " "1"" of type '" "SalvagingAlgorithm *""'"); 
  }
  arg1 = reinterpret_cast< SalvagingAlgorithm * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SalvagingAlgorithm_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SalvagingAlgorithm, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_transpose(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *arg1 = 0 ;
  Matrix temp1 ;
  PyObject * obj0 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"transpose",1,1,&obj0)) SWIG_fail;
  {
    if (PyTuple_Check(obj0) || PyList_Check(obj0)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj0) ?
      PyTuple_Size(obj0) :
        PyList_Size(obj0));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj0,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp1 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj0,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp1[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp1[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Matrix,1);
    }
  }
  {
    try {
      result = transpose((Matrix const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_outerProduct(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"outerProduct",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = outerProduct((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_pseudoSqrt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *arg1 = 0 ;
  SalvagingAlgorithm::Type arg2 ;
  Matrix temp1 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"pseudoSqrt",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (PyTuple_Check(obj0) || PyList_Check(obj0)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj0) ?
      PyTuple_Size(obj0) :
        PyList_Size(obj0));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj0,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp1 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj0,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp1[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp1[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Matrix,1);
    }
  }
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pseudoSqrt" "', argument " "2"" of type '" "SalvagingAlgorithm::Type""'");
  } 
  arg2 = static_cast< SalvagingAlgorithm::Type >(val2);
  {
    try {
      result = pseudoSqrt((Matrix const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SVD(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Matrix *arg1 = 0 ;
  Matrix temp1 ;
  PyObject * obj0 = 0 ;
  SVD *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SVD",1,1,&obj0)) SWIG_fail;
  {
    if (PyTuple_Check(obj0) || PyList_Check(obj0)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj0) ?
      PyTuple_Size(obj0) :
        PyList_Size(obj0));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj0,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp1 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj0,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp1[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp1[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Matrix,1);
    }
  }
  {
    try {
      result = (SVD *)new SVD((Matrix const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SVD, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SVD_U(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SVD *arg1 = (SVD *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Matrix *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SVD_U",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SVD, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SVD_U" "', argument " "1"" of type '" "SVD const *""'"); 
  }
  arg1 = reinterpret_cast< SVD * >(argp1);
  {
    try {
      result = (Matrix *) &((SVD const *)arg1)->U();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Matrix, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SVD_V(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SVD *arg1 = (SVD *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Matrix *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SVD_V",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SVD, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SVD_V" "', argument " "1"" of type '" "SVD const *""'"); 
  }
  arg1 = reinterpret_cast< SVD * >(argp1);
  {
    try {
      result = (Matrix *) &((SVD const *)arg1)->V();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Matrix, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SVD_S(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SVD *arg1 = (SVD *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SVD_S",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SVD, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SVD_S" "', argument " "1"" of type '" "SVD const *""'"); 
  }
  arg1 = reinterpret_cast< SVD * >(argp1);
  {
    try {
      result = ((SVD const *)arg1)->S();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SVD_singularValues(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SVD *arg1 = (SVD *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Array *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SVD_singularValues",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SVD, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SVD_singularValues" "', argument " "1"" of type '" "SVD const *""'"); 
  }
  arg1 = reinterpret_cast< SVD * >(argp1);
  {
    try {
      result = (Array *) &((SVD const *)arg1)->singularValues();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Array, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SVD(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SVD *arg1 = (SVD *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SVD",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SVD, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SVD" "', argument " "1"" of type '" "SVD *""'"); 
  }
  arg1 = reinterpret_cast< SVD * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SVD_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SVD, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Quote___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Quote > *arg1 = (boost::shared_ptr< Quote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Quote *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Quote___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Quote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Quote___deref__" "', argument " "1"" of type '" "boost::shared_ptr< Quote > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Quote > * >(argp1);
  {
    try {
      result = (Quote *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Quote, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Quote___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Quote > *arg1 = (boost::shared_ptr< Quote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Quote___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Quote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Quote___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< Quote > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Quote > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Quote_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Quote___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Quote > *arg1 = (boost::shared_ptr< Quote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Quote___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Quote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Quote___bool__" "', argument " "1"" of type '" "boost::shared_ptr< Quote > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Quote > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Quote_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Quote_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Quote > *arg1 = (boost::shared_ptr< Quote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Quote_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Quote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Quote_asObservable" "', argument " "1"" of type '" "boost::shared_ptr< Quote > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Quote > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_Quote_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Quote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Quote > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Quote",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< Quote > *)new boost::shared_ptr< Quote >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Quote_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Quote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Quote > *arg1 = (boost::shared_ptr< Quote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Quote",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Quote_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Quote" "', argument " "1"" of type '" "boost::shared_ptr< Quote > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Quote > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Quote_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Quote > *arg1 = (boost::shared_ptr< Quote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Quote_value",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Quote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Quote_value" "', argument " "1"" of type '" "boost::shared_ptr< Quote > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Quote > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->value();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Quote_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_Quote_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_QuoteHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Quote > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< Quote > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuoteHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QuoteHandle" "', argument " "1"" of type '" "boost::shared_ptr< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuoteHandle" "', argument " "1"" of type '" "boost::shared_ptr< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Quote > * >(argp1);
  {
    try {
      result = (Handle< Quote > *)new Handle< Quote >((boost::shared_ptr< Quote > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_Quote_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuoteHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuoteHandle",0,0)) SWIG_fail;
  {
    try {
      result = (Handle< Quote > *)new Handle< Quote >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_Quote_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuoteHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_QuoteHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_QuoteHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_QuoteHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Handle< Quote >::Handle(boost::shared_ptr< Quote > const &)\n"
    "    Handle< Quote >::Handle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteHandle___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = (Handle< Quote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Quote > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandle___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_Quote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandle___deref__" "', argument " "1"" of type '" "Handle< Quote > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  {
    try {
      result = (arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Quote >(static_cast< const boost::shared_ptr< Quote >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Quote_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandle___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = (Handle< Quote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandle___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_Quote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandle___nonzero__" "', argument " "1"" of type '" "Handle< Quote > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_Quote_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandle___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = (Handle< Quote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandle___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_Quote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandle___bool__" "', argument " "1"" of type '" "Handle< Quote > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_Quote_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandle_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = (Handle< Quote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandle_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_Quote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandle_asObservable" "', argument " "1"" of type '" "Handle< Quote > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  {
    try {
      result = Handle_Sl_Quote_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_QuoteHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = (Handle< Quote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_QuoteHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_Quote_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_QuoteHandle" "', argument " "1"" of type '" "Handle< Quote > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandle_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = (Handle< Quote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandle_value",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_Quote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandle_value" "', argument " "1"" of type '" "Handle< Quote > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->value();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *QuoteHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HandleT_Quote_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_RelinkableQuoteHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Quote > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  RelinkableHandle< Quote > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableQuoteHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RelinkableQuoteHandle" "', argument " "1"" of type '" "boost::shared_ptr< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RelinkableQuoteHandle" "', argument " "1"" of type '" "boost::shared_ptr< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Quote > * >(argp1);
  {
    try {
      result = (RelinkableHandle< Quote > *)new RelinkableHandle< Quote >((boost::shared_ptr< Quote > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_Quote_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableQuoteHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< Quote > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableQuoteHandle",0,0)) SWIG_fail;
  {
    try {
      result = (RelinkableHandle< Quote > *)new RelinkableHandle< Quote >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_Quote_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableQuoteHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_RelinkableQuoteHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_RelinkableQuoteHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RelinkableQuoteHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    RelinkableHandle< Quote >::RelinkableHandle(boost::shared_ptr< Quote > const &)\n"
    "    RelinkableHandle< Quote >::RelinkableHandle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandle_linkTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< Quote > *arg1 = (RelinkableHandle< Quote > *) 0 ;
  boost::shared_ptr< Quote > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandle_linkTo",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_Quote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandle_linkTo" "', argument " "1"" of type '" "RelinkableHandle< Quote > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableQuoteHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Quote > * >(argp2);
  {
    try {
      (arg1)->linkTo((boost::shared_ptr< Quote > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RelinkableQuoteHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< Quote > *arg1 = (RelinkableHandle< Quote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RelinkableQuoteHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_Quote_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RelinkableQuoteHandle" "', argument " "1"" of type '" "RelinkableHandle< Quote > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< Quote > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RelinkableQuoteHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RelinkableHandleT_Quote_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SimpleQuote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  SimpleQuotePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SimpleQuote",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SimpleQuote" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (SimpleQuotePtr *)new_SimpleQuotePtr(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SimpleQuotePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SimpleQuote_setValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SimpleQuotePtr *arg1 = (SimpleQuotePtr *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SimpleQuote_setValue",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SimpleQuotePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimpleQuote_setValue" "', argument " "1"" of type '" "SimpleQuotePtr *""'"); 
  }
  arg1 = reinterpret_cast< SimpleQuotePtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SimpleQuote_setValue" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      SimpleQuotePtr_setValue(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SimpleQuote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SimpleQuotePtr *arg1 = (SimpleQuotePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SimpleQuote",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SimpleQuotePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SimpleQuote" "', argument " "1"" of type '" "SimpleQuotePtr *""'"); 
  }
  arg1 = reinterpret_cast< SimpleQuotePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SimpleQuote_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SimpleQuotePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DerivedQuote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DerivedQuotePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DerivedQuote",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DerivedQuote" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DerivedQuote" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  arg2 = obj1;
  {
    try {
      result = (DerivedQuotePtr *)new_DerivedQuotePtr((Handle< Quote > const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DerivedQuotePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DerivedQuote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DerivedQuotePtr *arg1 = (DerivedQuotePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DerivedQuote",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DerivedQuotePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DerivedQuote" "', argument " "1"" of type '" "DerivedQuotePtr *""'"); 
  }
  arg1 = reinterpret_cast< DerivedQuotePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DerivedQuote_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DerivedQuotePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CompositeQuote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  PyObject *arg3 = (PyObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  CompositeQuotePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CompositeQuote",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CompositeQuote" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CompositeQuote" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CompositeQuote" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CompositeQuote" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  arg3 = obj2;
  {
    try {
      result = (CompositeQuotePtr *)new_CompositeQuotePtr((Handle< Quote > const &)*arg1,(Handle< Quote > const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CompositeQuotePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CompositeQuote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CompositeQuotePtr *arg1 = (CompositeQuotePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CompositeQuote",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CompositeQuotePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CompositeQuote" "', argument " "1"" of type '" "CompositeQuotePtr *""'"); 
  }
  arg1 = reinterpret_cast< CompositeQuotePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CompositeQuote_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CompositeQuotePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_QuoteVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_iterator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector___nonzero__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____nonzero__((std::vector< boost::shared_ptr< Quote > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector___bool__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____bool__((std::vector< boost::shared_ptr< Quote > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Quote > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector___len__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____len__((std::vector< boost::shared_ptr< Quote > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  std::vector< boost::shared_ptr< Quote > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Quote > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector___getslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVector___getslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Quote > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteVector___getslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Quote > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Quote > >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *)std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  std::vector< boost::shared_ptr< Quote > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Quote > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVector___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Quote > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteVector___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Quote > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Quote > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  std::vector< boost::shared_ptr< Quote > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Quote > >::difference_type arg3 ;
  std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVector___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Quote > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteVector___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Quote > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Quote > >::difference_type >(val3);
  {
    std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *ptr = (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QuoteVector___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVector___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(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_QuoteVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(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< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_QuoteVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Quote > >::__setslice__(std::vector< boost::shared_ptr< Quote > >::difference_type,std::vector< boost::shared_ptr< Quote > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< Quote > >::__setslice__(std::vector< boost::shared_ptr< Quote > >::difference_type,std::vector< boost::shared_ptr< Quote > >::difference_type,std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  std::vector< boost::shared_ptr< Quote > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Quote > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector___delslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVector___delslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Quote > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteVector___delslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Quote > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Quote > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  std::vector< boost::shared_ptr< Quote > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVector___delitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Quote > >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *)std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *ptr = (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_QuoteVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_QuoteVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Quote > >::__delitem__(std::vector< boost::shared_ptr< Quote > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< Quote > >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  std::vector< boost::shared_ptr< Quote > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< Quote > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVector___getitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Quote > >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< Quote > >::value_type *) &std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____getitem____SWIG_1((std::vector< boost::shared_ptr< Quote > > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Quote_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_QuoteVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_QuoteVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Quote > >::__getitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< Quote > >::__getitem__(std::vector< boost::shared_ptr< Quote > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  std::vector< boost::shared_ptr< Quote > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Quote > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVector___setitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Quote > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Quote > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Quote > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > >::value_type * >(argp3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg____setitem____SWIG_2(arg1,arg2,(boost::shared_ptr< Quote > const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_QuoteVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuoteVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(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_boost__shared_ptrT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuoteVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Quote > >::__setitem__(PySliceObject *,std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > const &)\n"
    "    std::vector< boost::shared_ptr< Quote > >::__setitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< Quote > >::__setitem__(std::vector< boost::shared_ptr< Quote > >::difference_type,std::vector< boost::shared_ptr< Quote > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Quote > >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_pop" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< Quote > >::value_type(static_cast< const std::vector< boost::shared_ptr< Quote > >::value_type& >(result))), SWIGTYPE_p_boost__shared_ptrT_Quote_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  std::vector< boost::shared_ptr< Quote > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_append" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QuoteVector_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVector_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > >::value_type * >(argp2);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__append(arg1,(boost::shared_ptr< Quote > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuoteVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuoteVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< boost::shared_ptr< Quote > > *)new std::vector< boost::shared_ptr< Quote > >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuoteVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Quote > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuoteVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *ptr = (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QuoteVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuoteVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< boost::shared_ptr< Quote > > *)new std::vector< boost::shared_ptr< Quote > >((std::vector< boost::shared_ptr< Quote > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_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_QuoteVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_empty" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    try {
      result = (bool)((std::vector< boost::shared_ptr< Quote > > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Quote > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_size" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< Quote > > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  std::vector< boost::shared_ptr< Quote > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_swap" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QuoteVector_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVector_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Quote > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_begin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Quote > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Quote > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_end" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Quote > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Quote > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_rbegin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Quote > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Quote > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_rend" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Quote > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_clear" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< boost::shared_ptr< Quote > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_get_allocator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< Quote > > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< Quote > >::allocator_type(static_cast< const std::vector< boost::shared_ptr< Quote > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_Quote_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuoteVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Quote > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuoteVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QuoteVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< Quote > >::size_type >(val1);
  {
    try {
      result = (std::vector< boost::shared_ptr< Quote > > *)new std::vector< boost::shared_ptr< Quote > >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_pop_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  std::vector< boost::shared_ptr< Quote > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVector_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Quote > >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  std::vector< boost::shared_ptr< Quote > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< Quote > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Quote > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Quote > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Quote > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  std::vector< boost::shared_ptr< Quote > >::iterator arg2 ;
  std::vector< boost::shared_ptr< Quote > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< Quote > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Quote > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Quote > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVector_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Quote > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Quote > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Quote > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVector_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Quote > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Quote > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(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< boost::shared_ptr< Quote > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_QuoteVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(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< boost::shared_ptr< Quote > >::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< boost::shared_ptr< Quote > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_QuoteVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Quote > >::erase(std::vector< boost::shared_ptr< Quote > >::iterator)\n"
    "    std::vector< boost::shared_ptr< Quote > >::erase(std::vector< boost::shared_ptr< Quote > >::iterator,std::vector< boost::shared_ptr< Quote > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_QuoteVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > >::size_type arg1 ;
  std::vector< boost::shared_ptr< Quote > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< Quote > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuoteVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QuoteVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< Quote > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_QuoteVector" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuoteVector" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > >::value_type * >(argp2);
  {
    try {
      result = (std::vector< boost::shared_ptr< Quote > > *)new std::vector< boost::shared_ptr< Quote > >(arg1,(std::vector< boost::shared_ptr< Quote > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuoteVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_QuoteVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_QuoteVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_QuoteVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_QuoteVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_QuoteVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Quote > >::vector()\n"
    "    std::vector< boost::shared_ptr< Quote > >::vector(std::vector< boost::shared_ptr< Quote > > const &)\n"
    "    std::vector< boost::shared_ptr< Quote > >::vector(std::vector< boost::shared_ptr< Quote > >::size_type)\n"
    "    std::vector< boost::shared_ptr< Quote > >::vector(std::vector< boost::shared_ptr< Quote > >::size_type,std::vector< boost::shared_ptr< Quote > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  std::vector< boost::shared_ptr< Quote > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_push_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QuoteVector_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVector_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > >::value_type * >(argp2);
  {
    try {
      (arg1)->push_back((std::vector< boost::shared_ptr< Quote > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Quote > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_front" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< Quote > >::value_type *) &((std::vector< boost::shared_ptr< Quote > > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Quote_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Quote > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< Quote > >::value_type *) &((std::vector< boost::shared_ptr< Quote > > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Quote_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  std::vector< boost::shared_ptr< Quote > >::size_type arg2 ;
  std::vector< boost::shared_ptr< Quote > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_assign" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVector_assign" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Quote > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteVector_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Quote > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVector_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Quote > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > >::value_type * >(argp3);
  {
    try {
      (arg1)->assign(arg2,(std::vector< boost::shared_ptr< Quote > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  std::vector< boost::shared_ptr< Quote > >::size_type arg2 ;
  std::vector< boost::shared_ptr< Quote > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVector_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Quote > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteVector_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Quote > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVector_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Quote > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > >::value_type * >(argp3);
  {
    try {
      (arg1)->resize(arg2,(std::vector< boost::shared_ptr< Quote > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_QuoteVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(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_boost__shared_ptrT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuoteVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Quote > >::resize(std::vector< boost::shared_ptr< Quote > >::size_type)\n"
    "    std::vector< boost::shared_ptr< Quote > >::resize(std::vector< boost::shared_ptr< Quote > >::size_type,std::vector< boost::shared_ptr< Quote > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  std::vector< boost::shared_ptr< Quote > >::iterator arg2 ;
  std::vector< boost::shared_ptr< Quote > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< Quote > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Quote > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Quote > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Quote > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Quote > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > >::value_type * >(argp3);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__insert__SWIG_0(arg1,arg2,(boost::shared_ptr< Quote > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Quote > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  std::vector< boost::shared_ptr< Quote > >::iterator arg2 ;
  std::vector< boost::shared_ptr< Quote > >::size_type arg3 ;
  std::vector< boost::shared_ptr< Quote > >::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 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Quote > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Quote > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Quote > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Quote > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_boost__shared_ptrT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QuoteVector_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Quote > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVector_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Quote > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > >::value_type * >(argp4);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(boost::shared_ptr< Quote > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(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< boost::shared_ptr< Quote > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuoteVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(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< boost::shared_ptr< Quote > >::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_boost__shared_ptrT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_QuoteVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Quote > >::insert(std::vector< boost::shared_ptr< Quote > >::iterator,std::vector< boost::shared_ptr< Quote > >::value_type const &)\n"
    "    std::vector< boost::shared_ptr< Quote > >::insert(std::vector< boost::shared_ptr< Quote > >::iterator,std::vector< boost::shared_ptr< Quote > >::size_type,std::vector< boost::shared_ptr< Quote > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  std::vector< boost::shared_ptr< Quote > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_reserve" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVector_reserve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Quote > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Quote > >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Quote > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVector_capacity" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< Quote > > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_QuoteVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Quote > > *arg1 = (std::vector< boost::shared_ptr< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_QuoteVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_QuoteVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Quote > > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *QuoteVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_QuoteVectorVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_iterator" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector___nonzero__" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____nonzero__((std::vector< std::vector< boost::shared_ptr< Quote > > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector___bool__" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____bool__((std::vector< std::vector< boost::shared_ptr< Quote > > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector___len__" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    try {
      result = std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____len__((std::vector< std::vector< boost::shared_ptr< Quote > > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type arg2 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector___getslice__" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVectorVector___getslice__" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteVectorVector___getslice__" "', argument " "3"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > *)std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type arg2 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector___setslice__" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVectorVector___setslice__" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteVectorVector___setslice__" "', argument " "3"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type arg2 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type arg3 ;
  std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector___setslice__" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVectorVector___setslice__" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteVectorVector___setslice__" "', argument " "3"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type >(val3);
  {
    std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > *ptr = (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QuoteVectorVector___setslice__" "', argument " "4"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVectorVector___setslice__" "', argument " "4"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >**)(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_QuoteVectorVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >**)(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::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_QuoteVectorVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteVectorVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::__setslice__(std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type,std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type)\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::__setslice__(std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type,std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type,std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type arg2 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector___delslice__" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVectorVector___delslice__" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteVectorVector___delslice__" "', argument " "3"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector___delitem__" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVectorVector___delitem__" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector___getitem__" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVectorVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > *)std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector___setitem__" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVectorVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > *ptr = (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteVectorVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVectorVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector___setitem__" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVectorVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector___delitem__" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVectorVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_QuoteVectorVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_QuoteVectorVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteVectorVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::__delitem__(std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type)\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector___getitem__" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVectorVector___getitem__" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type *) &std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____getitem____SWIG_1((std::vector< std::vector< boost::shared_ptr< Quote > > > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_QuoteVectorVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_QuoteVectorVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteVectorVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::__getitem__(PySliceObject *)\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::__getitem__(std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type arg2 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector___setitem__" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVectorVector___setitem__" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type >(val2);
  {
    std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *ptr = (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteVectorVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVectorVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg____setitem____SWIG_2(arg1,arg2,(std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_QuoteVectorVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuoteVectorVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >**)(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::asptr(argv[2], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuoteVectorVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteVectorVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::__setitem__(PySliceObject *,std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > const &)\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::__setitem__(PySliceObject *)\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::__setitem__(std::vector< std::vector< boost::shared_ptr< Quote > > >::difference_type,std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_pop" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_append" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *ptr = (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QuoteVectorVector_append" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVectorVector_append" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg__append(arg1,(std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuoteVectorVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuoteVectorVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< std::vector< boost::shared_ptr< Quote > > > *)new std::vector< std::vector< boost::shared_ptr< Quote > > >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuoteVectorVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuoteVectorVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > *ptr = (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QuoteVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuoteVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< std::vector< boost::shared_ptr< Quote > > > *)new std::vector< std::vector< boost::shared_ptr< Quote > > >((std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_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_QuoteVectorVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_empty" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    try {
      result = (bool)((std::vector< std::vector< boost::shared_ptr< Quote > > > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_size" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    try {
      result = ((std::vector< std::vector< boost::shared_ptr< Quote > > > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_swap" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QuoteVectorVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVectorVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_begin" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_end" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_rbegin" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< boost::shared_ptr< Quote > > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_rend" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< boost::shared_ptr< Quote > > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_clear" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_get_allocator" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    try {
      result = ((std::vector< std::vector< boost::shared_ptr< Quote > > > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::vector< boost::shared_ptr< Quote > > >::allocator_type(static_cast< const std::vector< std::vector< boost::shared_ptr< Quote > > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuoteVectorVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuoteVectorVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QuoteVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type >(val1);
  {
    try {
      result = (std::vector< std::vector< boost::shared_ptr< Quote > > > *)new std::vector< std::vector< boost::shared_ptr< Quote > > >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_pop_back" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_resize" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVectorVector_resize" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_erase" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVectorVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVectorVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator arg2 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_erase" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVectorVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVectorVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVectorVector_erase" "', argument " "3"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVectorVector_erase" "', argument " "3"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >**)(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::vector< boost::shared_ptr< Quote > > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_QuoteVectorVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >**)(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::vector< boost::shared_ptr< Quote > > >::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::vector< boost::shared_ptr< Quote > > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_QuoteVectorVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteVectorVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::erase(std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator)\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::erase(std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator,std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_QuoteVectorVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type arg1 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuoteVectorVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QuoteVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type >(val1);
  {
    std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *ptr = (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_QuoteVectorVector" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuoteVectorVector" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      result = (std::vector< std::vector< boost::shared_ptr< Quote > > > *)new std::vector< std::vector< boost::shared_ptr< Quote > > >(arg1,(std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuoteVectorVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_QuoteVectorVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_QuoteVectorVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_QuoteVectorVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_QuoteVectorVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_QuoteVectorVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::vector()\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::vector(std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > const &)\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::vector(std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type)\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::vector(std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type,std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_push_back" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *ptr = (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QuoteVectorVector_push_back" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVectorVector_push_back" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      (arg1)->push_back((std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_front" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    try {
      result = (std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type *) &((std::vector< std::vector< boost::shared_ptr< Quote > > > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_back" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    try {
      result = (std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type *) &((std::vector< std::vector< boost::shared_ptr< Quote > > > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type arg2 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_assign" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVectorVector_assign" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type >(val2);
  {
    std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *ptr = (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteVectorVector_assign" "', argument " "3"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVectorVector_assign" "', argument " "3"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      (arg1)->assign(arg2,(std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type arg2 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_resize" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVectorVector_resize" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type >(val2);
  {
    std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *ptr = (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteVectorVector_resize" "', argument " "3"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVectorVector_resize" "', argument " "3"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      (arg1)->resize(arg2,(std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_QuoteVectorVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >**)(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::asptr(argv[2], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuoteVectorVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteVectorVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::resize(std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type)\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::resize(std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type,std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator arg2 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_insert" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVectorVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVectorVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator""'");
    }
  }
  {
    std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *ptr = (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteVectorVector_insert" "', argument " "3"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVectorVector_insert" "', argument " "3"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      result = std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg__insert__SWIG_0(arg1,arg2,(std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator arg2 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type arg3 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_insert" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVectorVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteVectorVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteVectorVector_insert" "', argument " "3"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type >(val3);
  {
    std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *ptr = (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QuoteVectorVector_insert" "', argument " "4"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteVectorVector_insert" "', argument " "4"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      std_vector_Sl_std_vector_Sl_boost_shared_ptr_Sl_Quote_Sg__Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >**)(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::vector< boost::shared_ptr< Quote > > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuoteVectorVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > >**)(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::vector< boost::shared_ptr< Quote > > >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_QuoteVectorVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteVectorVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::insert(std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator,std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &)\n"
    "    std::vector< std::vector< boost::shared_ptr< Quote > > >::insert(std::vector< std::vector< boost::shared_ptr< Quote > > >::iterator,std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type,std::vector< std::vector< boost::shared_ptr< Quote > > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_reserve" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteVectorVector_reserve" "', argument " "2"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteVectorVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< boost::shared_ptr< Quote > > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteVectorVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteVectorVector_capacity" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    try {
      result = ((std::vector< std::vector< boost::shared_ptr< Quote > > > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_QuoteVectorVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< boost::shared_ptr< Quote > > > *arg1 = (std::vector< std::vector< boost::shared_ptr< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_QuoteVectorVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_QuoteVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< boost::shared_ptr< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< boost::shared_ptr< Quote > > > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *QuoteVectorVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_QuoteHandleVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_iterator" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_Handle_Sl_Quote_Sg__Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector___nonzero__" "', argument " "1"" of type '" "std::vector< Handle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_Handle_Sl_Quote_Sg__Sg____nonzero__((std::vector< Handle< Quote > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector___bool__" "', argument " "1"" of type '" "std::vector< Handle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_Handle_Sl_Quote_Sg__Sg____bool__((std::vector< Handle< Quote > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Handle< Quote > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector___len__" "', argument " "1"" of type '" "std::vector< Handle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    try {
      result = std_vector_Sl_Handle_Sl_Quote_Sg__Sg____len__((std::vector< Handle< Quote > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  std::vector< Handle< Quote > >::difference_type arg2 ;
  std::vector< Handle< Quote > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector___getslice__" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVector___getslice__" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Handle< Quote > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteHandleVector___getslice__" "', argument " "3"" of type '" "std::vector< Handle< Quote > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< Handle< Quote > >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)std_vector_Sl_Handle_Sl_Quote_Sg__Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  std::vector< Handle< Quote > >::difference_type arg2 ;
  std::vector< Handle< Quote > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector___setslice__" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVector___setslice__" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Handle< Quote > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteHandleVector___setslice__" "', argument " "3"" of type '" "std::vector< Handle< Quote > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< Handle< Quote > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_Handle_Sl_Quote_Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  std::vector< Handle< Quote > >::difference_type arg2 ;
  std::vector< Handle< Quote > >::difference_type arg3 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector___setslice__" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVector___setslice__" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Handle< Quote > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteHandleVector___setslice__" "', argument " "3"" of type '" "std::vector< Handle< Quote > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< Handle< Quote > >::difference_type >(val3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QuoteHandleVector___setslice__" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVector___setslice__" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_Handle_Sl_Quote_Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(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_QuoteHandleVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(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< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_QuoteHandleVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteHandleVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Handle< Quote > >::__setslice__(std::vector< Handle< Quote > >::difference_type,std::vector< Handle< Quote > >::difference_type)\n"
    "    std::vector< Handle< Quote > >::__setslice__(std::vector< Handle< Quote > >::difference_type,std::vector< Handle< Quote > >::difference_type,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  std::vector< Handle< Quote > >::difference_type arg2 ;
  std::vector< Handle< Quote > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector___delslice__" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVector___delslice__" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Handle< Quote > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteHandleVector___delslice__" "', argument " "3"" of type '" "std::vector< Handle< Quote > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< Handle< Quote > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_Handle_Sl_Quote_Sg__Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  std::vector< Handle< Quote > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector___delitem__" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVector___delitem__" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Handle< Quote > >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_Handle_Sl_Quote_Sg__Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector___getitem__" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)std_vector_Sl_Handle_Sl_Quote_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector___setitem__" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteHandleVector___setitem__" "', argument " "3"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVector___setitem__" "', argument " "3"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_Handle_Sl_Quote_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector___setitem__" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_Handle_Sl_Quote_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector___delitem__" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_Handle_Sl_Quote_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_QuoteHandleVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_QuoteHandleVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteHandleVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Handle< Quote > >::__delitem__(std::vector< Handle< Quote > >::difference_type)\n"
    "    std::vector< Handle< Quote > >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  std::vector< Handle< Quote > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< Handle< Quote > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector___getitem__" "', argument " "1"" of type '" "std::vector< Handle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVector___getitem__" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Handle< Quote > >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< Handle< Quote > >::value_type *) &std_vector_Sl_Handle_Sl_Quote_Sg__Sg____getitem____SWIG_1((std::vector< Handle< Quote > > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_Quote_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_QuoteHandleVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_QuoteHandleVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteHandleVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Handle< Quote > >::__getitem__(PySliceObject *)\n"
    "    std::vector< Handle< Quote > >::__getitem__(std::vector< Handle< Quote > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  std::vector< Handle< Quote > >::difference_type arg2 ;
  std::vector< Handle< Quote > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector___setitem__" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVector___setitem__" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Handle< Quote > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteHandleVector___setitem__" "', argument " "3"" of type '" "std::vector< Handle< Quote > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVector___setitem__" "', argument " "3"" of type '" "std::vector< Handle< Quote > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< Handle< Quote > >::value_type * >(argp3);
  {
    try {
      try {
        std_vector_Sl_Handle_Sl_Quote_Sg__Sg____setitem____SWIG_2(arg1,arg2,(Handle< Quote > const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_QuoteHandleVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuoteHandleVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(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_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuoteHandleVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteHandleVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Handle< Quote > >::__setitem__(PySliceObject *,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)\n"
    "    std::vector< Handle< Quote > >::__setitem__(PySliceObject *)\n"
    "    std::vector< Handle< Quote > >::__setitem__(std::vector< Handle< Quote > >::difference_type,std::vector< Handle< Quote > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Handle< Quote > >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_pop" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_Handle_Sl_Quote_Sg__Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< Handle< Quote > >::value_type(static_cast< const std::vector< Handle< Quote > >::value_type& >(result))), SWIGTYPE_p_HandleT_Quote_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  std::vector< Handle< Quote > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_append" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QuoteHandleVector_append" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVector_append" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< Handle< Quote > >::value_type * >(argp2);
  {
    try {
      std_vector_Sl_Handle_Sl_Quote_Sg__Sg__append(arg1,(Handle< Quote > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuoteHandleVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuoteHandleVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< Handle< Quote > > *)new std::vector< Handle< Quote > >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuoteHandleVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< Handle< Quote > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuoteHandleVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QuoteHandleVector" "', argument " "1"" of type '" "std::vector< Handle< Quote > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuoteHandleVector" "', argument " "1"" of type '" "std::vector< Handle< Quote > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< Handle< Quote > > *)new std::vector< Handle< Quote > >((std::vector< Handle< Quote > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_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_QuoteHandleVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_empty" "', argument " "1"" of type '" "std::vector< Handle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    try {
      result = (bool)((std::vector< Handle< Quote > > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Handle< Quote > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_size" "', argument " "1"" of type '" "std::vector< Handle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    try {
      result = ((std::vector< Handle< Quote > > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  std::vector< Handle< Quote > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_swap" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QuoteHandleVector_swap" "', argument " "2"" of type '" "std::vector< Handle< Quote > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVector_swap" "', argument " "2"" of type '" "std::vector< Handle< Quote > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Handle< Quote > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_begin" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Handle< Quote > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Handle< Quote > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_end" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Handle< Quote > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Handle< Quote > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_rbegin" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Handle< Quote > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Handle< Quote > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_rend" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Handle< Quote > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_clear" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< Handle< Quote > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_get_allocator" "', argument " "1"" of type '" "std::vector< Handle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    try {
      result = ((std::vector< Handle< Quote > > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< Handle< Quote > >::allocator_type(static_cast< const std::vector< Handle< Quote > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_HandleT_Quote_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuoteHandleVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Handle< Quote > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuoteHandleVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QuoteHandleVector" "', argument " "1"" of type '" "std::vector< Handle< Quote > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< Handle< Quote > >::size_type >(val1);
  {
    try {
      result = (std::vector< Handle< Quote > > *)new std::vector< Handle< Quote > >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_pop_back" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  std::vector< Handle< Quote > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_resize" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVector_resize" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< Handle< Quote > >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  std::vector< Handle< Quote > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< Handle< Quote > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_erase" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVector_erase" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Handle< Quote > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Handle< Quote > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVector_erase" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_Handle_Sl_Quote_Sg__Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Handle< Quote > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  std::vector< Handle< Quote > >::iterator arg2 ;
  std::vector< Handle< Quote > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< Handle< Quote > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_erase" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVector_erase" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Handle< Quote > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Handle< Quote > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVector_erase" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVector_erase" "', argument " "3"" of type '" "std::vector< Handle< Quote > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Handle< Quote > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Handle< Quote > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVector_erase" "', argument " "3"" of type '" "std::vector< Handle< Quote > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_Handle_Sl_Quote_Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Handle< Quote > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(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< Handle< Quote > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_QuoteHandleVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(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< Handle< Quote > >::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< Handle< Quote > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_QuoteHandleVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteHandleVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Handle< Quote > >::erase(std::vector< Handle< Quote > >::iterator)\n"
    "    std::vector< Handle< Quote > >::erase(std::vector< Handle< Quote > >::iterator,std::vector< Handle< Quote > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_QuoteHandleVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > >::size_type arg1 ;
  std::vector< Handle< Quote > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< Handle< Quote > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuoteHandleVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QuoteHandleVector" "', argument " "1"" of type '" "std::vector< Handle< Quote > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< Handle< Quote > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_QuoteHandleVector" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuoteHandleVector" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< Handle< Quote > >::value_type * >(argp2);
  {
    try {
      result = (std::vector< Handle< Quote > > *)new std::vector< Handle< Quote > >(arg1,(std::vector< Handle< Quote > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuoteHandleVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_QuoteHandleVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_QuoteHandleVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_QuoteHandleVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_QuoteHandleVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_QuoteHandleVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Handle< Quote > >::vector()\n"
    "    std::vector< Handle< Quote > >::vector(std::vector< Handle< Quote > > const &)\n"
    "    std::vector< Handle< Quote > >::vector(std::vector< Handle< Quote > >::size_type)\n"
    "    std::vector< Handle< Quote > >::vector(std::vector< Handle< Quote > >::size_type,std::vector< Handle< Quote > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  std::vector< Handle< Quote > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_push_back" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QuoteHandleVector_push_back" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVector_push_back" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< Handle< Quote > >::value_type * >(argp2);
  {
    try {
      (arg1)->push_back((std::vector< Handle< Quote > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Handle< Quote > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_front" "', argument " "1"" of type '" "std::vector< Handle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    try {
      result = (std::vector< Handle< Quote > >::value_type *) &((std::vector< Handle< Quote > > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_Quote_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Handle< Quote > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_back" "', argument " "1"" of type '" "std::vector< Handle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    try {
      result = (std::vector< Handle< Quote > >::value_type *) &((std::vector< Handle< Quote > > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_Quote_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  std::vector< Handle< Quote > >::size_type arg2 ;
  std::vector< Handle< Quote > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_assign" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVector_assign" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< Handle< Quote > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteHandleVector_assign" "', argument " "3"" of type '" "std::vector< Handle< Quote > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVector_assign" "', argument " "3"" of type '" "std::vector< Handle< Quote > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< Handle< Quote > >::value_type * >(argp3);
  {
    try {
      (arg1)->assign(arg2,(std::vector< Handle< Quote > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  std::vector< Handle< Quote > >::size_type arg2 ;
  std::vector< Handle< Quote > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_resize" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVector_resize" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< Handle< Quote > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteHandleVector_resize" "', argument " "3"" of type '" "std::vector< Handle< Quote > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVector_resize" "', argument " "3"" of type '" "std::vector< Handle< Quote > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< Handle< Quote > >::value_type * >(argp3);
  {
    try {
      (arg1)->resize(arg2,(std::vector< Handle< Quote > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_QuoteHandleVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(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_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuoteHandleVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteHandleVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Handle< Quote > >::resize(std::vector< Handle< Quote > >::size_type)\n"
    "    std::vector< Handle< Quote > >::resize(std::vector< Handle< Quote > >::size_type,std::vector< Handle< Quote > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  std::vector< Handle< Quote > >::iterator arg2 ;
  std::vector< Handle< Quote > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< Handle< Quote > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_insert" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVector_insert" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Handle< Quote > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Handle< Quote > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVector_insert" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteHandleVector_insert" "', argument " "3"" of type '" "std::vector< Handle< Quote > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVector_insert" "', argument " "3"" of type '" "std::vector< Handle< Quote > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< Handle< Quote > >::value_type * >(argp3);
  {
    try {
      result = std_vector_Sl_Handle_Sl_Quote_Sg__Sg__insert__SWIG_0(arg1,arg2,(Handle< Quote > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Handle< Quote > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  std::vector< Handle< Quote > >::iterator arg2 ;
  std::vector< Handle< Quote > >::size_type arg3 ;
  std::vector< Handle< Quote > >::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 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_insert" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVector_insert" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Handle< Quote > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Handle< Quote > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVector_insert" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteHandleVector_insert" "', argument " "3"" of type '" "std::vector< Handle< Quote > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< Handle< Quote > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QuoteHandleVector_insert" "', argument " "4"" of type '" "std::vector< Handle< Quote > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVector_insert" "', argument " "4"" of type '" "std::vector< Handle< Quote > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< Handle< Quote > >::value_type * >(argp4);
  {
    try {
      std_vector_Sl_Handle_Sl_Quote_Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(Handle< Quote > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(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< Handle< Quote > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuoteHandleVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(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< Handle< Quote > >::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_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_QuoteHandleVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteHandleVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Handle< Quote > >::insert(std::vector< Handle< Quote > >::iterator,std::vector< Handle< Quote > >::value_type const &)\n"
    "    std::vector< Handle< Quote > >::insert(std::vector< Handle< Quote > >::iterator,std::vector< Handle< Quote > >::size_type,std::vector< Handle< Quote > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  std::vector< Handle< Quote > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_reserve" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVector_reserve" "', argument " "2"" of type '" "std::vector< Handle< Quote > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< Handle< Quote > >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Handle< Quote > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVector_capacity" "', argument " "1"" of type '" "std::vector< Handle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    try {
      result = ((std::vector< Handle< Quote > > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_QuoteHandleVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Handle< Quote > > *arg1 = (std::vector< Handle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_QuoteHandleVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_QuoteHandleVector" "', argument " "1"" of type '" "std::vector< Handle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Handle< Quote > > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *QuoteHandleVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_iterator" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector___nonzero__" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____nonzero__((std::vector< std::vector< Handle< Quote > > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector___bool__" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____bool__((std::vector< std::vector< Handle< Quote > > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< Handle< Quote > > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector___len__" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    try {
      result = std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____len__((std::vector< std::vector< Handle< Quote > > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  std::vector< std::vector< Handle< Quote > > >::difference_type arg2 ;
  std::vector< std::vector< Handle< Quote > > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector___getslice__" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVectorVector___getslice__" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< Handle< Quote > > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteHandleVectorVector___getslice__" "', argument " "3"" of type '" "std::vector< std::vector< Handle< Quote > > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::vector< Handle< Quote > > >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  std::vector< std::vector< Handle< Quote > > >::difference_type arg2 ;
  std::vector< std::vector< Handle< Quote > > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector___setslice__" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVectorVector___setslice__" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< Handle< Quote > > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteHandleVectorVector___setslice__" "', argument " "3"" of type '" "std::vector< std::vector< Handle< Quote > > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::vector< Handle< Quote > > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  std::vector< std::vector< Handle< Quote > > >::difference_type arg2 ;
  std::vector< std::vector< Handle< Quote > > >::difference_type arg3 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector___setslice__" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVectorVector___setslice__" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< Handle< Quote > > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteHandleVectorVector___setslice__" "', argument " "3"" of type '" "std::vector< std::vector< Handle< Quote > > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::vector< Handle< Quote > > >::difference_type >(val3);
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QuoteHandleVectorVector___setslice__" "', argument " "4"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVectorVector___setslice__" "', argument " "4"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(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_QuoteHandleVectorVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(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::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_QuoteHandleVectorVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteHandleVectorVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< Handle< Quote > > >::__setslice__(std::vector< std::vector< Handle< Quote > > >::difference_type,std::vector< std::vector< Handle< Quote > > >::difference_type)\n"
    "    std::vector< std::vector< Handle< Quote > > >::__setslice__(std::vector< std::vector< Handle< Quote > > >::difference_type,std::vector< std::vector< Handle< Quote > > >::difference_type,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  std::vector< std::vector< Handle< Quote > > >::difference_type arg2 ;
  std::vector< std::vector< Handle< Quote > > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector___delslice__" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVectorVector___delslice__" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< Handle< Quote > > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteHandleVectorVector___delslice__" "', argument " "3"" of type '" "std::vector< std::vector< Handle< Quote > > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::vector< Handle< Quote > > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  std::vector< std::vector< Handle< Quote > > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector___delitem__" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVectorVector___delitem__" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< Handle< Quote > > >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector___getitem__" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVectorVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector___setitem__" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVectorVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteHandleVectorVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVectorVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector___setitem__" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVectorVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector___delitem__" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVectorVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_QuoteHandleVectorVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_QuoteHandleVectorVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteHandleVectorVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< Handle< Quote > > >::__delitem__(std::vector< std::vector< Handle< Quote > > >::difference_type)\n"
    "    std::vector< std::vector< Handle< Quote > > >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  std::vector< std::vector< Handle< Quote > > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::vector< Handle< Quote > > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector___getitem__" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVectorVector___getitem__" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< Handle< Quote > > >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< std::vector< Handle< Quote > > >::value_type *) &std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____getitem____SWIG_1((std::vector< std::vector< Handle< Quote > > > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_QuoteHandleVectorVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_QuoteHandleVectorVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteHandleVectorVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< Handle< Quote > > >::__getitem__(PySliceObject *)\n"
    "    std::vector< std::vector< Handle< Quote > > >::__getitem__(std::vector< std::vector< Handle< Quote > > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  std::vector< std::vector< Handle< Quote > > >::difference_type arg2 ;
  std::vector< std::vector< Handle< Quote > > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector___setitem__" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVectorVector___setitem__" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< Handle< Quote > > >::difference_type >(val2);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteHandleVectorVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< Handle< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVectorVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< Handle< Quote > > >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg____setitem____SWIG_2(arg1,arg2,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_QuoteHandleVectorVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuoteHandleVectorVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(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::asptr(argv[2], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuoteHandleVectorVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteHandleVectorVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< Handle< Quote > > >::__setitem__(PySliceObject *,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)\n"
    "    std::vector< std::vector< Handle< Quote > > >::__setitem__(PySliceObject *)\n"
    "    std::vector< std::vector< Handle< Quote > > >::__setitem__(std::vector< std::vector< Handle< Quote > > >::difference_type,std::vector< std::vector< Handle< Quote > > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< Handle< Quote > > >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_pop" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  std::vector< std::vector< Handle< Quote > > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_append" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QuoteHandleVectorVector_append" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVectorVector_append" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::value_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg__append(arg1,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuoteHandleVectorVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuoteHandleVectorVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< std::vector< Handle< Quote > > > *)new std::vector< std::vector< Handle< Quote > > >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuoteHandleVectorVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< Handle< Quote > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuoteHandleVectorVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QuoteHandleVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuoteHandleVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< std::vector< Handle< Quote > > > *)new std::vector< std::vector< Handle< Quote > > >((std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_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_QuoteHandleVectorVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_empty" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    try {
      result = (bool)((std::vector< std::vector< Handle< Quote > > > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< Handle< Quote > > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_size" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    try {
      result = ((std::vector< std::vector< Handle< Quote > > > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_swap" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QuoteHandleVectorVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVectorVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< Handle< Quote > > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_begin" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< Handle< Quote > > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< Handle< Quote > > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_end" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< Handle< Quote > > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< Handle< Quote > > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_rbegin" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< Handle< Quote > > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< Handle< Quote > > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_rend" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< Handle< Quote > > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_clear" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_get_allocator" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    try {
      result = ((std::vector< std::vector< Handle< Quote > > > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::vector< Handle< Quote > > >::allocator_type(static_cast< const std::vector< std::vector< Handle< Quote > > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuoteHandleVectorVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< Handle< Quote > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuoteHandleVectorVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QuoteHandleVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::vector< Handle< Quote > > >::size_type >(val1);
  {
    try {
      result = (std::vector< std::vector< Handle< Quote > > > *)new std::vector< std::vector< Handle< Quote > > >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_pop_back" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  std::vector< std::vector< Handle< Quote > > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_resize" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVectorVector_resize" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< Handle< Quote > > >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  std::vector< std::vector< Handle< Quote > > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::vector< Handle< Quote > > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_erase" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVectorVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::vector< Handle< Quote > > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< Handle< Quote > > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVectorVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< Handle< Quote > > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  std::vector< std::vector< Handle< Quote > > >::iterator arg2 ;
  std::vector< std::vector< Handle< Quote > > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< std::vector< Handle< Quote > > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_erase" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVectorVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::vector< Handle< Quote > > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< Handle< Quote > > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVectorVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVectorVector_erase" "', argument " "3"" of type '" "std::vector< std::vector< Handle< Quote > > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::vector< Handle< Quote > > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< Handle< Quote > > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVectorVector_erase" "', argument " "3"" of type '" "std::vector< std::vector< Handle< Quote > > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< Handle< Quote > > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(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::vector< Handle< Quote > > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_QuoteHandleVectorVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(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::vector< Handle< Quote > > >::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::vector< Handle< Quote > > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_QuoteHandleVectorVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteHandleVectorVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< Handle< Quote > > >::erase(std::vector< std::vector< Handle< Quote > > >::iterator)\n"
    "    std::vector< std::vector< Handle< Quote > > >::erase(std::vector< std::vector< Handle< Quote > > >::iterator,std::vector< std::vector< Handle< Quote > > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_QuoteHandleVectorVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > >::size_type arg1 ;
  std::vector< std::vector< Handle< Quote > > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::vector< Handle< Quote > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuoteHandleVectorVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QuoteHandleVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::vector< Handle< Quote > > >::size_type >(val1);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_QuoteHandleVectorVector" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuoteHandleVectorVector" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::value_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      result = (std::vector< std::vector< Handle< Quote > > > *)new std::vector< std::vector< Handle< Quote > > >(arg1,(std::vector< std::vector< Handle< Quote > > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuoteHandleVectorVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_QuoteHandleVectorVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_QuoteHandleVectorVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_QuoteHandleVectorVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_QuoteHandleVectorVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_QuoteHandleVectorVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< Handle< Quote > > >::vector()\n"
    "    std::vector< std::vector< Handle< Quote > > >::vector(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > const &)\n"
    "    std::vector< std::vector< Handle< Quote > > >::vector(std::vector< std::vector< Handle< Quote > > >::size_type)\n"
    "    std::vector< std::vector< Handle< Quote > > >::vector(std::vector< std::vector< Handle< Quote > > >::size_type,std::vector< std::vector< Handle< Quote > > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  std::vector< std::vector< Handle< Quote > > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_push_back" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QuoteHandleVectorVector_push_back" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVectorVector_push_back" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::value_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      (arg1)->push_back((std::vector< std::vector< Handle< Quote > > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< Handle< Quote > > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_front" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    try {
      result = (std::vector< std::vector< Handle< Quote > > >::value_type *) &((std::vector< std::vector< Handle< Quote > > > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< Handle< Quote > > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_back" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    try {
      result = (std::vector< std::vector< Handle< Quote > > >::value_type *) &((std::vector< std::vector< Handle< Quote > > > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  std::vector< std::vector< Handle< Quote > > >::size_type arg2 ;
  std::vector< std::vector< Handle< Quote > > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_assign" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVectorVector_assign" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< Handle< Quote > > >::size_type >(val2);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteHandleVectorVector_assign" "', argument " "3"" of type '" "std::vector< std::vector< Handle< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVectorVector_assign" "', argument " "3"" of type '" "std::vector< std::vector< Handle< Quote > > >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      (arg1)->assign(arg2,(std::vector< std::vector< Handle< Quote > > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  std::vector< std::vector< Handle< Quote > > >::size_type arg2 ;
  std::vector< std::vector< Handle< Quote > > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_resize" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVectorVector_resize" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< Handle< Quote > > >::size_type >(val2);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteHandleVectorVector_resize" "', argument " "3"" of type '" "std::vector< std::vector< Handle< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVectorVector_resize" "', argument " "3"" of type '" "std::vector< std::vector< Handle< Quote > > >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      (arg1)->resize(arg2,(std::vector< std::vector< Handle< Quote > > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_QuoteHandleVectorVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(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::asptr(argv[2], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuoteHandleVectorVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteHandleVectorVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< Handle< Quote > > >::resize(std::vector< std::vector< Handle< Quote > > >::size_type)\n"
    "    std::vector< std::vector< Handle< Quote > > >::resize(std::vector< std::vector< Handle< Quote > > >::size_type,std::vector< std::vector< Handle< Quote > > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  std::vector< std::vector< Handle< Quote > > >::iterator arg2 ;
  std::vector< std::vector< Handle< Quote > > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< std::vector< Handle< Quote > > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_insert" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVectorVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::vector< Handle< Quote > > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< Handle< Quote > > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVectorVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::iterator""'");
    }
  }
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuoteHandleVectorVector_insert" "', argument " "3"" of type '" "std::vector< std::vector< Handle< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVectorVector_insert" "', argument " "3"" of type '" "std::vector< std::vector< Handle< Quote > > >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      result = std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg__insert__SWIG_0(arg1,arg2,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< Handle< Quote > > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  std::vector< std::vector< Handle< Quote > > >::iterator arg2 ;
  std::vector< std::vector< Handle< Quote > > >::size_type arg3 ;
  std::vector< std::vector< Handle< Quote > > >::value_type *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_insert" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVectorVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::vector< Handle< Quote > > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< Handle< Quote > > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuoteHandleVectorVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuoteHandleVectorVector_insert" "', argument " "3"" of type '" "std::vector< std::vector< Handle< Quote > > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< std::vector< Handle< Quote > > >::size_type >(val3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QuoteHandleVectorVector_insert" "', argument " "4"" of type '" "std::vector< std::vector< Handle< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "QuoteHandleVectorVector_insert" "', argument " "4"" of type '" "std::vector< std::vector< Handle< Quote > > >::value_type const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      std_vector_Sl_std_vector_Sl_Handle_Sl_Quote_Sg__Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(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::vector< Handle< Quote > > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuoteHandleVectorVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(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::vector< Handle< Quote > > >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_QuoteHandleVectorVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'QuoteHandleVectorVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< Handle< Quote > > >::insert(std::vector< std::vector< Handle< Quote > > >::iterator,std::vector< std::vector< Handle< Quote > > >::value_type const &)\n"
    "    std::vector< std::vector< Handle< Quote > > >::insert(std::vector< std::vector< Handle< Quote > > >::iterator,std::vector< std::vector< Handle< Quote > > >::size_type,std::vector< std::vector< Handle< Quote > > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  std::vector< std::vector< Handle< Quote > > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_reserve" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuoteHandleVectorVector_reserve" "', argument " "2"" of type '" "std::vector< std::vector< Handle< Quote > > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< Handle< Quote > > >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuoteHandleVectorVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< Handle< Quote > > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuoteHandleVectorVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuoteHandleVectorVector_capacity" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    try {
      result = ((std::vector< std::vector< Handle< Quote > > > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_QuoteHandleVectorVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< Handle< Quote > > > *arg1 = (std::vector< std::vector< Handle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_QuoteHandleVectorVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_QuoteHandleVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< Handle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< Handle< Quote > > > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *QuoteHandleVectorVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_iterator" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector___nonzero__" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____nonzero__((std::vector< RelinkableHandle< Quote > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector___bool__" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____bool__((std::vector< RelinkableHandle< Quote > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< RelinkableHandle< Quote > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector___len__" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    try {
      result = std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____len__((std::vector< RelinkableHandle< Quote > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  std::vector< RelinkableHandle< Quote > >::difference_type arg2 ;
  std::vector< RelinkableHandle< Quote > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector___getslice__" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVector___getslice__" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< RelinkableHandle< Quote > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RelinkableQuoteHandleVector___getslice__" "', argument " "3"" of type '" "std::vector< RelinkableHandle< Quote > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< RelinkableHandle< Quote > >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *)std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  std::vector< RelinkableHandle< Quote > >::difference_type arg2 ;
  std::vector< RelinkableHandle< Quote > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector___setslice__" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVector___setslice__" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< RelinkableHandle< Quote > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RelinkableQuoteHandleVector___setslice__" "', argument " "3"" of type '" "std::vector< RelinkableHandle< Quote > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< RelinkableHandle< Quote > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  std::vector< RelinkableHandle< Quote > >::difference_type arg2 ;
  std::vector< RelinkableHandle< Quote > >::difference_type arg3 ;
  std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector___setslice__" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVector___setslice__" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< RelinkableHandle< Quote > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RelinkableQuoteHandleVector___setslice__" "', argument " "3"" of type '" "std::vector< RelinkableHandle< Quote > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< RelinkableHandle< Quote > >::difference_type >(val3);
  {
    std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *ptr = (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RelinkableQuoteHandleVector___setslice__" "', argument " "4"" of type '" "std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVector___setslice__" "', argument " "4"" of type '" "std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(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_RelinkableQuoteHandleVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(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< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_RelinkableQuoteHandleVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RelinkableQuoteHandleVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< RelinkableHandle< Quote > >::__setslice__(std::vector< RelinkableHandle< Quote > >::difference_type,std::vector< RelinkableHandle< Quote > >::difference_type)\n"
    "    std::vector< RelinkableHandle< Quote > >::__setslice__(std::vector< RelinkableHandle< Quote > >::difference_type,std::vector< RelinkableHandle< Quote > >::difference_type,std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  std::vector< RelinkableHandle< Quote > >::difference_type arg2 ;
  std::vector< RelinkableHandle< Quote > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector___delslice__" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVector___delslice__" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< RelinkableHandle< Quote > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RelinkableQuoteHandleVector___delslice__" "', argument " "3"" of type '" "std::vector< RelinkableHandle< Quote > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< RelinkableHandle< Quote > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  std::vector< RelinkableHandle< Quote > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector___delitem__" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVector___delitem__" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< RelinkableHandle< Quote > >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector___getitem__" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *)std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector___setitem__" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *ptr = (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RelinkableQuoteHandleVector___setitem__" "', argument " "3"" of type '" "std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVector___setitem__" "', argument " "3"" of type '" "std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector___setitem__" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector___delitem__" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_RelinkableQuoteHandleVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_RelinkableQuoteHandleVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RelinkableQuoteHandleVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< RelinkableHandle< Quote > >::__delitem__(std::vector< RelinkableHandle< Quote > >::difference_type)\n"
    "    std::vector< RelinkableHandle< Quote > >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  std::vector< RelinkableHandle< Quote > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< RelinkableHandle< Quote > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector___getitem__" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVector___getitem__" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< RelinkableHandle< Quote > >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< RelinkableHandle< Quote > >::value_type *) &std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____getitem____SWIG_1((std::vector< RelinkableHandle< Quote > > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_Quote_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_RelinkableQuoteHandleVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_RelinkableQuoteHandleVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RelinkableQuoteHandleVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< RelinkableHandle< Quote > >::__getitem__(PySliceObject *)\n"
    "    std::vector< RelinkableHandle< Quote > >::__getitem__(std::vector< RelinkableHandle< Quote > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  std::vector< RelinkableHandle< Quote > >::difference_type arg2 ;
  std::vector< RelinkableHandle< Quote > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector___setitem__" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVector___setitem__" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< RelinkableHandle< Quote > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_RelinkableHandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RelinkableQuoteHandleVector___setitem__" "', argument " "3"" of type '" "std::vector< RelinkableHandle< Quote > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVector___setitem__" "', argument " "3"" of type '" "std::vector< RelinkableHandle< Quote > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< RelinkableHandle< Quote > >::value_type * >(argp3);
  {
    try {
      try {
        std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg____setitem____SWIG_2(arg1,arg2,(RelinkableHandle< Quote > const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_RelinkableQuoteHandleVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_RelinkableQuoteHandleVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(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_RelinkableHandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_RelinkableQuoteHandleVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RelinkableQuoteHandleVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< RelinkableHandle< Quote > >::__setitem__(PySliceObject *,std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > const &)\n"
    "    std::vector< RelinkableHandle< Quote > >::__setitem__(PySliceObject *)\n"
    "    std::vector< RelinkableHandle< Quote > >::__setitem__(std::vector< RelinkableHandle< Quote > >::difference_type,std::vector< RelinkableHandle< Quote > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< RelinkableHandle< Quote > >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_pop" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< RelinkableHandle< Quote > >::value_type(static_cast< const std::vector< RelinkableHandle< Quote > >::value_type& >(result))), SWIGTYPE_p_RelinkableHandleT_Quote_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  std::vector< RelinkableHandle< Quote > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_append" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_RelinkableHandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableQuoteHandleVector_append" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVector_append" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< RelinkableHandle< Quote > >::value_type * >(argp2);
  {
    try {
      std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__append(arg1,(RelinkableHandle< Quote > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableQuoteHandleVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableQuoteHandleVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< RelinkableHandle< Quote > > *)new std::vector< RelinkableHandle< Quote > >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableQuoteHandleVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< RelinkableHandle< Quote > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableQuoteHandleVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *ptr = (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RelinkableQuoteHandleVector" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RelinkableQuoteHandleVector" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< RelinkableHandle< Quote > > *)new std::vector< RelinkableHandle< Quote > >((std::vector< RelinkableHandle< Quote > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_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_RelinkableQuoteHandleVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_empty" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    try {
      result = (bool)((std::vector< RelinkableHandle< Quote > > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< RelinkableHandle< Quote > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_size" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    try {
      result = ((std::vector< RelinkableHandle< Quote > > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  std::vector< RelinkableHandle< Quote > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_swap" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableQuoteHandleVector_swap" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVector_swap" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< RelinkableHandle< Quote > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_begin" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< RelinkableHandle< Quote > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< RelinkableHandle< Quote > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_end" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< RelinkableHandle< Quote > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< RelinkableHandle< Quote > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_rbegin" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< RelinkableHandle< Quote > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< RelinkableHandle< Quote > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_rend" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< RelinkableHandle< Quote > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_clear" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< RelinkableHandle< Quote > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_get_allocator" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    try {
      result = ((std::vector< RelinkableHandle< Quote > > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< RelinkableHandle< Quote > >::allocator_type(static_cast< const std::vector< RelinkableHandle< Quote > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_RelinkableHandleT_Quote_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableQuoteHandleVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< RelinkableHandle< Quote > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableQuoteHandleVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RelinkableQuoteHandleVector" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< RelinkableHandle< Quote > >::size_type >(val1);
  {
    try {
      result = (std::vector< RelinkableHandle< Quote > > *)new std::vector< RelinkableHandle< Quote > >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_pop_back" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  std::vector< RelinkableHandle< Quote > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_resize" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVector_resize" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< RelinkableHandle< Quote > >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  std::vector< RelinkableHandle< Quote > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< RelinkableHandle< Quote > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_erase" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVector_erase" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< RelinkableHandle< Quote > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< RelinkableHandle< Quote > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVector_erase" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< RelinkableHandle< Quote > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  std::vector< RelinkableHandle< Quote > >::iterator arg2 ;
  std::vector< RelinkableHandle< Quote > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< RelinkableHandle< Quote > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_erase" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVector_erase" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< RelinkableHandle< Quote > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< RelinkableHandle< Quote > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVector_erase" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVector_erase" "', argument " "3"" of type '" "std::vector< RelinkableHandle< Quote > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< RelinkableHandle< Quote > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< RelinkableHandle< Quote > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVector_erase" "', argument " "3"" of type '" "std::vector< RelinkableHandle< Quote > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< RelinkableHandle< Quote > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(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< RelinkableHandle< Quote > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_RelinkableQuoteHandleVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(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< RelinkableHandle< Quote > >::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< RelinkableHandle< Quote > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_RelinkableQuoteHandleVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RelinkableQuoteHandleVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< RelinkableHandle< Quote > >::erase(std::vector< RelinkableHandle< Quote > >::iterator)\n"
    "    std::vector< RelinkableHandle< Quote > >::erase(std::vector< RelinkableHandle< Quote > >::iterator,std::vector< RelinkableHandle< Quote > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_RelinkableQuoteHandleVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > >::size_type arg1 ;
  std::vector< RelinkableHandle< Quote > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< RelinkableHandle< Quote > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableQuoteHandleVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RelinkableQuoteHandleVector" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< RelinkableHandle< Quote > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_RelinkableHandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_RelinkableQuoteHandleVector" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RelinkableQuoteHandleVector" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< RelinkableHandle< Quote > >::value_type * >(argp2);
  {
    try {
      result = (std::vector< RelinkableHandle< Quote > > *)new std::vector< RelinkableHandle< Quote > >(arg1,(std::vector< RelinkableHandle< Quote > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableQuoteHandleVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_RelinkableQuoteHandleVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_RelinkableQuoteHandleVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_RelinkableQuoteHandleVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_RelinkableHandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_RelinkableQuoteHandleVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RelinkableQuoteHandleVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< RelinkableHandle< Quote > >::vector()\n"
    "    std::vector< RelinkableHandle< Quote > >::vector(std::vector< RelinkableHandle< Quote > > const &)\n"
    "    std::vector< RelinkableHandle< Quote > >::vector(std::vector< RelinkableHandle< Quote > >::size_type)\n"
    "    std::vector< RelinkableHandle< Quote > >::vector(std::vector< RelinkableHandle< Quote > >::size_type,std::vector< RelinkableHandle< Quote > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  std::vector< RelinkableHandle< Quote > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_push_back" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_RelinkableHandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableQuoteHandleVector_push_back" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVector_push_back" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< RelinkableHandle< Quote > >::value_type * >(argp2);
  {
    try {
      (arg1)->push_back((std::vector< RelinkableHandle< Quote > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< RelinkableHandle< Quote > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_front" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    try {
      result = (std::vector< RelinkableHandle< Quote > >::value_type *) &((std::vector< RelinkableHandle< Quote > > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_Quote_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< RelinkableHandle< Quote > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_back" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    try {
      result = (std::vector< RelinkableHandle< Quote > >::value_type *) &((std::vector< RelinkableHandle< Quote > > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_Quote_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  std::vector< RelinkableHandle< Quote > >::size_type arg2 ;
  std::vector< RelinkableHandle< Quote > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_assign" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVector_assign" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< RelinkableHandle< Quote > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_RelinkableHandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RelinkableQuoteHandleVector_assign" "', argument " "3"" of type '" "std::vector< RelinkableHandle< Quote > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVector_assign" "', argument " "3"" of type '" "std::vector< RelinkableHandle< Quote > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< RelinkableHandle< Quote > >::value_type * >(argp3);
  {
    try {
      (arg1)->assign(arg2,(std::vector< RelinkableHandle< Quote > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  std::vector< RelinkableHandle< Quote > >::size_type arg2 ;
  std::vector< RelinkableHandle< Quote > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_resize" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVector_resize" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< RelinkableHandle< Quote > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_RelinkableHandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RelinkableQuoteHandleVector_resize" "', argument " "3"" of type '" "std::vector< RelinkableHandle< Quote > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVector_resize" "', argument " "3"" of type '" "std::vector< RelinkableHandle< Quote > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< RelinkableHandle< Quote > >::value_type * >(argp3);
  {
    try {
      (arg1)->resize(arg2,(std::vector< RelinkableHandle< Quote > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_RelinkableQuoteHandleVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(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_RelinkableHandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_RelinkableQuoteHandleVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RelinkableQuoteHandleVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< RelinkableHandle< Quote > >::resize(std::vector< RelinkableHandle< Quote > >::size_type)\n"
    "    std::vector< RelinkableHandle< Quote > >::resize(std::vector< RelinkableHandle< Quote > >::size_type,std::vector< RelinkableHandle< Quote > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  std::vector< RelinkableHandle< Quote > >::iterator arg2 ;
  std::vector< RelinkableHandle< Quote > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< RelinkableHandle< Quote > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_insert" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVector_insert" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< RelinkableHandle< Quote > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< RelinkableHandle< Quote > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVector_insert" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_RelinkableHandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RelinkableQuoteHandleVector_insert" "', argument " "3"" of type '" "std::vector< RelinkableHandle< Quote > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVector_insert" "', argument " "3"" of type '" "std::vector< RelinkableHandle< Quote > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< RelinkableHandle< Quote > >::value_type * >(argp3);
  {
    try {
      result = std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__insert__SWIG_0(arg1,arg2,(RelinkableHandle< Quote > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< RelinkableHandle< Quote > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  std::vector< RelinkableHandle< Quote > >::iterator arg2 ;
  std::vector< RelinkableHandle< Quote > >::size_type arg3 ;
  std::vector< RelinkableHandle< Quote > >::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 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_insert" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVector_insert" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< RelinkableHandle< Quote > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< RelinkableHandle< Quote > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVector_insert" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RelinkableQuoteHandleVector_insert" "', argument " "3"" of type '" "std::vector< RelinkableHandle< Quote > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< RelinkableHandle< Quote > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_RelinkableHandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RelinkableQuoteHandleVector_insert" "', argument " "4"" of type '" "std::vector< RelinkableHandle< Quote > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVector_insert" "', argument " "4"" of type '" "std::vector< RelinkableHandle< Quote > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< RelinkableHandle< Quote > >::value_type * >(argp4);
  {
    try {
      std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(RelinkableHandle< Quote > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(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< RelinkableHandle< Quote > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_RelinkableHandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_RelinkableQuoteHandleVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(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< RelinkableHandle< Quote > >::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_RelinkableHandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_RelinkableQuoteHandleVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RelinkableQuoteHandleVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< RelinkableHandle< Quote > >::insert(std::vector< RelinkableHandle< Quote > >::iterator,std::vector< RelinkableHandle< Quote > >::value_type const &)\n"
    "    std::vector< RelinkableHandle< Quote > >::insert(std::vector< RelinkableHandle< Quote > >::iterator,std::vector< RelinkableHandle< Quote > >::size_type,std::vector< RelinkableHandle< Quote > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  std::vector< RelinkableHandle< Quote > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_reserve" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVector_reserve" "', argument " "2"" of type '" "std::vector< RelinkableHandle< Quote > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< RelinkableHandle< Quote > >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< RelinkableHandle< Quote > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVector_capacity" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    try {
      result = ((std::vector< RelinkableHandle< Quote > > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RelinkableQuoteHandleVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< RelinkableHandle< Quote > > *arg1 = (std::vector< RelinkableHandle< Quote > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RelinkableQuoteHandleVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RelinkableQuoteHandleVector" "', argument " "1"" of type '" "std::vector< RelinkableHandle< Quote > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< RelinkableHandle< Quote > > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RelinkableQuoteHandleVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_iterator" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector___nonzero__" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____nonzero__((std::vector< std::vector< RelinkableHandle< Quote > > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector___bool__" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____bool__((std::vector< std::vector< RelinkableHandle< Quote > > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector___len__" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    try {
      result = std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____len__((std::vector< std::vector< RelinkableHandle< Quote > > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type arg2 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector___getslice__" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVectorVector___getslice__" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RelinkableQuoteHandleVectorVector___getslice__" "', argument " "3"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > *)std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type arg2 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector___setslice__" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVectorVector___setslice__" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RelinkableQuoteHandleVectorVector___setslice__" "', argument " "3"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type arg2 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type arg3 ;
  std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector___setslice__" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVectorVector___setslice__" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RelinkableQuoteHandleVectorVector___setslice__" "', argument " "3"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type >(val3);
  {
    std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > *ptr = (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RelinkableQuoteHandleVectorVector___setslice__" "', argument " "4"" of type '" "std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVectorVector___setslice__" "', argument " "4"" of type '" "std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >**)(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_RelinkableQuoteHandleVectorVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >**)(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::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_RelinkableQuoteHandleVectorVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RelinkableQuoteHandleVectorVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::__setslice__(std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type,std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type)\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::__setslice__(std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type,std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type,std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type arg2 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector___delslice__" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVectorVector___delslice__" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RelinkableQuoteHandleVectorVector___delslice__" "', argument " "3"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector___delitem__" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVectorVector___delitem__" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector___getitem__" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVectorVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > *)std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector___setitem__" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVectorVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > *ptr = (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RelinkableQuoteHandleVectorVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVectorVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector___setitem__" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVectorVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector___delitem__" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVectorVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_RelinkableQuoteHandleVectorVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_RelinkableQuoteHandleVectorVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RelinkableQuoteHandleVectorVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::__delitem__(std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type)\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector___getitem__" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVectorVector___getitem__" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< std::vector< RelinkableHandle< Quote > > >::value_type *) &std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____getitem____SWIG_1((std::vector< std::vector< RelinkableHandle< Quote > > > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_RelinkableQuoteHandleVectorVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_RelinkableQuoteHandleVectorVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RelinkableQuoteHandleVectorVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::__getitem__(PySliceObject *)\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::__getitem__(std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type arg2 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector___setitem__" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVectorVector___setitem__" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type >(val2);
  {
    std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *ptr = (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RelinkableQuoteHandleVectorVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVectorVector___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg____setitem____SWIG_2(arg1,arg2,(std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_RelinkableQuoteHandleVectorVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_RelinkableQuoteHandleVectorVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >**)(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::asptr(argv[2], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_RelinkableQuoteHandleVectorVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RelinkableQuoteHandleVectorVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::__setitem__(PySliceObject *,std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > const &)\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::__setitem__(PySliceObject *)\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::__setitem__(std::vector< std::vector< RelinkableHandle< Quote > > >::difference_type,std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_pop" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_append" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *ptr = (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableQuoteHandleVectorVector_append" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVectorVector_append" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg__append(arg1,(std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableQuoteHandleVectorVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableQuoteHandleVectorVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< std::vector< RelinkableHandle< Quote > > > *)new std::vector< std::vector< RelinkableHandle< Quote > > >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableQuoteHandleVectorVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableQuoteHandleVectorVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > *ptr = (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RelinkableQuoteHandleVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RelinkableQuoteHandleVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< std::vector< RelinkableHandle< Quote > > > *)new std::vector< std::vector< RelinkableHandle< Quote > > >((std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_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_RelinkableQuoteHandleVectorVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_empty" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    try {
      result = (bool)((std::vector< std::vector< RelinkableHandle< Quote > > > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_size" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    try {
      result = ((std::vector< std::vector< RelinkableHandle< Quote > > > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_swap" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableQuoteHandleVectorVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVectorVector_swap" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_begin" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< RelinkableHandle< Quote > > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_end" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< RelinkableHandle< Quote > > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_rbegin" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< RelinkableHandle< Quote > > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_rend" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< RelinkableHandle< Quote > > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_clear" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_get_allocator" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    try {
      result = ((std::vector< std::vector< RelinkableHandle< Quote > > > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::vector< RelinkableHandle< Quote > > >::allocator_type(static_cast< const std::vector< std::vector< RelinkableHandle< Quote > > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableQuoteHandleVectorVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableQuoteHandleVectorVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RelinkableQuoteHandleVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::vector< RelinkableHandle< Quote > > >::size_type >(val1);
  {
    try {
      result = (std::vector< std::vector< RelinkableHandle< Quote > > > *)new std::vector< std::vector< RelinkableHandle< Quote > > >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_pop_back" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_resize" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVectorVector_resize" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< RelinkableHandle< Quote > > >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_erase" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVectorVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::vector< RelinkableHandle< Quote > > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< RelinkableHandle< Quote > > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVectorVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< RelinkableHandle< Quote > > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::iterator arg2 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_erase" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVectorVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::vector< RelinkableHandle< Quote > > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< RelinkableHandle< Quote > > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVectorVector_erase" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVectorVector_erase" "', argument " "3"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::vector< RelinkableHandle< Quote > > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< RelinkableHandle< Quote > > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVectorVector_erase" "', argument " "3"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< RelinkableHandle< Quote > > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >**)(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::vector< RelinkableHandle< Quote > > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_RelinkableQuoteHandleVectorVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >**)(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::vector< RelinkableHandle< Quote > > >::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::vector< RelinkableHandle< Quote > > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_RelinkableQuoteHandleVectorVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RelinkableQuoteHandleVectorVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::erase(std::vector< std::vector< RelinkableHandle< Quote > > >::iterator)\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::erase(std::vector< std::vector< RelinkableHandle< Quote > > >::iterator,std::vector< std::vector< RelinkableHandle< Quote > > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_RelinkableQuoteHandleVectorVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > >::size_type arg1 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableQuoteHandleVectorVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RelinkableQuoteHandleVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::vector< RelinkableHandle< Quote > > >::size_type >(val1);
  {
    std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *ptr = (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_RelinkableQuoteHandleVectorVector" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RelinkableQuoteHandleVectorVector" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      result = (std::vector< std::vector< RelinkableHandle< Quote > > > *)new std::vector< std::vector< RelinkableHandle< Quote > > >(arg1,(std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableQuoteHandleVectorVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_RelinkableQuoteHandleVectorVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_RelinkableQuoteHandleVectorVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_RelinkableQuoteHandleVectorVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_RelinkableQuoteHandleVectorVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RelinkableQuoteHandleVectorVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::vector()\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::vector(std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > const &)\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::vector(std::vector< std::vector< RelinkableHandle< Quote > > >::size_type)\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::vector(std::vector< std::vector< RelinkableHandle< Quote > > >::size_type,std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_push_back" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *ptr = (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableQuoteHandleVectorVector_push_back" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVectorVector_push_back" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      (arg1)->push_back((std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_front" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    try {
      result = (std::vector< std::vector< RelinkableHandle< Quote > > >::value_type *) &((std::vector< std::vector< RelinkableHandle< Quote > > > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_back" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    try {
      result = (std::vector< std::vector< RelinkableHandle< Quote > > >::value_type *) &((std::vector< std::vector< RelinkableHandle< Quote > > > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::size_type arg2 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_assign" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVectorVector_assign" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< RelinkableHandle< Quote > > >::size_type >(val2);
  {
    std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *ptr = (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RelinkableQuoteHandleVectorVector_assign" "', argument " "3"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVectorVector_assign" "', argument " "3"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      (arg1)->assign(arg2,(std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::size_type arg2 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_resize" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVectorVector_resize" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< RelinkableHandle< Quote > > >::size_type >(val2);
  {
    std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *ptr = (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RelinkableQuoteHandleVectorVector_resize" "', argument " "3"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVectorVector_resize" "', argument " "3"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      (arg1)->resize(arg2,(std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_RelinkableQuoteHandleVectorVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >**)(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::asptr(argv[2], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_RelinkableQuoteHandleVectorVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RelinkableQuoteHandleVectorVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::resize(std::vector< std::vector< RelinkableHandle< Quote > > >::size_type)\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::resize(std::vector< std::vector< RelinkableHandle< Quote > > >::size_type,std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::iterator arg2 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_insert" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVectorVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::vector< RelinkableHandle< Quote > > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< RelinkableHandle< Quote > > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVectorVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::iterator""'");
    }
  }
  {
    std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *ptr = (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RelinkableQuoteHandleVectorVector_insert" "', argument " "3"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVectorVector_insert" "', argument " "3"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      result = std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg__insert__SWIG_0(arg1,arg2,(std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< RelinkableHandle< Quote > > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::iterator arg2 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::size_type arg3 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::value_type *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_insert" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVectorVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::vector< RelinkableHandle< Quote > > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::vector< RelinkableHandle< Quote > > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RelinkableQuoteHandleVectorVector_insert" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RelinkableQuoteHandleVectorVector_insert" "', argument " "3"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< std::vector< RelinkableHandle< Quote > > >::size_type >(val3);
  {
    std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *ptr = (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RelinkableQuoteHandleVectorVector_insert" "', argument " "4"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableQuoteHandleVectorVector_insert" "', argument " "4"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      std_vector_Sl_std_vector_Sl_RelinkableHandle_Sl_Quote_Sg__Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >**)(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::vector< RelinkableHandle< Quote > > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_RelinkableQuoteHandleVectorVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > >**)(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::vector< RelinkableHandle< Quote > > >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_RelinkableQuoteHandleVectorVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RelinkableQuoteHandleVectorVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::insert(std::vector< std::vector< RelinkableHandle< Quote > > >::iterator,std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &)\n"
    "    std::vector< std::vector< RelinkableHandle< Quote > > >::insert(std::vector< std::vector< RelinkableHandle< Quote > > >::iterator,std::vector< std::vector< RelinkableHandle< Quote > > >::size_type,std::vector< std::vector< RelinkableHandle< Quote > > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_reserve" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RelinkableQuoteHandleVectorVector_reserve" "', argument " "2"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::vector< RelinkableHandle< Quote > > >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RelinkableQuoteHandleVectorVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::vector< RelinkableHandle< Quote > > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableQuoteHandleVectorVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableQuoteHandleVectorVector_capacity" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    try {
      result = ((std::vector< std::vector< RelinkableHandle< Quote > > > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RelinkableQuoteHandleVectorVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::vector< RelinkableHandle< Quote > > > *arg1 = (std::vector< std::vector< RelinkableHandle< Quote > > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RelinkableQuoteHandleVectorVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RelinkableQuoteHandleVectorVector" "', argument " "1"" of type '" "std::vector< std::vector< RelinkableHandle< Quote > > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::vector< RelinkableHandle< Quote > > > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RelinkableQuoteHandleVectorVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Calendar_isWeekend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Weekday arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_isWeekend",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_isWeekend" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Calendar_isWeekend" "', argument " "2"" of type '" "Weekday""'");
  } 
  arg2 = static_cast< Weekday >(val2);
  {
    try {
      result = (bool)(arg1)->isWeekend(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar_endOfMonth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_endOfMonth",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_endOfMonth" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar_endOfMonth" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_endOfMonth" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (arg1)->endOfMonth((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar_isBusinessDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_isBusinessDay",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_isBusinessDay" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar_isBusinessDay" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_isBusinessDay" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (bool)(arg1)->isBusinessDay((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar_isHoliday(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_isHoliday",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_isHoliday" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar_isHoliday" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_isHoliday" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (bool)(arg1)->isHoliday((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar_isEndOfMonth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_isEndOfMonth",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_isEndOfMonth" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar_isEndOfMonth" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_isEndOfMonth" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (bool)(arg1)->isEndOfMonth((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar_addHoliday(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_addHoliday",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_addHoliday" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar_addHoliday" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_addHoliday" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      (arg1)->addHoliday((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar_removeHoliday(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_removeHoliday",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_removeHoliday" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar_removeHoliday" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_removeHoliday" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      (arg1)->removeHoliday((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar_adjust__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Date *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_adjust",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_adjust" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar_adjust" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_adjust" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Calendar_adjust" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  {
    try {
      result = (arg1)->adjust((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar_adjust__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_adjust",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_adjust" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar_adjust" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_adjust" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (arg1)->adjust((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar_adjust(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_Calendar_adjust__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_Calendar_adjust__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Calendar_adjust'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Calendar::adjust(Date const &,BusinessDayConvention)\n"
    "    Calendar::adjust(Date const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Calendar_advance__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Date *arg2 = 0 ;
  Integer arg3 ;
  TimeUnit arg4 ;
  BusinessDayConvention arg5 ;
  bool arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_advance",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_advance" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar_advance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_advance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Calendar_advance" "', argument " "3"" of type '" "Integer""'");
  } 
  arg3 = static_cast< Integer >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Calendar_advance" "', argument " "4"" of type '" "TimeUnit""'");
  } 
  arg4 = static_cast< TimeUnit >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Calendar_advance" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Calendar_advance" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    try {
      result = (arg1)->advance((Date const &)*arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar_advance__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Date *arg2 = 0 ;
  Integer arg3 ;
  TimeUnit arg4 ;
  BusinessDayConvention arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_advance",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_advance" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar_advance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_advance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Calendar_advance" "', argument " "3"" of type '" "Integer""'");
  } 
  arg3 = static_cast< Integer >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Calendar_advance" "', argument " "4"" of type '" "TimeUnit""'");
  } 
  arg4 = static_cast< TimeUnit >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Calendar_advance" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  {
    try {
      result = (arg1)->advance((Date const &)*arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar_advance__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Date *arg2 = 0 ;
  Integer arg3 ;
  TimeUnit arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_advance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_advance" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar_advance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_advance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Calendar_advance" "', argument " "3"" of type '" "Integer""'");
  } 
  arg3 = static_cast< Integer >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Calendar_advance" "', argument " "4"" of type '" "TimeUnit""'");
  } 
  arg4 = static_cast< TimeUnit >(val4);
  {
    try {
      result = (arg1)->advance((Date const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar_advance__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  BusinessDayConvention arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_advance",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_advance" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar_advance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_advance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Calendar_advance" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_advance" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Calendar_advance" "', argument " "4"" of type '" "BusinessDayConvention""'");
  } 
  arg4 = static_cast< BusinessDayConvention >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Calendar_advance" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (arg1)->advance((Date const &)*arg2,(Period const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar_advance__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  BusinessDayConvention arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_advance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_advance" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar_advance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_advance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Calendar_advance" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_advance" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Calendar_advance" "', argument " "4"" of type '" "BusinessDayConvention""'");
  } 
  arg4 = static_cast< BusinessDayConvention >(val4);
  {
    try {
      result = (arg1)->advance((Date const &)*arg2,(Period const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar_advance__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_advance",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_advance" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar_advance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_advance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Calendar_advance" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_advance" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  {
    try {
      result = (arg1)->advance((Date const &)*arg2,(Period const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar_advance(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_Calendar_advance__SWIG_5(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_Calendar_advance__SWIG_4(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_Calendar_advance__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_Calendar_advance__SWIG_3(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_Calendar_advance__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_Calendar_advance__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Calendar_advance'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Calendar::advance(Date const &,Integer,TimeUnit,BusinessDayConvention,bool)\n"
    "    Calendar::advance(Date const &,Integer,TimeUnit,BusinessDayConvention)\n"
    "    Calendar::advance(Date const &,Integer,TimeUnit)\n"
    "    Calendar::advance(Date const &,Period const &,BusinessDayConvention,bool)\n"
    "    Calendar::advance(Date const &,Period const &,BusinessDayConvention)\n"
    "    Calendar::advance(Date const &,Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Calendar_businessDaysBetween__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  bool arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  BigInteger result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_businessDaysBetween",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_businessDaysBetween" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar_businessDaysBetween" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_businessDaysBetween" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Calendar_businessDaysBetween" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_businessDaysBetween" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Calendar_businessDaysBetween" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Calendar_businessDaysBetween" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (BigInteger)(arg1)->businessDaysBetween((Date const &)*arg2,(Date const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_long(static_cast< long >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar_businessDaysBetween__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  BigInteger result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_businessDaysBetween",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_businessDaysBetween" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar_businessDaysBetween" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_businessDaysBetween" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Calendar_businessDaysBetween" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_businessDaysBetween" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Calendar_businessDaysBetween" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (BigInteger)(arg1)->businessDaysBetween((Date const &)*arg2,(Date const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_long(static_cast< long >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar_businessDaysBetween__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  BigInteger result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_businessDaysBetween",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_businessDaysBetween" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar_businessDaysBetween" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_businessDaysBetween" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Calendar_businessDaysBetween" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar_businessDaysBetween" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  {
    try {
      result = (BigInteger)(arg1)->businessDaysBetween((Date const &)*arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_long(static_cast< long >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar_businessDaysBetween(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_Calendar_businessDaysBetween__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_Calendar_businessDaysBetween__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_Calendar_businessDaysBetween__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Calendar_businessDaysBetween'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Calendar::businessDaysBetween(Date const &,Date const &,bool,bool)\n"
    "    Calendar::businessDaysBetween(Date const &,Date const &,bool)\n"
    "    Calendar::businessDaysBetween(Date const &,Date const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Calendar_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar_name",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar_name" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  {
    try {
      result = (arg1)->name();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar___str__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar___str__" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  {
    try {
      result = Calendar___str__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Calendar *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar___eq__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar___eq__" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar___eq__" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar___eq__" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    try {
      result = (bool)Calendar___eq__(arg1,(Calendar const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Calendar___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  Calendar *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Calendar___ne__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Calendar___ne__" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Calendar___ne__" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Calendar___ne__" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    try {
      result = (bool)Calendar___ne__(arg1,(Calendar const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = (Calendar *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Calendar, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Calendar" "', argument " "1"" of type '" "Calendar *""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Calendar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Calendar, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Argentina__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Argentina::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::Argentina *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Argentina",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Argentina" "', argument " "1"" of type '" "QuantLib::Argentina::Market""'");
  } 
  arg1 = static_cast< QuantLib::Argentina::Market >(val1);
  {
    try {
      result = (QuantLib::Argentina *)new QuantLib::Argentina(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Argentina, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Argentina__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Argentina *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Argentina",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Argentina *)new QuantLib::Argentina();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Argentina, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Argentina(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Argentina__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Argentina__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Argentina'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::Argentina::Argentina(QuantLib::Argentina::Market)\n"
    "    QuantLib::Argentina::Argentina()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Argentina(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Argentina *arg1 = (QuantLib::Argentina *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Argentina",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Argentina, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Argentina" "', argument " "1"" of type '" "QuantLib::Argentina *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Argentina * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Argentina_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Argentina, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Australia(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Australia *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Australia",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Australia *)new QuantLib::Australia();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Australia, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Australia(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Australia *arg1 = (QuantLib::Australia *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Australia",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Australia, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Australia" "', argument " "1"" of type '" "QuantLib::Australia *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Australia * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Australia_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Australia, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Brazil__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Brazil::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::Brazil *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Brazil",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Brazil" "', argument " "1"" of type '" "QuantLib::Brazil::Market""'");
  } 
  arg1 = static_cast< QuantLib::Brazil::Market >(val1);
  {
    try {
      result = (QuantLib::Brazil *)new QuantLib::Brazil(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Brazil, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Brazil__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Brazil *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Brazil",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Brazil *)new QuantLib::Brazil();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Brazil, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Brazil(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Brazil__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Brazil__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Brazil'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::Brazil::Brazil(QuantLib::Brazil::Market)\n"
    "    QuantLib::Brazil::Brazil()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Brazil(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Brazil *arg1 = (QuantLib::Brazil *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Brazil",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Brazil, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brazil" "', argument " "1"" of type '" "QuantLib::Brazil *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Brazil * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Brazil_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Brazil, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Canada__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Canada::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::Canada *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Canada",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Canada" "', argument " "1"" of type '" "QuantLib::Canada::Market""'");
  } 
  arg1 = static_cast< QuantLib::Canada::Market >(val1);
  {
    try {
      result = (QuantLib::Canada *)new QuantLib::Canada(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Canada, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Canada__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Canada *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Canada",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Canada *)new QuantLib::Canada();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Canada, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Canada(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Canada__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Canada__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Canada'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::Canada::Canada(QuantLib::Canada::Market)\n"
    "    QuantLib::Canada::Canada()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Canada(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Canada *arg1 = (QuantLib::Canada *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Canada",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Canada, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Canada" "', argument " "1"" of type '" "QuantLib::Canada *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Canada * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Canada_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Canada, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_China__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::China::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::China *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_China",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_China" "', argument " "1"" of type '" "QuantLib::China::Market""'");
  } 
  arg1 = static_cast< QuantLib::China::Market >(val1);
  {
    try {
      result = (QuantLib::China *)new QuantLib::China(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__China, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_China__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::China *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_China",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::China *)new QuantLib::China();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__China, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_China(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_China__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_China__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_China'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::China::China(QuantLib::China::Market)\n"
    "    QuantLib::China::China()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_China(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::China *arg1 = (QuantLib::China *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_China",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__China, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_China" "', argument " "1"" of type '" "QuantLib::China *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::China * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *China_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__China, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CzechRepublic__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::CzechRepublic::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::CzechRepublic *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CzechRepublic",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CzechRepublic" "', argument " "1"" of type '" "QuantLib::CzechRepublic::Market""'");
  } 
  arg1 = static_cast< QuantLib::CzechRepublic::Market >(val1);
  {
    try {
      result = (QuantLib::CzechRepublic *)new QuantLib::CzechRepublic(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__CzechRepublic, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CzechRepublic__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::CzechRepublic *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CzechRepublic",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::CzechRepublic *)new QuantLib::CzechRepublic();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__CzechRepublic, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CzechRepublic(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_CzechRepublic__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_CzechRepublic__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CzechRepublic'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::CzechRepublic::CzechRepublic(QuantLib::CzechRepublic::Market)\n"
    "    QuantLib::CzechRepublic::CzechRepublic()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_CzechRepublic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::CzechRepublic *arg1 = (QuantLib::CzechRepublic *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CzechRepublic",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__CzechRepublic, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CzechRepublic" "', argument " "1"" of type '" "QuantLib::CzechRepublic *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::CzechRepublic * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CzechRepublic_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__CzechRepublic, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Denmark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Denmark *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Denmark",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Denmark *)new QuantLib::Denmark();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Denmark, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Denmark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Denmark *arg1 = (QuantLib::Denmark *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Denmark",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Denmark, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Denmark" "', argument " "1"" of type '" "QuantLib::Denmark *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Denmark * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Denmark_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Denmark, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Finland(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Finland *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Finland",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Finland *)new QuantLib::Finland();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Finland, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Finland(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Finland *arg1 = (QuantLib::Finland *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Finland",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Finland, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Finland" "', argument " "1"" of type '" "QuantLib::Finland *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Finland * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Finland_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Finland, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Germany__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Germany::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::Germany *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Germany",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Germany" "', argument " "1"" of type '" "QuantLib::Germany::Market""'");
  } 
  arg1 = static_cast< QuantLib::Germany::Market >(val1);
  {
    try {
      result = (QuantLib::Germany *)new QuantLib::Germany(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Germany, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Germany__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Germany *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Germany",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Germany *)new QuantLib::Germany();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Germany, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Germany(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Germany__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Germany__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Germany'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::Germany::Germany(QuantLib::Germany::Market)\n"
    "    QuantLib::Germany::Germany()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Germany(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Germany *arg1 = (QuantLib::Germany *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Germany",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Germany, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Germany" "', argument " "1"" of type '" "QuantLib::Germany *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Germany * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Germany_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Germany, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_HongKong__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::HongKong::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::HongKong *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HongKong",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HongKong" "', argument " "1"" of type '" "QuantLib::HongKong::Market""'");
  } 
  arg1 = static_cast< QuantLib::HongKong::Market >(val1);
  {
    try {
      result = (QuantLib::HongKong *)new QuantLib::HongKong(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__HongKong, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_HongKong__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::HongKong *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HongKong",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::HongKong *)new QuantLib::HongKong();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__HongKong, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_HongKong(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_HongKong__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_HongKong__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_HongKong'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::HongKong::HongKong(QuantLib::HongKong::Market)\n"
    "    QuantLib::HongKong::HongKong()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_HongKong(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::HongKong *arg1 = (QuantLib::HongKong *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_HongKong",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__HongKong, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HongKong" "', argument " "1"" of type '" "QuantLib::HongKong *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::HongKong * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *HongKong_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__HongKong, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Hungary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Hungary *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Hungary",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Hungary *)new QuantLib::Hungary();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Hungary, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Hungary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Hungary *arg1 = (QuantLib::Hungary *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Hungary",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Hungary, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Hungary" "', argument " "1"" of type '" "QuantLib::Hungary *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Hungary * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Hungary_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Hungary, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Iceland__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Iceland::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::Iceland *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Iceland",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Iceland" "', argument " "1"" of type '" "QuantLib::Iceland::Market""'");
  } 
  arg1 = static_cast< QuantLib::Iceland::Market >(val1);
  {
    try {
      result = (QuantLib::Iceland *)new QuantLib::Iceland(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Iceland, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Iceland__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Iceland *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Iceland",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Iceland *)new QuantLib::Iceland();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Iceland, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Iceland(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Iceland__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Iceland__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Iceland'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::Iceland::Iceland(QuantLib::Iceland::Market)\n"
    "    QuantLib::Iceland::Iceland()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Iceland(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Iceland *arg1 = (QuantLib::Iceland *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Iceland",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Iceland, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Iceland" "', argument " "1"" of type '" "QuantLib::Iceland *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Iceland * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Iceland_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Iceland, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_India__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::India::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::India *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_India",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_India" "', argument " "1"" of type '" "QuantLib::India::Market""'");
  } 
  arg1 = static_cast< QuantLib::India::Market >(val1);
  {
    try {
      result = (QuantLib::India *)new QuantLib::India(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__India, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_India__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::India *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_India",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::India *)new QuantLib::India();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__India, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_India(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_India__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_India__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_India'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::India::India(QuantLib::India::Market)\n"
    "    QuantLib::India::India()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_India(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::India *arg1 = (QuantLib::India *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_India",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__India, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_India" "', argument " "1"" of type '" "QuantLib::India *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::India * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *India_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__India, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Indonesia__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Indonesia::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::Indonesia *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Indonesia",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Indonesia" "', argument " "1"" of type '" "QuantLib::Indonesia::Market""'");
  } 
  arg1 = static_cast< QuantLib::Indonesia::Market >(val1);
  {
    try {
      result = (QuantLib::Indonesia *)new QuantLib::Indonesia(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Indonesia, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Indonesia__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Indonesia *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Indonesia",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Indonesia *)new QuantLib::Indonesia();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Indonesia, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Indonesia(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Indonesia__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Indonesia__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Indonesia'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::Indonesia::Indonesia(QuantLib::Indonesia::Market)\n"
    "    QuantLib::Indonesia::Indonesia()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Indonesia(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Indonesia *arg1 = (QuantLib::Indonesia *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Indonesia",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Indonesia, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Indonesia" "', argument " "1"" of type '" "QuantLib::Indonesia *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Indonesia * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Indonesia_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Indonesia, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Israel__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Israel::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::Israel *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Israel",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Israel" "', argument " "1"" of type '" "QuantLib::Israel::Market""'");
  } 
  arg1 = static_cast< QuantLib::Israel::Market >(val1);
  {
    try {
      result = (QuantLib::Israel *)new QuantLib::Israel(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Israel, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Israel__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Israel *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Israel",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Israel *)new QuantLib::Israel();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Israel, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Israel(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Israel__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Israel__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Israel'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::Israel::Israel(QuantLib::Israel::Market)\n"
    "    QuantLib::Israel::Israel()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Israel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Israel *arg1 = (QuantLib::Israel *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Israel",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Israel, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Israel" "', argument " "1"" of type '" "QuantLib::Israel *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Israel * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Israel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Israel, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Italy__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Italy::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::Italy *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Italy",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Italy" "', argument " "1"" of type '" "QuantLib::Italy::Market""'");
  } 
  arg1 = static_cast< QuantLib::Italy::Market >(val1);
  {
    try {
      result = (QuantLib::Italy *)new QuantLib::Italy(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Italy, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Italy__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Italy *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Italy",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Italy *)new QuantLib::Italy();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Italy, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Italy(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Italy__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Italy__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Italy'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::Italy::Italy(QuantLib::Italy::Market)\n"
    "    QuantLib::Italy::Italy()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Italy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Italy *arg1 = (QuantLib::Italy *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Italy",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Italy, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Italy" "', argument " "1"" of type '" "QuantLib::Italy *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Italy * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Italy_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Italy, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Japan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Japan *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Japan",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Japan *)new QuantLib::Japan();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Japan, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Japan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Japan *arg1 = (QuantLib::Japan *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Japan",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Japan, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Japan" "', argument " "1"" of type '" "QuantLib::Japan *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Japan * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Japan_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Japan, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Mexico__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Mexico::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::Mexico *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Mexico",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Mexico" "', argument " "1"" of type '" "QuantLib::Mexico::Market""'");
  } 
  arg1 = static_cast< QuantLib::Mexico::Market >(val1);
  {
    try {
      result = (QuantLib::Mexico *)new QuantLib::Mexico(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Mexico, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Mexico__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Mexico *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Mexico",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Mexico *)new QuantLib::Mexico();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Mexico, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Mexico(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Mexico__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Mexico__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Mexico'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::Mexico::Mexico(QuantLib::Mexico::Market)\n"
    "    QuantLib::Mexico::Mexico()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Mexico(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Mexico *arg1 = (QuantLib::Mexico *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Mexico",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Mexico, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mexico" "', argument " "1"" of type '" "QuantLib::Mexico *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Mexico * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Mexico_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Mexico, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_NewZealand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::NewZealand *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NewZealand",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::NewZealand *)new QuantLib::NewZealand();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__NewZealand, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_NewZealand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::NewZealand *arg1 = (QuantLib::NewZealand *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NewZealand",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__NewZealand, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NewZealand" "', argument " "1"" of type '" "QuantLib::NewZealand *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::NewZealand * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NewZealand_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__NewZealand, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Norway(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Norway *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Norway",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Norway *)new QuantLib::Norway();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Norway, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Norway(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Norway *arg1 = (QuantLib::Norway *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Norway",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Norway, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Norway" "', argument " "1"" of type '" "QuantLib::Norway *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Norway * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Norway_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Norway, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Poland(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Poland *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Poland",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Poland *)new QuantLib::Poland();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Poland, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Poland(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Poland *arg1 = (QuantLib::Poland *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Poland",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Poland, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Poland" "', argument " "1"" of type '" "QuantLib::Poland *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Poland * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Poland_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Poland, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Russia__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Russia::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::Russia *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Russia",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Russia" "', argument " "1"" of type '" "QuantLib::Russia::Market""'");
  } 
  arg1 = static_cast< QuantLib::Russia::Market >(val1);
  {
    try {
      result = (QuantLib::Russia *)new QuantLib::Russia(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Russia, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Russia__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Russia *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Russia",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Russia *)new QuantLib::Russia();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Russia, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Russia(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Russia__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Russia__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Russia'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::Russia::Russia(QuantLib::Russia::Market)\n"
    "    QuantLib::Russia::Russia()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Russia(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Russia *arg1 = (QuantLib::Russia *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Russia",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Russia, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Russia" "', argument " "1"" of type '" "QuantLib::Russia *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Russia * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Russia_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Russia, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Romania(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Romania *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Romania",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Romania *)new QuantLib::Romania();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Romania, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Romania(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Romania *arg1 = (QuantLib::Romania *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Romania",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Romania, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Romania" "', argument " "1"" of type '" "QuantLib::Romania *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Romania * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Romania_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Romania, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SaudiArabia__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SaudiArabia::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::SaudiArabia *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SaudiArabia",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SaudiArabia" "', argument " "1"" of type '" "QuantLib::SaudiArabia::Market""'");
  } 
  arg1 = static_cast< QuantLib::SaudiArabia::Market >(val1);
  {
    try {
      result = (QuantLib::SaudiArabia *)new QuantLib::SaudiArabia(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__SaudiArabia, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SaudiArabia__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SaudiArabia *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SaudiArabia",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::SaudiArabia *)new QuantLib::SaudiArabia();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__SaudiArabia, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SaudiArabia(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_SaudiArabia__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_SaudiArabia__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SaudiArabia'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::SaudiArabia::SaudiArabia(QuantLib::SaudiArabia::Market)\n"
    "    QuantLib::SaudiArabia::SaudiArabia()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_SaudiArabia(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SaudiArabia *arg1 = (QuantLib::SaudiArabia *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SaudiArabia",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__SaudiArabia, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SaudiArabia" "', argument " "1"" of type '" "QuantLib::SaudiArabia *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::SaudiArabia * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SaudiArabia_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__SaudiArabia, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Singapore__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Singapore::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::Singapore *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Singapore",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Singapore" "', argument " "1"" of type '" "QuantLib::Singapore::Market""'");
  } 
  arg1 = static_cast< QuantLib::Singapore::Market >(val1);
  {
    try {
      result = (QuantLib::Singapore *)new QuantLib::Singapore(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Singapore, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Singapore__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Singapore *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Singapore",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Singapore *)new QuantLib::Singapore();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Singapore, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Singapore(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Singapore__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Singapore__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Singapore'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::Singapore::Singapore(QuantLib::Singapore::Market)\n"
    "    QuantLib::Singapore::Singapore()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Singapore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Singapore *arg1 = (QuantLib::Singapore *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Singapore",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Singapore, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Singapore" "', argument " "1"" of type '" "QuantLib::Singapore *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Singapore * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Singapore_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Singapore, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Slovakia__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Slovakia::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::Slovakia *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Slovakia",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Slovakia" "', argument " "1"" of type '" "QuantLib::Slovakia::Market""'");
  } 
  arg1 = static_cast< QuantLib::Slovakia::Market >(val1);
  {
    try {
      result = (QuantLib::Slovakia *)new QuantLib::Slovakia(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Slovakia, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Slovakia__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Slovakia *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Slovakia",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Slovakia *)new QuantLib::Slovakia();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Slovakia, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Slovakia(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Slovakia__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Slovakia__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Slovakia'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::Slovakia::Slovakia(QuantLib::Slovakia::Market)\n"
    "    QuantLib::Slovakia::Slovakia()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Slovakia(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Slovakia *arg1 = (QuantLib::Slovakia *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Slovakia",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Slovakia, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Slovakia" "', argument " "1"" of type '" "QuantLib::Slovakia *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Slovakia * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Slovakia_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Slovakia, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SouthAfrica(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SouthAfrica *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SouthAfrica",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::SouthAfrica *)new QuantLib::SouthAfrica();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__SouthAfrica, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SouthAfrica(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SouthAfrica *arg1 = (QuantLib::SouthAfrica *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SouthAfrica",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__SouthAfrica, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SouthAfrica" "', argument " "1"" of type '" "QuantLib::SouthAfrica *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::SouthAfrica * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SouthAfrica_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__SouthAfrica, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SouthKorea__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SouthKorea::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::SouthKorea *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SouthKorea",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SouthKorea" "', argument " "1"" of type '" "QuantLib::SouthKorea::Market""'");
  } 
  arg1 = static_cast< QuantLib::SouthKorea::Market >(val1);
  {
    try {
      result = (QuantLib::SouthKorea *)new QuantLib::SouthKorea(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__SouthKorea, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SouthKorea__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SouthKorea *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SouthKorea",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::SouthKorea *)new QuantLib::SouthKorea();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__SouthKorea, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SouthKorea(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_SouthKorea__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_SouthKorea__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SouthKorea'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::SouthKorea::SouthKorea(QuantLib::SouthKorea::Market)\n"
    "    QuantLib::SouthKorea::SouthKorea()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_SouthKorea(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SouthKorea *arg1 = (QuantLib::SouthKorea *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SouthKorea",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__SouthKorea, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SouthKorea" "', argument " "1"" of type '" "QuantLib::SouthKorea *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::SouthKorea * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SouthKorea_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__SouthKorea, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Sweden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Sweden *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Sweden",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Sweden *)new QuantLib::Sweden();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Sweden, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Sweden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Sweden *arg1 = (QuantLib::Sweden *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Sweden",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Sweden, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Sweden" "', argument " "1"" of type '" "QuantLib::Sweden *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Sweden * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Sweden_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Sweden, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Switzerland(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Switzerland *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Switzerland",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Switzerland *)new QuantLib::Switzerland();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Switzerland, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Switzerland(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Switzerland *arg1 = (QuantLib::Switzerland *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Switzerland",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Switzerland, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Switzerland" "', argument " "1"" of type '" "QuantLib::Switzerland *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Switzerland * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Switzerland_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Switzerland, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Taiwan__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Taiwan::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::Taiwan *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Taiwan",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Taiwan" "', argument " "1"" of type '" "QuantLib::Taiwan::Market""'");
  } 
  arg1 = static_cast< QuantLib::Taiwan::Market >(val1);
  {
    try {
      result = (QuantLib::Taiwan *)new QuantLib::Taiwan(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Taiwan, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Taiwan__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Taiwan *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Taiwan",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Taiwan *)new QuantLib::Taiwan();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Taiwan, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Taiwan(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Taiwan__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Taiwan__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Taiwan'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::Taiwan::Taiwan(QuantLib::Taiwan::Market)\n"
    "    QuantLib::Taiwan::Taiwan()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Taiwan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Taiwan *arg1 = (QuantLib::Taiwan *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Taiwan",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Taiwan, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Taiwan" "', argument " "1"" of type '" "QuantLib::Taiwan *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Taiwan * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Taiwan_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Taiwan, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_TARGET(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::TARGET *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TARGET",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::TARGET *)new QuantLib::TARGET();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__TARGET, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_TARGET(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::TARGET *arg1 = (QuantLib::TARGET *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_TARGET",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__TARGET, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TARGET" "', argument " "1"" of type '" "QuantLib::TARGET *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::TARGET * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TARGET_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__TARGET, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Turkey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Turkey *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Turkey",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Turkey *)new QuantLib::Turkey();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Turkey, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Turkey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Turkey *arg1 = (QuantLib::Turkey *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Turkey",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Turkey, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Turkey" "', argument " "1"" of type '" "QuantLib::Turkey *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Turkey * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Turkey_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Turkey, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Ukraine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Ukraine::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::Ukraine *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Ukraine",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Ukraine" "', argument " "1"" of type '" "QuantLib::Ukraine::Market""'");
  } 
  arg1 = static_cast< QuantLib::Ukraine::Market >(val1);
  {
    try {
      result = (QuantLib::Ukraine *)new QuantLib::Ukraine(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Ukraine, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Ukraine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Ukraine *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Ukraine",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Ukraine *)new QuantLib::Ukraine();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Ukraine, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Ukraine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Ukraine__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Ukraine__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Ukraine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::Ukraine::Ukraine(QuantLib::Ukraine::Market)\n"
    "    QuantLib::Ukraine::Ukraine()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Ukraine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Ukraine *arg1 = (QuantLib::Ukraine *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Ukraine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Ukraine, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Ukraine" "', argument " "1"" of type '" "QuantLib::Ukraine *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Ukraine * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Ukraine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Ukraine, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_UnitedKingdom__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::UnitedKingdom::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::UnitedKingdom *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UnitedKingdom",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UnitedKingdom" "', argument " "1"" of type '" "QuantLib::UnitedKingdom::Market""'");
  } 
  arg1 = static_cast< QuantLib::UnitedKingdom::Market >(val1);
  {
    try {
      result = (QuantLib::UnitedKingdom *)new QuantLib::UnitedKingdom(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__UnitedKingdom, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UnitedKingdom__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::UnitedKingdom *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UnitedKingdom",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::UnitedKingdom *)new QuantLib::UnitedKingdom();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__UnitedKingdom, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UnitedKingdom(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_UnitedKingdom__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_UnitedKingdom__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_UnitedKingdom'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::UnitedKingdom::UnitedKingdom(QuantLib::UnitedKingdom::Market)\n"
    "    QuantLib::UnitedKingdom::UnitedKingdom()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_UnitedKingdom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::UnitedKingdom *arg1 = (QuantLib::UnitedKingdom *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_UnitedKingdom",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__UnitedKingdom, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_UnitedKingdom" "', argument " "1"" of type '" "QuantLib::UnitedKingdom *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::UnitedKingdom * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *UnitedKingdom_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__UnitedKingdom, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_UnitedStates__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::UnitedStates::Market arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::UnitedStates *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UnitedStates",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UnitedStates" "', argument " "1"" of type '" "QuantLib::UnitedStates::Market""'");
  } 
  arg1 = static_cast< QuantLib::UnitedStates::Market >(val1);
  {
    try {
      result = (QuantLib::UnitedStates *)new QuantLib::UnitedStates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__UnitedStates, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UnitedStates__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::UnitedStates *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UnitedStates",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::UnitedStates *)new QuantLib::UnitedStates();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__UnitedStates, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UnitedStates(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_UnitedStates__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_UnitedStates__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_UnitedStates'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::UnitedStates::UnitedStates(QuantLib::UnitedStates::Market)\n"
    "    QuantLib::UnitedStates::UnitedStates()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_UnitedStates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::UnitedStates *arg1 = (QuantLib::UnitedStates *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_UnitedStates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__UnitedStates, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_UnitedStates" "', argument " "1"" of type '" "QuantLib::UnitedStates *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::UnitedStates * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *UnitedStates_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__UnitedStates, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_NullCalendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::NullCalendar *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NullCalendar",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::NullCalendar *)new QuantLib::NullCalendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__NullCalendar, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_NullCalendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::NullCalendar *arg1 = (QuantLib::NullCalendar *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NullCalendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__NullCalendar, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NullCalendar" "', argument " "1"" of type '" "QuantLib::NullCalendar *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::NullCalendar * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NullCalendar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__NullCalendar, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_WeekendsOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::WeekendsOnly *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_WeekendsOnly",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::WeekendsOnly *)new QuantLib::WeekendsOnly();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__WeekendsOnly, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_WeekendsOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::WeekendsOnly *arg1 = (QuantLib::WeekendsOnly *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_WeekendsOnly",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__WeekendsOnly, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_WeekendsOnly" "', argument " "1"" of type '" "QuantLib::WeekendsOnly *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::WeekendsOnly * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *WeekendsOnly_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__WeekendsOnly, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_JointCalendar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  JointCalendarRule arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  QuantLib::JointCalendar *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_JointCalendar",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_JointCalendar" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JointCalendar" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_JointCalendar" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JointCalendar" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_JointCalendar" "', argument " "3"" of type '" "JointCalendarRule""'");
  } 
  arg3 = static_cast< JointCalendarRule >(val3);
  {
    try {
      result = (QuantLib::JointCalendar *)new QuantLib::JointCalendar((Calendar const &)*arg1,(Calendar const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__JointCalendar, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_JointCalendar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  QuantLib::JointCalendar *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_JointCalendar",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_JointCalendar" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JointCalendar" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_JointCalendar" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JointCalendar" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    try {
      result = (QuantLib::JointCalendar *)new QuantLib::JointCalendar((Calendar const &)*arg1,(Calendar const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__JointCalendar, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_JointCalendar__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  Calendar *arg3 = 0 ;
  JointCalendarRule arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  QuantLib::JointCalendar *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_JointCalendar",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_JointCalendar" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JointCalendar" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_JointCalendar" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JointCalendar" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_JointCalendar" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JointCalendar" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  arg3 = reinterpret_cast< Calendar * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_JointCalendar" "', argument " "4"" of type '" "JointCalendarRule""'");
  } 
  arg4 = static_cast< JointCalendarRule >(val4);
  {
    try {
      result = (QuantLib::JointCalendar *)new QuantLib::JointCalendar((Calendar const &)*arg1,(Calendar const &)*arg2,(Calendar const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__JointCalendar, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_JointCalendar__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  Calendar *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  QuantLib::JointCalendar *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_JointCalendar",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_JointCalendar" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JointCalendar" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_JointCalendar" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JointCalendar" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_JointCalendar" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JointCalendar" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  arg3 = reinterpret_cast< Calendar * >(argp3);
  {
    try {
      result = (QuantLib::JointCalendar *)new QuantLib::JointCalendar((Calendar const &)*arg1,(Calendar const &)*arg2,(Calendar const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__JointCalendar, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_JointCalendar__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  Calendar *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  JointCalendarRule arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  QuantLib::JointCalendar *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_JointCalendar",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_JointCalendar" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JointCalendar" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_JointCalendar" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JointCalendar" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_JointCalendar" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JointCalendar" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  arg3 = reinterpret_cast< Calendar * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_JointCalendar" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JointCalendar" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_JointCalendar" "', argument " "5"" of type '" "JointCalendarRule""'");
  } 
  arg5 = static_cast< JointCalendarRule >(val5);
  {
    try {
      result = (QuantLib::JointCalendar *)new QuantLib::JointCalendar((Calendar const &)*arg1,(Calendar const &)*arg2,(Calendar const &)*arg3,(Calendar const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__JointCalendar, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_JointCalendar__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  Calendar *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  QuantLib::JointCalendar *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_JointCalendar",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_JointCalendar" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JointCalendar" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_JointCalendar" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JointCalendar" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_JointCalendar" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JointCalendar" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  arg3 = reinterpret_cast< Calendar * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_JointCalendar" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JointCalendar" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  {
    try {
      result = (QuantLib::JointCalendar *)new QuantLib::JointCalendar((Calendar const &)*arg1,(Calendar const &)*arg2,(Calendar const &)*arg3,(Calendar const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__JointCalendar, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_JointCalendar(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_JointCalendar__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Calendar, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_JointCalendar__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_JointCalendar__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Calendar, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_JointCalendar__SWIG_5(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Calendar, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_JointCalendar__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Calendar, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_JointCalendar__SWIG_4(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_JointCalendar'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::JointCalendar::JointCalendar(Calendar const &,Calendar const &,JointCalendarRule)\n"
    "    QuantLib::JointCalendar::JointCalendar(Calendar const &,Calendar const &)\n"
    "    QuantLib::JointCalendar::JointCalendar(Calendar const &,Calendar const &,Calendar const &,JointCalendarRule)\n"
    "    QuantLib::JointCalendar::JointCalendar(Calendar const &,Calendar const &,Calendar const &)\n"
    "    QuantLib::JointCalendar::JointCalendar(Calendar const &,Calendar const &,Calendar const &,Calendar const &,JointCalendarRule)\n"
    "    QuantLib::JointCalendar::JointCalendar(Calendar const &,Calendar const &,Calendar const &,Calendar const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_JointCalendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::JointCalendar *arg1 = (QuantLib::JointCalendar *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_JointCalendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__JointCalendar, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_JointCalendar" "', argument " "1"" of type '" "QuantLib::JointCalendar *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::JointCalendar * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *JointCalendar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__JointCalendar, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BespokeCalendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  QuantLib::BespokeCalendar *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BespokeCalendar",1,1,&obj0)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BespokeCalendar" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BespokeCalendar" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (QuantLib::BespokeCalendar *)new QuantLib::BespokeCalendar((std::string const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__BespokeCalendar, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_BespokeCalendar_addWeekend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::BespokeCalendar *arg1 = (QuantLib::BespokeCalendar *) 0 ;
  Weekday arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BespokeCalendar_addWeekend",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__BespokeCalendar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BespokeCalendar_addWeekend" "', argument " "1"" of type '" "QuantLib::BespokeCalendar *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::BespokeCalendar * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BespokeCalendar_addWeekend" "', argument " "2"" of type '" "Weekday""'");
  } 
  arg2 = static_cast< Weekday >(val2);
  {
    try {
      (arg1)->addWeekend(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BespokeCalendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::BespokeCalendar *arg1 = (QuantLib::BespokeCalendar *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BespokeCalendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__BespokeCalendar, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BespokeCalendar" "', argument " "1"" of type '" "QuantLib::BespokeCalendar *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::BespokeCalendar * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BespokeCalendar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__BespokeCalendar, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_nullInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  int result;
  
  if(!PyArg_UnpackTuple(args,(char *)"nullInt",0,0)) SWIG_fail;
  {
    try {
      result = (int)nullInt();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_nullDouble(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  double result;
  
  if(!PyArg_UnpackTuple(args,(char *)"nullDouble",0,0)) SWIG_fail;
  {
    try {
      result = (double)nullDouble();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DayCounter_dayCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DayCounter *arg1 = (DayCounter *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  BigInteger result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DayCounter_dayCount",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DayCounter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DayCounter_dayCount" "', argument " "1"" of type '" "DayCounter const *""'"); 
  }
  arg1 = reinterpret_cast< DayCounter * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DayCounter_dayCount" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DayCounter_dayCount" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DayCounter_dayCount" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DayCounter_dayCount" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  {
    try {
      result = (BigInteger)((DayCounter const *)arg1)->dayCount((Date const &)*arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_long(static_cast< long >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DayCounter_yearFraction__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DayCounter *arg1 = (DayCounter *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Date *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DayCounter_yearFraction",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DayCounter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DayCounter_yearFraction" "', argument " "1"" of type '" "DayCounter const *""'"); 
  }
  arg1 = reinterpret_cast< DayCounter * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DayCounter_yearFraction" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DayCounter_yearFraction" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DayCounter_yearFraction" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DayCounter_yearFraction" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DayCounter_yearFraction" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DayCounter_yearFraction" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DayCounter_yearFraction" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DayCounter_yearFraction" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  {
    try {
      result = (Time)((DayCounter const *)arg1)->yearFraction((Date const &)*arg2,(Date const &)*arg3,(Date const &)*arg4,(Date const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DayCounter_yearFraction__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DayCounter *arg1 = (DayCounter *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DayCounter_yearFraction",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DayCounter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DayCounter_yearFraction" "', argument " "1"" of type '" "DayCounter const *""'"); 
  }
  arg1 = reinterpret_cast< DayCounter * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DayCounter_yearFraction" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DayCounter_yearFraction" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DayCounter_yearFraction" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DayCounter_yearFraction" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DayCounter_yearFraction" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DayCounter_yearFraction" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  {
    try {
      result = (Time)((DayCounter const *)arg1)->yearFraction((Date const &)*arg2,(Date const &)*arg3,(Date const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DayCounter_yearFraction__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DayCounter *arg1 = (DayCounter *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DayCounter_yearFraction",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DayCounter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DayCounter_yearFraction" "', argument " "1"" of type '" "DayCounter const *""'"); 
  }
  arg1 = reinterpret_cast< DayCounter * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DayCounter_yearFraction" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DayCounter_yearFraction" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DayCounter_yearFraction" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DayCounter_yearFraction" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  {
    try {
      result = (Time)((DayCounter const *)arg1)->yearFraction((Date const &)*arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DayCounter_yearFraction(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_DayCounter, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DayCounter_yearFraction__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_DayCounter, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_DayCounter_yearFraction__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_DayCounter, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_DayCounter_yearFraction__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DayCounter_yearFraction'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    DayCounter::yearFraction(Date const &,Date const &,Date const &,Date const &) const\n"
    "    DayCounter::yearFraction(Date const &,Date const &,Date const &) const\n"
    "    DayCounter::yearFraction(Date const &,Date const &) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DayCounter_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DayCounter *arg1 = (DayCounter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DayCounter_name",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DayCounter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DayCounter_name" "', argument " "1"" of type '" "DayCounter const *""'"); 
  }
  arg1 = reinterpret_cast< DayCounter * >(argp1);
  {
    try {
      result = ((DayCounter const *)arg1)->name();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DayCounter___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DayCounter *arg1 = (DayCounter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DayCounter___str__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DayCounter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DayCounter___str__" "', argument " "1"" of type '" "DayCounter *""'"); 
  }
  arg1 = reinterpret_cast< DayCounter * >(argp1);
  {
    try {
      result = DayCounter___str__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DayCounter___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DayCounter *arg1 = (DayCounter *) 0 ;
  DayCounter *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DayCounter___eq__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DayCounter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DayCounter___eq__" "', argument " "1"" of type '" "DayCounter *""'"); 
  }
  arg1 = reinterpret_cast< DayCounter * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DayCounter___eq__" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DayCounter___eq__" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  arg2 = reinterpret_cast< DayCounter * >(argp2);
  {
    try {
      result = (bool)DayCounter___eq__(arg1,(DayCounter const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DayCounter___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DayCounter *arg1 = (DayCounter *) 0 ;
  DayCounter *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DayCounter___ne__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DayCounter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DayCounter___ne__" "', argument " "1"" of type '" "DayCounter *""'"); 
  }
  arg1 = reinterpret_cast< DayCounter * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DayCounter___ne__" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DayCounter___ne__" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  arg2 = reinterpret_cast< DayCounter * >(argp2);
  {
    try {
      result = (bool)DayCounter___ne__(arg1,(DayCounter const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DayCounter *arg1 = (DayCounter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DayCounter, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DayCounter" "', argument " "1"" of type '" "DayCounter *""'"); 
  }
  arg1 = reinterpret_cast< DayCounter * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DayCounter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DayCounter, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Actual360(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Actual360 *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Actual360",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Actual360 *)new QuantLib::Actual360();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Actual360, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Actual360(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Actual360 *arg1 = (QuantLib::Actual360 *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Actual360",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Actual360, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Actual360" "', argument " "1"" of type '" "QuantLib::Actual360 *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Actual360 * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Actual360_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Actual360, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Actual365Fixed__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Actual365Fixed::Convention arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::Actual365Fixed *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Actual365Fixed",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Actual365Fixed" "', argument " "1"" of type '" "QuantLib::Actual365Fixed::Convention""'");
  } 
  arg1 = static_cast< QuantLib::Actual365Fixed::Convention >(val1);
  {
    try {
      result = (QuantLib::Actual365Fixed *)new QuantLib::Actual365Fixed(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Actual365Fixed, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Actual365Fixed__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Actual365Fixed *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Actual365Fixed",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Actual365Fixed *)new QuantLib::Actual365Fixed();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Actual365Fixed, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Actual365Fixed(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Actual365Fixed__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Actual365Fixed__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Actual365Fixed'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::Actual365Fixed::Actual365Fixed(QuantLib::Actual365Fixed::Convention)\n"
    "    QuantLib::Actual365Fixed::Actual365Fixed()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Actual365Fixed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Actual365Fixed *arg1 = (QuantLib::Actual365Fixed *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Actual365Fixed",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Actual365Fixed, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Actual365Fixed" "', argument " "1"" of type '" "QuantLib::Actual365Fixed *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Actual365Fixed * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Actual365Fixed_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Actual365Fixed, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Thirty360__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Thirty360::Convention arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::Thirty360 *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Thirty360",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Thirty360" "', argument " "1"" of type '" "QuantLib::Thirty360::Convention""'");
  } 
  arg1 = static_cast< QuantLib::Thirty360::Convention >(val1);
  {
    try {
      result = (QuantLib::Thirty360 *)new QuantLib::Thirty360(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Thirty360, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Thirty360__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Thirty360 *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Thirty360",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Thirty360 *)new QuantLib::Thirty360();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Thirty360, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Thirty360(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Thirty360__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Thirty360__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Thirty360'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::Thirty360::Thirty360(QuantLib::Thirty360::Convention)\n"
    "    QuantLib::Thirty360::Thirty360()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Thirty360(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Thirty360 *arg1 = (QuantLib::Thirty360 *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Thirty360",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Thirty360, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Thirty360" "', argument " "1"" of type '" "QuantLib::Thirty360 *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Thirty360 * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Thirty360_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Thirty360, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ActualActual__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ActualActual::Convention arg1 ;
  Schedule *arg2 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  QuantLib::ActualActual *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ActualActual",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ActualActual" "', argument " "1"" of type '" "QuantLib::ActualActual::Convention""'");
  } 
  arg1 = static_cast< QuantLib::ActualActual::Convention >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ActualActual" "', argument " "2"" of type '" "Schedule const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ActualActual" "', argument " "2"" of type '" "Schedule const &""'"); 
  }
  arg2 = reinterpret_cast< Schedule * >(argp2);
  {
    try {
      result = (QuantLib::ActualActual *)new QuantLib::ActualActual(arg1,(Schedule const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__ActualActual, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ActualActual__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ActualActual::Convention arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::ActualActual *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ActualActual",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ActualActual" "', argument " "1"" of type '" "QuantLib::ActualActual::Convention""'");
  } 
  arg1 = static_cast< QuantLib::ActualActual::Convention >(val1);
  {
    try {
      result = (QuantLib::ActualActual *)new QuantLib::ActualActual(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__ActualActual, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ActualActual__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ActualActual *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ActualActual",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::ActualActual *)new QuantLib::ActualActual();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__ActualActual, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ActualActual(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_ActualActual__SWIG_2(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_ActualActual__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Schedule, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_ActualActual__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ActualActual'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::ActualActual::ActualActual(QuantLib::ActualActual::Convention,Schedule const &)\n"
    "    QuantLib::ActualActual::ActualActual(QuantLib::ActualActual::Convention)\n"
    "    QuantLib::ActualActual::ActualActual()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_ActualActual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ActualActual *arg1 = (QuantLib::ActualActual *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ActualActual",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__ActualActual, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ActualActual" "', argument " "1"" of type '" "QuantLib::ActualActual *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::ActualActual * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ActualActual_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__ActualActual, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_OneDayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::OneDayCounter *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_OneDayCounter",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::OneDayCounter *)new QuantLib::OneDayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__OneDayCounter, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_OneDayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::OneDayCounter *arg1 = (QuantLib::OneDayCounter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_OneDayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__OneDayCounter, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OneDayCounter" "', argument " "1"" of type '" "QuantLib::OneDayCounter *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::OneDayCounter * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *OneDayCounter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__OneDayCounter, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SimpleDayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SimpleDayCounter *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SimpleDayCounter",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::SimpleDayCounter *)new QuantLib::SimpleDayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__SimpleDayCounter, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SimpleDayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SimpleDayCounter *arg1 = (QuantLib::SimpleDayCounter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SimpleDayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__SimpleDayCounter, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SimpleDayCounter" "', argument " "1"" of type '" "QuantLib::SimpleDayCounter *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::SimpleDayCounter * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SimpleDayCounter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__SimpleDayCounter, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Business252__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwigValueWrapper< Calendar > arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  QuantLib::Business252 *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Business252",1,1,&obj0)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Calendar,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Business252" "', argument " "1"" of type '" "Calendar""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Business252" "', argument " "1"" of type '" "Calendar""'");
    } else {
      Calendar * temp = reinterpret_cast< Calendar * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  {
    try {
      result = (QuantLib::Business252 *)new QuantLib::Business252(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Business252, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Business252__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Business252 *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Business252",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::Business252 *)new QuantLib::Business252();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__Business252, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Business252(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Business252__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Business252__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Business252'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    QuantLib::Business252::Business252(Calendar)\n"
    "    QuantLib::Business252::Business252()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Business252(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::Business252 *arg1 = (QuantLib::Business252 *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Business252",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__Business252, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Business252" "', argument " "1"" of type '" "QuantLib::Business252 *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::Business252 * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Business252_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__Business252, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Actual365NoLeap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Actual365NoLeap",0,0)) SWIG_fail;
  {
    try {
      result = Actual365NoLeap();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InterestRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InterestRate",0,0)) SWIG_fail;
  {
    try {
      result = (InterestRate *)new InterestRate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InterestRate, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InterestRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  DayCounter *arg2 = 0 ;
  Compounding arg3 ;
  Frequency arg4 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  InterestRate *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InterestRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InterestRate" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InterestRate" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InterestRate" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  arg2 = reinterpret_cast< DayCounter * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_InterestRate" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_InterestRate" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  {
    try {
      result = (InterestRate *)new InterestRate(arg1,(DayCounter const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InterestRate, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InterestRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_InterestRate__SWIG_0(self, args);
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_DayCounter, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_InterestRate__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_InterestRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    InterestRate::InterestRate()\n"
    "    InterestRate::InterestRate(Rate,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InterestRate_rate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *arg1 = (InterestRate *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_rate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRate_rate" "', argument " "1"" of type '" "InterestRate const *""'"); 
  }
  arg1 = reinterpret_cast< InterestRate * >(argp1);
  {
    try {
      result = (Rate)((InterestRate const *)arg1)->rate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *arg1 = (InterestRate *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRate_dayCounter" "', argument " "1"" of type '" "InterestRate const *""'"); 
  }
  arg1 = reinterpret_cast< InterestRate * >(argp1);
  {
    try {
      result = ((InterestRate const *)arg1)->dayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_compounding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *arg1 = (InterestRate *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Compounding result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_compounding",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRate_compounding" "', argument " "1"" of type '" "InterestRate const *""'"); 
  }
  arg1 = reinterpret_cast< InterestRate * >(argp1);
  {
    try {
      result = (Compounding)((InterestRate const *)arg1)->compounding();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_frequency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *arg1 = (InterestRate *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Frequency result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_frequency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRate_frequency" "', argument " "1"" of type '" "InterestRate const *""'"); 
  }
  arg1 = reinterpret_cast< InterestRate * >(argp1);
  {
    try {
      result = (Frequency)((InterestRate const *)arg1)->frequency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_discountFactor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *arg1 = (InterestRate *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DiscountFactor result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_discountFactor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRate_discountFactor" "', argument " "1"" of type '" "InterestRate const *""'"); 
  }
  arg1 = reinterpret_cast< InterestRate * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InterestRate_discountFactor" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (DiscountFactor)((InterestRate const *)arg1)->discountFactor(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_discountFactor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *arg1 = (InterestRate *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Date *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  DiscountFactor result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_discountFactor",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRate_discountFactor" "', argument " "1"" of type '" "InterestRate const *""'"); 
  }
  arg1 = reinterpret_cast< InterestRate * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRate_discountFactor" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_discountFactor" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InterestRate_discountFactor" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_discountFactor" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "InterestRate_discountFactor" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_discountFactor" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "InterestRate_discountFactor" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_discountFactor" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  {
    try {
      result = (DiscountFactor)((InterestRate const *)arg1)->discountFactor((Date const &)*arg2,(Date const &)*arg3,(Date const &)*arg4,(Date const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_discountFactor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *arg1 = (InterestRate *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  DiscountFactor result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_discountFactor",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRate_discountFactor" "', argument " "1"" of type '" "InterestRate const *""'"); 
  }
  arg1 = reinterpret_cast< InterestRate * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRate_discountFactor" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_discountFactor" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InterestRate_discountFactor" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_discountFactor" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "InterestRate_discountFactor" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_discountFactor" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  {
    try {
      result = (DiscountFactor)((InterestRate const *)arg1)->discountFactor((Date const &)*arg2,(Date const &)*arg3,(Date const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_discountFactor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *arg1 = (InterestRate *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  DiscountFactor result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_discountFactor",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRate_discountFactor" "', argument " "1"" of type '" "InterestRate const *""'"); 
  }
  arg1 = reinterpret_cast< InterestRate * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRate_discountFactor" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_discountFactor" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InterestRate_discountFactor" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_discountFactor" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  {
    try {
      result = (DiscountFactor)((InterestRate const *)arg1)->discountFactor((Date const &)*arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_discountFactor(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InterestRate, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_InterestRate_discountFactor__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InterestRate, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_InterestRate_discountFactor__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InterestRate, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_InterestRate_discountFactor__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InterestRate, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_InterestRate_discountFactor__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InterestRate_discountFactor'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    InterestRate::discountFactor(Time) const\n"
    "    InterestRate::discountFactor(Date const &,Date const &,Date const &,Date const &) const\n"
    "    InterestRate::discountFactor(Date const &,Date const &,Date const &) const\n"
    "    InterestRate::discountFactor(Date const &,Date const &) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InterestRate_compoundFactor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *arg1 = (InterestRate *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_compoundFactor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRate_compoundFactor" "', argument " "1"" of type '" "InterestRate const *""'"); 
  }
  arg1 = reinterpret_cast< InterestRate * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InterestRate_compoundFactor" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)((InterestRate const *)arg1)->compoundFactor(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_compoundFactor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *arg1 = (InterestRate *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Date *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_compoundFactor",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRate_compoundFactor" "', argument " "1"" of type '" "InterestRate const *""'"); 
  }
  arg1 = reinterpret_cast< InterestRate * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRate_compoundFactor" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_compoundFactor" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InterestRate_compoundFactor" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_compoundFactor" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "InterestRate_compoundFactor" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_compoundFactor" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "InterestRate_compoundFactor" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_compoundFactor" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  {
    try {
      result = (Real)((InterestRate const *)arg1)->compoundFactor((Date const &)*arg2,(Date const &)*arg3,(Date const &)*arg4,(Date const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_compoundFactor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *arg1 = (InterestRate *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_compoundFactor",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRate_compoundFactor" "', argument " "1"" of type '" "InterestRate const *""'"); 
  }
  arg1 = reinterpret_cast< InterestRate * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRate_compoundFactor" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_compoundFactor" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InterestRate_compoundFactor" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_compoundFactor" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "InterestRate_compoundFactor" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_compoundFactor" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  {
    try {
      result = (Real)((InterestRate const *)arg1)->compoundFactor((Date const &)*arg2,(Date const &)*arg3,(Date const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_compoundFactor__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *arg1 = (InterestRate *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_compoundFactor",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRate_compoundFactor" "', argument " "1"" of type '" "InterestRate const *""'"); 
  }
  arg1 = reinterpret_cast< InterestRate * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRate_compoundFactor" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_compoundFactor" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InterestRate_compoundFactor" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_compoundFactor" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  {
    try {
      result = (Real)((InterestRate const *)arg1)->compoundFactor((Date const &)*arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_compoundFactor(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InterestRate, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_InterestRate_compoundFactor__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InterestRate, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_InterestRate_compoundFactor__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InterestRate, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_InterestRate_compoundFactor__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InterestRate, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_InterestRate_compoundFactor__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InterestRate_compoundFactor'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    InterestRate::compoundFactor(Time) const\n"
    "    InterestRate::compoundFactor(Date const &,Date const &,Date const &,Date const &) const\n"
    "    InterestRate::compoundFactor(Date const &,Date const &,Date const &) const\n"
    "    InterestRate::compoundFactor(Date const &,Date const &) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InterestRate_impliedRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  DayCounter *arg2 = 0 ;
  Compounding arg3 ;
  Frequency arg4 ;
  Time arg5 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_impliedRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "InterestRate_impliedRate" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRate_impliedRate" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_impliedRate" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  arg2 = reinterpret_cast< DayCounter * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InterestRate_impliedRate" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "InterestRate_impliedRate" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "InterestRate_impliedRate" "', argument " "5"" of type '" "Time""'");
  } 
  arg5 = static_cast< Time >(val5);
  {
    try {
      result = InterestRate::impliedRate(arg1,(DayCounter const &)*arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_impliedRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  DayCounter *arg2 = 0 ;
  Compounding arg3 ;
  Frequency arg4 ;
  Date *arg5 = 0 ;
  Date *arg6 = 0 ;
  Date *arg7 = 0 ;
  Date *arg8 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_impliedRate",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "InterestRate_impliedRate" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRate_impliedRate" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_impliedRate" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  arg2 = reinterpret_cast< DayCounter * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InterestRate_impliedRate" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "InterestRate_impliedRate" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "InterestRate_impliedRate" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_impliedRate" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "InterestRate_impliedRate" "', argument " "6"" of type '" "Date const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_impliedRate" "', argument " "6"" of type '" "Date const &""'"); 
  }
  arg6 = reinterpret_cast< Date * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "InterestRate_impliedRate" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_impliedRate" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "InterestRate_impliedRate" "', argument " "8"" of type '" "Date const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_impliedRate" "', argument " "8"" of type '" "Date const &""'"); 
  }
  arg8 = reinterpret_cast< Date * >(argp8);
  {
    try {
      result = InterestRate::impliedRate(arg1,(DayCounter const &)*arg2,arg3,arg4,(Date const &)*arg5,(Date const &)*arg6,(Date const &)*arg7,(Date const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_impliedRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  DayCounter *arg2 = 0 ;
  Compounding arg3 ;
  Frequency arg4 ;
  Date *arg5 = 0 ;
  Date *arg6 = 0 ;
  Date *arg7 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_impliedRate",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "InterestRate_impliedRate" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRate_impliedRate" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_impliedRate" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  arg2 = reinterpret_cast< DayCounter * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InterestRate_impliedRate" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "InterestRate_impliedRate" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "InterestRate_impliedRate" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_impliedRate" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "InterestRate_impliedRate" "', argument " "6"" of type '" "Date const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_impliedRate" "', argument " "6"" of type '" "Date const &""'"); 
  }
  arg6 = reinterpret_cast< Date * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "InterestRate_impliedRate" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_impliedRate" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  {
    try {
      result = InterestRate::impliedRate(arg1,(DayCounter const &)*arg2,arg3,arg4,(Date const &)*arg5,(Date const &)*arg6,(Date const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_impliedRate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  DayCounter *arg2 = 0 ;
  Compounding arg3 ;
  Frequency arg4 ;
  Date *arg5 = 0 ;
  Date *arg6 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_impliedRate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "InterestRate_impliedRate" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRate_impliedRate" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_impliedRate" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  arg2 = reinterpret_cast< DayCounter * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InterestRate_impliedRate" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "InterestRate_impliedRate" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "InterestRate_impliedRate" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_impliedRate" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "InterestRate_impliedRate" "', argument " "6"" of type '" "Date const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_impliedRate" "', argument " "6"" of type '" "Date const &""'"); 
  }
  arg6 = reinterpret_cast< Date * >(argp6);
  {
    try {
      result = InterestRate::impliedRate(arg1,(DayCounter const &)*arg2,arg3,arg4,(Date const &)*arg5,(Date const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_impliedRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[9] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 8) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_DayCounter, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_InterestRate_impliedRate__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_DayCounter, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_InterestRate_impliedRate__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_DayCounter, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_InterestRate_impliedRate__SWIG_2(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_DayCounter, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_InterestRate_impliedRate__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InterestRate_impliedRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    InterestRate::impliedRate(Real,DayCounter const &,Compounding,Frequency,Time)\n"
    "    InterestRate::impliedRate(Real,DayCounter const &,Compounding,Frequency,Date const &,Date const &,Date const &,Date const &)\n"
    "    InterestRate::impliedRate(Real,DayCounter const &,Compounding,Frequency,Date const &,Date const &,Date const &)\n"
    "    InterestRate::impliedRate(Real,DayCounter const &,Compounding,Frequency,Date const &,Date const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InterestRate_equivalentRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *arg1 = (InterestRate *) 0 ;
  Compounding arg2 ;
  Frequency arg3 ;
  Time arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_equivalentRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRate_equivalentRate" "', argument " "1"" of type '" "InterestRate const *""'"); 
  }
  arg1 = reinterpret_cast< InterestRate * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InterestRate_equivalentRate" "', argument " "2"" of type '" "Compounding""'");
  } 
  arg2 = static_cast< Compounding >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InterestRate_equivalentRate" "', argument " "3"" of type '" "Frequency""'");
  } 
  arg3 = static_cast< Frequency >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "InterestRate_equivalentRate" "', argument " "4"" of type '" "Time""'");
  } 
  arg4 = static_cast< Time >(val4);
  {
    try {
      result = ((InterestRate const *)arg1)->equivalentRate(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_equivalentRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *arg1 = (InterestRate *) 0 ;
  DayCounter *arg2 = 0 ;
  Compounding arg3 ;
  Frequency arg4 ;
  Date *arg5 = 0 ;
  Date *arg6 = 0 ;
  Date *arg7 = 0 ;
  Date *arg8 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_equivalentRate",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRate_equivalentRate" "', argument " "1"" of type '" "InterestRate const *""'"); 
  }
  arg1 = reinterpret_cast< InterestRate * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRate_equivalentRate" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_equivalentRate" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  arg2 = reinterpret_cast< DayCounter * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InterestRate_equivalentRate" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "InterestRate_equivalentRate" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "InterestRate_equivalentRate" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_equivalentRate" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "InterestRate_equivalentRate" "', argument " "6"" of type '" "Date const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_equivalentRate" "', argument " "6"" of type '" "Date const &""'"); 
  }
  arg6 = reinterpret_cast< Date * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "InterestRate_equivalentRate" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_equivalentRate" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "InterestRate_equivalentRate" "', argument " "8"" of type '" "Date const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_equivalentRate" "', argument " "8"" of type '" "Date const &""'"); 
  }
  arg8 = reinterpret_cast< Date * >(argp8);
  {
    try {
      result = ((InterestRate const *)arg1)->equivalentRate((DayCounter const &)*arg2,arg3,arg4,(Date const &)*arg5,(Date const &)*arg6,(Date const &)*arg7,(Date const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_equivalentRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *arg1 = (InterestRate *) 0 ;
  DayCounter *arg2 = 0 ;
  Compounding arg3 ;
  Frequency arg4 ;
  Date *arg5 = 0 ;
  Date *arg6 = 0 ;
  Date *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_equivalentRate",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRate_equivalentRate" "', argument " "1"" of type '" "InterestRate const *""'"); 
  }
  arg1 = reinterpret_cast< InterestRate * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRate_equivalentRate" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_equivalentRate" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  arg2 = reinterpret_cast< DayCounter * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InterestRate_equivalentRate" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "InterestRate_equivalentRate" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "InterestRate_equivalentRate" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_equivalentRate" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "InterestRate_equivalentRate" "', argument " "6"" of type '" "Date const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_equivalentRate" "', argument " "6"" of type '" "Date const &""'"); 
  }
  arg6 = reinterpret_cast< Date * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "InterestRate_equivalentRate" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_equivalentRate" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  {
    try {
      result = ((InterestRate const *)arg1)->equivalentRate((DayCounter const &)*arg2,arg3,arg4,(Date const &)*arg5,(Date const &)*arg6,(Date const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_equivalentRate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *arg1 = (InterestRate *) 0 ;
  DayCounter *arg2 = 0 ;
  Compounding arg3 ;
  Frequency arg4 ;
  Date *arg5 = 0 ;
  Date *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate_equivalentRate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRate_equivalentRate" "', argument " "1"" of type '" "InterestRate const *""'"); 
  }
  arg1 = reinterpret_cast< InterestRate * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRate_equivalentRate" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_equivalentRate" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  arg2 = reinterpret_cast< DayCounter * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InterestRate_equivalentRate" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "InterestRate_equivalentRate" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "InterestRate_equivalentRate" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_equivalentRate" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "InterestRate_equivalentRate" "', argument " "6"" of type '" "Date const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRate_equivalentRate" "', argument " "6"" of type '" "Date const &""'"); 
  }
  arg6 = reinterpret_cast< Date * >(argp6);
  {
    try {
      result = ((InterestRate const *)arg1)->equivalentRate((DayCounter const &)*arg2,arg3,arg4,(Date const &)*arg5,(Date const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRate_equivalentRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[9] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 8) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InterestRate, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_InterestRate_equivalentRate__SWIG_0(self, args);
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InterestRate, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_DayCounter, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_InterestRate_equivalentRate__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InterestRate, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_DayCounter, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_InterestRate_equivalentRate__SWIG_2(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InterestRate, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_DayCounter, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_InterestRate_equivalentRate__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InterestRate_equivalentRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    InterestRate::equivalentRate(Compounding,Frequency,Time) const\n"
    "    InterestRate::equivalentRate(DayCounter const &,Compounding,Frequency,Date const &,Date const &,Date const &,Date const &) const\n"
    "    InterestRate::equivalentRate(DayCounter const &,Compounding,Frequency,Date const &,Date const &,Date const &) const\n"
    "    InterestRate::equivalentRate(DayCounter const &,Compounding,Frequency,Date const &,Date const &) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InterestRate___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *arg1 = (InterestRate *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRate___str__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRate___str__" "', argument " "1"" of type '" "InterestRate *""'"); 
  }
  arg1 = reinterpret_cast< InterestRate * >(argp1);
  {
    try {
      result = InterestRate___str__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InterestRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRate *arg1 = (InterestRate *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_InterestRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRate, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InterestRate" "', argument " "1"" of type '" "InterestRate *""'"); 
  }
  arg1 = reinterpret_cast< InterestRate * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InterestRate_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InterestRate, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_InterestRateVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_iterator" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_InterestRate_Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector___nonzero__" "', argument " "1"" of type '" "std::vector< InterestRate > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_InterestRate_Sg____nonzero__((std::vector< InterestRate > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector___bool__" "', argument " "1"" of type '" "std::vector< InterestRate > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_InterestRate_Sg____bool__((std::vector< InterestRate > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< InterestRate >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector___len__" "', argument " "1"" of type '" "std::vector< InterestRate > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    try {
      result = std_vector_Sl_InterestRate_Sg____len__((std::vector< InterestRate > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  std::vector< InterestRate >::difference_type arg2 ;
  std::vector< InterestRate >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< InterestRate,std::allocator< InterestRate > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector___getslice__" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InterestRateVector___getslice__" "', argument " "2"" of type '" "std::vector< InterestRate >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< InterestRate >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InterestRateVector___getslice__" "', argument " "3"" of type '" "std::vector< InterestRate >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< InterestRate >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< InterestRate,std::allocator< InterestRate > > *)std_vector_Sl_InterestRate_Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  std::vector< InterestRate >::difference_type arg2 ;
  std::vector< InterestRate >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector___setslice__" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InterestRateVector___setslice__" "', argument " "2"" of type '" "std::vector< InterestRate >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< InterestRate >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InterestRateVector___setslice__" "', argument " "3"" of type '" "std::vector< InterestRate >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< InterestRate >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_InterestRate_Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  std::vector< InterestRate >::difference_type arg2 ;
  std::vector< InterestRate >::difference_type arg3 ;
  std::vector< InterestRate,std::allocator< InterestRate > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector___setslice__" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InterestRateVector___setslice__" "', argument " "2"" of type '" "std::vector< InterestRate >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< InterestRate >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InterestRateVector___setslice__" "', argument " "3"" of type '" "std::vector< InterestRate >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< InterestRate >::difference_type >(val3);
  {
    std::vector< InterestRate,std::allocator< InterestRate > > *ptr = (std::vector< InterestRate,std::allocator< InterestRate > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "InterestRateVector___setslice__" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRateVector___setslice__" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_InterestRate_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< InterestRate,std::allocator< InterestRate > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< InterestRate,std::allocator< InterestRate > >**)(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_InterestRateVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< InterestRate,std::allocator< InterestRate > >**)(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< InterestRate,std::allocator< InterestRate > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_InterestRateVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InterestRateVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< InterestRate >::__setslice__(std::vector< InterestRate >::difference_type,std::vector< InterestRate >::difference_type)\n"
    "    std::vector< InterestRate >::__setslice__(std::vector< InterestRate >::difference_type,std::vector< InterestRate >::difference_type,std::vector< InterestRate,std::allocator< InterestRate > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InterestRateVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  std::vector< InterestRate >::difference_type arg2 ;
  std::vector< InterestRate >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector___delslice__" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InterestRateVector___delslice__" "', argument " "2"" of type '" "std::vector< InterestRate >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< InterestRate >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InterestRateVector___delslice__" "', argument " "3"" of type '" "std::vector< InterestRate >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< InterestRate >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_InterestRate_Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  std::vector< InterestRate >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector___delitem__" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InterestRateVector___delitem__" "', argument " "2"" of type '" "std::vector< InterestRate >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< InterestRate >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_InterestRate_Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< InterestRate,std::allocator< InterestRate > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector___getitem__" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InterestRateVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< InterestRate,std::allocator< InterestRate > > *)std_vector_Sl_InterestRate_Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< InterestRate,std::allocator< InterestRate > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector___setitem__" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InterestRateVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< InterestRate,std::allocator< InterestRate > > *ptr = (std::vector< InterestRate,std::allocator< InterestRate > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InterestRateVector___setitem__" "', argument " "3"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRateVector___setitem__" "', argument " "3"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_InterestRate_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< InterestRate,std::allocator< InterestRate > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector___setitem__" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InterestRateVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_InterestRate_Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector___delitem__" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InterestRateVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_InterestRate_Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< InterestRate,std::allocator< InterestRate > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_InterestRateVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< InterestRate,std::allocator< InterestRate > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_InterestRateVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InterestRateVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< InterestRate >::__delitem__(std::vector< InterestRate >::difference_type)\n"
    "    std::vector< InterestRate >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InterestRateVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  std::vector< InterestRate >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< InterestRate >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector___getitem__" "', argument " "1"" of type '" "std::vector< InterestRate > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InterestRateVector___getitem__" "', argument " "2"" of type '" "std::vector< InterestRate >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< InterestRate >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< InterestRate >::value_type *) &std_vector_Sl_InterestRate_Sg____getitem____SWIG_1((std::vector< InterestRate > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InterestRate, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< InterestRate,std::allocator< InterestRate > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_InterestRateVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< InterestRate,std::allocator< InterestRate > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_InterestRateVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InterestRateVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< InterestRate >::__getitem__(PySliceObject *)\n"
    "    std::vector< InterestRate >::__getitem__(std::vector< InterestRate >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InterestRateVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  std::vector< InterestRate >::difference_type arg2 ;
  std::vector< InterestRate >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector___setitem__" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InterestRateVector___setitem__" "', argument " "2"" of type '" "std::vector< InterestRate >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< InterestRate >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InterestRateVector___setitem__" "', argument " "3"" of type '" "std::vector< InterestRate >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRateVector___setitem__" "', argument " "3"" of type '" "std::vector< InterestRate >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< InterestRate >::value_type * >(argp3);
  {
    try {
      try {
        std_vector_Sl_InterestRate_Sg____setitem____SWIG_2(arg1,arg2,(InterestRate const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< InterestRate,std::allocator< InterestRate > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_InterestRateVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< InterestRate,std::allocator< InterestRate > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< InterestRate,std::allocator< InterestRate > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_InterestRateVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< InterestRate,std::allocator< InterestRate > >**)(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_InterestRate, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_InterestRateVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InterestRateVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< InterestRate >::__setitem__(PySliceObject *,std::vector< InterestRate,std::allocator< InterestRate > > const &)\n"
    "    std::vector< InterestRate >::__setitem__(PySliceObject *)\n"
    "    std::vector< InterestRate >::__setitem__(std::vector< InterestRate >::difference_type,std::vector< InterestRate >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< InterestRate >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_pop" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_InterestRate_Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< InterestRate >::value_type(static_cast< const std::vector< InterestRate >::value_type& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  std::vector< InterestRate >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_append" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRateVector_append" "', argument " "2"" of type '" "std::vector< InterestRate >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRateVector_append" "', argument " "2"" of type '" "std::vector< InterestRate >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< InterestRate >::value_type * >(argp2);
  {
    try {
      std_vector_Sl_InterestRate_Sg__append(arg1,(InterestRate const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InterestRateVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InterestRateVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< InterestRate > *)new std::vector< InterestRate >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InterestRateVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< InterestRate > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InterestRateVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< InterestRate,std::allocator< InterestRate > > *ptr = (std::vector< InterestRate,std::allocator< InterestRate > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InterestRateVector" "', argument " "1"" of type '" "std::vector< InterestRate > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InterestRateVector" "', argument " "1"" of type '" "std::vector< InterestRate > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< InterestRate > *)new std::vector< InterestRate >((std::vector< InterestRate > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_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_InterestRateVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_empty" "', argument " "1"" of type '" "std::vector< InterestRate > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    try {
      result = (bool)((std::vector< InterestRate > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< InterestRate >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_size" "', argument " "1"" of type '" "std::vector< InterestRate > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    try {
      result = ((std::vector< InterestRate > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  std::vector< InterestRate > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_swap" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRateVector_swap" "', argument " "2"" of type '" "std::vector< InterestRate > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRateVector_swap" "', argument " "2"" of type '" "std::vector< InterestRate > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< InterestRate > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< InterestRate >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_begin" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< InterestRate >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< InterestRate >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_end" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< InterestRate >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< InterestRate >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_rbegin" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< InterestRate >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< InterestRate >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_rend" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< InterestRate >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_clear" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< InterestRate > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_get_allocator" "', argument " "1"" of type '" "std::vector< InterestRate > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    try {
      result = ((std::vector< InterestRate > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< InterestRate >::allocator_type(static_cast< const std::vector< InterestRate >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_InterestRate_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InterestRateVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< InterestRate > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InterestRateVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InterestRateVector" "', argument " "1"" of type '" "std::vector< InterestRate >::size_type""'");
  } 
  arg1 = static_cast< std::vector< InterestRate >::size_type >(val1);
  {
    try {
      result = (std::vector< InterestRate > *)new std::vector< InterestRate >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_pop_back" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  std::vector< InterestRate >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_resize" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InterestRateVector_resize" "', argument " "2"" of type '" "std::vector< InterestRate >::size_type""'");
  } 
  arg2 = static_cast< std::vector< InterestRate >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  std::vector< InterestRate >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< InterestRate >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_erase" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InterestRateVector_erase" "', argument " "2"" of type '" "std::vector< InterestRate >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< InterestRate >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< InterestRate >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InterestRateVector_erase" "', argument " "2"" of type '" "std::vector< InterestRate >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_InterestRate_Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< InterestRate >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  std::vector< InterestRate >::iterator arg2 ;
  std::vector< InterestRate >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< InterestRate >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_erase" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InterestRateVector_erase" "', argument " "2"" of type '" "std::vector< InterestRate >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< InterestRate >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< InterestRate >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InterestRateVector_erase" "', argument " "2"" of type '" "std::vector< InterestRate >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InterestRateVector_erase" "', argument " "3"" of type '" "std::vector< InterestRate >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< InterestRate >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< InterestRate >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InterestRateVector_erase" "', argument " "3"" of type '" "std::vector< InterestRate >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_InterestRate_Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< InterestRate >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< InterestRate,std::allocator< InterestRate > >**)(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< InterestRate >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_InterestRateVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< InterestRate,std::allocator< InterestRate > >**)(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< InterestRate >::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< InterestRate >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_InterestRateVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InterestRateVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< InterestRate >::erase(std::vector< InterestRate >::iterator)\n"
    "    std::vector< InterestRate >::erase(std::vector< InterestRate >::iterator,std::vector< InterestRate >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_InterestRateVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate >::size_type arg1 ;
  std::vector< InterestRate >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< InterestRate > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InterestRateVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InterestRateVector" "', argument " "1"" of type '" "std::vector< InterestRate >::size_type""'");
  } 
  arg1 = static_cast< std::vector< InterestRate >::size_type >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InterestRateVector" "', argument " "2"" of type '" "std::vector< InterestRate >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InterestRateVector" "', argument " "2"" of type '" "std::vector< InterestRate >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< InterestRate >::value_type * >(argp2);
  {
    try {
      result = (std::vector< InterestRate > *)new std::vector< InterestRate >(arg1,(std::vector< InterestRate >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InterestRateVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_InterestRateVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_InterestRateVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< InterestRate,std::allocator< InterestRate > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_InterestRateVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_InterestRateVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_InterestRateVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< InterestRate >::vector()\n"
    "    std::vector< InterestRate >::vector(std::vector< InterestRate > const &)\n"
    "    std::vector< InterestRate >::vector(std::vector< InterestRate >::size_type)\n"
    "    std::vector< InterestRate >::vector(std::vector< InterestRate >::size_type,std::vector< InterestRate >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  std::vector< InterestRate >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_push_back" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRateVector_push_back" "', argument " "2"" of type '" "std::vector< InterestRate >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRateVector_push_back" "', argument " "2"" of type '" "std::vector< InterestRate >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< InterestRate >::value_type * >(argp2);
  {
    try {
      (arg1)->push_back((std::vector< InterestRate >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< InterestRate >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_front" "', argument " "1"" of type '" "std::vector< InterestRate > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    try {
      result = (std::vector< InterestRate >::value_type *) &((std::vector< InterestRate > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InterestRate, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< InterestRate >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_back" "', argument " "1"" of type '" "std::vector< InterestRate > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    try {
      result = (std::vector< InterestRate >::value_type *) &((std::vector< InterestRate > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InterestRate, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  std::vector< InterestRate >::size_type arg2 ;
  std::vector< InterestRate >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_assign" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InterestRateVector_assign" "', argument " "2"" of type '" "std::vector< InterestRate >::size_type""'");
  } 
  arg2 = static_cast< std::vector< InterestRate >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InterestRateVector_assign" "', argument " "3"" of type '" "std::vector< InterestRate >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRateVector_assign" "', argument " "3"" of type '" "std::vector< InterestRate >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< InterestRate >::value_type * >(argp3);
  {
    try {
      (arg1)->assign(arg2,(std::vector< InterestRate >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  std::vector< InterestRate >::size_type arg2 ;
  std::vector< InterestRate >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_resize" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InterestRateVector_resize" "', argument " "2"" of type '" "std::vector< InterestRate >::size_type""'");
  } 
  arg2 = static_cast< std::vector< InterestRate >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InterestRateVector_resize" "', argument " "3"" of type '" "std::vector< InterestRate >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRateVector_resize" "', argument " "3"" of type '" "std::vector< InterestRate >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< InterestRate >::value_type * >(argp3);
  {
    try {
      (arg1)->resize(arg2,(std::vector< InterestRate >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< InterestRate,std::allocator< InterestRate > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_InterestRateVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< InterestRate,std::allocator< InterestRate > >**)(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_InterestRate, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_InterestRateVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InterestRateVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< InterestRate >::resize(std::vector< InterestRate >::size_type)\n"
    "    std::vector< InterestRate >::resize(std::vector< InterestRate >::size_type,std::vector< InterestRate >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  std::vector< InterestRate >::iterator arg2 ;
  std::vector< InterestRate >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< InterestRate >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_insert" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InterestRateVector_insert" "', argument " "2"" of type '" "std::vector< InterestRate >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< InterestRate >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< InterestRate >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InterestRateVector_insert" "', argument " "2"" of type '" "std::vector< InterestRate >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InterestRateVector_insert" "', argument " "3"" of type '" "std::vector< InterestRate >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRateVector_insert" "', argument " "3"" of type '" "std::vector< InterestRate >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< InterestRate >::value_type * >(argp3);
  {
    try {
      result = std_vector_Sl_InterestRate_Sg__insert__SWIG_0(arg1,arg2,(InterestRate const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< InterestRate >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  std::vector< InterestRate >::iterator arg2 ;
  std::vector< InterestRate >::size_type arg3 ;
  std::vector< InterestRate >::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 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_insert" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InterestRateVector_insert" "', argument " "2"" of type '" "std::vector< InterestRate >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< InterestRate >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< InterestRate >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InterestRateVector_insert" "', argument " "2"" of type '" "std::vector< InterestRate >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InterestRateVector_insert" "', argument " "3"" of type '" "std::vector< InterestRate >::size_type""'");
  } 
  arg3 = static_cast< std::vector< InterestRate >::size_type >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "InterestRateVector_insert" "', argument " "4"" of type '" "std::vector< InterestRate >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRateVector_insert" "', argument " "4"" of type '" "std::vector< InterestRate >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< InterestRate >::value_type * >(argp4);
  {
    try {
      std_vector_Sl_InterestRate_Sg__insert__SWIG_1(arg1,arg2,arg3,(InterestRate const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< InterestRate,std::allocator< InterestRate > >**)(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< InterestRate >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_InterestRate, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_InterestRateVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< InterestRate,std::allocator< InterestRate > >**)(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< InterestRate >::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_InterestRate, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_InterestRateVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InterestRateVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< InterestRate >::insert(std::vector< InterestRate >::iterator,std::vector< InterestRate >::value_type const &)\n"
    "    std::vector< InterestRate >::insert(std::vector< InterestRate >::iterator,std::vector< InterestRate >::size_type,std::vector< InterestRate >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  std::vector< InterestRate >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_reserve" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InterestRateVector_reserve" "', argument " "2"" of type '" "std::vector< InterestRate >::size_type""'");
  } 
  arg2 = static_cast< std::vector< InterestRate >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< InterestRate >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateVector_capacity" "', argument " "1"" of type '" "std::vector< InterestRate > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    try {
      result = ((std::vector< InterestRate > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InterestRateVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< InterestRate > *arg1 = (std::vector< InterestRate > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_InterestRateVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InterestRateVector" "', argument " "1"" of type '" "std::vector< InterestRate > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< InterestRate > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InterestRateVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Rounding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rounding *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Rounding",0,0)) SWIG_fail;
  {
    try {
      result = (Rounding *)new Rounding();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Rounding, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Rounding___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rounding *arg1 = (Rounding *) 0 ;
  Decimal arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Decimal result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Rounding___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Rounding, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rounding___call__" "', argument " "1"" of type '" "Rounding const *""'"); 
  }
  arg1 = reinterpret_cast< Rounding * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rounding___call__" "', argument " "2"" of type '" "Decimal""'");
  } 
  arg2 = static_cast< Decimal >(val2);
  {
    try {
      result = (Decimal)((Rounding const *)arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Rounding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rounding *arg1 = (Rounding *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Rounding",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Rounding, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Rounding" "', argument " "1"" of type '" "Rounding *""'"); 
  }
  arg1 = reinterpret_cast< Rounding * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Rounding_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Rounding, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_UpRounding__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Integer arg2 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  UpRounding *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UpRounding",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UpRounding" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_UpRounding" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  {
    try {
      result = (UpRounding *)new UpRounding(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UpRounding, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UpRounding__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  UpRounding *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UpRounding",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UpRounding" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  {
    try {
      result = (UpRounding *)new UpRounding(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UpRounding, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UpRounding(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_UpRounding__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_UpRounding__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_UpRounding'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    UpRounding::UpRounding(Integer,Integer)\n"
    "    UpRounding::UpRounding(Integer)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_UpRounding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  UpRounding *arg1 = (UpRounding *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_UpRounding",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UpRounding, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_UpRounding" "', argument " "1"" of type '" "UpRounding *""'"); 
  }
  arg1 = reinterpret_cast< UpRounding * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *UpRounding_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_UpRounding, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DownRounding__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Integer arg2 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DownRounding *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DownRounding",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DownRounding" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DownRounding" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  {
    try {
      result = (DownRounding *)new DownRounding(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DownRounding, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DownRounding__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  DownRounding *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DownRounding",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DownRounding" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  {
    try {
      result = (DownRounding *)new DownRounding(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DownRounding, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DownRounding(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_DownRounding__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_DownRounding__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DownRounding'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    DownRounding::DownRounding(Integer,Integer)\n"
    "    DownRounding::DownRounding(Integer)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_DownRounding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DownRounding *arg1 = (DownRounding *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DownRounding",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DownRounding, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DownRounding" "', argument " "1"" of type '" "DownRounding *""'"); 
  }
  arg1 = reinterpret_cast< DownRounding * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DownRounding_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DownRounding, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ClosestRounding__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Integer arg2 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  ClosestRounding *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ClosestRounding",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ClosestRounding" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ClosestRounding" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  {
    try {
      result = (ClosestRounding *)new ClosestRounding(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ClosestRounding, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ClosestRounding__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  ClosestRounding *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ClosestRounding",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ClosestRounding" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  {
    try {
      result = (ClosestRounding *)new ClosestRounding(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ClosestRounding, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ClosestRounding(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_ClosestRounding__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_ClosestRounding__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ClosestRounding'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ClosestRounding::ClosestRounding(Integer,Integer)\n"
    "    ClosestRounding::ClosestRounding(Integer)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_ClosestRounding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ClosestRounding *arg1 = (ClosestRounding *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ClosestRounding",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ClosestRounding, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ClosestRounding" "', argument " "1"" of type '" "ClosestRounding *""'"); 
  }
  arg1 = reinterpret_cast< ClosestRounding * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ClosestRounding_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ClosestRounding, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CeilingTruncation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Integer arg2 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  CeilingTruncation *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CeilingTruncation",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CeilingTruncation" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CeilingTruncation" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  {
    try {
      result = (CeilingTruncation *)new CeilingTruncation(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CeilingTruncation, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CeilingTruncation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  CeilingTruncation *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CeilingTruncation",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CeilingTruncation" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  {
    try {
      result = (CeilingTruncation *)new CeilingTruncation(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CeilingTruncation, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CeilingTruncation(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_CeilingTruncation__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_CeilingTruncation__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CeilingTruncation'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CeilingTruncation::CeilingTruncation(Integer,Integer)\n"
    "    CeilingTruncation::CeilingTruncation(Integer)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_CeilingTruncation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CeilingTruncation *arg1 = (CeilingTruncation *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CeilingTruncation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CeilingTruncation, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CeilingTruncation" "', argument " "1"" of type '" "CeilingTruncation *""'"); 
  }
  arg1 = reinterpret_cast< CeilingTruncation * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CeilingTruncation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CeilingTruncation, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FloorTruncation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Integer arg2 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  FloorTruncation *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FloorTruncation",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloorTruncation" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FloorTruncation" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  {
    try {
      result = (FloorTruncation *)new FloorTruncation(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloorTruncation, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FloorTruncation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  FloorTruncation *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FloorTruncation",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloorTruncation" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  {
    try {
      result = (FloorTruncation *)new FloorTruncation(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloorTruncation, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FloorTruncation(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_FloorTruncation__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_FloorTruncation__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FloorTruncation'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FloorTruncation::FloorTruncation(Integer,Integer)\n"
    "    FloorTruncation::FloorTruncation(Integer)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FloorTruncation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloorTruncation *arg1 = (FloorTruncation *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FloorTruncation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloorTruncation, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FloorTruncation" "', argument " "1"" of type '" "FloorTruncation *""'"); 
  }
  arg1 = reinterpret_cast< FloorTruncation * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FloorTruncation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FloorTruncation, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Currency_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = (Currency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Currency_name",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Currency, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Currency_name" "', argument " "1"" of type '" "Currency const *""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  {
    try {
      result = (std::string *) &((Currency const *)arg1)->name();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Currency_code(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = (Currency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Currency_code",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Currency, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Currency_code" "', argument " "1"" of type '" "Currency const *""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  {
    try {
      result = (std::string *) &((Currency const *)arg1)->code();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Currency_numericCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = (Currency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Integer result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Currency_numericCode",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Currency, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Currency_numericCode" "', argument " "1"" of type '" "Currency const *""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  {
    try {
      result = (Integer)((Currency const *)arg1)->numericCode();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Currency_symbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = (Currency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Currency_symbol",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Currency, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Currency_symbol" "', argument " "1"" of type '" "Currency const *""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  {
    try {
      result = (std::string *) &((Currency const *)arg1)->symbol();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Currency_fractionSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = (Currency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Currency_fractionSymbol",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Currency, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Currency_fractionSymbol" "', argument " "1"" of type '" "Currency const *""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  {
    try {
      result = (std::string *) &((Currency const *)arg1)->fractionSymbol();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Currency_fractionsPerUnit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = (Currency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Integer result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Currency_fractionsPerUnit",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Currency, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Currency_fractionsPerUnit" "', argument " "1"" of type '" "Currency const *""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  {
    try {
      result = (Integer)((Currency const *)arg1)->fractionsPerUnit();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Currency_rounding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = (Currency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rounding *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Currency_rounding",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Currency, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Currency_rounding" "', argument " "1"" of type '" "Currency const *""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  {
    try {
      result = (Rounding *) &((Currency const *)arg1)->rounding();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Rounding, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Currency_format(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = (Currency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Currency_format",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Currency, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Currency_format" "', argument " "1"" of type '" "Currency const *""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  {
    try {
      result = ((Currency const *)arg1)->format();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Currency_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = (Currency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Currency_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Currency, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Currency_empty" "', argument " "1"" of type '" "Currency const *""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  {
    try {
      result = (bool)((Currency const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Currency_triangulationCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = (Currency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Currency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Currency_triangulationCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Currency, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Currency_triangulationCurrency" "', argument " "1"" of type '" "Currency const *""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  {
    try {
      result = (Currency *) &((Currency const *)arg1)->triangulationCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Currency, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Currency___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = (Currency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Currency___str__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Currency, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Currency___str__" "', argument " "1"" of type '" "Currency *""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  {
    try {
      result = Currency___str__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Currency___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = (Currency *) 0 ;
  Currency *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Currency___eq__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Currency, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Currency___eq__" "', argument " "1"" of type '" "Currency *""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Currency___eq__" "', argument " "2"" of type '" "Currency const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Currency___eq__" "', argument " "2"" of type '" "Currency const &""'"); 
  }
  arg2 = reinterpret_cast< Currency * >(argp2);
  {
    try {
      result = (bool)Currency___eq__(arg1,(Currency const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Currency___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = (Currency *) 0 ;
  Currency *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Currency___ne__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Currency, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Currency___ne__" "', argument " "1"" of type '" "Currency *""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Currency___ne__" "', argument " "2"" of type '" "Currency const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Currency___ne__" "', argument " "2"" of type '" "Currency const &""'"); 
  }
  arg2 = reinterpret_cast< Currency * >(argp2);
  {
    try {
      result = (bool)Currency___ne__(arg1,(Currency const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Currency___mul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = (Currency *) 0 ;
  Decimal arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< Money > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Currency___mul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Currency, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Currency___mul__" "', argument " "1"" of type '" "Currency *""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Currency___mul__" "', argument " "2"" of type '" "Decimal""'");
  } 
  arg2 = static_cast< Decimal >(val2);
  {
    try {
      result = Currency_operator_Sm_(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Money(static_cast< const Money& >(result))), SWIGTYPE_p_Money, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Currency___rmul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = (Currency *) 0 ;
  Decimal arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< Money > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Currency___rmul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Currency, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Currency___rmul__" "', argument " "1"" of type '" "Currency *""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Currency___rmul__" "', argument " "2"" of type '" "Decimal""'");
  } 
  arg2 = static_cast< Decimal >(val2);
  {
    try {
      result = Currency___rmul__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Money(static_cast< const Money& >(result))), SWIGTYPE_p_Money, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Currency___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = (Currency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Currency___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Currency, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Currency___nonzero__" "', argument " "1"" of type '" "Currency *""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  {
    try {
      result = (bool)Currency___nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Currency___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = (Currency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Currency___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Currency, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Currency___bool__" "', argument " "1"" of type '" "Currency *""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  {
    try {
      result = (bool)Currency___bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Currency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Currency",0,0)) SWIG_fail;
  {
    try {
      result = (Currency *)new Currency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Currency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Currency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = (Currency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Currency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Currency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Currency" "', argument " "1"" of type '" "Currency *""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Currency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Currency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ARSCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ARSCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ARSCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::ARSCurrency *)new QuantLib::ARSCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__ARSCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ARSCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ARSCurrency *arg1 = (QuantLib::ARSCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ARSCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__ARSCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ARSCurrency" "', argument " "1"" of type '" "QuantLib::ARSCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::ARSCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ARSCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__ARSCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ATSCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ATSCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ATSCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::ATSCurrency *)new QuantLib::ATSCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__ATSCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ATSCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ATSCurrency *arg1 = (QuantLib::ATSCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ATSCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__ATSCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ATSCurrency" "', argument " "1"" of type '" "QuantLib::ATSCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::ATSCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ATSCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__ATSCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AUDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::AUDCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AUDCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::AUDCurrency *)new QuantLib::AUDCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__AUDCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_AUDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::AUDCurrency *arg1 = (QuantLib::AUDCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AUDCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__AUDCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AUDCurrency" "', argument " "1"" of type '" "QuantLib::AUDCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::AUDCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AUDCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__AUDCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BDTCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::BDTCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BDTCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::BDTCurrency *)new QuantLib::BDTCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__BDTCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BDTCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::BDTCurrency *arg1 = (QuantLib::BDTCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BDTCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__BDTCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BDTCurrency" "', argument " "1"" of type '" "QuantLib::BDTCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::BDTCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BDTCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__BDTCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BEFCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::BEFCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BEFCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::BEFCurrency *)new QuantLib::BEFCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__BEFCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BEFCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::BEFCurrency *arg1 = (QuantLib::BEFCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BEFCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__BEFCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BEFCurrency" "', argument " "1"" of type '" "QuantLib::BEFCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::BEFCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BEFCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__BEFCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BGLCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::BGLCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BGLCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::BGLCurrency *)new QuantLib::BGLCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__BGLCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BGLCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::BGLCurrency *arg1 = (QuantLib::BGLCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BGLCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__BGLCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BGLCurrency" "', argument " "1"" of type '" "QuantLib::BGLCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::BGLCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BGLCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__BGLCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BRLCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::BRLCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BRLCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::BRLCurrency *)new QuantLib::BRLCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__BRLCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BRLCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::BRLCurrency *arg1 = (QuantLib::BRLCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BRLCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__BRLCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BRLCurrency" "', argument " "1"" of type '" "QuantLib::BRLCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::BRLCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BRLCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__BRLCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BYRCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::BYRCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BYRCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::BYRCurrency *)new QuantLib::BYRCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__BYRCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BYRCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::BYRCurrency *arg1 = (QuantLib::BYRCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BYRCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__BYRCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BYRCurrency" "', argument " "1"" of type '" "QuantLib::BYRCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::BYRCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BYRCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__BYRCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CADCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::CADCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CADCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::CADCurrency *)new QuantLib::CADCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__CADCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CADCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::CADCurrency *arg1 = (QuantLib::CADCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CADCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__CADCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CADCurrency" "', argument " "1"" of type '" "QuantLib::CADCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::CADCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CADCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__CADCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CHFCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::CHFCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CHFCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::CHFCurrency *)new QuantLib::CHFCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__CHFCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CHFCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::CHFCurrency *arg1 = (QuantLib::CHFCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CHFCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__CHFCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CHFCurrency" "', argument " "1"" of type '" "QuantLib::CHFCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::CHFCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CHFCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__CHFCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CLPCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::CLPCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CLPCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::CLPCurrency *)new QuantLib::CLPCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__CLPCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CLPCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::CLPCurrency *arg1 = (QuantLib::CLPCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CLPCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__CLPCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CLPCurrency" "', argument " "1"" of type '" "QuantLib::CLPCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::CLPCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CLPCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__CLPCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CNYCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::CNYCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CNYCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::CNYCurrency *)new QuantLib::CNYCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__CNYCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CNYCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::CNYCurrency *arg1 = (QuantLib::CNYCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CNYCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__CNYCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CNYCurrency" "', argument " "1"" of type '" "QuantLib::CNYCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::CNYCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CNYCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__CNYCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_COPCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::COPCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_COPCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::COPCurrency *)new QuantLib::COPCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__COPCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_COPCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::COPCurrency *arg1 = (QuantLib::COPCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_COPCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__COPCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_COPCurrency" "', argument " "1"" of type '" "QuantLib::COPCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::COPCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *COPCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__COPCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CYPCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::CYPCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CYPCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::CYPCurrency *)new QuantLib::CYPCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__CYPCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CYPCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::CYPCurrency *arg1 = (QuantLib::CYPCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CYPCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__CYPCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CYPCurrency" "', argument " "1"" of type '" "QuantLib::CYPCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::CYPCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CYPCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__CYPCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CZKCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::CZKCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CZKCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::CZKCurrency *)new QuantLib::CZKCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__CZKCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CZKCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::CZKCurrency *arg1 = (QuantLib::CZKCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CZKCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__CZKCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CZKCurrency" "', argument " "1"" of type '" "QuantLib::CZKCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::CZKCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CZKCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__CZKCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DEMCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::DEMCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DEMCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::DEMCurrency *)new QuantLib::DEMCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__DEMCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DEMCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::DEMCurrency *arg1 = (QuantLib::DEMCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DEMCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__DEMCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DEMCurrency" "', argument " "1"" of type '" "QuantLib::DEMCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::DEMCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DEMCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__DEMCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DKKCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::DKKCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DKKCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::DKKCurrency *)new QuantLib::DKKCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__DKKCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DKKCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::DKKCurrency *arg1 = (QuantLib::DKKCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DKKCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__DKKCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DKKCurrency" "', argument " "1"" of type '" "QuantLib::DKKCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::DKKCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DKKCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__DKKCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EEKCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::EEKCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EEKCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::EEKCurrency *)new QuantLib::EEKCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__EEKCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_EEKCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::EEKCurrency *arg1 = (QuantLib::EEKCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EEKCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__EEKCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EEKCurrency" "', argument " "1"" of type '" "QuantLib::EEKCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::EEKCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EEKCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__EEKCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ESPCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ESPCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ESPCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::ESPCurrency *)new QuantLib::ESPCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__ESPCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ESPCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ESPCurrency *arg1 = (QuantLib::ESPCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ESPCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__ESPCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ESPCurrency" "', argument " "1"" of type '" "QuantLib::ESPCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::ESPCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ESPCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__ESPCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EURCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::EURCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::EURCurrency *)new QuantLib::EURCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__EURCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_EURCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::EURCurrency *arg1 = (QuantLib::EURCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EURCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__EURCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EURCurrency" "', argument " "1"" of type '" "QuantLib::EURCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::EURCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EURCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__EURCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FIMCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::FIMCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FIMCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::FIMCurrency *)new QuantLib::FIMCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__FIMCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_FIMCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::FIMCurrency *arg1 = (QuantLib::FIMCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FIMCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__FIMCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FIMCurrency" "', argument " "1"" of type '" "QuantLib::FIMCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::FIMCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FIMCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__FIMCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FRFCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::FRFCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FRFCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::FRFCurrency *)new QuantLib::FRFCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__FRFCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_FRFCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::FRFCurrency *arg1 = (QuantLib::FRFCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FRFCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__FRFCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FRFCurrency" "', argument " "1"" of type '" "QuantLib::FRFCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::FRFCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FRFCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__FRFCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GBPCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::GBPCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GBPCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::GBPCurrency *)new QuantLib::GBPCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__GBPCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GBPCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::GBPCurrency *arg1 = (QuantLib::GBPCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GBPCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__GBPCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GBPCurrency" "', argument " "1"" of type '" "QuantLib::GBPCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::GBPCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GBPCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__GBPCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GRDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::GRDCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GRDCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::GRDCurrency *)new QuantLib::GRDCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__GRDCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GRDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::GRDCurrency *arg1 = (QuantLib::GRDCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GRDCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__GRDCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GRDCurrency" "', argument " "1"" of type '" "QuantLib::GRDCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::GRDCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GRDCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__GRDCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_HKDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::HKDCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HKDCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::HKDCurrency *)new QuantLib::HKDCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__HKDCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_HKDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::HKDCurrency *arg1 = (QuantLib::HKDCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_HKDCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__HKDCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HKDCurrency" "', argument " "1"" of type '" "QuantLib::HKDCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::HKDCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *HKDCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__HKDCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_HUFCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::HUFCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HUFCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::HUFCurrency *)new QuantLib::HUFCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__HUFCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_HUFCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::HUFCurrency *arg1 = (QuantLib::HUFCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_HUFCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__HUFCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HUFCurrency" "', argument " "1"" of type '" "QuantLib::HUFCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::HUFCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *HUFCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__HUFCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_IEPCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::IEPCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IEPCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::IEPCurrency *)new QuantLib::IEPCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__IEPCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_IEPCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::IEPCurrency *arg1 = (QuantLib::IEPCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_IEPCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__IEPCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IEPCurrency" "', argument " "1"" of type '" "QuantLib::IEPCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::IEPCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *IEPCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__IEPCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_IDRCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::IDRCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IDRCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::IDRCurrency *)new QuantLib::IDRCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__IDRCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_IDRCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::IDRCurrency *arg1 = (QuantLib::IDRCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_IDRCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__IDRCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IDRCurrency" "', argument " "1"" of type '" "QuantLib::IDRCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::IDRCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *IDRCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__IDRCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ILSCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ILSCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ILSCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::ILSCurrency *)new QuantLib::ILSCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__ILSCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ILSCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ILSCurrency *arg1 = (QuantLib::ILSCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ILSCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__ILSCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ILSCurrency" "', argument " "1"" of type '" "QuantLib::ILSCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::ILSCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ILSCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__ILSCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_INRCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::INRCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_INRCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::INRCurrency *)new QuantLib::INRCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__INRCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_INRCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::INRCurrency *arg1 = (QuantLib::INRCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_INRCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__INRCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_INRCurrency" "', argument " "1"" of type '" "QuantLib::INRCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::INRCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *INRCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__INRCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_IQDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::IQDCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IQDCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::IQDCurrency *)new QuantLib::IQDCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__IQDCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_IQDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::IQDCurrency *arg1 = (QuantLib::IQDCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_IQDCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__IQDCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IQDCurrency" "', argument " "1"" of type '" "QuantLib::IQDCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::IQDCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *IQDCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__IQDCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_IRRCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::IRRCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IRRCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::IRRCurrency *)new QuantLib::IRRCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__IRRCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_IRRCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::IRRCurrency *arg1 = (QuantLib::IRRCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_IRRCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__IRRCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IRRCurrency" "', argument " "1"" of type '" "QuantLib::IRRCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::IRRCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *IRRCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__IRRCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ISKCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ISKCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ISKCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::ISKCurrency *)new QuantLib::ISKCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__ISKCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ISKCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ISKCurrency *arg1 = (QuantLib::ISKCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ISKCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__ISKCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ISKCurrency" "', argument " "1"" of type '" "QuantLib::ISKCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::ISKCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ISKCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__ISKCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ITLCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ITLCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ITLCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::ITLCurrency *)new QuantLib::ITLCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__ITLCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ITLCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ITLCurrency *arg1 = (QuantLib::ITLCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ITLCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__ITLCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ITLCurrency" "', argument " "1"" of type '" "QuantLib::ITLCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::ITLCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ITLCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__ITLCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_JPYCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::JPYCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_JPYCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::JPYCurrency *)new QuantLib::JPYCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__JPYCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_JPYCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::JPYCurrency *arg1 = (QuantLib::JPYCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_JPYCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__JPYCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_JPYCurrency" "', argument " "1"" of type '" "QuantLib::JPYCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::JPYCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *JPYCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__JPYCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_KRWCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::KRWCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_KRWCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::KRWCurrency *)new QuantLib::KRWCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__KRWCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_KRWCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::KRWCurrency *arg1 = (QuantLib::KRWCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_KRWCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__KRWCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_KRWCurrency" "', argument " "1"" of type '" "QuantLib::KRWCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::KRWCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *KRWCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__KRWCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_KWDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::KWDCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_KWDCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::KWDCurrency *)new QuantLib::KWDCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__KWDCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_KWDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::KWDCurrency *arg1 = (QuantLib::KWDCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_KWDCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__KWDCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_KWDCurrency" "', argument " "1"" of type '" "QuantLib::KWDCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::KWDCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *KWDCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__KWDCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_LTLCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::LTLCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LTLCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::LTLCurrency *)new QuantLib::LTLCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__LTLCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_LTLCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::LTLCurrency *arg1 = (QuantLib::LTLCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LTLCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__LTLCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LTLCurrency" "', argument " "1"" of type '" "QuantLib::LTLCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::LTLCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LTLCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__LTLCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_LUFCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::LUFCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LUFCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::LUFCurrency *)new QuantLib::LUFCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__LUFCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_LUFCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::LUFCurrency *arg1 = (QuantLib::LUFCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LUFCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__LUFCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LUFCurrency" "', argument " "1"" of type '" "QuantLib::LUFCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::LUFCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LUFCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__LUFCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_LVLCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::LVLCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LVLCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::LVLCurrency *)new QuantLib::LVLCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__LVLCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_LVLCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::LVLCurrency *arg1 = (QuantLib::LVLCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LVLCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__LVLCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LVLCurrency" "', argument " "1"" of type '" "QuantLib::LVLCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::LVLCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LVLCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__LVLCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MTLCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::MTLCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MTLCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::MTLCurrency *)new QuantLib::MTLCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__MTLCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MTLCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::MTLCurrency *arg1 = (QuantLib::MTLCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MTLCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__MTLCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MTLCurrency" "', argument " "1"" of type '" "QuantLib::MTLCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::MTLCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MTLCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__MTLCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MXNCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::MXNCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MXNCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::MXNCurrency *)new QuantLib::MXNCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__MXNCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MXNCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::MXNCurrency *arg1 = (QuantLib::MXNCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MXNCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__MXNCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MXNCurrency" "', argument " "1"" of type '" "QuantLib::MXNCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::MXNCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MXNCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__MXNCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MYRCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::MYRCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MYRCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::MYRCurrency *)new QuantLib::MYRCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__MYRCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MYRCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::MYRCurrency *arg1 = (QuantLib::MYRCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MYRCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__MYRCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MYRCurrency" "', argument " "1"" of type '" "QuantLib::MYRCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::MYRCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MYRCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__MYRCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_NLGCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::NLGCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NLGCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::NLGCurrency *)new QuantLib::NLGCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__NLGCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_NLGCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::NLGCurrency *arg1 = (QuantLib::NLGCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NLGCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__NLGCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NLGCurrency" "', argument " "1"" of type '" "QuantLib::NLGCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::NLGCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NLGCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__NLGCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_NOKCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::NOKCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NOKCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::NOKCurrency *)new QuantLib::NOKCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__NOKCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_NOKCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::NOKCurrency *arg1 = (QuantLib::NOKCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NOKCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__NOKCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NOKCurrency" "', argument " "1"" of type '" "QuantLib::NOKCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::NOKCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NOKCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__NOKCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_NPRCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::NPRCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NPRCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::NPRCurrency *)new QuantLib::NPRCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__NPRCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_NPRCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::NPRCurrency *arg1 = (QuantLib::NPRCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NPRCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__NPRCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NPRCurrency" "', argument " "1"" of type '" "QuantLib::NPRCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::NPRCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NPRCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__NPRCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_NZDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::NZDCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NZDCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::NZDCurrency *)new QuantLib::NZDCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__NZDCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_NZDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::NZDCurrency *arg1 = (QuantLib::NZDCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NZDCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__NZDCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NZDCurrency" "', argument " "1"" of type '" "QuantLib::NZDCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::NZDCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NZDCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__NZDCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PEHCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::PEHCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PEHCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::PEHCurrency *)new QuantLib::PEHCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__PEHCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PEHCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::PEHCurrency *arg1 = (QuantLib::PEHCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PEHCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__PEHCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PEHCurrency" "', argument " "1"" of type '" "QuantLib::PEHCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::PEHCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PEHCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__PEHCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PEICurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::PEICurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PEICurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::PEICurrency *)new QuantLib::PEICurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__PEICurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PEICurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::PEICurrency *arg1 = (QuantLib::PEICurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PEICurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__PEICurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PEICurrency" "', argument " "1"" of type '" "QuantLib::PEICurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::PEICurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PEICurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__PEICurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PENCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::PENCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PENCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::PENCurrency *)new QuantLib::PENCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__PENCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PENCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::PENCurrency *arg1 = (QuantLib::PENCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PENCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__PENCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PENCurrency" "', argument " "1"" of type '" "QuantLib::PENCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::PENCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PENCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__PENCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PKRCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::PKRCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PKRCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::PKRCurrency *)new QuantLib::PKRCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__PKRCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PKRCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::PKRCurrency *arg1 = (QuantLib::PKRCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PKRCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__PKRCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PKRCurrency" "', argument " "1"" of type '" "QuantLib::PKRCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::PKRCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PKRCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__PKRCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PLNCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::PLNCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PLNCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::PLNCurrency *)new QuantLib::PLNCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__PLNCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PLNCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::PLNCurrency *arg1 = (QuantLib::PLNCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PLNCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__PLNCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PLNCurrency" "', argument " "1"" of type '" "QuantLib::PLNCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::PLNCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PLNCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__PLNCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PTECurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::PTECurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PTECurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::PTECurrency *)new QuantLib::PTECurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__PTECurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PTECurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::PTECurrency *arg1 = (QuantLib::PTECurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PTECurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__PTECurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PTECurrency" "', argument " "1"" of type '" "QuantLib::PTECurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::PTECurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PTECurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__PTECurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ROLCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ROLCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ROLCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::ROLCurrency *)new QuantLib::ROLCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__ROLCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ROLCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ROLCurrency *arg1 = (QuantLib::ROLCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ROLCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__ROLCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ROLCurrency" "', argument " "1"" of type '" "QuantLib::ROLCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::ROLCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ROLCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__ROLCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_RONCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::RONCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RONCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::RONCurrency *)new QuantLib::RONCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__RONCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RONCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::RONCurrency *arg1 = (QuantLib::RONCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RONCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__RONCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RONCurrency" "', argument " "1"" of type '" "QuantLib::RONCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::RONCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RONCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__RONCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_RUBCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::RUBCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RUBCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::RUBCurrency *)new QuantLib::RUBCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__RUBCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RUBCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::RUBCurrency *arg1 = (QuantLib::RUBCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RUBCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__RUBCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RUBCurrency" "', argument " "1"" of type '" "QuantLib::RUBCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::RUBCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RUBCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__RUBCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SARCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SARCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SARCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::SARCurrency *)new QuantLib::SARCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__SARCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SARCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SARCurrency *arg1 = (QuantLib::SARCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SARCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__SARCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SARCurrency" "', argument " "1"" of type '" "QuantLib::SARCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::SARCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SARCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__SARCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SEKCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SEKCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SEKCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::SEKCurrency *)new QuantLib::SEKCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__SEKCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SEKCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SEKCurrency *arg1 = (QuantLib::SEKCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SEKCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__SEKCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SEKCurrency" "', argument " "1"" of type '" "QuantLib::SEKCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::SEKCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SEKCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__SEKCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SGDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SGDCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SGDCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::SGDCurrency *)new QuantLib::SGDCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__SGDCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SGDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SGDCurrency *arg1 = (QuantLib::SGDCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SGDCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__SGDCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SGDCurrency" "', argument " "1"" of type '" "QuantLib::SGDCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::SGDCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SGDCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__SGDCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SITCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SITCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SITCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::SITCurrency *)new QuantLib::SITCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__SITCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SITCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SITCurrency *arg1 = (QuantLib::SITCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SITCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__SITCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SITCurrency" "', argument " "1"" of type '" "QuantLib::SITCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::SITCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SITCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__SITCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SKKCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SKKCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SKKCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::SKKCurrency *)new QuantLib::SKKCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__SKKCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SKKCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::SKKCurrency *arg1 = (QuantLib::SKKCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SKKCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__SKKCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SKKCurrency" "', argument " "1"" of type '" "QuantLib::SKKCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::SKKCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SKKCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__SKKCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_THBCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::THBCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_THBCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::THBCurrency *)new QuantLib::THBCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__THBCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_THBCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::THBCurrency *arg1 = (QuantLib::THBCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_THBCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__THBCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_THBCurrency" "', argument " "1"" of type '" "QuantLib::THBCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::THBCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *THBCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__THBCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_TRLCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::TRLCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TRLCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::TRLCurrency *)new QuantLib::TRLCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__TRLCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_TRLCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::TRLCurrency *arg1 = (QuantLib::TRLCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_TRLCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__TRLCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TRLCurrency" "', argument " "1"" of type '" "QuantLib::TRLCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::TRLCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TRLCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__TRLCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_TRYCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::TRYCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TRYCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::TRYCurrency *)new QuantLib::TRYCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__TRYCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_TRYCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::TRYCurrency *arg1 = (QuantLib::TRYCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_TRYCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__TRYCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TRYCurrency" "', argument " "1"" of type '" "QuantLib::TRYCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::TRYCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TRYCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__TRYCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_TTDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::TTDCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TTDCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::TTDCurrency *)new QuantLib::TTDCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__TTDCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_TTDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::TTDCurrency *arg1 = (QuantLib::TTDCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_TTDCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__TTDCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TTDCurrency" "', argument " "1"" of type '" "QuantLib::TTDCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::TTDCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TTDCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__TTDCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_TWDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::TWDCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TWDCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::TWDCurrency *)new QuantLib::TWDCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__TWDCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_TWDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::TWDCurrency *arg1 = (QuantLib::TWDCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_TWDCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__TWDCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TWDCurrency" "', argument " "1"" of type '" "QuantLib::TWDCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::TWDCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TWDCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__TWDCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_USDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::USDCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_USDCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::USDCurrency *)new QuantLib::USDCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__USDCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_USDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::USDCurrency *arg1 = (QuantLib::USDCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_USDCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__USDCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_USDCurrency" "', argument " "1"" of type '" "QuantLib::USDCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::USDCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *USDCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__USDCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_VEBCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::VEBCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_VEBCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::VEBCurrency *)new QuantLib::VEBCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__VEBCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_VEBCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::VEBCurrency *arg1 = (QuantLib::VEBCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_VEBCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__VEBCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VEBCurrency" "', argument " "1"" of type '" "QuantLib::VEBCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::VEBCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *VEBCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__VEBCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_VNDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::VNDCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_VNDCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::VNDCurrency *)new QuantLib::VNDCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__VNDCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_VNDCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::VNDCurrency *arg1 = (QuantLib::VNDCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_VNDCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__VNDCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VNDCurrency" "', argument " "1"" of type '" "QuantLib::VNDCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::VNDCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *VNDCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__VNDCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ZARCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ZARCurrency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZARCurrency",0,0)) SWIG_fail;
  {
    try {
      result = (QuantLib::ZARCurrency *)new QuantLib::ZARCurrency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantLib__ZARCurrency, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ZARCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantLib::ZARCurrency *arg1 = (QuantLib::ZARCurrency *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ZARCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantLib__ZARCurrency, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ZARCurrency" "', argument " "1"" of type '" "QuantLib::ZARCurrency *""'"); 
  }
  arg1 = reinterpret_cast< QuantLib::ZARCurrency * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ZARCurrency_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantLib__ZARCurrency, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_LinearInterpolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SafeLinearInterpolation *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LinearInterpolation",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SafeLinearInterpolation *)new SafeLinearInterpolation((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeLinearInterpolation, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LinearInterpolation___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLinearInterpolation *arg1 = (SafeLinearInterpolation *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LinearInterpolation___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLinearInterpolation, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LinearInterpolation___call__" "', argument " "1"" of type '" "SafeLinearInterpolation *""'"); 
  }
  arg1 = reinterpret_cast< SafeLinearInterpolation * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LinearInterpolation___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LinearInterpolation___call__" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LinearInterpolation___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLinearInterpolation *arg1 = (SafeLinearInterpolation *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LinearInterpolation___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLinearInterpolation, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LinearInterpolation___call__" "', argument " "1"" of type '" "SafeLinearInterpolation *""'"); 
  }
  arg1 = reinterpret_cast< SafeLinearInterpolation * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LinearInterpolation___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LinearInterpolation___call__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLinearInterpolation, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_LinearInterpolation___call____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLinearInterpolation, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_LinearInterpolation___call____SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'LinearInterpolation___call__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeLinearInterpolation::operator ()(Real,bool)\n"
    "    SafeLinearInterpolation::operator ()(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_LinearInterpolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLinearInterpolation *arg1 = (SafeLinearInterpolation *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LinearInterpolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLinearInterpolation, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LinearInterpolation" "', argument " "1"" of type '" "SafeLinearInterpolation *""'"); 
  }
  arg1 = reinterpret_cast< SafeLinearInterpolation * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LinearInterpolation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SafeLinearInterpolation, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_LogLinearInterpolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SafeLogLinearInterpolation *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogLinearInterpolation",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SafeLogLinearInterpolation *)new SafeLogLinearInterpolation((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeLogLinearInterpolation, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogLinearInterpolation___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogLinearInterpolation *arg1 = (SafeLogLinearInterpolation *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogLinearInterpolation___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogLinearInterpolation, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogLinearInterpolation___call__" "', argument " "1"" of type '" "SafeLogLinearInterpolation *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogLinearInterpolation * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogLinearInterpolation___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LogLinearInterpolation___call__" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogLinearInterpolation___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogLinearInterpolation *arg1 = (SafeLogLinearInterpolation *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogLinearInterpolation___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogLinearInterpolation, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogLinearInterpolation___call__" "', argument " "1"" of type '" "SafeLogLinearInterpolation *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogLinearInterpolation * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogLinearInterpolation___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogLinearInterpolation___call__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLogLinearInterpolation, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_LogLinearInterpolation___call____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLogLinearInterpolation, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_LogLinearInterpolation___call____SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'LogLinearInterpolation___call__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeLogLinearInterpolation::operator ()(Real,bool)\n"
    "    SafeLogLinearInterpolation::operator ()(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_LogLinearInterpolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogLinearInterpolation *arg1 = (SafeLogLinearInterpolation *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LogLinearInterpolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogLinearInterpolation, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LogLinearInterpolation" "', argument " "1"" of type '" "SafeLogLinearInterpolation *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogLinearInterpolation * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LogLinearInterpolation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SafeLogLinearInterpolation, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BackwardFlatInterpolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SafeBackwardFlatInterpolation *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BackwardFlatInterpolation",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SafeBackwardFlatInterpolation *)new SafeBackwardFlatInterpolation((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeBackwardFlatInterpolation, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BackwardFlatInterpolation___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeBackwardFlatInterpolation *arg1 = (SafeBackwardFlatInterpolation *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BackwardFlatInterpolation___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeBackwardFlatInterpolation, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BackwardFlatInterpolation___call__" "', argument " "1"" of type '" "SafeBackwardFlatInterpolation *""'"); 
  }
  arg1 = reinterpret_cast< SafeBackwardFlatInterpolation * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BackwardFlatInterpolation___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BackwardFlatInterpolation___call__" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BackwardFlatInterpolation___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeBackwardFlatInterpolation *arg1 = (SafeBackwardFlatInterpolation *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BackwardFlatInterpolation___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeBackwardFlatInterpolation, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BackwardFlatInterpolation___call__" "', argument " "1"" of type '" "SafeBackwardFlatInterpolation *""'"); 
  }
  arg1 = reinterpret_cast< SafeBackwardFlatInterpolation * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BackwardFlatInterpolation___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BackwardFlatInterpolation___call__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeBackwardFlatInterpolation, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_BackwardFlatInterpolation___call____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeBackwardFlatInterpolation, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_BackwardFlatInterpolation___call____SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BackwardFlatInterpolation___call__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeBackwardFlatInterpolation::operator ()(Real,bool)\n"
    "    SafeBackwardFlatInterpolation::operator ()(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_BackwardFlatInterpolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeBackwardFlatInterpolation *arg1 = (SafeBackwardFlatInterpolation *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BackwardFlatInterpolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeBackwardFlatInterpolation, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BackwardFlatInterpolation" "', argument " "1"" of type '" "SafeBackwardFlatInterpolation *""'"); 
  }
  arg1 = reinterpret_cast< SafeBackwardFlatInterpolation * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BackwardFlatInterpolation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SafeBackwardFlatInterpolation, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ForwardFlatInterpolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SafeForwardFlatInterpolation *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ForwardFlatInterpolation",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SafeForwardFlatInterpolation *)new SafeForwardFlatInterpolation((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeForwardFlatInterpolation, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ForwardFlatInterpolation___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeForwardFlatInterpolation *arg1 = (SafeForwardFlatInterpolation *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ForwardFlatInterpolation___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeForwardFlatInterpolation, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ForwardFlatInterpolation___call__" "', argument " "1"" of type '" "SafeForwardFlatInterpolation *""'"); 
  }
  arg1 = reinterpret_cast< SafeForwardFlatInterpolation * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ForwardFlatInterpolation___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ForwardFlatInterpolation___call__" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ForwardFlatInterpolation___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeForwardFlatInterpolation *arg1 = (SafeForwardFlatInterpolation *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ForwardFlatInterpolation___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeForwardFlatInterpolation, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ForwardFlatInterpolation___call__" "', argument " "1"" of type '" "SafeForwardFlatInterpolation *""'"); 
  }
  arg1 = reinterpret_cast< SafeForwardFlatInterpolation * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ForwardFlatInterpolation___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ForwardFlatInterpolation___call__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeForwardFlatInterpolation, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ForwardFlatInterpolation___call____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeForwardFlatInterpolation, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_ForwardFlatInterpolation___call____SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ForwardFlatInterpolation___call__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeForwardFlatInterpolation::operator ()(Real,bool)\n"
    "    SafeForwardFlatInterpolation::operator ()(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_ForwardFlatInterpolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeForwardFlatInterpolation *arg1 = (SafeForwardFlatInterpolation *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ForwardFlatInterpolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeForwardFlatInterpolation, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ForwardFlatInterpolation" "', argument " "1"" of type '" "SafeForwardFlatInterpolation *""'"); 
  }
  arg1 = reinterpret_cast< SafeForwardFlatInterpolation * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ForwardFlatInterpolation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SafeForwardFlatInterpolation, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CubicNaturalSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SafeCubicNaturalSpline *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CubicNaturalSpline",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SafeCubicNaturalSpline *)new SafeCubicNaturalSpline((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeCubicNaturalSpline, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CubicNaturalSpline___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeCubicNaturalSpline *arg1 = (SafeCubicNaturalSpline *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CubicNaturalSpline___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CubicNaturalSpline___call__" "', argument " "1"" of type '" "SafeCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CubicNaturalSpline___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CubicNaturalSpline___call__" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CubicNaturalSpline___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeCubicNaturalSpline *arg1 = (SafeCubicNaturalSpline *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CubicNaturalSpline___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CubicNaturalSpline___call__" "', argument " "1"" of type '" "SafeCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CubicNaturalSpline___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CubicNaturalSpline___call__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_CubicNaturalSpline___call____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CubicNaturalSpline___call____SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CubicNaturalSpline___call__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeCubicNaturalSpline::operator ()(Real,bool)\n"
    "    SafeCubicNaturalSpline::operator ()(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CubicNaturalSpline_derivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeCubicNaturalSpline *arg1 = (SafeCubicNaturalSpline *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CubicNaturalSpline_derivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CubicNaturalSpline_derivative" "', argument " "1"" of type '" "SafeCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CubicNaturalSpline_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CubicNaturalSpline_derivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeCubicNaturalSpline_derivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CubicNaturalSpline_derivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeCubicNaturalSpline *arg1 = (SafeCubicNaturalSpline *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CubicNaturalSpline_derivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CubicNaturalSpline_derivative" "', argument " "1"" of type '" "SafeCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CubicNaturalSpline_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeCubicNaturalSpline_derivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CubicNaturalSpline_derivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_CubicNaturalSpline_derivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CubicNaturalSpline_derivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CubicNaturalSpline_derivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeCubicNaturalSpline::derivative(Real,bool)\n"
    "    SafeCubicNaturalSpline::derivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CubicNaturalSpline_secondDerivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeCubicNaturalSpline *arg1 = (SafeCubicNaturalSpline *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CubicNaturalSpline_secondDerivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CubicNaturalSpline_secondDerivative" "', argument " "1"" of type '" "SafeCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CubicNaturalSpline_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CubicNaturalSpline_secondDerivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeCubicNaturalSpline_secondDerivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CubicNaturalSpline_secondDerivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeCubicNaturalSpline *arg1 = (SafeCubicNaturalSpline *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CubicNaturalSpline_secondDerivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CubicNaturalSpline_secondDerivative" "', argument " "1"" of type '" "SafeCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CubicNaturalSpline_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeCubicNaturalSpline_secondDerivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CubicNaturalSpline_secondDerivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_CubicNaturalSpline_secondDerivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CubicNaturalSpline_secondDerivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CubicNaturalSpline_secondDerivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeCubicNaturalSpline::secondDerivative(Real,bool)\n"
    "    SafeCubicNaturalSpline::secondDerivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CubicNaturalSpline_primitive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeCubicNaturalSpline *arg1 = (SafeCubicNaturalSpline *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CubicNaturalSpline_primitive",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CubicNaturalSpline_primitive" "', argument " "1"" of type '" "SafeCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CubicNaturalSpline_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CubicNaturalSpline_primitive" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeCubicNaturalSpline_primitive__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CubicNaturalSpline_primitive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeCubicNaturalSpline *arg1 = (SafeCubicNaturalSpline *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CubicNaturalSpline_primitive",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CubicNaturalSpline_primitive" "', argument " "1"" of type '" "SafeCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CubicNaturalSpline_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeCubicNaturalSpline_primitive__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CubicNaturalSpline_primitive(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_CubicNaturalSpline_primitive__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CubicNaturalSpline_primitive__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CubicNaturalSpline_primitive'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeCubicNaturalSpline::primitive(Real,bool)\n"
    "    SafeCubicNaturalSpline::primitive(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_CubicNaturalSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeCubicNaturalSpline *arg1 = (SafeCubicNaturalSpline *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CubicNaturalSpline",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeCubicNaturalSpline, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CubicNaturalSpline" "', argument " "1"" of type '" "SafeCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeCubicNaturalSpline * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CubicNaturalSpline_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SafeCubicNaturalSpline, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_LogCubicNaturalSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SafeLogCubicNaturalSpline *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogCubicNaturalSpline",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SafeLogCubicNaturalSpline *)new SafeLogCubicNaturalSpline((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeLogCubicNaturalSpline, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogCubicNaturalSpline___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogCubicNaturalSpline *arg1 = (SafeLogCubicNaturalSpline *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogCubicNaturalSpline___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogCubicNaturalSpline___call__" "', argument " "1"" of type '" "SafeLogCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogCubicNaturalSpline___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LogCubicNaturalSpline___call__" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogCubicNaturalSpline___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogCubicNaturalSpline *arg1 = (SafeLogCubicNaturalSpline *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogCubicNaturalSpline___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogCubicNaturalSpline___call__" "', argument " "1"" of type '" "SafeLogCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogCubicNaturalSpline___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogCubicNaturalSpline___call__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLogCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_LogCubicNaturalSpline___call____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLogCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_LogCubicNaturalSpline___call____SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'LogCubicNaturalSpline___call__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeLogCubicNaturalSpline::operator ()(Real,bool)\n"
    "    SafeLogCubicNaturalSpline::operator ()(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_LogCubicNaturalSpline_derivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogCubicNaturalSpline *arg1 = (SafeLogCubicNaturalSpline *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogCubicNaturalSpline_derivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogCubicNaturalSpline_derivative" "', argument " "1"" of type '" "SafeLogCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogCubicNaturalSpline_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LogCubicNaturalSpline_derivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeLogCubicNaturalSpline_derivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogCubicNaturalSpline_derivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogCubicNaturalSpline *arg1 = (SafeLogCubicNaturalSpline *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogCubicNaturalSpline_derivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogCubicNaturalSpline_derivative" "', argument " "1"" of type '" "SafeLogCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogCubicNaturalSpline_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeLogCubicNaturalSpline_derivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogCubicNaturalSpline_derivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLogCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_LogCubicNaturalSpline_derivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLogCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_LogCubicNaturalSpline_derivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'LogCubicNaturalSpline_derivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeLogCubicNaturalSpline::derivative(Real,bool)\n"
    "    SafeLogCubicNaturalSpline::derivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_LogCubicNaturalSpline_secondDerivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogCubicNaturalSpline *arg1 = (SafeLogCubicNaturalSpline *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogCubicNaturalSpline_secondDerivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogCubicNaturalSpline_secondDerivative" "', argument " "1"" of type '" "SafeLogCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogCubicNaturalSpline_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LogCubicNaturalSpline_secondDerivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeLogCubicNaturalSpline_secondDerivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogCubicNaturalSpline_secondDerivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogCubicNaturalSpline *arg1 = (SafeLogCubicNaturalSpline *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogCubicNaturalSpline_secondDerivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogCubicNaturalSpline_secondDerivative" "', argument " "1"" of type '" "SafeLogCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogCubicNaturalSpline_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeLogCubicNaturalSpline_secondDerivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogCubicNaturalSpline_secondDerivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLogCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_LogCubicNaturalSpline_secondDerivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLogCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_LogCubicNaturalSpline_secondDerivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'LogCubicNaturalSpline_secondDerivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeLogCubicNaturalSpline::secondDerivative(Real,bool)\n"
    "    SafeLogCubicNaturalSpline::secondDerivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_LogCubicNaturalSpline_primitive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogCubicNaturalSpline *arg1 = (SafeLogCubicNaturalSpline *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogCubicNaturalSpline_primitive",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogCubicNaturalSpline_primitive" "', argument " "1"" of type '" "SafeLogCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogCubicNaturalSpline_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LogCubicNaturalSpline_primitive" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeLogCubicNaturalSpline_primitive__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogCubicNaturalSpline_primitive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogCubicNaturalSpline *arg1 = (SafeLogCubicNaturalSpline *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogCubicNaturalSpline_primitive",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogCubicNaturalSpline_primitive" "', argument " "1"" of type '" "SafeLogCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogCubicNaturalSpline_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeLogCubicNaturalSpline_primitive__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogCubicNaturalSpline_primitive(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLogCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_LogCubicNaturalSpline_primitive__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLogCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_LogCubicNaturalSpline_primitive__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'LogCubicNaturalSpline_primitive'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeLogCubicNaturalSpline::primitive(Real,bool)\n"
    "    SafeLogCubicNaturalSpline::primitive(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_LogCubicNaturalSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogCubicNaturalSpline *arg1 = (SafeLogCubicNaturalSpline *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LogCubicNaturalSpline",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogCubicNaturalSpline, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LogCubicNaturalSpline" "', argument " "1"" of type '" "SafeLogCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogCubicNaturalSpline * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LogCubicNaturalSpline_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SafeLogCubicNaturalSpline, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MonotonicCubicNaturalSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SafeMonotonicCubicNaturalSpline *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MonotonicCubicNaturalSpline",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SafeMonotonicCubicNaturalSpline *)new SafeMonotonicCubicNaturalSpline((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicCubicNaturalSpline___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicCubicNaturalSpline *arg1 = (SafeMonotonicCubicNaturalSpline *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicCubicNaturalSpline___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicCubicNaturalSpline___call__" "', argument " "1"" of type '" "SafeMonotonicCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicCubicNaturalSpline___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MonotonicCubicNaturalSpline___call__" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicCubicNaturalSpline___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicCubicNaturalSpline *arg1 = (SafeMonotonicCubicNaturalSpline *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicCubicNaturalSpline___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicCubicNaturalSpline___call__" "', argument " "1"" of type '" "SafeMonotonicCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicCubicNaturalSpline___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicCubicNaturalSpline___call__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_MonotonicCubicNaturalSpline___call____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MonotonicCubicNaturalSpline___call____SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MonotonicCubicNaturalSpline___call__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeMonotonicCubicNaturalSpline::operator ()(Real,bool)\n"
    "    SafeMonotonicCubicNaturalSpline::operator ()(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_MonotonicCubicNaturalSpline_derivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicCubicNaturalSpline *arg1 = (SafeMonotonicCubicNaturalSpline *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicCubicNaturalSpline_derivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicCubicNaturalSpline_derivative" "', argument " "1"" of type '" "SafeMonotonicCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicCubicNaturalSpline_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MonotonicCubicNaturalSpline_derivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeMonotonicCubicNaturalSpline_derivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicCubicNaturalSpline_derivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicCubicNaturalSpline *arg1 = (SafeMonotonicCubicNaturalSpline *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicCubicNaturalSpline_derivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicCubicNaturalSpline_derivative" "', argument " "1"" of type '" "SafeMonotonicCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicCubicNaturalSpline_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeMonotonicCubicNaturalSpline_derivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicCubicNaturalSpline_derivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_MonotonicCubicNaturalSpline_derivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MonotonicCubicNaturalSpline_derivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MonotonicCubicNaturalSpline_derivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeMonotonicCubicNaturalSpline::derivative(Real,bool)\n"
    "    SafeMonotonicCubicNaturalSpline::derivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_MonotonicCubicNaturalSpline_secondDerivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicCubicNaturalSpline *arg1 = (SafeMonotonicCubicNaturalSpline *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicCubicNaturalSpline_secondDerivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicCubicNaturalSpline_secondDerivative" "', argument " "1"" of type '" "SafeMonotonicCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicCubicNaturalSpline_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MonotonicCubicNaturalSpline_secondDerivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeMonotonicCubicNaturalSpline_secondDerivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicCubicNaturalSpline_secondDerivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicCubicNaturalSpline *arg1 = (SafeMonotonicCubicNaturalSpline *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicCubicNaturalSpline_secondDerivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicCubicNaturalSpline_secondDerivative" "', argument " "1"" of type '" "SafeMonotonicCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicCubicNaturalSpline_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeMonotonicCubicNaturalSpline_secondDerivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicCubicNaturalSpline_secondDerivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_MonotonicCubicNaturalSpline_secondDerivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MonotonicCubicNaturalSpline_secondDerivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MonotonicCubicNaturalSpline_secondDerivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeMonotonicCubicNaturalSpline::secondDerivative(Real,bool)\n"
    "    SafeMonotonicCubicNaturalSpline::secondDerivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_MonotonicCubicNaturalSpline_primitive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicCubicNaturalSpline *arg1 = (SafeMonotonicCubicNaturalSpline *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicCubicNaturalSpline_primitive",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicCubicNaturalSpline_primitive" "', argument " "1"" of type '" "SafeMonotonicCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicCubicNaturalSpline_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MonotonicCubicNaturalSpline_primitive" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeMonotonicCubicNaturalSpline_primitive__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicCubicNaturalSpline_primitive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicCubicNaturalSpline *arg1 = (SafeMonotonicCubicNaturalSpline *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicCubicNaturalSpline_primitive",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicCubicNaturalSpline_primitive" "', argument " "1"" of type '" "SafeMonotonicCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicCubicNaturalSpline_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeMonotonicCubicNaturalSpline_primitive__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicCubicNaturalSpline_primitive(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_MonotonicCubicNaturalSpline_primitive__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MonotonicCubicNaturalSpline_primitive__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MonotonicCubicNaturalSpline_primitive'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeMonotonicCubicNaturalSpline::primitive(Real,bool)\n"
    "    SafeMonotonicCubicNaturalSpline::primitive(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_MonotonicCubicNaturalSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicCubicNaturalSpline *arg1 = (SafeMonotonicCubicNaturalSpline *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MonotonicCubicNaturalSpline",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MonotonicCubicNaturalSpline" "', argument " "1"" of type '" "SafeMonotonicCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicCubicNaturalSpline * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MonotonicCubicNaturalSpline_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SafeMonotonicCubicNaturalSpline, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MonotonicLogCubicNaturalSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SafeMonotonicLogCubicNaturalSpline *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MonotonicLogCubicNaturalSpline",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SafeMonotonicLogCubicNaturalSpline *)new SafeMonotonicLogCubicNaturalSpline((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicLogCubicNaturalSpline___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicLogCubicNaturalSpline *arg1 = (SafeMonotonicLogCubicNaturalSpline *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicLogCubicNaturalSpline___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicLogCubicNaturalSpline___call__" "', argument " "1"" of type '" "SafeMonotonicLogCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicLogCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicLogCubicNaturalSpline___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MonotonicLogCubicNaturalSpline___call__" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicLogCubicNaturalSpline___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicLogCubicNaturalSpline *arg1 = (SafeMonotonicLogCubicNaturalSpline *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicLogCubicNaturalSpline___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicLogCubicNaturalSpline___call__" "', argument " "1"" of type '" "SafeMonotonicLogCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicLogCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicLogCubicNaturalSpline___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicLogCubicNaturalSpline___call__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_MonotonicLogCubicNaturalSpline___call____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MonotonicLogCubicNaturalSpline___call____SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MonotonicLogCubicNaturalSpline___call__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeMonotonicLogCubicNaturalSpline::operator ()(Real,bool)\n"
    "    SafeMonotonicLogCubicNaturalSpline::operator ()(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_MonotonicLogCubicNaturalSpline_derivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicLogCubicNaturalSpline *arg1 = (SafeMonotonicLogCubicNaturalSpline *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicLogCubicNaturalSpline_derivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicLogCubicNaturalSpline_derivative" "', argument " "1"" of type '" "SafeMonotonicLogCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicLogCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicLogCubicNaturalSpline_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MonotonicLogCubicNaturalSpline_derivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeMonotonicLogCubicNaturalSpline_derivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicLogCubicNaturalSpline_derivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicLogCubicNaturalSpline *arg1 = (SafeMonotonicLogCubicNaturalSpline *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicLogCubicNaturalSpline_derivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicLogCubicNaturalSpline_derivative" "', argument " "1"" of type '" "SafeMonotonicLogCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicLogCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicLogCubicNaturalSpline_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeMonotonicLogCubicNaturalSpline_derivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicLogCubicNaturalSpline_derivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_MonotonicLogCubicNaturalSpline_derivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MonotonicLogCubicNaturalSpline_derivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MonotonicLogCubicNaturalSpline_derivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeMonotonicLogCubicNaturalSpline::derivative(Real,bool)\n"
    "    SafeMonotonicLogCubicNaturalSpline::derivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_MonotonicLogCubicNaturalSpline_secondDerivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicLogCubicNaturalSpline *arg1 = (SafeMonotonicLogCubicNaturalSpline *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicLogCubicNaturalSpline_secondDerivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicLogCubicNaturalSpline_secondDerivative" "', argument " "1"" of type '" "SafeMonotonicLogCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicLogCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicLogCubicNaturalSpline_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MonotonicLogCubicNaturalSpline_secondDerivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeMonotonicLogCubicNaturalSpline_secondDerivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicLogCubicNaturalSpline_secondDerivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicLogCubicNaturalSpline *arg1 = (SafeMonotonicLogCubicNaturalSpline *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicLogCubicNaturalSpline_secondDerivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicLogCubicNaturalSpline_secondDerivative" "', argument " "1"" of type '" "SafeMonotonicLogCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicLogCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicLogCubicNaturalSpline_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeMonotonicLogCubicNaturalSpline_secondDerivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicLogCubicNaturalSpline_secondDerivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_MonotonicLogCubicNaturalSpline_secondDerivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MonotonicLogCubicNaturalSpline_secondDerivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MonotonicLogCubicNaturalSpline_secondDerivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeMonotonicLogCubicNaturalSpline::secondDerivative(Real,bool)\n"
    "    SafeMonotonicLogCubicNaturalSpline::secondDerivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_MonotonicLogCubicNaturalSpline_primitive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicLogCubicNaturalSpline *arg1 = (SafeMonotonicLogCubicNaturalSpline *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicLogCubicNaturalSpline_primitive",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicLogCubicNaturalSpline_primitive" "', argument " "1"" of type '" "SafeMonotonicLogCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicLogCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicLogCubicNaturalSpline_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MonotonicLogCubicNaturalSpline_primitive" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeMonotonicLogCubicNaturalSpline_primitive__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicLogCubicNaturalSpline_primitive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicLogCubicNaturalSpline *arg1 = (SafeMonotonicLogCubicNaturalSpline *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicLogCubicNaturalSpline_primitive",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicLogCubicNaturalSpline_primitive" "', argument " "1"" of type '" "SafeMonotonicLogCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicLogCubicNaturalSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicLogCubicNaturalSpline_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeMonotonicLogCubicNaturalSpline_primitive__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicLogCubicNaturalSpline_primitive(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_MonotonicLogCubicNaturalSpline_primitive__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MonotonicLogCubicNaturalSpline_primitive__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MonotonicLogCubicNaturalSpline_primitive'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeMonotonicLogCubicNaturalSpline::primitive(Real,bool)\n"
    "    SafeMonotonicLogCubicNaturalSpline::primitive(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_MonotonicLogCubicNaturalSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicLogCubicNaturalSpline *arg1 = (SafeMonotonicLogCubicNaturalSpline *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MonotonicLogCubicNaturalSpline",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MonotonicLogCubicNaturalSpline" "', argument " "1"" of type '" "SafeMonotonicLogCubicNaturalSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicLogCubicNaturalSpline * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MonotonicLogCubicNaturalSpline_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SafeMonotonicLogCubicNaturalSpline, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_KrugerCubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SafeKrugerCubic *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_KrugerCubic",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SafeKrugerCubic *)new SafeKrugerCubic((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeKrugerCubic, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KrugerCubic___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeKrugerCubic *arg1 = (SafeKrugerCubic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"KrugerCubic___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeKrugerCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KrugerCubic___call__" "', argument " "1"" of type '" "SafeKrugerCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeKrugerCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KrugerCubic___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KrugerCubic___call__" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KrugerCubic___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeKrugerCubic *arg1 = (SafeKrugerCubic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"KrugerCubic___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeKrugerCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KrugerCubic___call__" "', argument " "1"" of type '" "SafeKrugerCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeKrugerCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KrugerCubic___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KrugerCubic___call__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeKrugerCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_KrugerCubic___call____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeKrugerCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_KrugerCubic___call____SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'KrugerCubic___call__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeKrugerCubic::operator ()(Real,bool)\n"
    "    SafeKrugerCubic::operator ()(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_KrugerCubic_derivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeKrugerCubic *arg1 = (SafeKrugerCubic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"KrugerCubic_derivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeKrugerCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KrugerCubic_derivative" "', argument " "1"" of type '" "SafeKrugerCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeKrugerCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KrugerCubic_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KrugerCubic_derivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeKrugerCubic_derivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KrugerCubic_derivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeKrugerCubic *arg1 = (SafeKrugerCubic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"KrugerCubic_derivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeKrugerCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KrugerCubic_derivative" "', argument " "1"" of type '" "SafeKrugerCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeKrugerCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KrugerCubic_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeKrugerCubic_derivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KrugerCubic_derivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeKrugerCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_KrugerCubic_derivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeKrugerCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_KrugerCubic_derivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'KrugerCubic_derivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeKrugerCubic::derivative(Real,bool)\n"
    "    SafeKrugerCubic::derivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_KrugerCubic_secondDerivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeKrugerCubic *arg1 = (SafeKrugerCubic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"KrugerCubic_secondDerivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeKrugerCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KrugerCubic_secondDerivative" "', argument " "1"" of type '" "SafeKrugerCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeKrugerCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KrugerCubic_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KrugerCubic_secondDerivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeKrugerCubic_secondDerivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KrugerCubic_secondDerivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeKrugerCubic *arg1 = (SafeKrugerCubic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"KrugerCubic_secondDerivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeKrugerCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KrugerCubic_secondDerivative" "', argument " "1"" of type '" "SafeKrugerCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeKrugerCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KrugerCubic_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeKrugerCubic_secondDerivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KrugerCubic_secondDerivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeKrugerCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_KrugerCubic_secondDerivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeKrugerCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_KrugerCubic_secondDerivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'KrugerCubic_secondDerivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeKrugerCubic::secondDerivative(Real,bool)\n"
    "    SafeKrugerCubic::secondDerivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_KrugerCubic_primitive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeKrugerCubic *arg1 = (SafeKrugerCubic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"KrugerCubic_primitive",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeKrugerCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KrugerCubic_primitive" "', argument " "1"" of type '" "SafeKrugerCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeKrugerCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KrugerCubic_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KrugerCubic_primitive" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeKrugerCubic_primitive__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KrugerCubic_primitive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeKrugerCubic *arg1 = (SafeKrugerCubic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"KrugerCubic_primitive",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeKrugerCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KrugerCubic_primitive" "', argument " "1"" of type '" "SafeKrugerCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeKrugerCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KrugerCubic_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeKrugerCubic_primitive__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KrugerCubic_primitive(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeKrugerCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_KrugerCubic_primitive__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeKrugerCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_KrugerCubic_primitive__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'KrugerCubic_primitive'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeKrugerCubic::primitive(Real,bool)\n"
    "    SafeKrugerCubic::primitive(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_KrugerCubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeKrugerCubic *arg1 = (SafeKrugerCubic *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_KrugerCubic",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeKrugerCubic, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_KrugerCubic" "', argument " "1"" of type '" "SafeKrugerCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeKrugerCubic * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *KrugerCubic_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SafeKrugerCubic, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_KrugerLogCubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SafeKrugerLogCubic *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_KrugerLogCubic",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SafeKrugerLogCubic *)new SafeKrugerLogCubic((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeKrugerLogCubic, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KrugerLogCubic___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeKrugerLogCubic *arg1 = (SafeKrugerLogCubic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"KrugerLogCubic___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeKrugerLogCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KrugerLogCubic___call__" "', argument " "1"" of type '" "SafeKrugerLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeKrugerLogCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KrugerLogCubic___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KrugerLogCubic___call__" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KrugerLogCubic___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeKrugerLogCubic *arg1 = (SafeKrugerLogCubic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"KrugerLogCubic___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeKrugerLogCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KrugerLogCubic___call__" "', argument " "1"" of type '" "SafeKrugerLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeKrugerLogCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KrugerLogCubic___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KrugerLogCubic___call__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeKrugerLogCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_KrugerLogCubic___call____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeKrugerLogCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_KrugerLogCubic___call____SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'KrugerLogCubic___call__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeKrugerLogCubic::operator ()(Real,bool)\n"
    "    SafeKrugerLogCubic::operator ()(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_KrugerLogCubic_derivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeKrugerLogCubic *arg1 = (SafeKrugerLogCubic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"KrugerLogCubic_derivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeKrugerLogCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KrugerLogCubic_derivative" "', argument " "1"" of type '" "SafeKrugerLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeKrugerLogCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KrugerLogCubic_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KrugerLogCubic_derivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeKrugerLogCubic_derivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KrugerLogCubic_derivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeKrugerLogCubic *arg1 = (SafeKrugerLogCubic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"KrugerLogCubic_derivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeKrugerLogCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KrugerLogCubic_derivative" "', argument " "1"" of type '" "SafeKrugerLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeKrugerLogCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KrugerLogCubic_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeKrugerLogCubic_derivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KrugerLogCubic_derivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeKrugerLogCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_KrugerLogCubic_derivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeKrugerLogCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_KrugerLogCubic_derivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'KrugerLogCubic_derivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeKrugerLogCubic::derivative(Real,bool)\n"
    "    SafeKrugerLogCubic::derivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_KrugerLogCubic_secondDerivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeKrugerLogCubic *arg1 = (SafeKrugerLogCubic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"KrugerLogCubic_secondDerivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeKrugerLogCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KrugerLogCubic_secondDerivative" "', argument " "1"" of type '" "SafeKrugerLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeKrugerLogCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KrugerLogCubic_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KrugerLogCubic_secondDerivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeKrugerLogCubic_secondDerivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KrugerLogCubic_secondDerivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeKrugerLogCubic *arg1 = (SafeKrugerLogCubic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"KrugerLogCubic_secondDerivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeKrugerLogCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KrugerLogCubic_secondDerivative" "', argument " "1"" of type '" "SafeKrugerLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeKrugerLogCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KrugerLogCubic_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeKrugerLogCubic_secondDerivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KrugerLogCubic_secondDerivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeKrugerLogCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_KrugerLogCubic_secondDerivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeKrugerLogCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_KrugerLogCubic_secondDerivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'KrugerLogCubic_secondDerivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeKrugerLogCubic::secondDerivative(Real,bool)\n"
    "    SafeKrugerLogCubic::secondDerivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_KrugerLogCubic_primitive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeKrugerLogCubic *arg1 = (SafeKrugerLogCubic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"KrugerLogCubic_primitive",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeKrugerLogCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KrugerLogCubic_primitive" "', argument " "1"" of type '" "SafeKrugerLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeKrugerLogCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KrugerLogCubic_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KrugerLogCubic_primitive" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeKrugerLogCubic_primitive__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KrugerLogCubic_primitive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeKrugerLogCubic *arg1 = (SafeKrugerLogCubic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"KrugerLogCubic_primitive",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeKrugerLogCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KrugerLogCubic_primitive" "', argument " "1"" of type '" "SafeKrugerLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeKrugerLogCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KrugerLogCubic_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeKrugerLogCubic_primitive__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KrugerLogCubic_primitive(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeKrugerLogCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_KrugerLogCubic_primitive__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeKrugerLogCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_KrugerLogCubic_primitive__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'KrugerLogCubic_primitive'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeKrugerLogCubic::primitive(Real,bool)\n"
    "    SafeKrugerLogCubic::primitive(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_KrugerLogCubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeKrugerLogCubic *arg1 = (SafeKrugerLogCubic *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_KrugerLogCubic",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeKrugerLogCubic, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_KrugerLogCubic" "', argument " "1"" of type '" "SafeKrugerLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeKrugerLogCubic * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *KrugerLogCubic_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SafeKrugerLogCubic, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FritschButlandCubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SafeFritschButlandCubic *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FritschButlandCubic",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SafeFritschButlandCubic *)new SafeFritschButlandCubic((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeFritschButlandCubic, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FritschButlandCubic___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeFritschButlandCubic *arg1 = (SafeFritschButlandCubic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FritschButlandCubic___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeFritschButlandCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FritschButlandCubic___call__" "', argument " "1"" of type '" "SafeFritschButlandCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeFritschButlandCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FritschButlandCubic___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FritschButlandCubic___call__" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FritschButlandCubic___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeFritschButlandCubic *arg1 = (SafeFritschButlandCubic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FritschButlandCubic___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeFritschButlandCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FritschButlandCubic___call__" "', argument " "1"" of type '" "SafeFritschButlandCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeFritschButlandCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FritschButlandCubic___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FritschButlandCubic___call__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeFritschButlandCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_FritschButlandCubic___call____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeFritschButlandCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_FritschButlandCubic___call____SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FritschButlandCubic___call__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeFritschButlandCubic::operator ()(Real,bool)\n"
    "    SafeFritschButlandCubic::operator ()(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_FritschButlandCubic_derivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeFritschButlandCubic *arg1 = (SafeFritschButlandCubic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FritschButlandCubic_derivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeFritschButlandCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FritschButlandCubic_derivative" "', argument " "1"" of type '" "SafeFritschButlandCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeFritschButlandCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FritschButlandCubic_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FritschButlandCubic_derivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeFritschButlandCubic_derivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FritschButlandCubic_derivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeFritschButlandCubic *arg1 = (SafeFritschButlandCubic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FritschButlandCubic_derivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeFritschButlandCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FritschButlandCubic_derivative" "', argument " "1"" of type '" "SafeFritschButlandCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeFritschButlandCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FritschButlandCubic_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeFritschButlandCubic_derivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FritschButlandCubic_derivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeFritschButlandCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_FritschButlandCubic_derivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeFritschButlandCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_FritschButlandCubic_derivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FritschButlandCubic_derivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeFritschButlandCubic::derivative(Real,bool)\n"
    "    SafeFritschButlandCubic::derivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_FritschButlandCubic_secondDerivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeFritschButlandCubic *arg1 = (SafeFritschButlandCubic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FritschButlandCubic_secondDerivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeFritschButlandCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FritschButlandCubic_secondDerivative" "', argument " "1"" of type '" "SafeFritschButlandCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeFritschButlandCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FritschButlandCubic_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FritschButlandCubic_secondDerivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeFritschButlandCubic_secondDerivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FritschButlandCubic_secondDerivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeFritschButlandCubic *arg1 = (SafeFritschButlandCubic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FritschButlandCubic_secondDerivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeFritschButlandCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FritschButlandCubic_secondDerivative" "', argument " "1"" of type '" "SafeFritschButlandCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeFritschButlandCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FritschButlandCubic_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeFritschButlandCubic_secondDerivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FritschButlandCubic_secondDerivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeFritschButlandCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_FritschButlandCubic_secondDerivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeFritschButlandCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_FritschButlandCubic_secondDerivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FritschButlandCubic_secondDerivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeFritschButlandCubic::secondDerivative(Real,bool)\n"
    "    SafeFritschButlandCubic::secondDerivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_FritschButlandCubic_primitive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeFritschButlandCubic *arg1 = (SafeFritschButlandCubic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FritschButlandCubic_primitive",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeFritschButlandCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FritschButlandCubic_primitive" "', argument " "1"" of type '" "SafeFritschButlandCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeFritschButlandCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FritschButlandCubic_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FritschButlandCubic_primitive" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeFritschButlandCubic_primitive__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FritschButlandCubic_primitive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeFritschButlandCubic *arg1 = (SafeFritschButlandCubic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FritschButlandCubic_primitive",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeFritschButlandCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FritschButlandCubic_primitive" "', argument " "1"" of type '" "SafeFritschButlandCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeFritschButlandCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FritschButlandCubic_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeFritschButlandCubic_primitive__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FritschButlandCubic_primitive(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeFritschButlandCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_FritschButlandCubic_primitive__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeFritschButlandCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_FritschButlandCubic_primitive__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FritschButlandCubic_primitive'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeFritschButlandCubic::primitive(Real,bool)\n"
    "    SafeFritschButlandCubic::primitive(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FritschButlandCubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeFritschButlandCubic *arg1 = (SafeFritschButlandCubic *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FritschButlandCubic",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeFritschButlandCubic, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FritschButlandCubic" "', argument " "1"" of type '" "SafeFritschButlandCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeFritschButlandCubic * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FritschButlandCubic_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SafeFritschButlandCubic, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FritschButlandLogCubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SafeFritschButlandLogCubic *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FritschButlandLogCubic",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SafeFritschButlandLogCubic *)new SafeFritschButlandLogCubic((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeFritschButlandLogCubic, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FritschButlandLogCubic___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeFritschButlandLogCubic *arg1 = (SafeFritschButlandLogCubic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FritschButlandLogCubic___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeFritschButlandLogCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FritschButlandLogCubic___call__" "', argument " "1"" of type '" "SafeFritschButlandLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeFritschButlandLogCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FritschButlandLogCubic___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FritschButlandLogCubic___call__" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FritschButlandLogCubic___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeFritschButlandLogCubic *arg1 = (SafeFritschButlandLogCubic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FritschButlandLogCubic___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeFritschButlandLogCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FritschButlandLogCubic___call__" "', argument " "1"" of type '" "SafeFritschButlandLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeFritschButlandLogCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FritschButlandLogCubic___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FritschButlandLogCubic___call__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeFritschButlandLogCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_FritschButlandLogCubic___call____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeFritschButlandLogCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_FritschButlandLogCubic___call____SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FritschButlandLogCubic___call__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeFritschButlandLogCubic::operator ()(Real,bool)\n"
    "    SafeFritschButlandLogCubic::operator ()(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_FritschButlandLogCubic_derivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeFritschButlandLogCubic *arg1 = (SafeFritschButlandLogCubic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FritschButlandLogCubic_derivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeFritschButlandLogCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FritschButlandLogCubic_derivative" "', argument " "1"" of type '" "SafeFritschButlandLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeFritschButlandLogCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FritschButlandLogCubic_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FritschButlandLogCubic_derivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeFritschButlandLogCubic_derivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FritschButlandLogCubic_derivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeFritschButlandLogCubic *arg1 = (SafeFritschButlandLogCubic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FritschButlandLogCubic_derivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeFritschButlandLogCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FritschButlandLogCubic_derivative" "', argument " "1"" of type '" "SafeFritschButlandLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeFritschButlandLogCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FritschButlandLogCubic_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeFritschButlandLogCubic_derivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FritschButlandLogCubic_derivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeFritschButlandLogCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_FritschButlandLogCubic_derivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeFritschButlandLogCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_FritschButlandLogCubic_derivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FritschButlandLogCubic_derivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeFritschButlandLogCubic::derivative(Real,bool)\n"
    "    SafeFritschButlandLogCubic::derivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_FritschButlandLogCubic_secondDerivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeFritschButlandLogCubic *arg1 = (SafeFritschButlandLogCubic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FritschButlandLogCubic_secondDerivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeFritschButlandLogCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FritschButlandLogCubic_secondDerivative" "', argument " "1"" of type '" "SafeFritschButlandLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeFritschButlandLogCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FritschButlandLogCubic_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FritschButlandLogCubic_secondDerivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeFritschButlandLogCubic_secondDerivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FritschButlandLogCubic_secondDerivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeFritschButlandLogCubic *arg1 = (SafeFritschButlandLogCubic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FritschButlandLogCubic_secondDerivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeFritschButlandLogCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FritschButlandLogCubic_secondDerivative" "', argument " "1"" of type '" "SafeFritschButlandLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeFritschButlandLogCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FritschButlandLogCubic_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeFritschButlandLogCubic_secondDerivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FritschButlandLogCubic_secondDerivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeFritschButlandLogCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_FritschButlandLogCubic_secondDerivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeFritschButlandLogCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_FritschButlandLogCubic_secondDerivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FritschButlandLogCubic_secondDerivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeFritschButlandLogCubic::secondDerivative(Real,bool)\n"
    "    SafeFritschButlandLogCubic::secondDerivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_FritschButlandLogCubic_primitive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeFritschButlandLogCubic *arg1 = (SafeFritschButlandLogCubic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FritschButlandLogCubic_primitive",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeFritschButlandLogCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FritschButlandLogCubic_primitive" "', argument " "1"" of type '" "SafeFritschButlandLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeFritschButlandLogCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FritschButlandLogCubic_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FritschButlandLogCubic_primitive" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeFritschButlandLogCubic_primitive__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FritschButlandLogCubic_primitive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeFritschButlandLogCubic *arg1 = (SafeFritschButlandLogCubic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FritschButlandLogCubic_primitive",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeFritschButlandLogCubic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FritschButlandLogCubic_primitive" "', argument " "1"" of type '" "SafeFritschButlandLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeFritschButlandLogCubic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FritschButlandLogCubic_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeFritschButlandLogCubic_primitive__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FritschButlandLogCubic_primitive(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeFritschButlandLogCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_FritschButlandLogCubic_primitive__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeFritschButlandLogCubic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_FritschButlandLogCubic_primitive__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FritschButlandLogCubic_primitive'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeFritschButlandLogCubic::primitive(Real,bool)\n"
    "    SafeFritschButlandLogCubic::primitive(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FritschButlandLogCubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeFritschButlandLogCubic *arg1 = (SafeFritschButlandLogCubic *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FritschButlandLogCubic",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeFritschButlandLogCubic, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FritschButlandLogCubic" "', argument " "1"" of type '" "SafeFritschButlandLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< SafeFritschButlandLogCubic * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FritschButlandLogCubic_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SafeFritschButlandLogCubic, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Parabolic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SafeParabolic *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Parabolic",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SafeParabolic *)new SafeParabolic((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeParabolic, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Parabolic___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeParabolic *arg1 = (SafeParabolic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Parabolic___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Parabolic___call__" "', argument " "1"" of type '" "SafeParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Parabolic___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Parabolic___call__" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Parabolic___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeParabolic *arg1 = (SafeParabolic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Parabolic___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Parabolic___call__" "', argument " "1"" of type '" "SafeParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Parabolic___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Parabolic___call__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_Parabolic___call____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_Parabolic___call____SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Parabolic___call__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeParabolic::operator ()(Real,bool)\n"
    "    SafeParabolic::operator ()(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Parabolic_derivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeParabolic *arg1 = (SafeParabolic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Parabolic_derivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Parabolic_derivative" "', argument " "1"" of type '" "SafeParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Parabolic_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Parabolic_derivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeParabolic_derivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Parabolic_derivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeParabolic *arg1 = (SafeParabolic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Parabolic_derivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Parabolic_derivative" "', argument " "1"" of type '" "SafeParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Parabolic_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeParabolic_derivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Parabolic_derivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_Parabolic_derivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_Parabolic_derivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Parabolic_derivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeParabolic::derivative(Real,bool)\n"
    "    SafeParabolic::derivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Parabolic_secondDerivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeParabolic *arg1 = (SafeParabolic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Parabolic_secondDerivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Parabolic_secondDerivative" "', argument " "1"" of type '" "SafeParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Parabolic_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Parabolic_secondDerivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeParabolic_secondDerivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Parabolic_secondDerivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeParabolic *arg1 = (SafeParabolic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Parabolic_secondDerivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Parabolic_secondDerivative" "', argument " "1"" of type '" "SafeParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Parabolic_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeParabolic_secondDerivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Parabolic_secondDerivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_Parabolic_secondDerivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_Parabolic_secondDerivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Parabolic_secondDerivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeParabolic::secondDerivative(Real,bool)\n"
    "    SafeParabolic::secondDerivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Parabolic_primitive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeParabolic *arg1 = (SafeParabolic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Parabolic_primitive",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Parabolic_primitive" "', argument " "1"" of type '" "SafeParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Parabolic_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Parabolic_primitive" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeParabolic_primitive__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Parabolic_primitive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeParabolic *arg1 = (SafeParabolic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Parabolic_primitive",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Parabolic_primitive" "', argument " "1"" of type '" "SafeParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Parabolic_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeParabolic_primitive__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Parabolic_primitive(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_Parabolic_primitive__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_Parabolic_primitive__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Parabolic_primitive'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeParabolic::primitive(Real,bool)\n"
    "    SafeParabolic::primitive(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Parabolic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeParabolic *arg1 = (SafeParabolic *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Parabolic",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeParabolic, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Parabolic" "', argument " "1"" of type '" "SafeParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeParabolic * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Parabolic_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SafeParabolic, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_LogParabolic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SafeLogParabolic *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogParabolic",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SafeLogParabolic *)new SafeLogParabolic((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeLogParabolic, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogParabolic___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogParabolic *arg1 = (SafeLogParabolic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogParabolic___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogParabolic___call__" "', argument " "1"" of type '" "SafeLogParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogParabolic___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LogParabolic___call__" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogParabolic___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogParabolic *arg1 = (SafeLogParabolic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogParabolic___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogParabolic___call__" "', argument " "1"" of type '" "SafeLogParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogParabolic___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogParabolic___call__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLogParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_LogParabolic___call____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLogParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_LogParabolic___call____SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'LogParabolic___call__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeLogParabolic::operator ()(Real,bool)\n"
    "    SafeLogParabolic::operator ()(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_LogParabolic_derivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogParabolic *arg1 = (SafeLogParabolic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogParabolic_derivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogParabolic_derivative" "', argument " "1"" of type '" "SafeLogParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogParabolic_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LogParabolic_derivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeLogParabolic_derivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogParabolic_derivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogParabolic *arg1 = (SafeLogParabolic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogParabolic_derivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogParabolic_derivative" "', argument " "1"" of type '" "SafeLogParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogParabolic_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeLogParabolic_derivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogParabolic_derivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLogParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_LogParabolic_derivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLogParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_LogParabolic_derivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'LogParabolic_derivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeLogParabolic::derivative(Real,bool)\n"
    "    SafeLogParabolic::derivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_LogParabolic_secondDerivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogParabolic *arg1 = (SafeLogParabolic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogParabolic_secondDerivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogParabolic_secondDerivative" "', argument " "1"" of type '" "SafeLogParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogParabolic_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LogParabolic_secondDerivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeLogParabolic_secondDerivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogParabolic_secondDerivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogParabolic *arg1 = (SafeLogParabolic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogParabolic_secondDerivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogParabolic_secondDerivative" "', argument " "1"" of type '" "SafeLogParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogParabolic_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeLogParabolic_secondDerivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogParabolic_secondDerivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLogParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_LogParabolic_secondDerivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLogParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_LogParabolic_secondDerivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'LogParabolic_secondDerivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeLogParabolic::secondDerivative(Real,bool)\n"
    "    SafeLogParabolic::secondDerivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_LogParabolic_primitive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogParabolic *arg1 = (SafeLogParabolic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogParabolic_primitive",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogParabolic_primitive" "', argument " "1"" of type '" "SafeLogParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogParabolic_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LogParabolic_primitive" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeLogParabolic_primitive__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogParabolic_primitive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogParabolic *arg1 = (SafeLogParabolic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogParabolic_primitive",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogParabolic_primitive" "', argument " "1"" of type '" "SafeLogParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LogParabolic_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeLogParabolic_primitive__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogParabolic_primitive(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLogParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_LogParabolic_primitive__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeLogParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_LogParabolic_primitive__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'LogParabolic_primitive'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeLogParabolic::primitive(Real,bool)\n"
    "    SafeLogParabolic::primitive(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_LogParabolic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeLogParabolic *arg1 = (SafeLogParabolic *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LogParabolic",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeLogParabolic, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LogParabolic" "', argument " "1"" of type '" "SafeLogParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeLogParabolic * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LogParabolic_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SafeLogParabolic, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MonotonicParabolic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SafeMonotonicParabolic *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MonotonicParabolic",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SafeMonotonicParabolic *)new SafeMonotonicParabolic((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeMonotonicParabolic, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicParabolic___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicParabolic *arg1 = (SafeMonotonicParabolic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicParabolic___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicParabolic___call__" "', argument " "1"" of type '" "SafeMonotonicParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicParabolic___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MonotonicParabolic___call__" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicParabolic___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicParabolic *arg1 = (SafeMonotonicParabolic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicParabolic___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicParabolic___call__" "', argument " "1"" of type '" "SafeMonotonicParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicParabolic___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicParabolic___call__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_MonotonicParabolic___call____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MonotonicParabolic___call____SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MonotonicParabolic___call__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeMonotonicParabolic::operator ()(Real,bool)\n"
    "    SafeMonotonicParabolic::operator ()(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_MonotonicParabolic_derivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicParabolic *arg1 = (SafeMonotonicParabolic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicParabolic_derivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicParabolic_derivative" "', argument " "1"" of type '" "SafeMonotonicParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicParabolic_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MonotonicParabolic_derivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeMonotonicParabolic_derivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicParabolic_derivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicParabolic *arg1 = (SafeMonotonicParabolic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicParabolic_derivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicParabolic_derivative" "', argument " "1"" of type '" "SafeMonotonicParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicParabolic_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeMonotonicParabolic_derivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicParabolic_derivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_MonotonicParabolic_derivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MonotonicParabolic_derivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MonotonicParabolic_derivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeMonotonicParabolic::derivative(Real,bool)\n"
    "    SafeMonotonicParabolic::derivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_MonotonicParabolic_secondDerivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicParabolic *arg1 = (SafeMonotonicParabolic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicParabolic_secondDerivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicParabolic_secondDerivative" "', argument " "1"" of type '" "SafeMonotonicParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicParabolic_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MonotonicParabolic_secondDerivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeMonotonicParabolic_secondDerivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicParabolic_secondDerivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicParabolic *arg1 = (SafeMonotonicParabolic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicParabolic_secondDerivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicParabolic_secondDerivative" "', argument " "1"" of type '" "SafeMonotonicParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicParabolic_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeMonotonicParabolic_secondDerivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicParabolic_secondDerivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_MonotonicParabolic_secondDerivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MonotonicParabolic_secondDerivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MonotonicParabolic_secondDerivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeMonotonicParabolic::secondDerivative(Real,bool)\n"
    "    SafeMonotonicParabolic::secondDerivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_MonotonicParabolic_primitive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicParabolic *arg1 = (SafeMonotonicParabolic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicParabolic_primitive",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicParabolic_primitive" "', argument " "1"" of type '" "SafeMonotonicParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicParabolic_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MonotonicParabolic_primitive" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeMonotonicParabolic_primitive__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicParabolic_primitive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicParabolic *arg1 = (SafeMonotonicParabolic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicParabolic_primitive",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicParabolic_primitive" "', argument " "1"" of type '" "SafeMonotonicParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicParabolic_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeMonotonicParabolic_primitive__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicParabolic_primitive(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_MonotonicParabolic_primitive__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MonotonicParabolic_primitive__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MonotonicParabolic_primitive'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeMonotonicParabolic::primitive(Real,bool)\n"
    "    SafeMonotonicParabolic::primitive(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_MonotonicParabolic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicParabolic *arg1 = (SafeMonotonicParabolic *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MonotonicParabolic",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicParabolic, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MonotonicParabolic" "', argument " "1"" of type '" "SafeMonotonicParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicParabolic * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MonotonicParabolic_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SafeMonotonicParabolic, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MonotonicLogParabolic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SafeMonotonicLogParabolic *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MonotonicLogParabolic",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SafeMonotonicLogParabolic *)new SafeMonotonicLogParabolic((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeMonotonicLogParabolic, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicLogParabolic___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicLogParabolic *arg1 = (SafeMonotonicLogParabolic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicLogParabolic___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicLogParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicLogParabolic___call__" "', argument " "1"" of type '" "SafeMonotonicLogParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicLogParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicLogParabolic___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MonotonicLogParabolic___call__" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicLogParabolic___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicLogParabolic *arg1 = (SafeMonotonicLogParabolic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicLogParabolic___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicLogParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicLogParabolic___call__" "', argument " "1"" of type '" "SafeMonotonicLogParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicLogParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicLogParabolic___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicLogParabolic___call__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicLogParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_MonotonicLogParabolic___call____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicLogParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MonotonicLogParabolic___call____SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MonotonicLogParabolic___call__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeMonotonicLogParabolic::operator ()(Real,bool)\n"
    "    SafeMonotonicLogParabolic::operator ()(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_MonotonicLogParabolic_derivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicLogParabolic *arg1 = (SafeMonotonicLogParabolic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicLogParabolic_derivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicLogParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicLogParabolic_derivative" "', argument " "1"" of type '" "SafeMonotonicLogParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicLogParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicLogParabolic_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MonotonicLogParabolic_derivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeMonotonicLogParabolic_derivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicLogParabolic_derivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicLogParabolic *arg1 = (SafeMonotonicLogParabolic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicLogParabolic_derivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicLogParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicLogParabolic_derivative" "', argument " "1"" of type '" "SafeMonotonicLogParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicLogParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicLogParabolic_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeMonotonicLogParabolic_derivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicLogParabolic_derivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicLogParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_MonotonicLogParabolic_derivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicLogParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MonotonicLogParabolic_derivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MonotonicLogParabolic_derivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeMonotonicLogParabolic::derivative(Real,bool)\n"
    "    SafeMonotonicLogParabolic::derivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_MonotonicLogParabolic_secondDerivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicLogParabolic *arg1 = (SafeMonotonicLogParabolic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicLogParabolic_secondDerivative",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicLogParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicLogParabolic_secondDerivative" "', argument " "1"" of type '" "SafeMonotonicLogParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicLogParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicLogParabolic_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MonotonicLogParabolic_secondDerivative" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeMonotonicLogParabolic_secondDerivative__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicLogParabolic_secondDerivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicLogParabolic *arg1 = (SafeMonotonicLogParabolic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicLogParabolic_secondDerivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicLogParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicLogParabolic_secondDerivative" "', argument " "1"" of type '" "SafeMonotonicLogParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicLogParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicLogParabolic_secondDerivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeMonotonicLogParabolic_secondDerivative__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicLogParabolic_secondDerivative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicLogParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_MonotonicLogParabolic_secondDerivative__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicLogParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MonotonicLogParabolic_secondDerivative__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MonotonicLogParabolic_secondDerivative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeMonotonicLogParabolic::secondDerivative(Real,bool)\n"
    "    SafeMonotonicLogParabolic::secondDerivative(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_MonotonicLogParabolic_primitive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicLogParabolic *arg1 = (SafeMonotonicLogParabolic *) 0 ;
  Real arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicLogParabolic_primitive",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicLogParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicLogParabolic_primitive" "', argument " "1"" of type '" "SafeMonotonicLogParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicLogParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicLogParabolic_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MonotonicLogParabolic_primitive" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)SafeMonotonicLogParabolic_primitive__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicLogParabolic_primitive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicLogParabolic *arg1 = (SafeMonotonicLogParabolic *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicLogParabolic_primitive",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicLogParabolic, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicLogParabolic_primitive" "', argument " "1"" of type '" "SafeMonotonicLogParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicLogParabolic * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MonotonicLogParabolic_primitive" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)SafeMonotonicLogParabolic_primitive__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicLogParabolic_primitive(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicLogParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_MonotonicLogParabolic_primitive__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeMonotonicLogParabolic, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MonotonicLogParabolic_primitive__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MonotonicLogParabolic_primitive'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeMonotonicLogParabolic::primitive(Real,bool)\n"
    "    SafeMonotonicLogParabolic::primitive(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_MonotonicLogParabolic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeMonotonicLogParabolic *arg1 = (SafeMonotonicLogParabolic *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MonotonicLogParabolic",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeMonotonicLogParabolic, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MonotonicLogParabolic" "', argument " "1"" of type '" "SafeMonotonicLogParabolic *""'"); 
  }
  arg1 = reinterpret_cast< SafeMonotonicLogParabolic * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MonotonicLogParabolic_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SafeMonotonicLogParabolic, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BilinearInterpolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Matrix *arg3 = 0 ;
  Array temp1 ;
  Array temp2 ;
  Matrix temp3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  SafeBilinearInterpolation *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BilinearInterpolation",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (PyTuple_Check(obj2) || PyList_Check(obj2)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj2) ?
      PyTuple_Size(obj2) :
        PyList_Size(obj2));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj2,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp3 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj2,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp3[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp3[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg3 = &temp3;
    } else {
      SWIG_ConvertPtr(obj2,(void **) &arg3,SWIGTYPE_p_Matrix,1);
    }
  }
  {
    try {
      result = (SafeBilinearInterpolation *)new SafeBilinearInterpolation((Array const &)*arg1,(Array const &)*arg2,(Matrix const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeBilinearInterpolation, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BilinearInterpolation___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeBilinearInterpolation *arg1 = (SafeBilinearInterpolation *) 0 ;
  Real arg2 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BilinearInterpolation___call__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeBilinearInterpolation, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BilinearInterpolation___call__" "', argument " "1"" of type '" "SafeBilinearInterpolation *""'"); 
  }
  arg1 = reinterpret_cast< SafeBilinearInterpolation * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BilinearInterpolation___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BilinearInterpolation___call__" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BilinearInterpolation___call__" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BilinearInterpolation___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeBilinearInterpolation *arg1 = (SafeBilinearInterpolation *) 0 ;
  Real arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BilinearInterpolation___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeBilinearInterpolation, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BilinearInterpolation___call__" "', argument " "1"" of type '" "SafeBilinearInterpolation *""'"); 
  }
  arg1 = reinterpret_cast< SafeBilinearInterpolation * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BilinearInterpolation___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BilinearInterpolation___call__" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BilinearInterpolation___call__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeBilinearInterpolation, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_BilinearInterpolation___call____SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeBilinearInterpolation, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BilinearInterpolation___call____SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BilinearInterpolation___call__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeBilinearInterpolation::operator ()(Real,Real,bool)\n"
    "    SafeBilinearInterpolation::operator ()(Real,Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_BilinearInterpolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeBilinearInterpolation *arg1 = (SafeBilinearInterpolation *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BilinearInterpolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeBilinearInterpolation, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BilinearInterpolation" "', argument " "1"" of type '" "SafeBilinearInterpolation *""'"); 
  }
  arg1 = reinterpret_cast< SafeBilinearInterpolation * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BilinearInterpolation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SafeBilinearInterpolation, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BicubicSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Matrix *arg3 = 0 ;
  Array temp1 ;
  Array temp2 ;
  Matrix temp3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  SafeBicubicSpline *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BicubicSpline",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (PyTuple_Check(obj2) || PyList_Check(obj2)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj2) ?
      PyTuple_Size(obj2) :
        PyList_Size(obj2));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj2,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp3 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj2,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp3[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp3[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg3 = &temp3;
    } else {
      SWIG_ConvertPtr(obj2,(void **) &arg3,SWIGTYPE_p_Matrix,1);
    }
  }
  {
    try {
      result = (SafeBicubicSpline *)new SafeBicubicSpline((Array const &)*arg1,(Array const &)*arg2,(Matrix const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeBicubicSpline, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BicubicSpline___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeBicubicSpline *arg1 = (SafeBicubicSpline *) 0 ;
  Real arg2 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BicubicSpline___call__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeBicubicSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BicubicSpline___call__" "', argument " "1"" of type '" "SafeBicubicSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeBicubicSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BicubicSpline___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BicubicSpline___call__" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BicubicSpline___call__" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BicubicSpline___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeBicubicSpline *arg1 = (SafeBicubicSpline *) 0 ;
  Real arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BicubicSpline___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeBicubicSpline, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BicubicSpline___call__" "', argument " "1"" of type '" "SafeBicubicSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeBicubicSpline * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BicubicSpline___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BicubicSpline___call__" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BicubicSpline___call__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeBicubicSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_BicubicSpline___call____SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SafeBicubicSpline, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BicubicSpline___call____SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BicubicSpline___call__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SafeBicubicSpline::operator ()(Real,Real,bool)\n"
    "    SafeBicubicSpline::operator ()(Real,Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_BicubicSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SafeBicubicSpline *arg1 = (SafeBicubicSpline *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BicubicSpline",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeBicubicSpline, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BicubicSpline" "', argument " "1"" of type '" "SafeBicubicSpline *""'"); 
  }
  arg1 = reinterpret_cast< SafeBicubicSpline * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BicubicSpline_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SafeBicubicSpline, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BackwardFlat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BackwardFlat *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BackwardFlat",0,0)) SWIG_fail;
  {
    try {
      result = (BackwardFlat *)new BackwardFlat();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BackwardFlat, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BackwardFlat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BackwardFlat *arg1 = (BackwardFlat *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BackwardFlat",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BackwardFlat, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BackwardFlat" "', argument " "1"" of type '" "BackwardFlat *""'"); 
  }
  arg1 = reinterpret_cast< BackwardFlat * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BackwardFlat_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BackwardFlat, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ForwardFlat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardFlat *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ForwardFlat",0,0)) SWIG_fail;
  {
    try {
      result = (ForwardFlat *)new ForwardFlat();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ForwardFlat, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ForwardFlat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardFlat *arg1 = (ForwardFlat *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ForwardFlat",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardFlat, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ForwardFlat" "', argument " "1"" of type '" "ForwardFlat *""'"); 
  }
  arg1 = reinterpret_cast< ForwardFlat * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ForwardFlat_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ForwardFlat, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Linear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Linear *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Linear",0,0)) SWIG_fail;
  {
    try {
      result = (Linear *)new Linear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Linear, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Linear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Linear *arg1 = (Linear *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Linear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Linear, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Linear" "', argument " "1"" of type '" "Linear *""'"); 
  }
  arg1 = reinterpret_cast< Linear * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Linear_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Linear, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_LogLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LogLinear *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogLinear",0,0)) SWIG_fail;
  {
    try {
      result = (LogLinear *)new LogLinear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LogLinear, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_LogLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LogLinear *arg1 = (LogLinear *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LogLinear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LogLinear, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LogLinear" "', argument " "1"" of type '" "LogLinear *""'"); 
  }
  arg1 = reinterpret_cast< LogLinear * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LogLinear_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_LogLinear, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Cubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Cubic *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Cubic",0,0)) SWIG_fail;
  {
    try {
      result = (Cubic *)new Cubic();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Cubic, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Cubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Cubic *arg1 = (Cubic *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Cubic",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Cubic, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cubic" "', argument " "1"" of type '" "Cubic *""'"); 
  }
  arg1 = reinterpret_cast< Cubic * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Cubic_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Cubic, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MonotonicCubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MonotonicCubic *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MonotonicCubic",0,0)) SWIG_fail;
  {
    try {
      result = (MonotonicCubic *)new MonotonicCubic();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MonotonicCubic, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MonotonicCubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MonotonicCubic *arg1 = (MonotonicCubic *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MonotonicCubic",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MonotonicCubic, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MonotonicCubic" "', argument " "1"" of type '" "MonotonicCubic *""'"); 
  }
  arg1 = reinterpret_cast< MonotonicCubic * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MonotonicCubic_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MonotonicCubic, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DefaultLogCubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DefaultLogCubic *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DefaultLogCubic",0,0)) SWIG_fail;
  {
    try {
      result = (DefaultLogCubic *)new DefaultLogCubic();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DefaultLogCubic, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DefaultLogCubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DefaultLogCubic *arg1 = (DefaultLogCubic *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DefaultLogCubic",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DefaultLogCubic, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DefaultLogCubic" "', argument " "1"" of type '" "DefaultLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< DefaultLogCubic * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DefaultLogCubic_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DefaultLogCubic, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MonotonicLogCubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MonotonicLogCubic *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MonotonicLogCubic",0,0)) SWIG_fail;
  {
    try {
      result = (MonotonicLogCubic *)new MonotonicLogCubic();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MonotonicLogCubic, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MonotonicLogCubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MonotonicLogCubic *arg1 = (MonotonicLogCubic *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MonotonicLogCubic",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MonotonicLogCubic, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MonotonicLogCubic" "', argument " "1"" of type '" "MonotonicLogCubic *""'"); 
  }
  arg1 = reinterpret_cast< MonotonicLogCubic * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MonotonicLogCubic_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MonotonicLogCubic, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_YieldTermStructure___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  YieldTermStructure *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure___deref__" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  {
    try {
      result = (YieldTermStructure *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YieldTermStructure, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_YieldTermStructure_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure___bool__" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_YieldTermStructure_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_asObservable" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_YieldTermStructure_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YieldTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YieldTermStructure",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< YieldTermStructure > *)new boost::shared_ptr< YieldTermStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_YieldTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YieldTermStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YieldTermStructure" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_dayCounter" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->dayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_calendar" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->calendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_referenceDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_referenceDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_referenceDate" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->referenceDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_maxDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_maxDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_maxDate" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->maxDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_maxTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_maxTime",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_maxTime" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Time)(*arg1)->maxTime();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_discount__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  DiscountFactor result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_discount",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_discount" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YieldTermStructure_discount" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructure_discount" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YieldTermStructure_discount" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (DiscountFactor)(*arg1)->discount((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_discount__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DiscountFactor result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_discount",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_discount" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YieldTermStructure_discount" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructure_discount" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (DiscountFactor)(*arg1)->discount((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_discount__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  Time arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  DiscountFactor result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_discount",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_discount" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YieldTermStructure_discount" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YieldTermStructure_discount" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (DiscountFactor)(*arg1)->discount(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_discount__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DiscountFactor result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_discount",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_discount" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YieldTermStructure_discount" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (DiscountFactor)(*arg1)->discount(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_discount(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_YieldTermStructure_discount__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_YieldTermStructure_discount__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_YieldTermStructure_discount__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_YieldTermStructure_discount__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'YieldTermStructure_discount'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    YieldTermStructure::discount(Date const &,bool)\n"
    "    YieldTermStructure::discount(Date const &)\n"
    "    YieldTermStructure::discount(Time,bool)\n"
    "    YieldTermStructure::discount(Time)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_zeroRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_zeroRate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_zeroRate" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YieldTermStructure_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructure_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YieldTermStructure_zeroRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructure_zeroRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YieldTermStructure_zeroRate" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YieldTermStructure_zeroRate" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "YieldTermStructure_zeroRate" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    try {
      result = (*arg1)->zeroRate((Date const &)*arg2,(DayCounter const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_zeroRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_zeroRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_zeroRate" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YieldTermStructure_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructure_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YieldTermStructure_zeroRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructure_zeroRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YieldTermStructure_zeroRate" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YieldTermStructure_zeroRate" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    try {
      result = (*arg1)->zeroRate((Date const &)*arg2,(DayCounter const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_zeroRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_zeroRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_zeroRate" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YieldTermStructure_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructure_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YieldTermStructure_zeroRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructure_zeroRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YieldTermStructure_zeroRate" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  {
    try {
      result = (*arg1)->zeroRate((Date const &)*arg2,(DayCounter const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_zeroRate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  Time arg2 ;
  Compounding arg3 ;
  Frequency arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_zeroRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_zeroRate" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YieldTermStructure_zeroRate" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YieldTermStructure_zeroRate" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YieldTermStructure_zeroRate" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YieldTermStructure_zeroRate" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (*arg1)->zeroRate(arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_zeroRate__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  Time arg2 ;
  Compounding arg3 ;
  Frequency arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_zeroRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_zeroRate" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YieldTermStructure_zeroRate" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YieldTermStructure_zeroRate" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YieldTermStructure_zeroRate" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  {
    try {
      result = (*arg1)->zeroRate(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_zeroRate__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  Time arg2 ;
  Compounding arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_zeroRate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_zeroRate" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YieldTermStructure_zeroRate" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YieldTermStructure_zeroRate" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  {
    try {
      result = (*arg1)->zeroRate(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_zeroRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_YieldTermStructure_zeroRate__SWIG_5(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_YieldTermStructure_zeroRate__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_YieldTermStructure_zeroRate__SWIG_4(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_YieldTermStructure_zeroRate__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_YieldTermStructure_zeroRate__SWIG_3(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_YieldTermStructure_zeroRate__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'YieldTermStructure_zeroRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    YieldTermStructure::zeroRate(Date const &,DayCounter const &,Compounding,Frequency,bool) const\n"
    "    YieldTermStructure::zeroRate(Date const &,DayCounter const &,Compounding,Frequency) const\n"
    "    YieldTermStructure::zeroRate(Date const &,DayCounter const &,Compounding) const\n"
    "    YieldTermStructure::zeroRate(Time,Compounding,Frequency,bool) const\n"
    "    YieldTermStructure::zeroRate(Time,Compounding,Frequency) const\n"
    "    YieldTermStructure::zeroRate(Time,Compounding) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_forwardRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  bool arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_forwardRate",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_forwardRate" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YieldTermStructure_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructure_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YieldTermStructure_forwardRate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructure_forwardRate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "YieldTermStructure_forwardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructure_forwardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YieldTermStructure_forwardRate" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "YieldTermStructure_forwardRate" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "YieldTermStructure_forwardRate" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  {
    try {
      result = (*arg1)->forwardRate((Date const &)*arg2,(Date const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_forwardRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_forwardRate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_forwardRate" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YieldTermStructure_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructure_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YieldTermStructure_forwardRate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructure_forwardRate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "YieldTermStructure_forwardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructure_forwardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YieldTermStructure_forwardRate" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "YieldTermStructure_forwardRate" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    try {
      result = (*arg1)->forwardRate((Date const &)*arg2,(Date const &)*arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_forwardRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_forwardRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_forwardRate" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YieldTermStructure_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructure_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YieldTermStructure_forwardRate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructure_forwardRate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "YieldTermStructure_forwardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructure_forwardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YieldTermStructure_forwardRate" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  {
    try {
      result = (*arg1)->forwardRate((Date const &)*arg2,(Date const &)*arg3,(DayCounter const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_forwardRate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_forwardRate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_forwardRate" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YieldTermStructure_forwardRate" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YieldTermStructure_forwardRate" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YieldTermStructure_forwardRate" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YieldTermStructure_forwardRate" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "YieldTermStructure_forwardRate" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    try {
      result = (*arg1)->forwardRate(arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_forwardRate__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Compounding arg4 ;
  Frequency arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_forwardRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_forwardRate" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YieldTermStructure_forwardRate" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YieldTermStructure_forwardRate" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YieldTermStructure_forwardRate" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YieldTermStructure_forwardRate" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    try {
      result = (*arg1)->forwardRate(arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_forwardRate__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Compounding arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_forwardRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_forwardRate" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YieldTermStructure_forwardRate" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YieldTermStructure_forwardRate" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YieldTermStructure_forwardRate" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  {
    try {
      result = (*arg1)->forwardRate(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_forwardRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_YieldTermStructure_forwardRate__SWIG_5(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_YieldTermStructure_forwardRate__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_YieldTermStructure_forwardRate__SWIG_4(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_YieldTermStructure_forwardRate__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_YieldTermStructure_forwardRate__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_YieldTermStructure_forwardRate__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'YieldTermStructure_forwardRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    YieldTermStructure::forwardRate(Date const &,Date const &,DayCounter const &,Compounding,Frequency,bool) const\n"
    "    YieldTermStructure::forwardRate(Date const &,Date const &,DayCounter const &,Compounding,Frequency) const\n"
    "    YieldTermStructure::forwardRate(Date const &,Date const &,DayCounter const &,Compounding) const\n"
    "    YieldTermStructure::forwardRate(Time,Time,Compounding,Frequency,bool) const\n"
    "    YieldTermStructure::forwardRate(Time,Time,Compounding,Frequency) const\n"
    "    YieldTermStructure::forwardRate(Time,Time,Compounding) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_enableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_enableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_enableExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  {
    try {
      (*arg1)->enableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_disableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_disableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_disableExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  {
    try {
      (*arg1)->disableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructure_allowsExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = (boost::shared_ptr< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructure_allowsExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructure_allowsExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->allowsExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YieldTermStructure_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_YieldTermStructureHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< YieldTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YieldTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_YieldTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YieldTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Handle< YieldTermStructure > *)new Handle< YieldTermStructure >((boost::shared_ptr< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_YieldTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YieldTermStructureHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YieldTermStructureHandle",0,0)) SWIG_fail;
  {
    try {
      result = (Handle< YieldTermStructure > *)new Handle< YieldTermStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_YieldTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YieldTermStructureHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_YieldTermStructureHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_YieldTermStructureHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_YieldTermStructureHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Handle< YieldTermStructure >::Handle(boost::shared_ptr< YieldTermStructure > const &)\n"
    "    Handle< YieldTermStructure >::Handle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< YieldTermStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle___deref__" "', argument " "1"" of type '" "Handle< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< YieldTermStructure >(static_cast< const boost::shared_ptr< YieldTermStructure >& >(result))), SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle___nonzero__" "', argument " "1"" of type '" "Handle< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_YieldTermStructure_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle___bool__" "', argument " "1"" of type '" "Handle< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_YieldTermStructure_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_asObservable" "', argument " "1"" of type '" "Handle< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = Handle_Sl_YieldTermStructure_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_YieldTermStructureHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YieldTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YieldTermStructureHandle" "', argument " "1"" of type '" "Handle< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_dayCounter" "', argument " "1"" of type '" "Handle< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->dayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_calendar" "', argument " "1"" of type '" "Handle< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->calendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_referenceDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_referenceDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_referenceDate" "', argument " "1"" of type '" "Handle< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->referenceDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_maxDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_maxDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_maxDate" "', argument " "1"" of type '" "Handle< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->maxDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_maxTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_maxTime",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_maxTime" "', argument " "1"" of type '" "Handle< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Time)(*arg1)->maxTime();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_discount__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  DiscountFactor result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_discount",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_discount" "', argument " "1"" of type '" "Handle< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YieldTermStructureHandle_discount" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructureHandle_discount" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YieldTermStructureHandle_discount" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (DiscountFactor)(*arg1)->discount((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_discount__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DiscountFactor result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_discount",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_discount" "', argument " "1"" of type '" "Handle< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YieldTermStructureHandle_discount" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructureHandle_discount" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (DiscountFactor)(*arg1)->discount((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_discount__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  Time arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  DiscountFactor result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_discount",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_discount" "', argument " "1"" of type '" "Handle< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YieldTermStructureHandle_discount" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YieldTermStructureHandle_discount" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (DiscountFactor)(*arg1)->discount(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_discount__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DiscountFactor result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_discount",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_discount" "', argument " "1"" of type '" "Handle< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YieldTermStructureHandle_discount" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (DiscountFactor)(*arg1)->discount(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_discount(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_YieldTermStructureHandle_discount__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_YieldTermStructureHandle_discount__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_YieldTermStructureHandle_discount__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_YieldTermStructureHandle_discount__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'YieldTermStructureHandle_discount'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    YieldTermStructure::discount(Date const &,bool)\n"
    "    YieldTermStructure::discount(Date const &)\n"
    "    YieldTermStructure::discount(Time,bool)\n"
    "    YieldTermStructure::discount(Time)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_zeroRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_zeroRate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "1"" of type '" "Handle< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    try {
      result = (*arg1)->zeroRate((Date const &)*arg2,(DayCounter const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_zeroRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_zeroRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "1"" of type '" "Handle< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    try {
      result = (*arg1)->zeroRate((Date const &)*arg2,(DayCounter const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_zeroRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_zeroRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "1"" of type '" "Handle< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  {
    try {
      result = (*arg1)->zeroRate((Date const &)*arg2,(DayCounter const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_zeroRate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  Time arg2 ;
  Compounding arg3 ;
  Frequency arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_zeroRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "1"" of type '" "Handle< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (*arg1)->zeroRate(arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_zeroRate__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  Time arg2 ;
  Compounding arg3 ;
  Frequency arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_zeroRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "1"" of type '" "Handle< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  {
    try {
      result = (*arg1)->zeroRate(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_zeroRate__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  Time arg2 ;
  Compounding arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_zeroRate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "1"" of type '" "Handle< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YieldTermStructureHandle_zeroRate" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  {
    try {
      result = (*arg1)->zeroRate(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_zeroRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_YieldTermStructureHandle_zeroRate__SWIG_5(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_YieldTermStructureHandle_zeroRate__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_YieldTermStructureHandle_zeroRate__SWIG_4(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_YieldTermStructureHandle_zeroRate__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_YieldTermStructureHandle_zeroRate__SWIG_3(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_YieldTermStructureHandle_zeroRate__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'YieldTermStructureHandle_zeroRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    YieldTermStructure::zeroRate(Date const &,DayCounter const &,Compounding,Frequency,bool) const\n"
    "    YieldTermStructure::zeroRate(Date const &,DayCounter const &,Compounding,Frequency) const\n"
    "    YieldTermStructure::zeroRate(Date const &,DayCounter const &,Compounding) const\n"
    "    YieldTermStructure::zeroRate(Time,Compounding,Frequency,bool) const\n"
    "    YieldTermStructure::zeroRate(Time,Compounding,Frequency) const\n"
    "    YieldTermStructure::zeroRate(Time,Compounding) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_forwardRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  bool arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_forwardRate",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "1"" of type '" "Handle< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  {
    try {
      result = (*arg1)->forwardRate((Date const &)*arg2,(Date const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_forwardRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_forwardRate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "1"" of type '" "Handle< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    try {
      result = (*arg1)->forwardRate((Date const &)*arg2,(Date const &)*arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_forwardRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_forwardRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "1"" of type '" "Handle< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  {
    try {
      result = (*arg1)->forwardRate((Date const &)*arg2,(Date const &)*arg3,(DayCounter const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_forwardRate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_forwardRate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "1"" of type '" "Handle< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    try {
      result = (*arg1)->forwardRate(arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_forwardRate__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Compounding arg4 ;
  Frequency arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_forwardRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "1"" of type '" "Handle< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    try {
      result = (*arg1)->forwardRate(arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_forwardRate__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Compounding arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_forwardRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "1"" of type '" "Handle< YieldTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YieldTermStructureHandle_forwardRate" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  {
    try {
      result = (*arg1)->forwardRate(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_forwardRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_YieldTermStructureHandle_forwardRate__SWIG_5(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_YieldTermStructureHandle_forwardRate__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_YieldTermStructureHandle_forwardRate__SWIG_4(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_YieldTermStructureHandle_forwardRate__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_YieldTermStructureHandle_forwardRate__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_YieldTermStructureHandle_forwardRate__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'YieldTermStructureHandle_forwardRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    YieldTermStructure::forwardRate(Date const &,Date const &,DayCounter const &,Compounding,Frequency,bool) const\n"
    "    YieldTermStructure::forwardRate(Date const &,Date const &,DayCounter const &,Compounding,Frequency) const\n"
    "    YieldTermStructure::forwardRate(Date const &,Date const &,DayCounter const &,Compounding) const\n"
    "    YieldTermStructure::forwardRate(Time,Time,Compounding,Frequency,bool) const\n"
    "    YieldTermStructure::forwardRate(Time,Time,Compounding,Frequency) const\n"
    "    YieldTermStructure::forwardRate(Time,Time,Compounding) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_enableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_enableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_enableExtrapolation" "', argument " "1"" of type '" "Handle< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      (*arg1)->enableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_disableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_disableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_disableExtrapolation" "', argument " "1"" of type '" "Handle< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      (*arg1)->disableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YieldTermStructureHandle_allowsExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = (Handle< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YieldTermStructureHandle_allowsExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YieldTermStructureHandle_allowsExtrapolation" "', argument " "1"" of type '" "Handle< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->allowsExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YieldTermStructureHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HandleT_YieldTermStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_RelinkableYieldTermStructureHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  RelinkableHandle< YieldTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableYieldTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RelinkableYieldTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RelinkableYieldTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  {
    try {
      result = (RelinkableHandle< YieldTermStructure > *)new RelinkableHandle< YieldTermStructure >((boost::shared_ptr< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_YieldTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableYieldTermStructureHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< YieldTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableYieldTermStructureHandle",0,0)) SWIG_fail;
  {
    try {
      result = (RelinkableHandle< YieldTermStructure > *)new RelinkableHandle< YieldTermStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_YieldTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableYieldTermStructureHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_RelinkableYieldTermStructureHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_RelinkableYieldTermStructureHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RelinkableYieldTermStructureHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    RelinkableHandle< YieldTermStructure >::RelinkableHandle(boost::shared_ptr< YieldTermStructure > const &)\n"
    "    RelinkableHandle< YieldTermStructure >::RelinkableHandle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableYieldTermStructureHandle_linkTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< YieldTermStructure > *arg1 = (RelinkableHandle< YieldTermStructure > *) 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableYieldTermStructureHandle_linkTo",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_YieldTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableYieldTermStructureHandle_linkTo" "', argument " "1"" of type '" "RelinkableHandle< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableYieldTermStructureHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableYieldTermStructureHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  {
    try {
      (arg1)->linkTo((boost::shared_ptr< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RelinkableYieldTermStructureHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< YieldTermStructure > *arg1 = (RelinkableHandle< YieldTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RelinkableYieldTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_YieldTermStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RelinkableYieldTermStructureHandle" "', argument " "1"" of type '" "RelinkableHandle< YieldTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< YieldTermStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RelinkableYieldTermStructureHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RelinkableHandleT_YieldTermStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ImpliedTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  ImpliedTermStructurePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ImpliedTermStructure",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ImpliedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ImpliedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ImpliedTermStructure" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ImpliedTermStructure" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (ImpliedTermStructurePtr *)new_ImpliedTermStructurePtr((Handle< YieldTermStructure > const &)*arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ImpliedTermStructurePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ImpliedTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ImpliedTermStructurePtr *arg1 = (ImpliedTermStructurePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ImpliedTermStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ImpliedTermStructurePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImpliedTermStructure" "', argument " "1"" of type '" "ImpliedTermStructurePtr *""'"); 
  }
  arg1 = reinterpret_cast< ImpliedTermStructurePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ImpliedTermStructure_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ImpliedTermStructurePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ZeroSpreadedTermStructure__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  Compounding arg3 ;
  Frequency arg4 ;
  DayCounter *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  ZeroSpreadedTermStructurePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroSpreadedTermStructure",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ZeroSpreadedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroSpreadedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ZeroSpreadedTermStructure" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroSpreadedTermStructure" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ZeroSpreadedTermStructure" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ZeroSpreadedTermStructure" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ZeroSpreadedTermStructure" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroSpreadedTermStructure" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  {
    try {
      result = (ZeroSpreadedTermStructurePtr *)new_ZeroSpreadedTermStructurePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(Handle< Quote > const &)*arg2,arg3,arg4,(DayCounter const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroSpreadedTermStructurePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroSpreadedTermStructure__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  Compounding arg3 ;
  Frequency arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  ZeroSpreadedTermStructurePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroSpreadedTermStructure",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ZeroSpreadedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroSpreadedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ZeroSpreadedTermStructure" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroSpreadedTermStructure" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ZeroSpreadedTermStructure" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ZeroSpreadedTermStructure" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  {
    try {
      result = (ZeroSpreadedTermStructurePtr *)new_ZeroSpreadedTermStructurePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(Handle< Quote > const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroSpreadedTermStructurePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroSpreadedTermStructure__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  Compounding arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  ZeroSpreadedTermStructurePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroSpreadedTermStructure",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ZeroSpreadedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroSpreadedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ZeroSpreadedTermStructure" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroSpreadedTermStructure" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ZeroSpreadedTermStructure" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  {
    try {
      result = (ZeroSpreadedTermStructurePtr *)new_ZeroSpreadedTermStructurePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(Handle< Quote > const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroSpreadedTermStructurePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroSpreadedTermStructure__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  ZeroSpreadedTermStructurePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroSpreadedTermStructure",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ZeroSpreadedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroSpreadedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ZeroSpreadedTermStructure" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroSpreadedTermStructure" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  {
    try {
      result = (ZeroSpreadedTermStructurePtr *)new_ZeroSpreadedTermStructurePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(Handle< Quote > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroSpreadedTermStructurePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroSpreadedTermStructure(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_ZeroSpreadedTermStructure__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_ZeroSpreadedTermStructure__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_ZeroSpreadedTermStructure__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_ZeroSpreadedTermStructure__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ZeroSpreadedTermStructure'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ZeroSpreadedTermStructurePtr::ZeroSpreadedTermStructurePtr(Handle< YieldTermStructure > const &,Handle< Quote > const &,Compounding,Frequency,DayCounter const &)\n"
    "    ZeroSpreadedTermStructurePtr::ZeroSpreadedTermStructurePtr(Handle< YieldTermStructure > const &,Handle< Quote > const &,Compounding,Frequency)\n"
    "    ZeroSpreadedTermStructurePtr::ZeroSpreadedTermStructurePtr(Handle< YieldTermStructure > const &,Handle< Quote > const &,Compounding)\n"
    "    ZeroSpreadedTermStructurePtr::ZeroSpreadedTermStructurePtr(Handle< YieldTermStructure > const &,Handle< Quote > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_ZeroSpreadedTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroSpreadedTermStructurePtr *arg1 = (ZeroSpreadedTermStructurePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ZeroSpreadedTermStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroSpreadedTermStructurePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ZeroSpreadedTermStructure" "', argument " "1"" of type '" "ZeroSpreadedTermStructurePtr *""'"); 
  }
  arg1 = reinterpret_cast< ZeroSpreadedTermStructurePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ZeroSpreadedTermStructure_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ZeroSpreadedTermStructurePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ForwardSpreadedTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  ForwardSpreadedTermStructurePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ForwardSpreadedTermStructure",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ForwardSpreadedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardSpreadedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ForwardSpreadedTermStructure" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardSpreadedTermStructure" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  {
    try {
      result = (ForwardSpreadedTermStructurePtr *)new_ForwardSpreadedTermStructurePtr((Handle< YieldTermStructure > const &)*arg1,(Handle< Quote > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ForwardSpreadedTermStructurePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ForwardSpreadedTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardSpreadedTermStructurePtr *arg1 = (ForwardSpreadedTermStructurePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ForwardSpreadedTermStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardSpreadedTermStructurePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ForwardSpreadedTermStructure" "', argument " "1"" of type '" "ForwardSpreadedTermStructurePtr *""'"); 
  }
  arg1 = reinterpret_cast< ForwardSpreadedTermStructurePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ForwardSpreadedTermStructure_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ForwardSpreadedTermStructurePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SpreadedLinearZeroInterpolatedTermStructure__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg2 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  DayCounter *arg6 = 0 ;
  Linear *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  SpreadedLinearZeroInterpolatedTermStructurePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SpreadedLinearZeroInterpolatedTermStructure",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "2"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "2"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg3 = ptr;
  }
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Linear,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "7"" of type '" "Linear const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "7"" of type '" "Linear const &""'"); 
  }
  arg7 = reinterpret_cast< Linear * >(argp7);
  {
    try {
      result = (SpreadedLinearZeroInterpolatedTermStructurePtr *)new_SpreadedLinearZeroInterpolatedTermStructurePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg2,(std::vector< Date,std::allocator< Date > > const &)*arg3,arg4,arg5,(DayCounter const &)*arg6,(Linear const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SpreadedLinearZeroInterpolatedTermStructurePtr, SWIG_POINTER_NEW |  0 );
  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_new_SpreadedLinearZeroInterpolatedTermStructure__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg2 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  DayCounter *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  SpreadedLinearZeroInterpolatedTermStructurePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SpreadedLinearZeroInterpolatedTermStructure",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "2"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "2"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg3 = ptr;
  }
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  {
    try {
      result = (SpreadedLinearZeroInterpolatedTermStructurePtr *)new_SpreadedLinearZeroInterpolatedTermStructurePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg2,(std::vector< Date,std::allocator< Date > > const &)*arg3,arg4,arg5,(DayCounter const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SpreadedLinearZeroInterpolatedTermStructurePtr, SWIG_POINTER_NEW |  0 );
  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_new_SpreadedLinearZeroInterpolatedTermStructure__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg2 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  SpreadedLinearZeroInterpolatedTermStructurePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SpreadedLinearZeroInterpolatedTermStructure",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "2"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "2"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg3 = ptr;
  }
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    try {
      result = (SpreadedLinearZeroInterpolatedTermStructurePtr *)new_SpreadedLinearZeroInterpolatedTermStructurePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg2,(std::vector< Date,std::allocator< Date > > const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SpreadedLinearZeroInterpolatedTermStructurePtr, SWIG_POINTER_NEW |  0 );
  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_new_SpreadedLinearZeroInterpolatedTermStructure__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg2 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg3 = 0 ;
  Compounding arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  SpreadedLinearZeroInterpolatedTermStructurePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SpreadedLinearZeroInterpolatedTermStructure",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "2"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "2"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg3 = ptr;
  }
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  {
    try {
      result = (SpreadedLinearZeroInterpolatedTermStructurePtr *)new_SpreadedLinearZeroInterpolatedTermStructurePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg2,(std::vector< Date,std::allocator< Date > > const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SpreadedLinearZeroInterpolatedTermStructurePtr, SWIG_POINTER_NEW |  0 );
  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_new_SpreadedLinearZeroInterpolatedTermStructure__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg2 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  SpreadedLinearZeroInterpolatedTermStructurePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SpreadedLinearZeroInterpolatedTermStructure",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "2"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "2"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      result = (SpreadedLinearZeroInterpolatedTermStructurePtr *)new_SpreadedLinearZeroInterpolatedTermStructurePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg2,(std::vector< Date,std::allocator< Date > > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SpreadedLinearZeroInterpolatedTermStructurePtr, SWIG_POINTER_NEW |  0 );
  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_new_SpreadedLinearZeroInterpolatedTermStructure(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Date,std::allocator< Date > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_SpreadedLinearZeroInterpolatedTermStructure__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Date,std::allocator< Date > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_SpreadedLinearZeroInterpolatedTermStructure__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Date,std::allocator< Date > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_SpreadedLinearZeroInterpolatedTermStructure__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Date,std::allocator< Date > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_SpreadedLinearZeroInterpolatedTermStructure__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Date,std::allocator< Date > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Linear, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_SpreadedLinearZeroInterpolatedTermStructure__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SpreadedLinearZeroInterpolatedTermStructure'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SpreadedLinearZeroInterpolatedTermStructurePtr::SpreadedLinearZeroInterpolatedTermStructurePtr(Handle< YieldTermStructure > const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Compounding,Frequency,DayCounter const &,Linear const &)\n"
    "    SpreadedLinearZeroInterpolatedTermStructurePtr::SpreadedLinearZeroInterpolatedTermStructurePtr(Handle< YieldTermStructure > const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Compounding,Frequency,DayCounter const &)\n"
    "    SpreadedLinearZeroInterpolatedTermStructurePtr::SpreadedLinearZeroInterpolatedTermStructurePtr(Handle< YieldTermStructure > const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Compounding,Frequency)\n"
    "    SpreadedLinearZeroInterpolatedTermStructurePtr::SpreadedLinearZeroInterpolatedTermStructurePtr(Handle< YieldTermStructure > const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Compounding)\n"
    "    SpreadedLinearZeroInterpolatedTermStructurePtr::SpreadedLinearZeroInterpolatedTermStructurePtr(Handle< YieldTermStructure > const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_SpreadedLinearZeroInterpolatedTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SpreadedLinearZeroInterpolatedTermStructurePtr *arg1 = (SpreadedLinearZeroInterpolatedTermStructurePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SpreadedLinearZeroInterpolatedTermStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SpreadedLinearZeroInterpolatedTermStructurePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SpreadedLinearZeroInterpolatedTermStructure" "', argument " "1"" of type '" "SpreadedLinearZeroInterpolatedTermStructurePtr *""'"); 
  }
  arg1 = reinterpret_cast< SpreadedLinearZeroInterpolatedTermStructurePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SpreadedLinearZeroInterpolatedTermStructure_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SpreadedLinearZeroInterpolatedTermStructurePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FlatForward__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  FlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FlatForward",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FlatForward" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FlatForward" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FlatForward" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    try {
      result = (FlatForwardPtr *)new_FlatForwardPtr__SWIG_0((Date const &)*arg1,(Handle< Quote > const &)*arg2,(DayCounter const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FlatForwardPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FlatForward__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FlatForward",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FlatForward" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FlatForward" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  {
    try {
      result = (FlatForwardPtr *)new_FlatForwardPtr__SWIG_0((Date const &)*arg1,(Handle< Quote > const &)*arg2,(DayCounter const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FlatForwardPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FlatForward__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  FlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FlatForward",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FlatForward" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (FlatForwardPtr *)new_FlatForwardPtr__SWIG_0((Date const &)*arg1,(Handle< Quote > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FlatForwardPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FlatForward__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  FlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FlatForward",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FlatForward" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FlatForward" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FlatForward" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    try {
      result = (FlatForwardPtr *)new_FlatForwardPtr__SWIG_3((Date const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FlatForwardPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FlatForward__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FlatForward",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FlatForward" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FlatForward" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  {
    try {
      result = (FlatForwardPtr *)new_FlatForwardPtr__SWIG_3((Date const &)*arg1,arg2,(DayCounter const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FlatForwardPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FlatForward__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  FlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FlatForward",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FlatForward" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (FlatForwardPtr *)new_FlatForwardPtr__SWIG_3((Date const &)*arg1,arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FlatForwardPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FlatForward__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  FlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FlatForward",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FlatForward" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FlatForward" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FlatForward" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FlatForward" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    try {
      result = (FlatForwardPtr *)new_FlatForwardPtr__SWIG_6(arg1,(Calendar const &)*arg2,(Handle< Quote > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FlatForwardPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FlatForward__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  FlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FlatForward",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FlatForward" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FlatForward" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FlatForward" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  {
    try {
      result = (FlatForwardPtr *)new_FlatForwardPtr__SWIG_6(arg1,(Calendar const &)*arg2,(Handle< Quote > const &)*arg3,(DayCounter const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FlatForwardPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FlatForward__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FlatForward",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FlatForward" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FlatForward" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    try {
      result = (FlatForwardPtr *)new_FlatForwardPtr__SWIG_6(arg1,(Calendar const &)*arg2,(Handle< Quote > const &)*arg3,(DayCounter const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FlatForwardPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FlatForward__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  Rate arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  FlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FlatForward",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FlatForward" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FlatForward" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FlatForward" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FlatForward" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    try {
      result = (FlatForwardPtr *)new_FlatForwardPtr__SWIG_9(arg1,(Calendar const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FlatForwardPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FlatForward__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  Rate arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  FlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FlatForward",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FlatForward" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FlatForward" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FlatForward" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  {
    try {
      result = (FlatForwardPtr *)new_FlatForwardPtr__SWIG_9(arg1,(Calendar const &)*arg2,arg3,(DayCounter const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FlatForwardPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FlatForward__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  Rate arg3 ;
  DayCounter *arg4 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FlatForward",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FlatForward" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FlatForward" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    try {
      result = (FlatForwardPtr *)new_FlatForwardPtr__SWIG_9(arg1,(Calendar const &)*arg2,arg3,(DayCounter const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FlatForwardPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FlatForward(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_FlatForward__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_FlatForward__SWIG_5(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_FlatForward__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_FlatForward__SWIG_4(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_FlatForward__SWIG_8(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_FlatForward__SWIG_11(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_FlatForward__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_FlatForward__SWIG_3(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_FlatForward__SWIG_7(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_FlatForward__SWIG_10(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_FlatForward__SWIG_6(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_FlatForward__SWIG_9(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FlatForward'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FlatForwardPtr::FlatForwardPtr(Date const &,Handle< Quote > const &,DayCounter const &,Compounding,Frequency)\n"
    "    FlatForwardPtr::FlatForwardPtr(Date const &,Handle< Quote > const &,DayCounter const &,Compounding)\n"
    "    FlatForwardPtr::FlatForwardPtr(Date const &,Handle< Quote > const &,DayCounter const &)\n"
    "    FlatForwardPtr::FlatForwardPtr(Date const &,Rate,DayCounter const &,Compounding,Frequency)\n"
    "    FlatForwardPtr::FlatForwardPtr(Date const &,Rate,DayCounter const &,Compounding)\n"
    "    FlatForwardPtr::FlatForwardPtr(Date const &,Rate,DayCounter const &)\n"
    "    FlatForwardPtr::FlatForwardPtr(Integer,Calendar const &,Handle< Quote > const &,DayCounter const &,Compounding,Frequency)\n"
    "    FlatForwardPtr::FlatForwardPtr(Integer,Calendar const &,Handle< Quote > const &,DayCounter const &,Compounding)\n"
    "    FlatForwardPtr::FlatForwardPtr(Integer,Calendar const &,Handle< Quote > const &,DayCounter const &)\n"
    "    FlatForwardPtr::FlatForwardPtr(Integer,Calendar const &,Rate,DayCounter const &,Compounding,Frequency)\n"
    "    FlatForwardPtr::FlatForwardPtr(Integer,Calendar const &,Rate,DayCounter const &,Compounding)\n"
    "    FlatForwardPtr::FlatForwardPtr(Integer,Calendar const &,Rate,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FlatForward(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FlatForwardPtr *arg1 = (FlatForwardPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FlatForward",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FlatForwardPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FlatForward" "', argument " "1"" of type '" "FlatForwardPtr *""'"); 
  }
  arg1 = reinterpret_cast< FlatForwardPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FlatForward_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FlatForwardPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_RealTimeSeries__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeSeries< Real > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RealTimeSeries",0,0)) SWIG_fail;
  {
    try {
      result = (TimeSeries< Real > *)new TimeSeries< Real >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RealTimeSeries__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< double,std::allocator< double > > *arg2 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TimeSeries< Real > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RealTimeSeries",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RealTimeSeries" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RealTimeSeries" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_RealTimeSeries" "', argument " "2"" of type '" "std::vector< double,std::allocator< double > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RealTimeSeries" "', argument " "2"" of type '" "std::vector< double,std::allocator< double > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      result = (TimeSeries< Real > *)new_TimeSeries_Sl_Real_Sg___SWIG_1((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RealTimeSeries(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_RealTimeSeries__SWIG_0(self, args);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_RealTimeSeries__SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RealTimeSeries'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    TimeSeries< Real >::TimeSeries()\n"
    "    TimeSeries< Real >::TimeSeries(std::vector< Date,std::allocator< Date > > const &,std::vector< double,std::allocator< double > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RealTimeSeries_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeSeries< Real > *arg1 = (TimeSeries< Real > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RealTimeSeries_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealTimeSeries_dates" "', argument " "1"" of type '" "TimeSeries< Real > *""'"); 
  }
  arg1 = reinterpret_cast< TimeSeries< Real > * >(argp1);
  {
    try {
      result = (arg1)->dates();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RealTimeSeries_values(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeSeries< Real > *arg1 = (TimeSeries< Real > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< double,std::allocator< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RealTimeSeries_values",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealTimeSeries_values" "', argument " "1"" of type '" "TimeSeries< Real > *""'"); 
  }
  arg1 = reinterpret_cast< TimeSeries< Real > * >(argp1);
  {
    try {
      result = (arg1)->values();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RealTimeSeries___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeSeries< Real > *arg1 = (TimeSeries< Real > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RealTimeSeries___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealTimeSeries___len__" "', argument " "1"" of type '" "TimeSeries< Real > *""'"); 
  }
  arg1 = reinterpret_cast< TimeSeries< Real > * >(argp1);
  {
    try {
      result = (arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RealTimeSeries___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeSeries< Real > *arg1 = (TimeSeries< Real > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  double result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RealTimeSeries___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealTimeSeries___getitem__" "', argument " "1"" of type '" "TimeSeries< Real > *""'"); 
  }
  arg1 = reinterpret_cast< TimeSeries< Real > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RealTimeSeries___getitem__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RealTimeSeries___getitem__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (double)TimeSeries_Sl_Real_Sg____getitem__(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RealTimeSeries___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeSeries< Real > *arg1 = (TimeSeries< Real > *) 0 ;
  Date *arg2 = 0 ;
  double *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double temp3 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RealTimeSeries___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealTimeSeries___setitem__" "', argument " "1"" of type '" "TimeSeries< Real > *""'"); 
  }
  arg1 = reinterpret_cast< TimeSeries< Real > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RealTimeSeries___setitem__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RealTimeSeries___setitem__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RealTimeSeries___setitem__" "', argument " "3"" of type '" "double""'");
  } 
  temp3 = static_cast< double >(val3);
  arg3 = &temp3;
  {
    try {
      TimeSeries_Sl_Real_Sg____setitem__(arg1,(Date const &)*arg2,(double const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RealTimeSeries(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeSeries< Real > *arg1 = (TimeSeries< Real > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RealTimeSeries",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RealTimeSeries" "', argument " "1"" of type '" "TimeSeries< Real > *""'"); 
  }
  arg1 = reinterpret_cast< TimeSeries< Real > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RealTimeSeries_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_IntervalPriceTimeSeries__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeSeries< IntervalPrice > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IntervalPriceTimeSeries",0,0)) SWIG_fail;
  {
    try {
      result = (TimeSeries< IntervalPrice > *)new TimeSeries< IntervalPrice >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_IntervalPriceTimeSeries__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< IntervalPrice,std::allocator< IntervalPrice > > *arg2 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TimeSeries< IntervalPrice > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IntervalPriceTimeSeries",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IntervalPriceTimeSeries" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntervalPriceTimeSeries" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_IntervalPriceTimeSeries" "', argument " "2"" of type '" "std::vector< IntervalPrice,std::allocator< IntervalPrice > > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntervalPriceTimeSeries" "', argument " "2"" of type '" "std::vector< IntervalPrice,std::allocator< IntervalPrice > > const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< IntervalPrice,std::allocator< IntervalPrice > > * >(argp2);
  {
    try {
      result = (TimeSeries< IntervalPrice > *)new_TimeSeries_Sl_IntervalPrice_Sg___SWIG_1((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< IntervalPrice,std::allocator< IntervalPrice > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_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_IntervalPriceTimeSeries(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_IntervalPriceTimeSeries__SWIG_0(self, args);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_IntervalPriceTimeSeries__SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_IntervalPriceTimeSeries'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    TimeSeries< IntervalPrice >::TimeSeries()\n"
    "    TimeSeries< IntervalPrice >::TimeSeries(std::vector< Date,std::allocator< Date > > const &,std::vector< IntervalPrice,std::allocator< IntervalPrice > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IntervalPriceTimeSeries_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeSeries< IntervalPrice > *arg1 = (TimeSeries< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceTimeSeries_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceTimeSeries_dates" "', argument " "1"" of type '" "TimeSeries< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< TimeSeries< IntervalPrice > * >(argp1);
  {
    try {
      result = (arg1)->dates();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceTimeSeries_values(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeSeries< IntervalPrice > *arg1 = (TimeSeries< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< IntervalPrice,std::allocator< IntervalPrice > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceTimeSeries_values",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceTimeSeries_values" "', argument " "1"" of type '" "TimeSeries< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< TimeSeries< IntervalPrice > * >(argp1);
  {
    try {
      result = (arg1)->values();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< IntervalPrice,std::allocator< IntervalPrice > >(static_cast< const std::vector< IntervalPrice,std::allocator< IntervalPrice > >& >(result))), SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceTimeSeries___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeSeries< IntervalPrice > *arg1 = (TimeSeries< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceTimeSeries___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceTimeSeries___len__" "', argument " "1"" of type '" "TimeSeries< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< TimeSeries< IntervalPrice > * >(argp1);
  {
    try {
      result = (arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceTimeSeries___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeSeries< IntervalPrice > *arg1 = (TimeSeries< IntervalPrice > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< IntervalPrice > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceTimeSeries___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceTimeSeries___getitem__" "', argument " "1"" of type '" "TimeSeries< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< TimeSeries< IntervalPrice > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalPriceTimeSeries___getitem__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPriceTimeSeries___getitem__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = TimeSeries_Sl_IntervalPrice_Sg____getitem__(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new IntervalPrice(static_cast< const IntervalPrice& >(result))), SWIGTYPE_p_IntervalPrice, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceTimeSeries___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeSeries< IntervalPrice > *arg1 = (TimeSeries< IntervalPrice > *) 0 ;
  Date *arg2 = 0 ;
  IntervalPrice *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceTimeSeries___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceTimeSeries___setitem__" "', argument " "1"" of type '" "TimeSeries< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< TimeSeries< IntervalPrice > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalPriceTimeSeries___setitem__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPriceTimeSeries___setitem__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_IntervalPrice,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntervalPriceTimeSeries___setitem__" "', argument " "3"" of type '" "IntervalPrice const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPriceTimeSeries___setitem__" "', argument " "3"" of type '" "IntervalPrice const &""'"); 
  }
  arg3 = reinterpret_cast< IntervalPrice * >(argp3);
  {
    try {
      TimeSeries_Sl_IntervalPrice_Sg____setitem__(arg1,(Date const &)*arg2,(IntervalPrice const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_IntervalPriceTimeSeries(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeSeries< IntervalPrice > *arg1 = (TimeSeries< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_IntervalPriceTimeSeries",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntervalPriceTimeSeries" "', argument " "1"" of type '" "TimeSeries< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< TimeSeries< IntervalPrice > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *IntervalPriceTimeSeries_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_IntervalPriceVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_iterator" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_IntervalPrice_Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector___nonzero__" "', argument " "1"" of type '" "std::vector< IntervalPrice > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_IntervalPrice_Sg____nonzero__((std::vector< IntervalPrice > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector___bool__" "', argument " "1"" of type '" "std::vector< IntervalPrice > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_IntervalPrice_Sg____bool__((std::vector< IntervalPrice > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< IntervalPrice >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector___len__" "', argument " "1"" of type '" "std::vector< IntervalPrice > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    try {
      result = std_vector_Sl_IntervalPrice_Sg____len__((std::vector< IntervalPrice > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  std::vector< IntervalPrice >::difference_type arg2 ;
  std::vector< IntervalPrice >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< IntervalPrice,std::allocator< IntervalPrice > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector___getslice__" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalPriceVector___getslice__" "', argument " "2"" of type '" "std::vector< IntervalPrice >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< IntervalPrice >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalPriceVector___getslice__" "', argument " "3"" of type '" "std::vector< IntervalPrice >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< IntervalPrice >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< IntervalPrice,std::allocator< IntervalPrice > > *)std_vector_Sl_IntervalPrice_Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  std::vector< IntervalPrice >::difference_type arg2 ;
  std::vector< IntervalPrice >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector___setslice__" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalPriceVector___setslice__" "', argument " "2"" of type '" "std::vector< IntervalPrice >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< IntervalPrice >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalPriceVector___setslice__" "', argument " "3"" of type '" "std::vector< IntervalPrice >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< IntervalPrice >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_IntervalPrice_Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  std::vector< IntervalPrice >::difference_type arg2 ;
  std::vector< IntervalPrice >::difference_type arg3 ;
  std::vector< IntervalPrice,std::allocator< IntervalPrice > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector___setslice__" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalPriceVector___setslice__" "', argument " "2"" of type '" "std::vector< IntervalPrice >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< IntervalPrice >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalPriceVector___setslice__" "', argument " "3"" of type '" "std::vector< IntervalPrice >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< IntervalPrice >::difference_type >(val3);
  {
    std::vector< IntervalPrice,std::allocator< IntervalPrice > > *ptr = (std::vector< IntervalPrice,std::allocator< IntervalPrice > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IntervalPriceVector___setslice__" "', argument " "4"" of type '" "std::vector< IntervalPrice,std::allocator< IntervalPrice > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPriceVector___setslice__" "', argument " "4"" of type '" "std::vector< IntervalPrice,std::allocator< IntervalPrice > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_IntervalPrice_Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< IntervalPrice,std::allocator< IntervalPrice > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< IntervalPrice,std::allocator< IntervalPrice > >**)(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_IntervalPriceVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< IntervalPrice,std::allocator< IntervalPrice > >**)(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< IntervalPrice,std::allocator< IntervalPrice > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_IntervalPriceVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntervalPriceVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< IntervalPrice >::__setslice__(std::vector< IntervalPrice >::difference_type,std::vector< IntervalPrice >::difference_type)\n"
    "    std::vector< IntervalPrice >::__setslice__(std::vector< IntervalPrice >::difference_type,std::vector< IntervalPrice >::difference_type,std::vector< IntervalPrice,std::allocator< IntervalPrice > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  std::vector< IntervalPrice >::difference_type arg2 ;
  std::vector< IntervalPrice >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector___delslice__" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalPriceVector___delslice__" "', argument " "2"" of type '" "std::vector< IntervalPrice >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< IntervalPrice >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalPriceVector___delslice__" "', argument " "3"" of type '" "std::vector< IntervalPrice >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< IntervalPrice >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_IntervalPrice_Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  std::vector< IntervalPrice >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector___delitem__" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalPriceVector___delitem__" "', argument " "2"" of type '" "std::vector< IntervalPrice >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< IntervalPrice >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_IntervalPrice_Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< IntervalPrice,std::allocator< IntervalPrice > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector___getitem__" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntervalPriceVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< IntervalPrice,std::allocator< IntervalPrice > > *)std_vector_Sl_IntervalPrice_Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< IntervalPrice,std::allocator< IntervalPrice > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector___setitem__" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntervalPriceVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< IntervalPrice,std::allocator< IntervalPrice > > *ptr = (std::vector< IntervalPrice,std::allocator< IntervalPrice > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntervalPriceVector___setitem__" "', argument " "3"" of type '" "std::vector< IntervalPrice,std::allocator< IntervalPrice > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPriceVector___setitem__" "', argument " "3"" of type '" "std::vector< IntervalPrice,std::allocator< IntervalPrice > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_IntervalPrice_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< IntervalPrice,std::allocator< IntervalPrice > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector___setitem__" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntervalPriceVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_IntervalPrice_Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector___delitem__" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntervalPriceVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_IntervalPrice_Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< IntervalPrice,std::allocator< IntervalPrice > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_IntervalPriceVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< IntervalPrice,std::allocator< IntervalPrice > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_IntervalPriceVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntervalPriceVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< IntervalPrice >::__delitem__(std::vector< IntervalPrice >::difference_type)\n"
    "    std::vector< IntervalPrice >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  std::vector< IntervalPrice >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< IntervalPrice >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector___getitem__" "', argument " "1"" of type '" "std::vector< IntervalPrice > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalPriceVector___getitem__" "', argument " "2"" of type '" "std::vector< IntervalPrice >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< IntervalPrice >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< IntervalPrice >::value_type *) &std_vector_Sl_IntervalPrice_Sg____getitem____SWIG_1((std::vector< IntervalPrice > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IntervalPrice, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< IntervalPrice,std::allocator< IntervalPrice > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_IntervalPriceVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< IntervalPrice,std::allocator< IntervalPrice > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_IntervalPriceVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntervalPriceVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< IntervalPrice >::__getitem__(PySliceObject *)\n"
    "    std::vector< IntervalPrice >::__getitem__(std::vector< IntervalPrice >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  std::vector< IntervalPrice >::difference_type arg2 ;
  std::vector< IntervalPrice >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector___setitem__" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalPriceVector___setitem__" "', argument " "2"" of type '" "std::vector< IntervalPrice >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< IntervalPrice >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_IntervalPrice,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntervalPriceVector___setitem__" "', argument " "3"" of type '" "std::vector< IntervalPrice >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPriceVector___setitem__" "', argument " "3"" of type '" "std::vector< IntervalPrice >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< IntervalPrice >::value_type * >(argp3);
  {
    try {
      try {
        std_vector_Sl_IntervalPrice_Sg____setitem____SWIG_2(arg1,arg2,(IntervalPrice const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< IntervalPrice,std::allocator< IntervalPrice > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_IntervalPriceVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< IntervalPrice,std::allocator< IntervalPrice > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< IntervalPrice,std::allocator< IntervalPrice > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_IntervalPriceVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< IntervalPrice,std::allocator< IntervalPrice > >**)(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_IntervalPrice, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_IntervalPriceVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntervalPriceVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< IntervalPrice >::__setitem__(PySliceObject *,std::vector< IntervalPrice,std::allocator< IntervalPrice > > const &)\n"
    "    std::vector< IntervalPrice >::__setitem__(PySliceObject *)\n"
    "    std::vector< IntervalPrice >::__setitem__(std::vector< IntervalPrice >::difference_type,std::vector< IntervalPrice >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< IntervalPrice > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_pop" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_IntervalPrice_Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< IntervalPrice >::value_type(static_cast< const std::vector< IntervalPrice >::value_type& >(result))), SWIGTYPE_p_IntervalPrice, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  std::vector< IntervalPrice >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_append" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_IntervalPrice,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalPriceVector_append" "', argument " "2"" of type '" "std::vector< IntervalPrice >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPriceVector_append" "', argument " "2"" of type '" "std::vector< IntervalPrice >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< IntervalPrice >::value_type * >(argp2);
  {
    try {
      std_vector_Sl_IntervalPrice_Sg__append(arg1,(IntervalPrice const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_IntervalPriceVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IntervalPriceVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< IntervalPrice > *)new std::vector< IntervalPrice >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_IntervalPriceVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< IntervalPrice > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IntervalPriceVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< IntervalPrice,std::allocator< IntervalPrice > > *ptr = (std::vector< IntervalPrice,std::allocator< IntervalPrice > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IntervalPriceVector" "', argument " "1"" of type '" "std::vector< IntervalPrice > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntervalPriceVector" "', argument " "1"" of type '" "std::vector< IntervalPrice > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< IntervalPrice > *)new std::vector< IntervalPrice >((std::vector< IntervalPrice > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_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_IntervalPriceVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_empty" "', argument " "1"" of type '" "std::vector< IntervalPrice > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    try {
      result = (bool)((std::vector< IntervalPrice > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< IntervalPrice >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_size" "', argument " "1"" of type '" "std::vector< IntervalPrice > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    try {
      result = ((std::vector< IntervalPrice > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  std::vector< IntervalPrice > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_swap" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalPriceVector_swap" "', argument " "2"" of type '" "std::vector< IntervalPrice > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPriceVector_swap" "', argument " "2"" of type '" "std::vector< IntervalPrice > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< IntervalPrice > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< IntervalPrice >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_begin" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< IntervalPrice >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< IntervalPrice >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_end" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< IntervalPrice >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< IntervalPrice >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_rbegin" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< IntervalPrice >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< IntervalPrice >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_rend" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< IntervalPrice >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_clear" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< IntervalPrice > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_get_allocator" "', argument " "1"" of type '" "std::vector< IntervalPrice > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    try {
      result = ((std::vector< IntervalPrice > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< IntervalPrice >::allocator_type(static_cast< const std::vector< IntervalPrice >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_IntervalPrice_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_IntervalPriceVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< IntervalPrice > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IntervalPriceVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IntervalPriceVector" "', argument " "1"" of type '" "std::vector< IntervalPrice >::size_type""'");
  } 
  arg1 = static_cast< std::vector< IntervalPrice >::size_type >(val1);
  {
    try {
      result = (std::vector< IntervalPrice > *)new std::vector< IntervalPrice >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_pop_back" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  std::vector< IntervalPrice >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_resize" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalPriceVector_resize" "', argument " "2"" of type '" "std::vector< IntervalPrice >::size_type""'");
  } 
  arg2 = static_cast< std::vector< IntervalPrice >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  std::vector< IntervalPrice >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< IntervalPrice >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_erase" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntervalPriceVector_erase" "', argument " "2"" of type '" "std::vector< IntervalPrice >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< IntervalPrice >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< IntervalPrice >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntervalPriceVector_erase" "', argument " "2"" of type '" "std::vector< IntervalPrice >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_IntervalPrice_Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< IntervalPrice >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  std::vector< IntervalPrice >::iterator arg2 ;
  std::vector< IntervalPrice >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< IntervalPrice >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_erase" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntervalPriceVector_erase" "', argument " "2"" of type '" "std::vector< IntervalPrice >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< IntervalPrice >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< IntervalPrice >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntervalPriceVector_erase" "', argument " "2"" of type '" "std::vector< IntervalPrice >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntervalPriceVector_erase" "', argument " "3"" of type '" "std::vector< IntervalPrice >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< IntervalPrice >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< IntervalPrice >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntervalPriceVector_erase" "', argument " "3"" of type '" "std::vector< IntervalPrice >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_IntervalPrice_Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< IntervalPrice >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< IntervalPrice,std::allocator< IntervalPrice > >**)(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< IntervalPrice >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_IntervalPriceVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< IntervalPrice,std::allocator< IntervalPrice > >**)(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< IntervalPrice >::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< IntervalPrice >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_IntervalPriceVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntervalPriceVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< IntervalPrice >::erase(std::vector< IntervalPrice >::iterator)\n"
    "    std::vector< IntervalPrice >::erase(std::vector< IntervalPrice >::iterator,std::vector< IntervalPrice >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_IntervalPriceVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice >::size_type arg1 ;
  std::vector< IntervalPrice >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< IntervalPrice > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IntervalPriceVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IntervalPriceVector" "', argument " "1"" of type '" "std::vector< IntervalPrice >::size_type""'");
  } 
  arg1 = static_cast< std::vector< IntervalPrice >::size_type >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_IntervalPrice,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_IntervalPriceVector" "', argument " "2"" of type '" "std::vector< IntervalPrice >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntervalPriceVector" "', argument " "2"" of type '" "std::vector< IntervalPrice >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< IntervalPrice >::value_type * >(argp2);
  {
    try {
      result = (std::vector< IntervalPrice > *)new std::vector< IntervalPrice >(arg1,(std::vector< IntervalPrice >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_IntervalPriceVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_IntervalPriceVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_IntervalPriceVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< IntervalPrice,std::allocator< IntervalPrice > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_IntervalPriceVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_IntervalPrice, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_IntervalPriceVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_IntervalPriceVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< IntervalPrice >::vector()\n"
    "    std::vector< IntervalPrice >::vector(std::vector< IntervalPrice > const &)\n"
    "    std::vector< IntervalPrice >::vector(std::vector< IntervalPrice >::size_type)\n"
    "    std::vector< IntervalPrice >::vector(std::vector< IntervalPrice >::size_type,std::vector< IntervalPrice >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  std::vector< IntervalPrice >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_push_back" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_IntervalPrice,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalPriceVector_push_back" "', argument " "2"" of type '" "std::vector< IntervalPrice >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPriceVector_push_back" "', argument " "2"" of type '" "std::vector< IntervalPrice >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< IntervalPrice >::value_type * >(argp2);
  {
    try {
      (arg1)->push_back((std::vector< IntervalPrice >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< IntervalPrice >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_front" "', argument " "1"" of type '" "std::vector< IntervalPrice > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    try {
      result = (std::vector< IntervalPrice >::value_type *) &((std::vector< IntervalPrice > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IntervalPrice, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< IntervalPrice >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_back" "', argument " "1"" of type '" "std::vector< IntervalPrice > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    try {
      result = (std::vector< IntervalPrice >::value_type *) &((std::vector< IntervalPrice > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IntervalPrice, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  std::vector< IntervalPrice >::size_type arg2 ;
  std::vector< IntervalPrice >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_assign" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalPriceVector_assign" "', argument " "2"" of type '" "std::vector< IntervalPrice >::size_type""'");
  } 
  arg2 = static_cast< std::vector< IntervalPrice >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_IntervalPrice,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntervalPriceVector_assign" "', argument " "3"" of type '" "std::vector< IntervalPrice >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPriceVector_assign" "', argument " "3"" of type '" "std::vector< IntervalPrice >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< IntervalPrice >::value_type * >(argp3);
  {
    try {
      (arg1)->assign(arg2,(std::vector< IntervalPrice >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  std::vector< IntervalPrice >::size_type arg2 ;
  std::vector< IntervalPrice >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_resize" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalPriceVector_resize" "', argument " "2"" of type '" "std::vector< IntervalPrice >::size_type""'");
  } 
  arg2 = static_cast< std::vector< IntervalPrice >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_IntervalPrice,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntervalPriceVector_resize" "', argument " "3"" of type '" "std::vector< IntervalPrice >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPriceVector_resize" "', argument " "3"" of type '" "std::vector< IntervalPrice >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< IntervalPrice >::value_type * >(argp3);
  {
    try {
      (arg1)->resize(arg2,(std::vector< IntervalPrice >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< IntervalPrice,std::allocator< IntervalPrice > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_IntervalPriceVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< IntervalPrice,std::allocator< IntervalPrice > >**)(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_IntervalPrice, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_IntervalPriceVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntervalPriceVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< IntervalPrice >::resize(std::vector< IntervalPrice >::size_type)\n"
    "    std::vector< IntervalPrice >::resize(std::vector< IntervalPrice >::size_type,std::vector< IntervalPrice >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  std::vector< IntervalPrice >::iterator arg2 ;
  std::vector< IntervalPrice >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< IntervalPrice >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_insert" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntervalPriceVector_insert" "', argument " "2"" of type '" "std::vector< IntervalPrice >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< IntervalPrice >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< IntervalPrice >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntervalPriceVector_insert" "', argument " "2"" of type '" "std::vector< IntervalPrice >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_IntervalPrice,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntervalPriceVector_insert" "', argument " "3"" of type '" "std::vector< IntervalPrice >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPriceVector_insert" "', argument " "3"" of type '" "std::vector< IntervalPrice >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< IntervalPrice >::value_type * >(argp3);
  {
    try {
      result = std_vector_Sl_IntervalPrice_Sg__insert__SWIG_0(arg1,arg2,(IntervalPrice const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< IntervalPrice >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  std::vector< IntervalPrice >::iterator arg2 ;
  std::vector< IntervalPrice >::size_type arg3 ;
  std::vector< IntervalPrice >::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 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_insert" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntervalPriceVector_insert" "', argument " "2"" of type '" "std::vector< IntervalPrice >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< IntervalPrice >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< IntervalPrice >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntervalPriceVector_insert" "', argument " "2"" of type '" "std::vector< IntervalPrice >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalPriceVector_insert" "', argument " "3"" of type '" "std::vector< IntervalPrice >::size_type""'");
  } 
  arg3 = static_cast< std::vector< IntervalPrice >::size_type >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IntervalPrice,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IntervalPriceVector_insert" "', argument " "4"" of type '" "std::vector< IntervalPrice >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPriceVector_insert" "', argument " "4"" of type '" "std::vector< IntervalPrice >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< IntervalPrice >::value_type * >(argp4);
  {
    try {
      std_vector_Sl_IntervalPrice_Sg__insert__SWIG_1(arg1,arg2,arg3,(IntervalPrice const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< IntervalPrice,std::allocator< IntervalPrice > >**)(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< IntervalPrice >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_IntervalPrice, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_IntervalPriceVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< IntervalPrice,std::allocator< IntervalPrice > >**)(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< IntervalPrice >::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_IntervalPrice, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_IntervalPriceVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IntervalPriceVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< IntervalPrice >::insert(std::vector< IntervalPrice >::iterator,std::vector< IntervalPrice >::value_type const &)\n"
    "    std::vector< IntervalPrice >::insert(std::vector< IntervalPrice >::iterator,std::vector< IntervalPrice >::size_type,std::vector< IntervalPrice >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  std::vector< IntervalPrice >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_reserve" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalPriceVector_reserve" "', argument " "2"" of type '" "std::vector< IntervalPrice >::size_type""'");
  } 
  arg2 = static_cast< std::vector< IntervalPrice >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPriceVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< IntervalPrice >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPriceVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPriceVector_capacity" "', argument " "1"" of type '" "std::vector< IntervalPrice > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    try {
      result = ((std::vector< IntervalPrice > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_IntervalPriceVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< IntervalPrice > *arg1 = (std::vector< IntervalPrice > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_IntervalPriceVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntervalPriceVector" "', argument " "1"" of type '" "std::vector< IntervalPrice > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< IntervalPrice > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *IntervalPriceVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_IntervalPrice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  IntervalPrice *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IntervalPrice",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IntervalPrice" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IntervalPrice" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_IntervalPrice" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_IntervalPrice" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (IntervalPrice *)new IntervalPrice(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IntervalPrice, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPrice_setValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IntervalPrice *arg1 = (IntervalPrice *) 0 ;
  Real arg2 ;
  IntervalPrice::Type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPrice_setValue",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntervalPrice, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPrice_setValue" "', argument " "1"" of type '" "IntervalPrice *""'"); 
  }
  arg1 = reinterpret_cast< IntervalPrice * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalPrice_setValue" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalPrice_setValue" "', argument " "3"" of type '" "IntervalPrice::Type""'");
  } 
  arg3 = static_cast< IntervalPrice::Type >(val3);
  {
    try {
      (arg1)->setValue(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPrice_setValues(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IntervalPrice *arg1 = (IntervalPrice *) 0 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPrice_setValues",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntervalPrice, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPrice_setValues" "', argument " "1"" of type '" "IntervalPrice *""'"); 
  }
  arg1 = reinterpret_cast< IntervalPrice * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalPrice_setValues" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntervalPrice_setValues" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IntervalPrice_setValues" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "IntervalPrice_setValues" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      (arg1)->setValues(arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPrice_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IntervalPrice *arg1 = (IntervalPrice *) 0 ;
  IntervalPrice::Type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPrice_value",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntervalPrice, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPrice_value" "', argument " "1"" of type '" "IntervalPrice *""'"); 
  }
  arg1 = reinterpret_cast< IntervalPrice * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalPrice_value" "', argument " "2"" of type '" "IntervalPrice::Type""'");
  } 
  arg2 = static_cast< IntervalPrice::Type >(val2);
  {
    try {
      result = (Real)(arg1)->value(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPrice_open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IntervalPrice *arg1 = (IntervalPrice *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPrice_open",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntervalPrice, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPrice_open" "', argument " "1"" of type '" "IntervalPrice *""'"); 
  }
  arg1 = reinterpret_cast< IntervalPrice * >(argp1);
  {
    try {
      result = (Real)(arg1)->open();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPrice_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IntervalPrice *arg1 = (IntervalPrice *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPrice_close",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntervalPrice, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPrice_close" "', argument " "1"" of type '" "IntervalPrice *""'"); 
  }
  arg1 = reinterpret_cast< IntervalPrice * >(argp1);
  {
    try {
      result = (Real)(arg1)->close();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPrice_high(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IntervalPrice *arg1 = (IntervalPrice *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPrice_high",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntervalPrice, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPrice_high" "', argument " "1"" of type '" "IntervalPrice *""'"); 
  }
  arg1 = reinterpret_cast< IntervalPrice * >(argp1);
  {
    try {
      result = (Real)(arg1)->high();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPrice_low(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IntervalPrice *arg1 = (IntervalPrice *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPrice_low",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntervalPrice, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPrice_low" "', argument " "1"" of type '" "IntervalPrice *""'"); 
  }
  arg1 = reinterpret_cast< IntervalPrice * >(argp1);
  {
    try {
      result = (Real)(arg1)->low();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPrice_makeSeries(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg4 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg5 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  TimeSeries< IntervalPrice > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPrice_makeSeries",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPrice_makeSeries" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPrice_makeSeries" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntervalPrice_makeSeries" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPrice_makeSeries" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntervalPrice_makeSeries" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPrice_makeSeries" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IntervalPrice_makeSeries" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPrice_makeSeries" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "IntervalPrice_makeSeries" "', argument " "5"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPrice_makeSeries" "', argument " "5"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    try {
      result = IntervalPrice::makeSeries((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TimeSeries< IntervalPrice >(static_cast< const TimeSeries< IntervalPrice >& >(result))), SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPrice_extractValues(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeSeries< IntervalPrice > arg1 ;
  IntervalPrice::Type arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPrice_extractValues",2,2,&obj0,&obj1)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPrice_extractValues" "', argument " "1"" of type '" "TimeSeries< IntervalPrice >""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPrice_extractValues" "', argument " "1"" of type '" "TimeSeries< IntervalPrice >""'");
    } else {
      TimeSeries< IntervalPrice > * temp = reinterpret_cast< TimeSeries< IntervalPrice > * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalPrice_extractValues" "', argument " "2"" of type '" "IntervalPrice::Type""'");
  } 
  arg2 = static_cast< IntervalPrice::Type >(val2);
  {
    try {
      result = IntervalPrice::extractValues(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IntervalPrice_extractComponent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeSeries< IntervalPrice > arg1 ;
  IntervalPrice::Type arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TimeSeries< Real > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IntervalPrice_extractComponent",2,2,&obj0,&obj1)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntervalPrice_extractComponent" "', argument " "1"" of type '" "TimeSeries< IntervalPrice >""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntervalPrice_extractComponent" "', argument " "1"" of type '" "TimeSeries< IntervalPrice >""'");
    } else {
      TimeSeries< IntervalPrice > * temp = reinterpret_cast< TimeSeries< IntervalPrice > * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntervalPrice_extractComponent" "', argument " "2"" of type '" "IntervalPrice::Type""'");
  } 
  arg2 = static_cast< IntervalPrice::Type >(val2);
  {
    try {
      result = IntervalPrice::extractComponent(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TimeSeries< Real >(static_cast< const TimeSeries< Real >& >(result))), SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_IntervalPrice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IntervalPrice *arg1 = (IntervalPrice *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_IntervalPrice",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntervalPrice, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntervalPrice" "', argument " "1"" of type '" "IntervalPrice *""'"); 
  }
  arg1 = reinterpret_cast< IntervalPrice * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *IntervalPrice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_IntervalPrice, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_IndexManager_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IndexManager *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IndexManager_instance",0,0)) SWIG_fail;
  {
    try {
      result = (IndexManager *) &IndexManager::instance();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IndexManager, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IndexManager_setHistory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IndexManager *arg1 = (IndexManager *) 0 ;
  std::string *arg2 = 0 ;
  TimeSeries< Real > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IndexManager_setHistory",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IndexManager, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexManager_setHistory" "', argument " "1"" of type '" "IndexManager *""'"); 
  }
  arg1 = reinterpret_cast< IndexManager * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndexManager_setHistory" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IndexManager_setHistory" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IndexManager_setHistory" "', argument " "3"" of type '" "TimeSeries< Real > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IndexManager_setHistory" "', argument " "3"" of type '" "TimeSeries< Real > const &""'"); 
  }
  arg3 = reinterpret_cast< TimeSeries< Real > * >(argp3);
  {
    try {
      (arg1)->setHistory((std::string const &)*arg2,(TimeSeries< Real > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IndexManager_getHistory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IndexManager *arg1 = (IndexManager *) 0 ;
  std::string *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TimeSeries< Real > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IndexManager_getHistory",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IndexManager, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexManager_getHistory" "', argument " "1"" of type '" "IndexManager const *""'"); 
  }
  arg1 = reinterpret_cast< IndexManager * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndexManager_getHistory" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IndexManager_getHistory" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      result = (TimeSeries< Real > *) &((IndexManager const *)arg1)->getHistory((std::string const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, 0 |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IndexManager_hasHistory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IndexManager *arg1 = (IndexManager *) 0 ;
  std::string *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IndexManager_hasHistory",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IndexManager, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexManager_hasHistory" "', argument " "1"" of type '" "IndexManager const *""'"); 
  }
  arg1 = reinterpret_cast< IndexManager * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndexManager_hasHistory" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IndexManager_hasHistory" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      result = (bool)((IndexManager const *)arg1)->hasHistory((std::string const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  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_IndexManager_histories(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IndexManager *arg1 = (IndexManager *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::string,std::allocator< std::string > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IndexManager_histories",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IndexManager, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexManager_histories" "', argument " "1"" of type '" "IndexManager const *""'"); 
  }
  arg1 = reinterpret_cast< IndexManager * >(argp1);
  {
    try {
      result = ((IndexManager const *)arg1)->histories();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IndexManager_clearHistory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IndexManager *arg1 = (IndexManager *) 0 ;
  std::string *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IndexManager_clearHistory",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IndexManager, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexManager_clearHistory" "', argument " "1"" of type '" "IndexManager *""'"); 
  }
  arg1 = reinterpret_cast< IndexManager * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndexManager_clearHistory" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IndexManager_clearHistory" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      (arg1)->clearHistory((std::string const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IndexManager_clearHistories(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IndexManager *arg1 = (IndexManager *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IndexManager_clearHistories",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IndexManager, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexManager_clearHistories" "', argument " "1"" of type '" "IndexManager *""'"); 
  }
  arg1 = reinterpret_cast< IndexManager * >(argp1);
  {
    try {
      (arg1)->clearHistories();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_IndexManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IndexManager *arg1 = (IndexManager *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_IndexManager",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IndexManager, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IndexManager" "', argument " "1"" of type '" "IndexManager *""'"); 
  }
  arg1 = reinterpret_cast< IndexManager * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *IndexManager_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_IndexManager, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Index___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Index > *arg1 = (boost::shared_ptr< Index > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Index *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Index___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Index_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Index___deref__" "', argument " "1"" of type '" "boost::shared_ptr< Index > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Index > * >(argp1);
  {
    try {
      result = (Index *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Index, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Index___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Index > *arg1 = (boost::shared_ptr< Index > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Index___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Index_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Index___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< Index > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Index > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Index_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Index___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Index > *arg1 = (boost::shared_ptr< Index > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Index___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Index_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Index___bool__" "', argument " "1"" of type '" "boost::shared_ptr< Index > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Index > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Index_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Index_addFixings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Index > *arg1 = (boost::shared_ptr< Index > *) 0 ;
  std::vector< Date,std::allocator< Date > > *arg2 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Index_addFixings",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Index_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Index_addFixings" "', argument " "1"" of type '" "boost::shared_ptr< Index > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Index > * >(argp1);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Index_addFixings" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Index_addFixings" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Index_addFixings" "', argument " "3"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Index_addFixings" "', argument " "3"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      boost_shared_ptr_Sl_Index_Sg__addFixings(arg1,(std::vector< Date,std::allocator< Date > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  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_Index___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Index > *arg1 = (boost::shared_ptr< Index > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Index___str__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Index_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Index___str__" "', argument " "1"" of type '" "boost::shared_ptr< Index > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Index > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_Index_Sg____str__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Index_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Index > *arg1 = (boost::shared_ptr< Index > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Index_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Index_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Index_asObservable" "', argument " "1"" of type '" "boost::shared_ptr< Index > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Index > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_Index_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Index(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Index > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Index",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< Index > *)new boost::shared_ptr< Index >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Index_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Index(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Index > *arg1 = (boost::shared_ptr< Index > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Index",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Index_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Index" "', argument " "1"" of type '" "boost::shared_ptr< Index > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Index > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Index_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Index > *arg1 = (boost::shared_ptr< Index > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Index_name",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Index_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Index_name" "', argument " "1"" of type '" "boost::shared_ptr< Index > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Index > * >(argp1);
  {
    try {
      result = (*arg1)->name();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Index_fixingCalendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Index > *arg1 = (boost::shared_ptr< Index > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Index_fixingCalendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Index_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Index_fixingCalendar" "', argument " "1"" of type '" "boost::shared_ptr< Index > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Index > * >(argp1);
  {
    try {
      result = (*arg1)->fixingCalendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Index_isValidFixingDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Index > *arg1 = (boost::shared_ptr< Index > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Index_isValidFixingDate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Index_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Index_isValidFixingDate" "', argument " "1"" of type '" "boost::shared_ptr< Index > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Index > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Index_isValidFixingDate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Index_isValidFixingDate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (bool)(*arg1)->isValidFixingDate((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Index_fixing__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Index > *arg1 = (boost::shared_ptr< Index > *) 0 ;
  Date *arg2 = 0 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Index_fixing",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Index_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Index_fixing" "', argument " "1"" of type '" "boost::shared_ptr< Index > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Index > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Index_fixing" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Index_fixing" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Index_fixing" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(*arg1)->fixing((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Index_fixing__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Index > *arg1 = (boost::shared_ptr< Index > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Index_fixing",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Index_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Index_fixing" "', argument " "1"" of type '" "boost::shared_ptr< Index > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Index > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Index_fixing" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Index_fixing" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Real)(*arg1)->fixing((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Index_fixing(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Index_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_Index_fixing__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Index_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_Index_fixing__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Index_fixing'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Index::fixing(Date const &,bool) const\n"
    "    Index::fixing(Date const &) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Index_addFixing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Index > *arg1 = (boost::shared_ptr< Index > *) 0 ;
  Date *arg2 = 0 ;
  Rate arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Index_addFixing",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Index_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Index_addFixing" "', argument " "1"" of type '" "boost::shared_ptr< Index > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Index > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Index_addFixing" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Index_addFixing" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Index_addFixing" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  {
    try {
      (*arg1)->addFixing((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Index_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_Index_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_InterestRateIndex_familyName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRateIndexPtr *arg1 = (InterestRateIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateIndex_familyName",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRateIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateIndex_familyName" "', argument " "1"" of type '" "InterestRateIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< InterestRateIndexPtr * >(argp1);
  {
    try {
      result = InterestRateIndexPtr_familyName(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateIndex_tenor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRateIndexPtr *arg1 = (InterestRateIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Period result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateIndex_tenor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRateIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateIndex_tenor" "', argument " "1"" of type '" "InterestRateIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< InterestRateIndexPtr * >(argp1);
  {
    try {
      result = InterestRateIndexPtr_tenor(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Period(static_cast< const Period& >(result))), SWIGTYPE_p_Period, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateIndex_fixingDays(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRateIndexPtr *arg1 = (InterestRateIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Natural result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateIndex_fixingDays",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRateIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateIndex_fixingDays" "', argument " "1"" of type '" "InterestRateIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< InterestRateIndexPtr * >(argp1);
  {
    try {
      result = (Natural)InterestRateIndexPtr_fixingDays(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateIndex_fixingDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRateIndexPtr *arg1 = (InterestRateIndexPtr *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateIndex_fixingDate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRateIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateIndex_fixingDate" "', argument " "1"" of type '" "InterestRateIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< InterestRateIndexPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRateIndex_fixingDate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRateIndex_fixingDate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = InterestRateIndexPtr_fixingDate(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateIndex_currency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRateIndexPtr *arg1 = (InterestRateIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Currency result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateIndex_currency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRateIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateIndex_currency" "', argument " "1"" of type '" "InterestRateIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< InterestRateIndexPtr * >(argp1);
  {
    try {
      result = InterestRateIndexPtr_currency(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Currency(static_cast< const Currency& >(result))), SWIGTYPE_p_Currency, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateIndex_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRateIndexPtr *arg1 = (InterestRateIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateIndex_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRateIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateIndex_dayCounter" "', argument " "1"" of type '" "InterestRateIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< InterestRateIndexPtr * >(argp1);
  {
    try {
      result = InterestRateIndexPtr_dayCounter(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateIndex_maturityDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRateIndexPtr *arg1 = (InterestRateIndexPtr *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateIndex_maturityDate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRateIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateIndex_maturityDate" "', argument " "1"" of type '" "InterestRateIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< InterestRateIndexPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRateIndex_maturityDate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRateIndex_maturityDate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = InterestRateIndexPtr_maturityDate(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InterestRateIndex_valueDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRateIndexPtr *arg1 = (InterestRateIndexPtr *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InterestRateIndex_valueDate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRateIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InterestRateIndex_valueDate" "', argument " "1"" of type '" "InterestRateIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< InterestRateIndexPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InterestRateIndex_valueDate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InterestRateIndex_valueDate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = InterestRateIndexPtr_valueDate(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InterestRateIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRateIndexPtr *arg1 = (InterestRateIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_InterestRateIndex",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InterestRateIndexPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InterestRateIndex" "', argument " "1"" of type '" "InterestRateIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< InterestRateIndexPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InterestRateIndex_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InterestRateIndexPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_IborIndex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  Period *arg2 = 0 ;
  Integer arg3 ;
  Currency *arg4 = 0 ;
  Calendar *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  bool arg7 ;
  DayCounter *arg8 = 0 ;
  Handle< YieldTermStructure > *arg9 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  IborIndexPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IborIndex",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IborIndex" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IborIndex" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_IborIndex" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IborIndex" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_IborIndex" "', argument " "3"" of type '" "Integer""'");
  } 
  arg3 = static_cast< Integer >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_IborIndex" "', argument " "4"" of type '" "Currency const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IborIndex" "', argument " "4"" of type '" "Currency const &""'"); 
  }
  arg4 = reinterpret_cast< Currency * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_IborIndex" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IborIndex" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_IborIndex" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_IborIndex" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_IborIndex" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IborIndex" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  arg8 = reinterpret_cast< DayCounter * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_IborIndex" "', argument " "9"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IborIndex" "', argument " "9"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg9 = reinterpret_cast< Handle< YieldTermStructure > * >(argp9);
  {
    try {
      result = (IborIndexPtr *)new_IborIndexPtr__SWIG_0((std::string const &)*arg1,(Period const &)*arg2,arg3,(Currency const &)*arg4,(Calendar const &)*arg5,arg6,arg7,(DayCounter const &)*arg8,(Handle< YieldTermStructure > const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IborIndexPtr, 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_IborIndex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  Period *arg2 = 0 ;
  Integer arg3 ;
  Currency *arg4 = 0 ;
  Calendar *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  bool arg7 ;
  DayCounter *arg8 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  IborIndexPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IborIndex",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IborIndex" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IborIndex" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_IborIndex" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IborIndex" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_IborIndex" "', argument " "3"" of type '" "Integer""'");
  } 
  arg3 = static_cast< Integer >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_IborIndex" "', argument " "4"" of type '" "Currency const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IborIndex" "', argument " "4"" of type '" "Currency const &""'"); 
  }
  arg4 = reinterpret_cast< Currency * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_IborIndex" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IborIndex" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_IborIndex" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_IborIndex" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_IborIndex" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IborIndex" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  arg8 = reinterpret_cast< DayCounter * >(argp8);
  {
    try {
      result = (IborIndexPtr *)new_IborIndexPtr__SWIG_0((std::string const &)*arg1,(Period const &)*arg2,arg3,(Currency const &)*arg4,(Calendar const &)*arg5,arg6,arg7,(DayCounter const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IborIndexPtr, 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_IborIndex(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Currency, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_DayCounter, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_IborIndex__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Currency, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_DayCounter, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap_new_IborIndex__SWIG_0(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_IborIndex'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    IborIndexPtr::IborIndexPtr(std::string const &,Period const &,Integer,Currency const &,Calendar const &,BusinessDayConvention,bool,DayCounter const &,Handle< YieldTermStructure > const &)\n"
    "    IborIndexPtr::IborIndexPtr(std::string const &,Period const &,Integer,Currency const &,Calendar const &,BusinessDayConvention,bool,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_IborIndex_businessDayConvention(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IborIndexPtr *arg1 = (IborIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BusinessDayConvention result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IborIndex_businessDayConvention",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IborIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IborIndex_businessDayConvention" "', argument " "1"" of type '" "IborIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< IborIndexPtr * >(argp1);
  {
    try {
      result = (BusinessDayConvention)IborIndexPtr_businessDayConvention(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IborIndex_endOfMonth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IborIndexPtr *arg1 = (IborIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IborIndex_endOfMonth",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IborIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IborIndex_endOfMonth" "', argument " "1"" of type '" "IborIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< IborIndexPtr * >(argp1);
  {
    try {
      result = (bool)IborIndexPtr_endOfMonth(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IborIndex_forwardingTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IborIndexPtr *arg1 = (IborIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< YieldTermStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IborIndex_forwardingTermStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IborIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IborIndex_forwardingTermStructure" "', argument " "1"" of type '" "IborIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< IborIndexPtr * >(argp1);
  {
    try {
      result = IborIndexPtr_forwardingTermStructure(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Handle< YieldTermStructure >(static_cast< const Handle< YieldTermStructure >& >(result))), SWIGTYPE_p_HandleT_YieldTermStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IborIndex_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IborIndexPtr *arg1 = (IborIndexPtr *) 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< IborIndexPtr > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IborIndex_clone",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IborIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IborIndex_clone" "', argument " "1"" of type '" "IborIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< IborIndexPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IborIndex_clone" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IborIndex_clone" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = IborIndexPtr_clone(arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new IborIndexPtr(static_cast< const IborIndexPtr& >(result))), SWIGTYPE_p_IborIndexPtr, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_IborIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IborIndexPtr *arg1 = (IborIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_IborIndex",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IborIndexPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IborIndex" "', argument " "1"" of type '" "IborIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< IborIndexPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *IborIndex_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_IborIndexPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_as_iborindex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InterestRateIndexPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< IborIndexPtr > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"as_iborindex",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "as_iborindex" "', argument " "1"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "as_iborindex" "', argument " "1"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg1 = reinterpret_cast< InterestRateIndexPtr * >(argp1);
  {
    try {
      result = as_iborindex((InterestRateIndexPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new IborIndexPtr(static_cast< const IborIndexPtr& >(result))), SWIGTYPE_p_IborIndexPtr, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OvernightIndex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  Integer arg2 ;
  Currency *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  Handle< YieldTermStructure > *arg6 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  OvernightIndexPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_OvernightIndex",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_OvernightIndex" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OvernightIndex" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_OvernightIndex" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_OvernightIndex" "', argument " "3"" of type '" "Currency const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OvernightIndex" "', argument " "3"" of type '" "Currency const &""'"); 
  }
  arg3 = reinterpret_cast< Currency * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_OvernightIndex" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OvernightIndex" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_OvernightIndex" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OvernightIndex" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_OvernightIndex" "', argument " "6"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OvernightIndex" "', argument " "6"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg6 = reinterpret_cast< Handle< YieldTermStructure > * >(argp6);
  {
    try {
      result = (OvernightIndexPtr *)new_OvernightIndexPtr__SWIG_0((std::string const &)*arg1,arg2,(Currency const &)*arg3,(Calendar const &)*arg4,(DayCounter const &)*arg5,(Handle< YieldTermStructure > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OvernightIndexPtr, 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_OvernightIndex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  Integer arg2 ;
  Currency *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  OvernightIndexPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_OvernightIndex",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_OvernightIndex" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OvernightIndex" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_OvernightIndex" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_OvernightIndex" "', argument " "3"" of type '" "Currency const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OvernightIndex" "', argument " "3"" of type '" "Currency const &""'"); 
  }
  arg3 = reinterpret_cast< Currency * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_OvernightIndex" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OvernightIndex" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_OvernightIndex" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OvernightIndex" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  {
    try {
      result = (OvernightIndexPtr *)new_OvernightIndexPtr__SWIG_0((std::string const &)*arg1,arg2,(Currency const &)*arg3,(Calendar const &)*arg4,(DayCounter const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OvernightIndexPtr, 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_OvernightIndex(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 5) {
    int _v;
    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) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Currency, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_OvernightIndex__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    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) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Currency, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_OvernightIndex__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_OvernightIndex'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    OvernightIndexPtr::OvernightIndexPtr(std::string const &,Integer,Currency const &,Calendar const &,DayCounter const &,Handle< YieldTermStructure > const &)\n"
    "    OvernightIndexPtr::OvernightIndexPtr(std::string const &,Integer,Currency const &,Calendar const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_OvernightIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  OvernightIndexPtr *arg1 = (OvernightIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_OvernightIndex",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OvernightIndexPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OvernightIndex" "', argument " "1"" of type '" "OvernightIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< OvernightIndexPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *OvernightIndex_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_OvernightIndexPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Libor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  Period *arg2 = 0 ;
  Natural arg3 ;
  Currency *arg4 = 0 ;
  Calendar *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  Handle< YieldTermStructure > *arg7 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  LiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Libor",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Libor" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Libor" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Libor" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Libor" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Libor" "', argument " "3"" of type '" "Natural""'");
  } 
  arg3 = static_cast< Natural >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Libor" "', argument " "4"" of type '" "Currency const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Libor" "', argument " "4"" of type '" "Currency const &""'"); 
  }
  arg4 = reinterpret_cast< Currency * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_Libor" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Libor" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_Libor" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Libor" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Libor" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Libor" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg7 = reinterpret_cast< Handle< YieldTermStructure > * >(argp7);
  {
    try {
      result = (LiborPtr *)new_LiborPtr__SWIG_0((std::string const &)*arg1,(Period const &)*arg2,arg3,(Currency const &)*arg4,(Calendar const &)*arg5,(DayCounter const &)*arg6,(Handle< YieldTermStructure > const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LiborPtr, 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_Libor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  Period *arg2 = 0 ;
  Natural arg3 ;
  Currency *arg4 = 0 ;
  Calendar *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  LiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Libor",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Libor" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Libor" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Libor" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Libor" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Libor" "', argument " "3"" of type '" "Natural""'");
  } 
  arg3 = static_cast< Natural >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Libor" "', argument " "4"" of type '" "Currency const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Libor" "', argument " "4"" of type '" "Currency const &""'"); 
  }
  arg4 = reinterpret_cast< Currency * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_Libor" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Libor" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_Libor" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Libor" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  {
    try {
      result = (LiborPtr *)new_LiborPtr__SWIG_0((std::string const &)*arg1,(Period const &)*arg2,arg3,(Currency const &)*arg4,(Calendar const &)*arg5,(DayCounter const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LiborPtr, 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_Libor(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Currency, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_Libor__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Currency, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_Libor__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Libor'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    LiborPtr::LiborPtr(std::string const &,Period const &,Natural,Currency const &,Calendar const &,DayCounter const &,Handle< YieldTermStructure > const &)\n"
    "    LiborPtr::LiborPtr(std::string const &,Period const &,Natural,Currency const &,Calendar const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Libor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LiborPtr *arg1 = (LiborPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Libor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LiborPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Libor" "', argument " "1"" of type '" "LiborPtr *""'"); 
  }
  arg1 = reinterpret_cast< LiborPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Libor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_LiborPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SwapIndex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  Period *arg2 = 0 ;
  Integer arg3 ;
  Currency *arg4 = 0 ;
  Calendar *arg5 = 0 ;
  Period *arg6 = 0 ;
  BusinessDayConvention arg7 ;
  DayCounter *arg8 = 0 ;
  IborIndexPtr *arg9 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  SwapIndexPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapIndex",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwapIndex" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapIndex" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapIndex" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapIndex" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SwapIndex" "', argument " "3"" of type '" "Integer""'");
  } 
  arg3 = static_cast< Integer >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwapIndex" "', argument " "4"" of type '" "Currency const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapIndex" "', argument " "4"" of type '" "Currency const &""'"); 
  }
  arg4 = reinterpret_cast< Currency * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwapIndex" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapIndex" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwapIndex" "', argument " "6"" of type '" "Period const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapIndex" "', argument " "6"" of type '" "Period const &""'"); 
  }
  arg6 = reinterpret_cast< Period * >(argp6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SwapIndex" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwapIndex" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapIndex" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  arg8 = reinterpret_cast< DayCounter * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_SwapIndex" "', argument " "9"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapIndex" "', argument " "9"" of type '" "IborIndexPtr const &""'"); 
  }
  arg9 = reinterpret_cast< IborIndexPtr * >(argp9);
  {
    try {
      result = (SwapIndexPtr *)new_SwapIndexPtr__SWIG_0((std::string const &)*arg1,(Period const &)*arg2,arg3,(Currency const &)*arg4,(Calendar const &)*arg5,(Period const &)*arg6,arg7,(DayCounter const &)*arg8,(IborIndexPtr const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapIndexPtr, 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_SwapIndex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  Period *arg2 = 0 ;
  Integer arg3 ;
  Currency *arg4 = 0 ;
  Calendar *arg5 = 0 ;
  Period *arg6 = 0 ;
  BusinessDayConvention arg7 ;
  DayCounter *arg8 = 0 ;
  IborIndexPtr *arg9 = 0 ;
  Handle< YieldTermStructure > *arg10 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  SwapIndexPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapIndex",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwapIndex" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapIndex" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapIndex" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapIndex" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SwapIndex" "', argument " "3"" of type '" "Integer""'");
  } 
  arg3 = static_cast< Integer >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwapIndex" "', argument " "4"" of type '" "Currency const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapIndex" "', argument " "4"" of type '" "Currency const &""'"); 
  }
  arg4 = reinterpret_cast< Currency * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwapIndex" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapIndex" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwapIndex" "', argument " "6"" of type '" "Period const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapIndex" "', argument " "6"" of type '" "Period const &""'"); 
  }
  arg6 = reinterpret_cast< Period * >(argp6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SwapIndex" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwapIndex" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapIndex" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  arg8 = reinterpret_cast< DayCounter * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_SwapIndex" "', argument " "9"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapIndex" "', argument " "9"" of type '" "IborIndexPtr const &""'"); 
  }
  arg9 = reinterpret_cast< IborIndexPtr * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SwapIndex" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapIndex" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg10 = reinterpret_cast< Handle< YieldTermStructure > * >(argp10);
  {
    try {
      result = (SwapIndexPtr *)new_SwapIndexPtr__SWIG_1((std::string const &)*arg1,(Period const &)*arg2,arg3,(Currency const &)*arg4,(Calendar const &)*arg5,(Period const &)*arg6,arg7,(DayCounter const &)*arg8,(IborIndexPtr const &)*arg9,(Handle< YieldTermStructure > const &)*arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapIndexPtr, 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_SwapIndex(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[11] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 10) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Currency, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Period, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_DayCounter, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_IborIndexPtr, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap_new_SwapIndex__SWIG_0(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Currency, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Period, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_DayCounter, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_IborIndexPtr, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        return _wrap_new_SwapIndex__SWIG_1(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SwapIndex'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SwapIndexPtr::SwapIndexPtr(std::string const &,Period const &,Integer,Currency const &,Calendar const &,Period const &,BusinessDayConvention,DayCounter const &,IborIndexPtr const &)\n"
    "    SwapIndexPtr::SwapIndexPtr(std::string const &,Period const &,Integer,Currency const &,Calendar const &,Period const &,BusinessDayConvention,DayCounter const &,IborIndexPtr const &,Handle< YieldTermStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_SwapIndex_fixedLegTenor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwapIndexPtr *arg1 = (SwapIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Period result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwapIndex_fixedLegTenor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwapIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwapIndex_fixedLegTenor" "', argument " "1"" of type '" "SwapIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< SwapIndexPtr * >(argp1);
  {
    try {
      result = SwapIndexPtr_fixedLegTenor(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Period(static_cast< const Period& >(result))), SWIGTYPE_p_Period, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwapIndex_fixedLegConvention(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwapIndexPtr *arg1 = (SwapIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BusinessDayConvention result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwapIndex_fixedLegConvention",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwapIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwapIndex_fixedLegConvention" "', argument " "1"" of type '" "SwapIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< SwapIndexPtr * >(argp1);
  {
    try {
      result = (BusinessDayConvention)SwapIndexPtr_fixedLegConvention(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwapIndex_iborIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwapIndexPtr *arg1 = (SwapIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< IborIndexPtr > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwapIndex_iborIndex",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwapIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwapIndex_iborIndex" "', argument " "1"" of type '" "SwapIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< SwapIndexPtr * >(argp1);
  {
    try {
      result = SwapIndexPtr_iborIndex(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new IborIndexPtr(static_cast< const IborIndexPtr& >(result))), SWIGTYPE_p_IborIndexPtr, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwapIndex_forwardingTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwapIndexPtr *arg1 = (SwapIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< YieldTermStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwapIndex_forwardingTermStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwapIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwapIndex_forwardingTermStructure" "', argument " "1"" of type '" "SwapIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< SwapIndexPtr * >(argp1);
  {
    try {
      result = SwapIndexPtr_forwardingTermStructure(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Handle< YieldTermStructure >(static_cast< const Handle< YieldTermStructure >& >(result))), SWIGTYPE_p_HandleT_YieldTermStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SwapIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwapIndexPtr *arg1 = (SwapIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SwapIndex",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwapIndexPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwapIndex" "', argument " "1"" of type '" "SwapIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< SwapIndexPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SwapIndex_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SwapIndexPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AUDLibor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  AUDLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AUDLibor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AUDLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AUDLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AUDLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AUDLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (AUDLiborPtr *)new_AUDLiborPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AUDLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_AUDLibor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  AUDLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AUDLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AUDLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AUDLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (AUDLiborPtr *)new_AUDLiborPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AUDLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_AUDLibor(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_AUDLibor__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_AUDLibor__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_AUDLibor'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    AUDLiborPtr::AUDLiborPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    AUDLiborPtr::AUDLiborPtr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_AUDLibor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AUDLiborPtr *arg1 = (AUDLiborPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AUDLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AUDLiborPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AUDLibor" "', argument " "1"" of type '" "AUDLiborPtr *""'"); 
  }
  arg1 = reinterpret_cast< AUDLiborPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AUDLibor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AUDLiborPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CADLibor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  CADLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CADLibor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CADLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CADLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CADLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CADLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (CADLiborPtr *)new_CADLiborPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CADLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CADLibor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  CADLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CADLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CADLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CADLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (CADLiborPtr *)new_CADLiborPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CADLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CADLibor(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_CADLibor__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_CADLibor__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CADLibor'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CADLiborPtr::CADLiborPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    CADLiborPtr::CADLiborPtr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_CADLibor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CADLiborPtr *arg1 = (CADLiborPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CADLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CADLiborPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CADLibor" "', argument " "1"" of type '" "CADLiborPtr *""'"); 
  }
  arg1 = reinterpret_cast< CADLiborPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CADLibor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CADLiborPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Cdor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  CdorPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Cdor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Cdor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Cdor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Cdor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Cdor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (CdorPtr *)new_CdorPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CdorPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Cdor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  CdorPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Cdor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Cdor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Cdor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (CdorPtr *)new_CdorPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CdorPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Cdor(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Cdor__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_Cdor__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Cdor'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CdorPtr::CdorPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    CdorPtr::CdorPtr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Cdor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CdorPtr *arg1 = (CdorPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Cdor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CdorPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cdor" "', argument " "1"" of type '" "CdorPtr *""'"); 
  }
  arg1 = reinterpret_cast< CdorPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Cdor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CdorPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CHFLibor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  CHFLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CHFLibor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CHFLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CHFLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CHFLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CHFLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (CHFLiborPtr *)new_CHFLiborPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CHFLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CHFLibor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  CHFLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CHFLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CHFLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CHFLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (CHFLiborPtr *)new_CHFLiborPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CHFLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CHFLibor(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_CHFLibor__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_CHFLibor__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CHFLibor'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CHFLiborPtr::CHFLiborPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    CHFLiborPtr::CHFLiborPtr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_CHFLibor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CHFLiborPtr *arg1 = (CHFLiborPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CHFLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHFLiborPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CHFLibor" "', argument " "1"" of type '" "CHFLiborPtr *""'"); 
  }
  arg1 = reinterpret_cast< CHFLiborPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CHFLibor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CHFLiborPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DKKLibor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DKKLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DKKLibor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DKKLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DKKLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DKKLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DKKLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (DKKLiborPtr *)new_DKKLiborPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DKKLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DKKLibor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  DKKLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DKKLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DKKLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DKKLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (DKKLiborPtr *)new_DKKLiborPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DKKLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DKKLibor(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_DKKLibor__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_DKKLibor__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DKKLibor'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    DKKLiborPtr::DKKLiborPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    DKKLiborPtr::DKKLiborPtr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_DKKLibor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DKKLiborPtr *arg1 = (DKKLiborPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DKKLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DKKLiborPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DKKLibor" "', argument " "1"" of type '" "DKKLiborPtr *""'"); 
  }
  arg1 = reinterpret_cast< DKKLiborPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DKKLibor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DKKLiborPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Bbsw__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BbswPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bbsw",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Bbsw" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bbsw" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Bbsw" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bbsw" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (BbswPtr *)new_BbswPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BbswPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bbsw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BbswPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bbsw",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Bbsw" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bbsw" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (BbswPtr *)new_BbswPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BbswPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bbsw(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Bbsw__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_Bbsw__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Bbsw'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BbswPtr::BbswPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    BbswPtr::BbswPtr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Bbsw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BbswPtr *arg1 = (BbswPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Bbsw",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BbswPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bbsw" "', argument " "1"" of type '" "BbswPtr *""'"); 
  }
  arg1 = reinterpret_cast< BbswPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Bbsw_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BbswPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Bbsw1M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Bbsw1MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bbsw1M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Bbsw1M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bbsw1M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Bbsw1MPtr *)new_Bbsw1MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bbsw1MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bbsw1M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bbsw1MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bbsw1M",0,0)) SWIG_fail;
  {
    try {
      result = (Bbsw1MPtr *)new_Bbsw1MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bbsw1MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bbsw1M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Bbsw1M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Bbsw1M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Bbsw1M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Bbsw1MPtr::Bbsw1MPtr(Handle< YieldTermStructure > const &)\n"
    "    Bbsw1MPtr::Bbsw1MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Bbsw1M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bbsw1MPtr *arg1 = (Bbsw1MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Bbsw1M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Bbsw1MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bbsw1M" "', argument " "1"" of type '" "Bbsw1MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Bbsw1MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Bbsw1M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Bbsw1MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Bbsw2M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Bbsw2MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bbsw2M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Bbsw2M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bbsw2M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Bbsw2MPtr *)new_Bbsw2MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bbsw2MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bbsw2M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bbsw2MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bbsw2M",0,0)) SWIG_fail;
  {
    try {
      result = (Bbsw2MPtr *)new_Bbsw2MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bbsw2MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bbsw2M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Bbsw2M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Bbsw2M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Bbsw2M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Bbsw2MPtr::Bbsw2MPtr(Handle< YieldTermStructure > const &)\n"
    "    Bbsw2MPtr::Bbsw2MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Bbsw2M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bbsw2MPtr *arg1 = (Bbsw2MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Bbsw2M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Bbsw2MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bbsw2M" "', argument " "1"" of type '" "Bbsw2MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Bbsw2MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Bbsw2M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Bbsw2MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Bbsw3M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Bbsw3MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bbsw3M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Bbsw3M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bbsw3M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Bbsw3MPtr *)new_Bbsw3MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bbsw3MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bbsw3M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bbsw3MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bbsw3M",0,0)) SWIG_fail;
  {
    try {
      result = (Bbsw3MPtr *)new_Bbsw3MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bbsw3MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bbsw3M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Bbsw3M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Bbsw3M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Bbsw3M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Bbsw3MPtr::Bbsw3MPtr(Handle< YieldTermStructure > const &)\n"
    "    Bbsw3MPtr::Bbsw3MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Bbsw3M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bbsw3MPtr *arg1 = (Bbsw3MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Bbsw3M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Bbsw3MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bbsw3M" "', argument " "1"" of type '" "Bbsw3MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Bbsw3MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Bbsw3M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Bbsw3MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Bbsw4M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Bbsw4MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bbsw4M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Bbsw4M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bbsw4M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Bbsw4MPtr *)new_Bbsw4MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bbsw4MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bbsw4M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bbsw4MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bbsw4M",0,0)) SWIG_fail;
  {
    try {
      result = (Bbsw4MPtr *)new_Bbsw4MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bbsw4MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bbsw4M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Bbsw4M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Bbsw4M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Bbsw4M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Bbsw4MPtr::Bbsw4MPtr(Handle< YieldTermStructure > const &)\n"
    "    Bbsw4MPtr::Bbsw4MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Bbsw4M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bbsw4MPtr *arg1 = (Bbsw4MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Bbsw4M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Bbsw4MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bbsw4M" "', argument " "1"" of type '" "Bbsw4MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Bbsw4MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Bbsw4M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Bbsw4MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Bbsw5M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Bbsw5MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bbsw5M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Bbsw5M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bbsw5M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Bbsw5MPtr *)new_Bbsw5MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bbsw5MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bbsw5M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bbsw5MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bbsw5M",0,0)) SWIG_fail;
  {
    try {
      result = (Bbsw5MPtr *)new_Bbsw5MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bbsw5MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bbsw5M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Bbsw5M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Bbsw5M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Bbsw5M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Bbsw5MPtr::Bbsw5MPtr(Handle< YieldTermStructure > const &)\n"
    "    Bbsw5MPtr::Bbsw5MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Bbsw5M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bbsw5MPtr *arg1 = (Bbsw5MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Bbsw5M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Bbsw5MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bbsw5M" "', argument " "1"" of type '" "Bbsw5MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Bbsw5MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Bbsw5M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Bbsw5MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Bbsw6M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Bbsw6MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bbsw6M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Bbsw6M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bbsw6M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Bbsw6MPtr *)new_Bbsw6MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bbsw6MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bbsw6M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bbsw6MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bbsw6M",0,0)) SWIG_fail;
  {
    try {
      result = (Bbsw6MPtr *)new_Bbsw6MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bbsw6MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bbsw6M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Bbsw6M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Bbsw6M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Bbsw6M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Bbsw6MPtr::Bbsw6MPtr(Handle< YieldTermStructure > const &)\n"
    "    Bbsw6MPtr::Bbsw6MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Bbsw6M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bbsw6MPtr *arg1 = (Bbsw6MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Bbsw6M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Bbsw6MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bbsw6M" "', argument " "1"" of type '" "Bbsw6MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Bbsw6MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Bbsw6M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Bbsw6MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Bkbm__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BkbmPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bkbm",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Bkbm" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bkbm" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Bkbm" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bkbm" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (BkbmPtr *)new_BkbmPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BkbmPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bkbm__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BkbmPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bkbm",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Bkbm" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bkbm" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (BkbmPtr *)new_BkbmPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BkbmPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bkbm(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Bkbm__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_Bkbm__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Bkbm'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BkbmPtr::BkbmPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    BkbmPtr::BkbmPtr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Bkbm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BkbmPtr *arg1 = (BkbmPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Bkbm",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BkbmPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bkbm" "', argument " "1"" of type '" "BkbmPtr *""'"); 
  }
  arg1 = reinterpret_cast< BkbmPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Bkbm_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BkbmPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Bkbm1M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Bkbm1MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bkbm1M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Bkbm1M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bkbm1M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Bkbm1MPtr *)new_Bkbm1MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bkbm1MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bkbm1M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bkbm1MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bkbm1M",0,0)) SWIG_fail;
  {
    try {
      result = (Bkbm1MPtr *)new_Bkbm1MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bkbm1MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bkbm1M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Bkbm1M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Bkbm1M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Bkbm1M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Bkbm1MPtr::Bkbm1MPtr(Handle< YieldTermStructure > const &)\n"
    "    Bkbm1MPtr::Bkbm1MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Bkbm1M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bkbm1MPtr *arg1 = (Bkbm1MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Bkbm1M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Bkbm1MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bkbm1M" "', argument " "1"" of type '" "Bkbm1MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Bkbm1MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Bkbm1M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Bkbm1MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Bkbm2M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Bkbm2MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bkbm2M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Bkbm2M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bkbm2M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Bkbm2MPtr *)new_Bkbm2MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bkbm2MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bkbm2M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bkbm2MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bkbm2M",0,0)) SWIG_fail;
  {
    try {
      result = (Bkbm2MPtr *)new_Bkbm2MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bkbm2MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bkbm2M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Bkbm2M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Bkbm2M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Bkbm2M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Bkbm2MPtr::Bkbm2MPtr(Handle< YieldTermStructure > const &)\n"
    "    Bkbm2MPtr::Bkbm2MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Bkbm2M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bkbm2MPtr *arg1 = (Bkbm2MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Bkbm2M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Bkbm2MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bkbm2M" "', argument " "1"" of type '" "Bkbm2MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Bkbm2MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Bkbm2M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Bkbm2MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Bkbm3M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Bkbm3MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bkbm3M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Bkbm3M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bkbm3M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Bkbm3MPtr *)new_Bkbm3MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bkbm3MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bkbm3M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bkbm3MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bkbm3M",0,0)) SWIG_fail;
  {
    try {
      result = (Bkbm3MPtr *)new_Bkbm3MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bkbm3MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bkbm3M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Bkbm3M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Bkbm3M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Bkbm3M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Bkbm3MPtr::Bkbm3MPtr(Handle< YieldTermStructure > const &)\n"
    "    Bkbm3MPtr::Bkbm3MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Bkbm3M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bkbm3MPtr *arg1 = (Bkbm3MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Bkbm3M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Bkbm3MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bkbm3M" "', argument " "1"" of type '" "Bkbm3MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Bkbm3MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Bkbm3M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Bkbm3MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Bkbm4M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Bkbm4MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bkbm4M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Bkbm4M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bkbm4M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Bkbm4MPtr *)new_Bkbm4MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bkbm4MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bkbm4M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bkbm4MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bkbm4M",0,0)) SWIG_fail;
  {
    try {
      result = (Bkbm4MPtr *)new_Bkbm4MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bkbm4MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bkbm4M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Bkbm4M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Bkbm4M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Bkbm4M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Bkbm4MPtr::Bkbm4MPtr(Handle< YieldTermStructure > const &)\n"
    "    Bkbm4MPtr::Bkbm4MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Bkbm4M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bkbm4MPtr *arg1 = (Bkbm4MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Bkbm4M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Bkbm4MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bkbm4M" "', argument " "1"" of type '" "Bkbm4MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Bkbm4MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Bkbm4M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Bkbm4MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Bkbm5M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Bkbm5MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bkbm5M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Bkbm5M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bkbm5M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Bkbm5MPtr *)new_Bkbm5MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bkbm5MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bkbm5M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bkbm5MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bkbm5M",0,0)) SWIG_fail;
  {
    try {
      result = (Bkbm5MPtr *)new_Bkbm5MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bkbm5MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bkbm5M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Bkbm5M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Bkbm5M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Bkbm5M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Bkbm5MPtr::Bkbm5MPtr(Handle< YieldTermStructure > const &)\n"
    "    Bkbm5MPtr::Bkbm5MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Bkbm5M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bkbm5MPtr *arg1 = (Bkbm5MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Bkbm5M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Bkbm5MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bkbm5M" "', argument " "1"" of type '" "Bkbm5MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Bkbm5MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Bkbm5M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Bkbm5MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Bkbm6M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Bkbm6MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bkbm6M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Bkbm6M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bkbm6M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Bkbm6MPtr *)new_Bkbm6MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bkbm6MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bkbm6M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bkbm6MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bkbm6M",0,0)) SWIG_fail;
  {
    try {
      result = (Bkbm6MPtr *)new_Bkbm6MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bkbm6MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bkbm6M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Bkbm6M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Bkbm6M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Bkbm6M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Bkbm6MPtr::Bkbm6MPtr(Handle< YieldTermStructure > const &)\n"
    "    Bkbm6MPtr::Bkbm6MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Bkbm6M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bkbm6MPtr *arg1 = (Bkbm6MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Bkbm6M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Bkbm6MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bkbm6M" "', argument " "1"" of type '" "Bkbm6MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Bkbm6MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Bkbm6M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Bkbm6MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  EuriborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Euribor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (EuriborPtr *)new_EuriborPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EuriborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EuriborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (EuriborPtr *)new_EuriborPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EuriborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_Euribor__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EuriborPtr::EuriborPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    EuriborPtr::EuriborPtr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EuriborPtr *arg1 = (EuriborPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EuriborPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor" "', argument " "1"" of type '" "EuriborPtr *""'"); 
  }
  arg1 = reinterpret_cast< EuriborPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EuriborPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EuriborSW__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EuriborSWPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EuriborSW",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EuriborSW" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSW" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (EuriborSWPtr *)new_EuriborSWPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EuriborSWPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EuriborSW__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EuriborSWPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EuriborSW",0,0)) SWIG_fail;
  {
    try {
      result = (EuriborSWPtr *)new_EuriborSWPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EuriborSWPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EuriborSW(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_EuriborSW__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EuriborSW__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EuriborSW'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EuriborSWPtr::EuriborSWPtr(Handle< YieldTermStructure > const &)\n"
    "    EuriborSWPtr::EuriborSWPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EuriborSW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EuriborSWPtr *arg1 = (EuriborSWPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EuriborSW",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EuriborSWPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EuriborSW" "', argument " "1"" of type '" "EuriborSWPtr *""'"); 
  }
  arg1 = reinterpret_cast< EuriborSWPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EuriborSW_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EuriborSWPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor2W__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor2WPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor2W",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor2W" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor2W" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor2WPtr *)new_Euribor2WPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor2WPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor2W__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor2WPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor2W",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor2WPtr *)new_Euribor2WPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor2WPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor2W(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor2W__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor2W__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor2W'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor2WPtr::Euribor2WPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor2WPtr::Euribor2WPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor2W(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor2WPtr *arg1 = (Euribor2WPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor2W",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor2WPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor2W" "', argument " "1"" of type '" "Euribor2WPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor2WPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor2W_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor2WPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor3W__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor3WPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor3W",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor3W" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor3W" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor3WPtr *)new_Euribor3WPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor3WPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor3W__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor3WPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor3W",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor3WPtr *)new_Euribor3WPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor3WPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor3W(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor3W__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor3W__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor3W'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor3WPtr::Euribor3WPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor3WPtr::Euribor3WPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor3W(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor3WPtr *arg1 = (Euribor3WPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor3W",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor3WPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor3W" "', argument " "1"" of type '" "Euribor3WPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor3WPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor3W_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor3WPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor1M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor1MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor1M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor1M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor1M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor1MPtr *)new_Euribor1MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor1MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor1M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor1MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor1M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor1MPtr *)new_Euribor1MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor1MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor1M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor1M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor1M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor1M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor1MPtr::Euribor1MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor1MPtr::Euribor1MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor1M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor1MPtr *arg1 = (Euribor1MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor1M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor1MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor1M" "', argument " "1"" of type '" "Euribor1MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor1MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor1M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor1MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor2M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor2MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor2M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor2M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor2M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor2MPtr *)new_Euribor2MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor2MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor2M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor2MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor2M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor2MPtr *)new_Euribor2MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor2MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor2M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor2M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor2M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor2M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor2MPtr::Euribor2MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor2MPtr::Euribor2MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor2M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor2MPtr *arg1 = (Euribor2MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor2M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor2MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor2M" "', argument " "1"" of type '" "Euribor2MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor2MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor2M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor2MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor3M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor3MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor3M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor3M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor3M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor3MPtr *)new_Euribor3MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor3MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor3M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor3MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor3M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor3MPtr *)new_Euribor3MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor3MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor3M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor3M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor3M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor3M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor3MPtr::Euribor3MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor3MPtr::Euribor3MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor3M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor3MPtr *arg1 = (Euribor3MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor3M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor3MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor3M" "', argument " "1"" of type '" "Euribor3MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor3MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor3M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor3MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor4M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor4MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor4M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor4M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor4M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor4MPtr *)new_Euribor4MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor4MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor4M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor4MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor4M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor4MPtr *)new_Euribor4MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor4MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor4M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor4M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor4M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor4M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor4MPtr::Euribor4MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor4MPtr::Euribor4MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor4M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor4MPtr *arg1 = (Euribor4MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor4M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor4MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor4M" "', argument " "1"" of type '" "Euribor4MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor4MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor4M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor4MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor5M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor5MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor5M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor5M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor5M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor5MPtr *)new_Euribor5MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor5MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor5M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor5MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor5M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor5MPtr *)new_Euribor5MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor5MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor5M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor5M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor5M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor5M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor5MPtr::Euribor5MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor5MPtr::Euribor5MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor5M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor5MPtr *arg1 = (Euribor5MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor5M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor5MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor5M" "', argument " "1"" of type '" "Euribor5MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor5MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor5M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor5MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor6M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor6MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor6M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor6M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor6M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor6MPtr *)new_Euribor6MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor6MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor6M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor6MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor6M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor6MPtr *)new_Euribor6MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor6MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor6M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor6M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor6M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor6M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor6MPtr::Euribor6MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor6MPtr::Euribor6MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor6M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor6MPtr *arg1 = (Euribor6MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor6M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor6MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor6M" "', argument " "1"" of type '" "Euribor6MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor6MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor6M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor6MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor7M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor7MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor7M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor7M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor7M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor7MPtr *)new_Euribor7MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor7MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor7M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor7MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor7M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor7MPtr *)new_Euribor7MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor7MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor7M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor7M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor7M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor7M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor7MPtr::Euribor7MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor7MPtr::Euribor7MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor7M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor7MPtr *arg1 = (Euribor7MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor7M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor7MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor7M" "', argument " "1"" of type '" "Euribor7MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor7MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor7M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor7MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor8M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor8MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor8M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor8M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor8M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor8MPtr *)new_Euribor8MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor8MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor8M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor8MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor8M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor8MPtr *)new_Euribor8MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor8MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor8M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor8M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor8M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor8M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor8MPtr::Euribor8MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor8MPtr::Euribor8MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor8M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor8MPtr *arg1 = (Euribor8MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor8M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor8MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor8M" "', argument " "1"" of type '" "Euribor8MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor8MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor8M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor8MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor9M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor9MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor9M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor9M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor9M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor9MPtr *)new_Euribor9MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor9MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor9M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor9MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor9M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor9MPtr *)new_Euribor9MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor9MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor9M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor9M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor9M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor9M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor9MPtr::Euribor9MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor9MPtr::Euribor9MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor9M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor9MPtr *arg1 = (Euribor9MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor9M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor9MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor9M" "', argument " "1"" of type '" "Euribor9MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor9MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor9M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor9MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor10M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor10MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor10M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor10M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor10M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor10MPtr *)new_Euribor10MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor10MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor10M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor10MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor10M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor10MPtr *)new_Euribor10MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor10MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor10M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor10M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor10M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor10M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor10MPtr::Euribor10MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor10MPtr::Euribor10MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor10M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor10MPtr *arg1 = (Euribor10MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor10M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor10MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor10M" "', argument " "1"" of type '" "Euribor10MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor10MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor10M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor10MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor11M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor11MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor11M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor11M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor11M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor11MPtr *)new_Euribor11MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor11MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor11M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor11MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor11M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor11MPtr *)new_Euribor11MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor11MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor11M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor11M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor11M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor11M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor11MPtr::Euribor11MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor11MPtr::Euribor11MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor11M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor11MPtr *arg1 = (Euribor11MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor11M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor11MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor11M" "', argument " "1"" of type '" "Euribor11MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor11MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor11M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor11MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor1Y__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor1YPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor1Y",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor1Y" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor1Y" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor1YPtr *)new_Euribor1YPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor1YPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor1Y__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor1YPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor1Y",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor1YPtr *)new_Euribor1YPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor1YPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor1Y(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor1Y__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor1Y__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor1Y'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor1YPtr::Euribor1YPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor1YPtr::Euribor1YPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor1Y(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor1YPtr *arg1 = (Euribor1YPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor1Y",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor1YPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor1Y" "', argument " "1"" of type '" "Euribor1YPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor1YPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor1Y_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor1YPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor365__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Euribor365Ptr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor365" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor365" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Euribor365" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor365" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (Euribor365Ptr *)new_Euribor365Ptr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365Ptr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor365Ptr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor365" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor365" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (Euribor365Ptr *)new_Euribor365Ptr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365Ptr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor365__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_Euribor365__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor365'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor365Ptr::Euribor365Ptr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    Euribor365Ptr::Euribor365Ptr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor365(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365Ptr *arg1 = (Euribor365Ptr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor365",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor365Ptr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor365" "', argument " "1"" of type '" "Euribor365Ptr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor365Ptr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor365_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor365Ptr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor365_SW__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor365_SWPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_SW",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor365_SW" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor365_SW" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor365_SWPtr *)new_Euribor365_SWPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_SWPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_SW__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_SWPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_SW",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor365_SWPtr *)new_Euribor365_SWPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_SWPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_SW(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor365_SW__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor365_SW__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor365_SW'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor365_SWPtr::Euribor365_SWPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor365_SWPtr::Euribor365_SWPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor365_SW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_SWPtr *arg1 = (Euribor365_SWPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor365_SW",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor365_SWPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor365_SW" "', argument " "1"" of type '" "Euribor365_SWPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor365_SWPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor365_SW_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor365_SWPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor365_2W__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor365_2WPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_2W",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor365_2W" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor365_2W" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor365_2WPtr *)new_Euribor365_2WPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_2WPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_2W__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_2WPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_2W",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor365_2WPtr *)new_Euribor365_2WPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_2WPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_2W(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor365_2W__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor365_2W__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor365_2W'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor365_2WPtr::Euribor365_2WPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor365_2WPtr::Euribor365_2WPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor365_2W(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_2WPtr *arg1 = (Euribor365_2WPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor365_2W",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor365_2WPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor365_2W" "', argument " "1"" of type '" "Euribor365_2WPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor365_2WPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor365_2W_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor365_2WPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor365_3W__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor365_3WPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_3W",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor365_3W" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor365_3W" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor365_3WPtr *)new_Euribor365_3WPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_3WPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_3W__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_3WPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_3W",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor365_3WPtr *)new_Euribor365_3WPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_3WPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_3W(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor365_3W__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor365_3W__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor365_3W'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor365_3WPtr::Euribor365_3WPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor365_3WPtr::Euribor365_3WPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor365_3W(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_3WPtr *arg1 = (Euribor365_3WPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor365_3W",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor365_3WPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor365_3W" "', argument " "1"" of type '" "Euribor365_3WPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor365_3WPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor365_3W_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor365_3WPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor365_1M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor365_1MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_1M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor365_1M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor365_1M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor365_1MPtr *)new_Euribor365_1MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_1MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_1M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_1MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_1M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor365_1MPtr *)new_Euribor365_1MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_1MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_1M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor365_1M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor365_1M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor365_1M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor365_1MPtr::Euribor365_1MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor365_1MPtr::Euribor365_1MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor365_1M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_1MPtr *arg1 = (Euribor365_1MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor365_1M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor365_1MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor365_1M" "', argument " "1"" of type '" "Euribor365_1MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor365_1MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor365_1M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor365_1MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor365_2M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor365_2MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_2M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor365_2M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor365_2M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor365_2MPtr *)new_Euribor365_2MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_2MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_2M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_2MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_2M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor365_2MPtr *)new_Euribor365_2MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_2MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_2M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor365_2M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor365_2M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor365_2M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor365_2MPtr::Euribor365_2MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor365_2MPtr::Euribor365_2MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor365_2M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_2MPtr *arg1 = (Euribor365_2MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor365_2M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor365_2MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor365_2M" "', argument " "1"" of type '" "Euribor365_2MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor365_2MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor365_2M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor365_2MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor365_3M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor365_3MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_3M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor365_3M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor365_3M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor365_3MPtr *)new_Euribor365_3MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_3MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_3M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_3MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_3M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor365_3MPtr *)new_Euribor365_3MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_3MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_3M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor365_3M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor365_3M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor365_3M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor365_3MPtr::Euribor365_3MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor365_3MPtr::Euribor365_3MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor365_3M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_3MPtr *arg1 = (Euribor365_3MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor365_3M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor365_3MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor365_3M" "', argument " "1"" of type '" "Euribor365_3MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor365_3MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor365_3M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor365_3MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor365_4M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor365_4MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_4M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor365_4M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor365_4M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor365_4MPtr *)new_Euribor365_4MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_4MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_4M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_4MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_4M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor365_4MPtr *)new_Euribor365_4MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_4MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_4M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor365_4M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor365_4M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor365_4M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor365_4MPtr::Euribor365_4MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor365_4MPtr::Euribor365_4MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor365_4M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_4MPtr *arg1 = (Euribor365_4MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor365_4M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor365_4MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor365_4M" "', argument " "1"" of type '" "Euribor365_4MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor365_4MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor365_4M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor365_4MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor365_5M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor365_5MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_5M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor365_5M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor365_5M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor365_5MPtr *)new_Euribor365_5MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_5MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_5M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_5MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_5M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor365_5MPtr *)new_Euribor365_5MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_5MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_5M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor365_5M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor365_5M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor365_5M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor365_5MPtr::Euribor365_5MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor365_5MPtr::Euribor365_5MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor365_5M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_5MPtr *arg1 = (Euribor365_5MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor365_5M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor365_5MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor365_5M" "', argument " "1"" of type '" "Euribor365_5MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor365_5MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor365_5M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor365_5MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor365_6M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor365_6MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_6M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor365_6M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor365_6M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor365_6MPtr *)new_Euribor365_6MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_6MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_6M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_6MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_6M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor365_6MPtr *)new_Euribor365_6MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_6MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_6M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor365_6M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor365_6M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor365_6M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor365_6MPtr::Euribor365_6MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor365_6MPtr::Euribor365_6MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor365_6M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_6MPtr *arg1 = (Euribor365_6MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor365_6M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor365_6MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor365_6M" "', argument " "1"" of type '" "Euribor365_6MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor365_6MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor365_6M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor365_6MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor365_7M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor365_7MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_7M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor365_7M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor365_7M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor365_7MPtr *)new_Euribor365_7MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_7MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_7M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_7MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_7M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor365_7MPtr *)new_Euribor365_7MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_7MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_7M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor365_7M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor365_7M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor365_7M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor365_7MPtr::Euribor365_7MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor365_7MPtr::Euribor365_7MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor365_7M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_7MPtr *arg1 = (Euribor365_7MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor365_7M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor365_7MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor365_7M" "', argument " "1"" of type '" "Euribor365_7MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor365_7MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor365_7M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor365_7MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor365_8M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor365_8MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_8M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor365_8M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor365_8M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor365_8MPtr *)new_Euribor365_8MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_8MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_8M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_8MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_8M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor365_8MPtr *)new_Euribor365_8MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_8MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_8M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor365_8M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor365_8M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor365_8M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor365_8MPtr::Euribor365_8MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor365_8MPtr::Euribor365_8MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor365_8M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_8MPtr *arg1 = (Euribor365_8MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor365_8M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor365_8MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor365_8M" "', argument " "1"" of type '" "Euribor365_8MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor365_8MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor365_8M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor365_8MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor365_9M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor365_9MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_9M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor365_9M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor365_9M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor365_9MPtr *)new_Euribor365_9MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_9MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_9M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_9MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_9M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor365_9MPtr *)new_Euribor365_9MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_9MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_9M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor365_9M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor365_9M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor365_9M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor365_9MPtr::Euribor365_9MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor365_9MPtr::Euribor365_9MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor365_9M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_9MPtr *arg1 = (Euribor365_9MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor365_9M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor365_9MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor365_9M" "', argument " "1"" of type '" "Euribor365_9MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor365_9MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor365_9M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor365_9MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor365_10M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor365_10MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_10M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor365_10M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor365_10M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor365_10MPtr *)new_Euribor365_10MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_10MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_10M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_10MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_10M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor365_10MPtr *)new_Euribor365_10MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_10MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_10M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor365_10M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor365_10M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor365_10M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor365_10MPtr::Euribor365_10MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor365_10MPtr::Euribor365_10MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor365_10M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_10MPtr *arg1 = (Euribor365_10MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor365_10M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor365_10MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor365_10M" "', argument " "1"" of type '" "Euribor365_10MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor365_10MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor365_10M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor365_10MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor365_11M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor365_11MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_11M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor365_11M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor365_11M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor365_11MPtr *)new_Euribor365_11MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_11MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_11M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_11MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_11M",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor365_11MPtr *)new_Euribor365_11MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_11MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_11M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor365_11M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor365_11M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor365_11M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor365_11MPtr::Euribor365_11MPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor365_11MPtr::Euribor365_11MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor365_11M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_11MPtr *arg1 = (Euribor365_11MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor365_11M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor365_11MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor365_11M" "', argument " "1"" of type '" "Euribor365_11MPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor365_11MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor365_11M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor365_11MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Euribor365_1Y__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Euribor365_1YPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_1Y",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Euribor365_1Y" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Euribor365_1Y" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (Euribor365_1YPtr *)new_Euribor365_1YPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_1YPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_1Y__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_1YPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Euribor365_1Y",0,0)) SWIG_fail;
  {
    try {
      result = (Euribor365_1YPtr *)new_Euribor365_1YPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Euribor365_1YPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Euribor365_1Y(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Euribor365_1Y__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Euribor365_1Y__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Euribor365_1Y'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Euribor365_1YPtr::Euribor365_1YPtr(Handle< YieldTermStructure > const &)\n"
    "    Euribor365_1YPtr::Euribor365_1YPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Euribor365_1Y(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Euribor365_1YPtr *arg1 = (Euribor365_1YPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Euribor365_1Y",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Euribor365_1YPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Euribor365_1Y" "', argument " "1"" of type '" "Euribor365_1YPtr *""'"); 
  }
  arg1 = reinterpret_cast< Euribor365_1YPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Euribor365_1Y_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Euribor365_1YPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EURLibor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  EURLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EURLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EURLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EURLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EURLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (EURLiborPtr *)new_EURLiborPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EURLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EURLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EURLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (EURLiborPtr *)new_EURLiborPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EURLibor__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_EURLibor__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EURLibor'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EURLiborPtr::EURLiborPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    EURLiborPtr::EURLiborPtr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EURLibor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLiborPtr *arg1 = (EURLiborPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EURLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EURLiborPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EURLibor" "', argument " "1"" of type '" "EURLiborPtr *""'"); 
  }
  arg1 = reinterpret_cast< EURLiborPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EURLibor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EURLiborPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EURLiborSW__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EURLiborSWPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLiborSW",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EURLiborSW" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EURLiborSW" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (EURLiborSWPtr *)new_EURLiborSWPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLiborSWPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLiborSW__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLiborSWPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLiborSW",0,0)) SWIG_fail;
  {
    try {
      result = (EURLiborSWPtr *)new_EURLiborSWPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLiborSWPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLiborSW(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_EURLiborSW__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EURLiborSW__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EURLiborSW'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EURLiborSWPtr::EURLiborSWPtr(Handle< YieldTermStructure > const &)\n"
    "    EURLiborSWPtr::EURLiborSWPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EURLiborSW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLiborSWPtr *arg1 = (EURLiborSWPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EURLiborSW",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EURLiborSWPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EURLiborSW" "', argument " "1"" of type '" "EURLiborSWPtr *""'"); 
  }
  arg1 = reinterpret_cast< EURLiborSWPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EURLiborSW_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EURLiborSWPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EURLibor2W__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EURLibor2WPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor2W",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EURLibor2W" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EURLibor2W" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (EURLibor2WPtr *)new_EURLibor2WPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor2WPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor2W__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor2WPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor2W",0,0)) SWIG_fail;
  {
    try {
      result = (EURLibor2WPtr *)new_EURLibor2WPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor2WPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor2W(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_EURLibor2W__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EURLibor2W__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EURLibor2W'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EURLibor2WPtr::EURLibor2WPtr(Handle< YieldTermStructure > const &)\n"
    "    EURLibor2WPtr::EURLibor2WPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EURLibor2W(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor2WPtr *arg1 = (EURLibor2WPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EURLibor2W",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EURLibor2WPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EURLibor2W" "', argument " "1"" of type '" "EURLibor2WPtr *""'"); 
  }
  arg1 = reinterpret_cast< EURLibor2WPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EURLibor2W_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EURLibor2WPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EURLibor1M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EURLibor1MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor1M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EURLibor1M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EURLibor1M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (EURLibor1MPtr *)new_EURLibor1MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor1MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor1M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor1MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor1M",0,0)) SWIG_fail;
  {
    try {
      result = (EURLibor1MPtr *)new_EURLibor1MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor1MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor1M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_EURLibor1M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EURLibor1M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EURLibor1M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EURLibor1MPtr::EURLibor1MPtr(Handle< YieldTermStructure > const &)\n"
    "    EURLibor1MPtr::EURLibor1MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EURLibor1M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor1MPtr *arg1 = (EURLibor1MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EURLibor1M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EURLibor1MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EURLibor1M" "', argument " "1"" of type '" "EURLibor1MPtr *""'"); 
  }
  arg1 = reinterpret_cast< EURLibor1MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EURLibor1M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EURLibor1MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EURLibor2M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EURLibor2MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor2M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EURLibor2M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EURLibor2M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (EURLibor2MPtr *)new_EURLibor2MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor2MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor2M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor2MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor2M",0,0)) SWIG_fail;
  {
    try {
      result = (EURLibor2MPtr *)new_EURLibor2MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor2MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor2M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_EURLibor2M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EURLibor2M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EURLibor2M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EURLibor2MPtr::EURLibor2MPtr(Handle< YieldTermStructure > const &)\n"
    "    EURLibor2MPtr::EURLibor2MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EURLibor2M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor2MPtr *arg1 = (EURLibor2MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EURLibor2M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EURLibor2MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EURLibor2M" "', argument " "1"" of type '" "EURLibor2MPtr *""'"); 
  }
  arg1 = reinterpret_cast< EURLibor2MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EURLibor2M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EURLibor2MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EURLibor3M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EURLibor3MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor3M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EURLibor3M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EURLibor3M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (EURLibor3MPtr *)new_EURLibor3MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor3MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor3M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor3MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor3M",0,0)) SWIG_fail;
  {
    try {
      result = (EURLibor3MPtr *)new_EURLibor3MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor3MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor3M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_EURLibor3M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EURLibor3M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EURLibor3M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EURLibor3MPtr::EURLibor3MPtr(Handle< YieldTermStructure > const &)\n"
    "    EURLibor3MPtr::EURLibor3MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EURLibor3M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor3MPtr *arg1 = (EURLibor3MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EURLibor3M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EURLibor3MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EURLibor3M" "', argument " "1"" of type '" "EURLibor3MPtr *""'"); 
  }
  arg1 = reinterpret_cast< EURLibor3MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EURLibor3M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EURLibor3MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EURLibor4M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EURLibor4MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor4M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EURLibor4M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EURLibor4M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (EURLibor4MPtr *)new_EURLibor4MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor4MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor4M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor4MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor4M",0,0)) SWIG_fail;
  {
    try {
      result = (EURLibor4MPtr *)new_EURLibor4MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor4MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor4M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_EURLibor4M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EURLibor4M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EURLibor4M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EURLibor4MPtr::EURLibor4MPtr(Handle< YieldTermStructure > const &)\n"
    "    EURLibor4MPtr::EURLibor4MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EURLibor4M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor4MPtr *arg1 = (EURLibor4MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EURLibor4M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EURLibor4MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EURLibor4M" "', argument " "1"" of type '" "EURLibor4MPtr *""'"); 
  }
  arg1 = reinterpret_cast< EURLibor4MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EURLibor4M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EURLibor4MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EURLibor5M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EURLibor5MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor5M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EURLibor5M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EURLibor5M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (EURLibor5MPtr *)new_EURLibor5MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor5MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor5M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor5MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor5M",0,0)) SWIG_fail;
  {
    try {
      result = (EURLibor5MPtr *)new_EURLibor5MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor5MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor5M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_EURLibor5M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EURLibor5M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EURLibor5M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EURLibor5MPtr::EURLibor5MPtr(Handle< YieldTermStructure > const &)\n"
    "    EURLibor5MPtr::EURLibor5MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EURLibor5M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor5MPtr *arg1 = (EURLibor5MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EURLibor5M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EURLibor5MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EURLibor5M" "', argument " "1"" of type '" "EURLibor5MPtr *""'"); 
  }
  arg1 = reinterpret_cast< EURLibor5MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EURLibor5M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EURLibor5MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EURLibor6M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EURLibor6MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor6M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EURLibor6M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EURLibor6M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (EURLibor6MPtr *)new_EURLibor6MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor6MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor6M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor6MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor6M",0,0)) SWIG_fail;
  {
    try {
      result = (EURLibor6MPtr *)new_EURLibor6MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor6MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor6M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_EURLibor6M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EURLibor6M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EURLibor6M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EURLibor6MPtr::EURLibor6MPtr(Handle< YieldTermStructure > const &)\n"
    "    EURLibor6MPtr::EURLibor6MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EURLibor6M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor6MPtr *arg1 = (EURLibor6MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EURLibor6M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EURLibor6MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EURLibor6M" "', argument " "1"" of type '" "EURLibor6MPtr *""'"); 
  }
  arg1 = reinterpret_cast< EURLibor6MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EURLibor6M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EURLibor6MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EURLibor7M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EURLibor7MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor7M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EURLibor7M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EURLibor7M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (EURLibor7MPtr *)new_EURLibor7MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor7MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor7M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor7MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor7M",0,0)) SWIG_fail;
  {
    try {
      result = (EURLibor7MPtr *)new_EURLibor7MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor7MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor7M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_EURLibor7M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EURLibor7M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EURLibor7M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EURLibor7MPtr::EURLibor7MPtr(Handle< YieldTermStructure > const &)\n"
    "    EURLibor7MPtr::EURLibor7MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EURLibor7M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor7MPtr *arg1 = (EURLibor7MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EURLibor7M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EURLibor7MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EURLibor7M" "', argument " "1"" of type '" "EURLibor7MPtr *""'"); 
  }
  arg1 = reinterpret_cast< EURLibor7MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EURLibor7M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EURLibor7MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EURLibor8M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EURLibor8MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor8M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EURLibor8M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EURLibor8M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (EURLibor8MPtr *)new_EURLibor8MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor8MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor8M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor8MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor8M",0,0)) SWIG_fail;
  {
    try {
      result = (EURLibor8MPtr *)new_EURLibor8MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor8MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor8M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_EURLibor8M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EURLibor8M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EURLibor8M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EURLibor8MPtr::EURLibor8MPtr(Handle< YieldTermStructure > const &)\n"
    "    EURLibor8MPtr::EURLibor8MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EURLibor8M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor8MPtr *arg1 = (EURLibor8MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EURLibor8M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EURLibor8MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EURLibor8M" "', argument " "1"" of type '" "EURLibor8MPtr *""'"); 
  }
  arg1 = reinterpret_cast< EURLibor8MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EURLibor8M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EURLibor8MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EURLibor9M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EURLibor9MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor9M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EURLibor9M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EURLibor9M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (EURLibor9MPtr *)new_EURLibor9MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor9MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor9M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor9MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor9M",0,0)) SWIG_fail;
  {
    try {
      result = (EURLibor9MPtr *)new_EURLibor9MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor9MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor9M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_EURLibor9M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EURLibor9M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EURLibor9M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EURLibor9MPtr::EURLibor9MPtr(Handle< YieldTermStructure > const &)\n"
    "    EURLibor9MPtr::EURLibor9MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EURLibor9M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor9MPtr *arg1 = (EURLibor9MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EURLibor9M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EURLibor9MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EURLibor9M" "', argument " "1"" of type '" "EURLibor9MPtr *""'"); 
  }
  arg1 = reinterpret_cast< EURLibor9MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EURLibor9M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EURLibor9MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EURLibor10M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EURLibor10MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor10M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EURLibor10M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EURLibor10M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (EURLibor10MPtr *)new_EURLibor10MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor10MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor10M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor10MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor10M",0,0)) SWIG_fail;
  {
    try {
      result = (EURLibor10MPtr *)new_EURLibor10MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor10MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor10M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_EURLibor10M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EURLibor10M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EURLibor10M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EURLibor10MPtr::EURLibor10MPtr(Handle< YieldTermStructure > const &)\n"
    "    EURLibor10MPtr::EURLibor10MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EURLibor10M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor10MPtr *arg1 = (EURLibor10MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EURLibor10M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EURLibor10MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EURLibor10M" "', argument " "1"" of type '" "EURLibor10MPtr *""'"); 
  }
  arg1 = reinterpret_cast< EURLibor10MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EURLibor10M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EURLibor10MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EURLibor11M__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EURLibor11MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor11M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EURLibor11M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EURLibor11M" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (EURLibor11MPtr *)new_EURLibor11MPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor11MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor11M__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor11MPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor11M",0,0)) SWIG_fail;
  {
    try {
      result = (EURLibor11MPtr *)new_EURLibor11MPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor11MPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor11M(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_EURLibor11M__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EURLibor11M__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EURLibor11M'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EURLibor11MPtr::EURLibor11MPtr(Handle< YieldTermStructure > const &)\n"
    "    EURLibor11MPtr::EURLibor11MPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EURLibor11M(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor11MPtr *arg1 = (EURLibor11MPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EURLibor11M",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EURLibor11MPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EURLibor11M" "', argument " "1"" of type '" "EURLibor11MPtr *""'"); 
  }
  arg1 = reinterpret_cast< EURLibor11MPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EURLibor11M_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EURLibor11MPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EURLibor1Y__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EURLibor1YPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor1Y",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EURLibor1Y" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EURLibor1Y" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (EURLibor1YPtr *)new_EURLibor1YPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor1YPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor1Y__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor1YPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EURLibor1Y",0,0)) SWIG_fail;
  {
    try {
      result = (EURLibor1YPtr *)new_EURLibor1YPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EURLibor1YPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EURLibor1Y(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_EURLibor1Y__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EURLibor1Y__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EURLibor1Y'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EURLibor1YPtr::EURLibor1YPtr(Handle< YieldTermStructure > const &)\n"
    "    EURLibor1YPtr::EURLibor1YPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EURLibor1Y(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EURLibor1YPtr *arg1 = (EURLibor1YPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EURLibor1Y",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EURLibor1YPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EURLibor1Y" "', argument " "1"" of type '" "EURLibor1YPtr *""'"); 
  }
  arg1 = reinterpret_cast< EURLibor1YPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EURLibor1Y_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EURLibor1YPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GBPLibor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  GBPLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GBPLibor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GBPLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GBPLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GBPLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GBPLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (GBPLiborPtr *)new_GBPLiborPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GBPLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GBPLibor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  GBPLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GBPLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GBPLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GBPLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (GBPLiborPtr *)new_GBPLiborPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GBPLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GBPLibor(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_GBPLibor__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_GBPLibor__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GBPLibor'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    GBPLiborPtr::GBPLiborPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    GBPLiborPtr::GBPLiborPtr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_GBPLibor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GBPLiborPtr *arg1 = (GBPLiborPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GBPLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GBPLiborPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GBPLibor" "', argument " "1"" of type '" "GBPLiborPtr *""'"); 
  }
  arg1 = reinterpret_cast< GBPLiborPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GBPLibor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GBPLiborPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Jibar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  JibarPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Jibar",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Jibar" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Jibar" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Jibar" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Jibar" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (JibarPtr *)new_JibarPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_JibarPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Jibar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  JibarPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Jibar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Jibar" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Jibar" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (JibarPtr *)new_JibarPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_JibarPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Jibar(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Jibar__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_Jibar__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Jibar'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    JibarPtr::JibarPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    JibarPtr::JibarPtr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Jibar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  JibarPtr *arg1 = (JibarPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Jibar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_JibarPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Jibar" "', argument " "1"" of type '" "JibarPtr *""'"); 
  }
  arg1 = reinterpret_cast< JibarPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Jibar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_JibarPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_JPYLibor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  JPYLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_JPYLibor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_JPYLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JPYLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_JPYLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JPYLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (JPYLiborPtr *)new_JPYLiborPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_JPYLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_JPYLibor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  JPYLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_JPYLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_JPYLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JPYLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (JPYLiborPtr *)new_JPYLiborPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_JPYLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_JPYLibor(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_JPYLibor__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_JPYLibor__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_JPYLibor'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    JPYLiborPtr::JPYLiborPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    JPYLiborPtr::JPYLiborPtr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_JPYLibor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  JPYLiborPtr *arg1 = (JPYLiborPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_JPYLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_JPYLiborPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_JPYLibor" "', argument " "1"" of type '" "JPYLiborPtr *""'"); 
  }
  arg1 = reinterpret_cast< JPYLiborPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *JPYLibor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_JPYLiborPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_NZDLibor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  NZDLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NZDLibor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NZDLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NZDLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NZDLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NZDLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (NZDLiborPtr *)new_NZDLiborPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NZDLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NZDLibor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  NZDLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NZDLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NZDLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NZDLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (NZDLiborPtr *)new_NZDLiborPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NZDLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NZDLibor(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_NZDLibor__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_NZDLibor__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_NZDLibor'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    NZDLiborPtr::NZDLiborPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    NZDLiborPtr::NZDLiborPtr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_NZDLibor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NZDLiborPtr *arg1 = (NZDLiborPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NZDLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NZDLiborPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NZDLibor" "', argument " "1"" of type '" "NZDLiborPtr *""'"); 
  }
  arg1 = reinterpret_cast< NZDLiborPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NZDLibor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_NZDLiborPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SEKLibor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SEKLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SEKLibor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SEKLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SEKLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SEKLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SEKLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (SEKLiborPtr *)new_SEKLiborPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SEKLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SEKLibor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SEKLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SEKLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SEKLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SEKLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (SEKLiborPtr *)new_SEKLiborPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SEKLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SEKLibor(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_SEKLibor__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_SEKLibor__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SEKLibor'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SEKLiborPtr::SEKLiborPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    SEKLiborPtr::SEKLiborPtr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_SEKLibor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SEKLiborPtr *arg1 = (SEKLiborPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SEKLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SEKLiborPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SEKLibor" "', argument " "1"" of type '" "SEKLiborPtr *""'"); 
  }
  arg1 = reinterpret_cast< SEKLiborPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SEKLibor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SEKLiborPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Tibor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Tibor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Tibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Tibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Tibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Tibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (TiborPtr *)new_TiborPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Tibor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  TiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Tibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Tibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Tibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (TiborPtr *)new_TiborPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Tibor(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Tibor__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_Tibor__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Tibor'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    TiborPtr::TiborPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    TiborPtr::TiborPtr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Tibor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TiborPtr *arg1 = (TiborPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Tibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TiborPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Tibor" "', argument " "1"" of type '" "TiborPtr *""'"); 
  }
  arg1 = reinterpret_cast< TiborPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Tibor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_TiborPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_TRLibor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TRLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TRLibor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TRLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TRLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TRLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TRLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (TRLiborPtr *)new_TRLiborPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TRLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TRLibor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  TRLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TRLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TRLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TRLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (TRLiborPtr *)new_TRLiborPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TRLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TRLibor(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_TRLibor__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_TRLibor__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_TRLibor'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    TRLiborPtr::TRLiborPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    TRLiborPtr::TRLiborPtr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_TRLibor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TRLiborPtr *arg1 = (TRLiborPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_TRLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TRLiborPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TRLibor" "', argument " "1"" of type '" "TRLiborPtr *""'"); 
  }
  arg1 = reinterpret_cast< TRLiborPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TRLibor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_TRLiborPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_USDLibor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  USDLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_USDLibor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_USDLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_USDLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_USDLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_USDLibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (USDLiborPtr *)new_USDLiborPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_USDLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_USDLibor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  USDLiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_USDLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_USDLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_USDLibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (USDLiborPtr *)new_USDLiborPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_USDLiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_USDLibor(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_USDLibor__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_USDLibor__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_USDLibor'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    USDLiborPtr::USDLiborPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    USDLiborPtr::USDLiborPtr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_USDLibor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  USDLiborPtr *arg1 = (USDLiborPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_USDLibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_USDLiborPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_USDLibor" "', argument " "1"" of type '" "USDLiborPtr *""'"); 
  }
  arg1 = reinterpret_cast< USDLiborPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *USDLibor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_USDLiborPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Zibor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  ZiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Zibor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Zibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Zibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Zibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Zibor" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (ZiborPtr *)new_ZiborPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Zibor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  ZiborPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Zibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Zibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Zibor" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (ZiborPtr *)new_ZiborPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZiborPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Zibor(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Zibor__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_Zibor__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Zibor'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ZiborPtr::ZiborPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    ZiborPtr::ZiborPtr(Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Zibor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZiborPtr *arg1 = (ZiborPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Zibor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZiborPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Zibor" "', argument " "1"" of type '" "ZiborPtr *""'"); 
  }
  arg1 = reinterpret_cast< ZiborPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Zibor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ZiborPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Aonia__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  AoniaPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Aonia",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Aonia" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Aonia" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (AoniaPtr *)new_AoniaPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AoniaPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Aonia__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AoniaPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Aonia",0,0)) SWIG_fail;
  {
    try {
      result = (AoniaPtr *)new_AoniaPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AoniaPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Aonia(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Aonia__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Aonia__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Aonia'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    AoniaPtr::AoniaPtr(Handle< YieldTermStructure > const &)\n"
    "    AoniaPtr::AoniaPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Aonia(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AoniaPtr *arg1 = (AoniaPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Aonia",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AoniaPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Aonia" "', argument " "1"" of type '" "AoniaPtr *""'"); 
  }
  arg1 = reinterpret_cast< AoniaPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Aonia_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AoniaPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Eonia__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EoniaPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Eonia",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Eonia" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Eonia" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (EoniaPtr *)new_EoniaPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EoniaPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Eonia__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EoniaPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Eonia",0,0)) SWIG_fail;
  {
    try {
      result = (EoniaPtr *)new_EoniaPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EoniaPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Eonia(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Eonia__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Eonia__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Eonia'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EoniaPtr::EoniaPtr(Handle< YieldTermStructure > const &)\n"
    "    EoniaPtr::EoniaPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Eonia(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EoniaPtr *arg1 = (EoniaPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Eonia",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EoniaPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Eonia" "', argument " "1"" of type '" "EoniaPtr *""'"); 
  }
  arg1 = reinterpret_cast< EoniaPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Eonia_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EoniaPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Sonia__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SoniaPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Sonia",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Sonia" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Sonia" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (SoniaPtr *)new_SoniaPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SoniaPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Sonia__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SoniaPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Sonia",0,0)) SWIG_fail;
  {
    try {
      result = (SoniaPtr *)new_SoniaPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SoniaPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Sonia(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Sonia__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Sonia__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Sonia'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SoniaPtr::SoniaPtr(Handle< YieldTermStructure > const &)\n"
    "    SoniaPtr::SoniaPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Sonia(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SoniaPtr *arg1 = (SoniaPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Sonia",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SoniaPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Sonia" "', argument " "1"" of type '" "SoniaPtr *""'"); 
  }
  arg1 = reinterpret_cast< SoniaPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Sonia_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SoniaPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FedFunds__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  FedFundsPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FedFunds",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FedFunds" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FedFunds" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (FedFundsPtr *)new_FedFundsPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FedFundsPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FedFunds__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FedFundsPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FedFunds",0,0)) SWIG_fail;
  {
    try {
      result = (FedFundsPtr *)new_FedFundsPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FedFundsPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FedFunds(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_FedFunds__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_FedFunds__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FedFunds'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FedFundsPtr::FedFundsPtr(Handle< YieldTermStructure > const &)\n"
    "    FedFundsPtr::FedFundsPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FedFunds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FedFundsPtr *arg1 = (FedFundsPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FedFunds",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FedFundsPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FedFunds" "', argument " "1"" of type '" "FedFundsPtr *""'"); 
  }
  arg1 = reinterpret_cast< FedFundsPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FedFunds_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FedFundsPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Nzocr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  NzocrPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Nzocr",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Nzocr" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Nzocr" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (NzocrPtr *)new_NzocrPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NzocrPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Nzocr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NzocrPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Nzocr",0,0)) SWIG_fail;
  {
    try {
      result = (NzocrPtr *)new_NzocrPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NzocrPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Nzocr(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Nzocr__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Nzocr__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Nzocr'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    NzocrPtr::NzocrPtr(Handle< YieldTermStructure > const &)\n"
    "    NzocrPtr::NzocrPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Nzocr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NzocrPtr *arg1 = (NzocrPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Nzocr",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NzocrPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Nzocr" "', argument " "1"" of type '" "NzocrPtr *""'"); 
  }
  arg1 = reinterpret_cast< NzocrPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Nzocr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_NzocrPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EuriborSwapIsdaFixA__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  EuriborSwapIsdaFixAPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EuriborSwapIsdaFixA",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EuriborSwapIsdaFixA" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSwapIsdaFixA" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EuriborSwapIsdaFixA" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSwapIsdaFixA" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (EuriborSwapIsdaFixAPtr *)new_EuriborSwapIsdaFixAPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EuriborSwapIsdaFixAPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EuriborSwapIsdaFixA__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EuriborSwapIsdaFixAPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EuriborSwapIsdaFixA",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EuriborSwapIsdaFixA" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSwapIsdaFixA" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (EuriborSwapIsdaFixAPtr *)new_EuriborSwapIsdaFixAPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EuriborSwapIsdaFixAPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EuriborSwapIsdaFixA__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  EuriborSwapIsdaFixAPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EuriborSwapIsdaFixA",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EuriborSwapIsdaFixA" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSwapIsdaFixA" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EuriborSwapIsdaFixA" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSwapIsdaFixA" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_EuriborSwapIsdaFixA" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSwapIsdaFixA" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  {
    try {
      result = (EuriborSwapIsdaFixAPtr *)new_EuriborSwapIsdaFixAPtr__SWIG_2((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< YieldTermStructure > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EuriborSwapIsdaFixAPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EuriborSwapIsdaFixA(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EuriborSwapIsdaFixA__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_EuriborSwapIsdaFixA__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_EuriborSwapIsdaFixA__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EuriborSwapIsdaFixA'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EuriborSwapIsdaFixAPtr::EuriborSwapIsdaFixAPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    EuriborSwapIsdaFixAPtr::EuriborSwapIsdaFixAPtr(Period const &)\n"
    "    EuriborSwapIsdaFixAPtr::EuriborSwapIsdaFixAPtr(Period const &,Handle< YieldTermStructure > const &,Handle< YieldTermStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EuriborSwapIsdaFixA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EuriborSwapIsdaFixAPtr *arg1 = (EuriborSwapIsdaFixAPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EuriborSwapIsdaFixA",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EuriborSwapIsdaFixAPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EuriborSwapIsdaFixA" "', argument " "1"" of type '" "EuriborSwapIsdaFixAPtr *""'"); 
  }
  arg1 = reinterpret_cast< EuriborSwapIsdaFixAPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EuriborSwapIsdaFixA_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EuriborSwapIsdaFixAPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EuriborSwapIsdaFixB__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  EuriborSwapIsdaFixBPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EuriborSwapIsdaFixB",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EuriborSwapIsdaFixB" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSwapIsdaFixB" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EuriborSwapIsdaFixB" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSwapIsdaFixB" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (EuriborSwapIsdaFixBPtr *)new_EuriborSwapIsdaFixBPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EuriborSwapIsdaFixBPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EuriborSwapIsdaFixB__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EuriborSwapIsdaFixBPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EuriborSwapIsdaFixB",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EuriborSwapIsdaFixB" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSwapIsdaFixB" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (EuriborSwapIsdaFixBPtr *)new_EuriborSwapIsdaFixBPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EuriborSwapIsdaFixBPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EuriborSwapIsdaFixB__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  EuriborSwapIsdaFixBPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EuriborSwapIsdaFixB",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EuriborSwapIsdaFixB" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSwapIsdaFixB" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EuriborSwapIsdaFixB" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSwapIsdaFixB" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_EuriborSwapIsdaFixB" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSwapIsdaFixB" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  {
    try {
      result = (EuriborSwapIsdaFixBPtr *)new_EuriborSwapIsdaFixBPtr__SWIG_2((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< YieldTermStructure > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EuriborSwapIsdaFixBPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EuriborSwapIsdaFixB(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EuriborSwapIsdaFixB__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_EuriborSwapIsdaFixB__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_EuriborSwapIsdaFixB__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EuriborSwapIsdaFixB'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EuriborSwapIsdaFixBPtr::EuriborSwapIsdaFixBPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    EuriborSwapIsdaFixBPtr::EuriborSwapIsdaFixBPtr(Period const &)\n"
    "    EuriborSwapIsdaFixBPtr::EuriborSwapIsdaFixBPtr(Period const &,Handle< YieldTermStructure > const &,Handle< YieldTermStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EuriborSwapIsdaFixB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EuriborSwapIsdaFixBPtr *arg1 = (EuriborSwapIsdaFixBPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EuriborSwapIsdaFixB",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EuriborSwapIsdaFixBPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EuriborSwapIsdaFixB" "', argument " "1"" of type '" "EuriborSwapIsdaFixBPtr *""'"); 
  }
  arg1 = reinterpret_cast< EuriborSwapIsdaFixBPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EuriborSwapIsdaFixB_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EuriborSwapIsdaFixBPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EuriborSwapIfrFix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  EuriborSwapIfrFixPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EuriborSwapIfrFix",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EuriborSwapIfrFix" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSwapIfrFix" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EuriborSwapIfrFix" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSwapIfrFix" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (EuriborSwapIfrFixPtr *)new_EuriborSwapIfrFixPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EuriborSwapIfrFixPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EuriborSwapIfrFix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EuriborSwapIfrFixPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EuriborSwapIfrFix",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EuriborSwapIfrFix" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSwapIfrFix" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (EuriborSwapIfrFixPtr *)new_EuriborSwapIfrFixPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EuriborSwapIfrFixPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EuriborSwapIfrFix__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  EuriborSwapIfrFixPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EuriborSwapIfrFix",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EuriborSwapIfrFix" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSwapIfrFix" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EuriborSwapIfrFix" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSwapIfrFix" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_EuriborSwapIfrFix" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuriborSwapIfrFix" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  {
    try {
      result = (EuriborSwapIfrFixPtr *)new_EuriborSwapIfrFixPtr__SWIG_2((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< YieldTermStructure > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EuriborSwapIfrFixPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EuriborSwapIfrFix(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EuriborSwapIfrFix__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_EuriborSwapIfrFix__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_EuriborSwapIfrFix__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EuriborSwapIfrFix'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EuriborSwapIfrFixPtr::EuriborSwapIfrFixPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    EuriborSwapIfrFixPtr::EuriborSwapIfrFixPtr(Period const &)\n"
    "    EuriborSwapIfrFixPtr::EuriborSwapIfrFixPtr(Period const &,Handle< YieldTermStructure > const &,Handle< YieldTermStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EuriborSwapIfrFix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EuriborSwapIfrFixPtr *arg1 = (EuriborSwapIfrFixPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EuriborSwapIfrFix",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EuriborSwapIfrFixPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EuriborSwapIfrFix" "', argument " "1"" of type '" "EuriborSwapIfrFixPtr *""'"); 
  }
  arg1 = reinterpret_cast< EuriborSwapIfrFixPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EuriborSwapIfrFix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EuriborSwapIfrFixPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EurLiborSwapIsdaFixA__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  EurLiborSwapIsdaFixAPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EurLiborSwapIsdaFixA",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EurLiborSwapIsdaFixA" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EurLiborSwapIsdaFixA" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EurLiborSwapIsdaFixA" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EurLiborSwapIsdaFixA" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (EurLiborSwapIsdaFixAPtr *)new_EurLiborSwapIsdaFixAPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EurLiborSwapIsdaFixAPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EurLiborSwapIsdaFixA__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EurLiborSwapIsdaFixAPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EurLiborSwapIsdaFixA",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EurLiborSwapIsdaFixA" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EurLiborSwapIsdaFixA" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (EurLiborSwapIsdaFixAPtr *)new_EurLiborSwapIsdaFixAPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EurLiborSwapIsdaFixAPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EurLiborSwapIsdaFixA__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  EurLiborSwapIsdaFixAPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EurLiborSwapIsdaFixA",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EurLiborSwapIsdaFixA" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EurLiborSwapIsdaFixA" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EurLiborSwapIsdaFixA" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EurLiborSwapIsdaFixA" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_EurLiborSwapIsdaFixA" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EurLiborSwapIsdaFixA" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  {
    try {
      result = (EurLiborSwapIsdaFixAPtr *)new_EurLiborSwapIsdaFixAPtr__SWIG_2((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< YieldTermStructure > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EurLiborSwapIsdaFixAPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EurLiborSwapIsdaFixA(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EurLiborSwapIsdaFixA__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_EurLiborSwapIsdaFixA__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_EurLiborSwapIsdaFixA__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EurLiborSwapIsdaFixA'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EurLiborSwapIsdaFixAPtr::EurLiborSwapIsdaFixAPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    EurLiborSwapIsdaFixAPtr::EurLiborSwapIsdaFixAPtr(Period const &)\n"
    "    EurLiborSwapIsdaFixAPtr::EurLiborSwapIsdaFixAPtr(Period const &,Handle< YieldTermStructure > const &,Handle< YieldTermStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EurLiborSwapIsdaFixA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EurLiborSwapIsdaFixAPtr *arg1 = (EurLiborSwapIsdaFixAPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EurLiborSwapIsdaFixA",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EurLiborSwapIsdaFixAPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EurLiborSwapIsdaFixA" "', argument " "1"" of type '" "EurLiborSwapIsdaFixAPtr *""'"); 
  }
  arg1 = reinterpret_cast< EurLiborSwapIsdaFixAPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EurLiborSwapIsdaFixA_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EurLiborSwapIsdaFixAPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EurLiborSwapIsdaFixB__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  EurLiborSwapIsdaFixBPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EurLiborSwapIsdaFixB",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EurLiborSwapIsdaFixB" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EurLiborSwapIsdaFixB" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EurLiborSwapIsdaFixB" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EurLiborSwapIsdaFixB" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (EurLiborSwapIsdaFixBPtr *)new_EurLiborSwapIsdaFixBPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EurLiborSwapIsdaFixBPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EurLiborSwapIsdaFixB__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EurLiborSwapIsdaFixBPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EurLiborSwapIsdaFixB",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EurLiborSwapIsdaFixB" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EurLiborSwapIsdaFixB" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (EurLiborSwapIsdaFixBPtr *)new_EurLiborSwapIsdaFixBPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EurLiborSwapIsdaFixBPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EurLiborSwapIsdaFixB__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  EurLiborSwapIsdaFixBPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EurLiborSwapIsdaFixB",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EurLiborSwapIsdaFixB" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EurLiborSwapIsdaFixB" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EurLiborSwapIsdaFixB" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EurLiborSwapIsdaFixB" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_EurLiborSwapIsdaFixB" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EurLiborSwapIsdaFixB" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  {
    try {
      result = (EurLiborSwapIsdaFixBPtr *)new_EurLiborSwapIsdaFixBPtr__SWIG_2((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< YieldTermStructure > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EurLiborSwapIsdaFixBPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EurLiborSwapIsdaFixB(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EurLiborSwapIsdaFixB__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_EurLiborSwapIsdaFixB__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_EurLiborSwapIsdaFixB__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EurLiborSwapIsdaFixB'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EurLiborSwapIsdaFixBPtr::EurLiborSwapIsdaFixBPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    EurLiborSwapIsdaFixBPtr::EurLiborSwapIsdaFixBPtr(Period const &)\n"
    "    EurLiborSwapIsdaFixBPtr::EurLiborSwapIsdaFixBPtr(Period const &,Handle< YieldTermStructure > const &,Handle< YieldTermStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EurLiborSwapIsdaFixB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EurLiborSwapIsdaFixBPtr *arg1 = (EurLiborSwapIsdaFixBPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EurLiborSwapIsdaFixB",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EurLiborSwapIsdaFixBPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EurLiborSwapIsdaFixB" "', argument " "1"" of type '" "EurLiborSwapIsdaFixBPtr *""'"); 
  }
  arg1 = reinterpret_cast< EurLiborSwapIsdaFixBPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EurLiborSwapIsdaFixB_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EurLiborSwapIsdaFixBPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EurLiborSwapIfrFix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  EurLiborSwapIfrFixPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EurLiborSwapIfrFix",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EurLiborSwapIfrFix" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EurLiborSwapIfrFix" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EurLiborSwapIfrFix" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EurLiborSwapIfrFix" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (EurLiborSwapIfrFixPtr *)new_EurLiborSwapIfrFixPtr__SWIG_0((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EurLiborSwapIfrFixPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EurLiborSwapIfrFix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EurLiborSwapIfrFixPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EurLiborSwapIfrFix",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EurLiborSwapIfrFix" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EurLiborSwapIfrFix" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  {
    try {
      result = (EurLiborSwapIfrFixPtr *)new_EurLiborSwapIfrFixPtr__SWIG_0((Period const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EurLiborSwapIfrFixPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EurLiborSwapIfrFix__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  EurLiborSwapIfrFixPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EurLiborSwapIfrFix",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EurLiborSwapIfrFix" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EurLiborSwapIfrFix" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EurLiborSwapIfrFix" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EurLiborSwapIfrFix" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_EurLiborSwapIfrFix" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EurLiborSwapIfrFix" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  {
    try {
      result = (EurLiborSwapIfrFixPtr *)new_EurLiborSwapIfrFixPtr__SWIG_2((Period const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< YieldTermStructure > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EurLiborSwapIfrFixPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EurLiborSwapIfrFix(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_EurLiborSwapIfrFix__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_EurLiborSwapIfrFix__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_EurLiborSwapIfrFix__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EurLiborSwapIfrFix'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EurLiborSwapIfrFixPtr::EurLiborSwapIfrFixPtr(Period const &,Handle< YieldTermStructure > const &)\n"
    "    EurLiborSwapIfrFixPtr::EurLiborSwapIfrFixPtr(Period const &)\n"
    "    EurLiborSwapIfrFixPtr::EurLiborSwapIfrFixPtr(Period const &,Handle< YieldTermStructure > const &,Handle< YieldTermStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EurLiborSwapIfrFix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EurLiborSwapIfrFixPtr *arg1 = (EurLiborSwapIfrFixPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EurLiborSwapIfrFix",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EurLiborSwapIfrFixPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EurLiborSwapIfrFix" "', argument " "1"" of type '" "EurLiborSwapIfrFixPtr *""'"); 
  }
  arg1 = reinterpret_cast< EurLiborSwapIfrFixPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EurLiborSwapIfrFix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EurLiborSwapIfrFixPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Brent_setMaxEvaluations(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Brent *arg1 = (Brent *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Brent_setMaxEvaluations",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Brent, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brent_setMaxEvaluations" "', argument " "1"" of type '" "Brent *""'"); 
  }
  arg1 = reinterpret_cast< Brent * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brent_setMaxEvaluations" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      (arg1)->setMaxEvaluations(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Brent_setLowerBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Brent *arg1 = (Brent *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Brent_setLowerBound",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Brent, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brent_setLowerBound" "', argument " "1"" of type '" "Brent *""'"); 
  }
  arg1 = reinterpret_cast< Brent * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brent_setLowerBound" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      (arg1)->setLowerBound(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Brent_setUpperBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Brent *arg1 = (Brent *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Brent_setUpperBound",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Brent, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brent_setUpperBound" "', argument " "1"" of type '" "Brent *""'"); 
  }
  arg1 = reinterpret_cast< Brent * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brent_setUpperBound" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      (arg1)->setUpperBound(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Brent_solve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Brent *arg1 = (Brent *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Brent_solve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Brent, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brent_solve" "', argument " "1"" of type '" "Brent *""'"); 
  }
  arg1 = reinterpret_cast< Brent * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Brent_solve" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Brent_solve" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Brent_solve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Real)Brent_solve__SWIG_0(arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Brent_solve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Brent *arg1 = (Brent *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Brent_solve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Brent, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brent_solve" "', argument " "1"" of type '" "Brent *""'"); 
  }
  arg1 = reinterpret_cast< Brent * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Brent_solve" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Brent_solve" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Brent_solve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Brent_solve" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (Real)Brent_solve__SWIG_1(arg1,arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Brent_solve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Brent, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      _v = (argv[1] != 0);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_Brent_solve__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Brent, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      _v = (argv[1] != 0);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_Brent_solve__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Brent_solve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Brent::solve(PyObject *,Real,Real,Real)\n"
    "    Brent::solve(PyObject *,Real,Real,Real,Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_Brent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Brent *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Brent",0,0)) SWIG_fail;
  {
    try {
      result = (Brent *)new Brent();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Brent, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Brent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Brent *arg1 = (Brent *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Brent",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Brent, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brent" "', argument " "1"" of type '" "Brent *""'"); 
  }
  arg1 = reinterpret_cast< Brent * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Brent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Brent, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Bisection_setMaxEvaluations(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bisection *arg1 = (Bisection *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bisection_setMaxEvaluations",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Bisection, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bisection_setMaxEvaluations" "', argument " "1"" of type '" "Bisection *""'"); 
  }
  arg1 = reinterpret_cast< Bisection * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bisection_setMaxEvaluations" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      (arg1)->setMaxEvaluations(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bisection_setLowerBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bisection *arg1 = (Bisection *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bisection_setLowerBound",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Bisection, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bisection_setLowerBound" "', argument " "1"" of type '" "Bisection *""'"); 
  }
  arg1 = reinterpret_cast< Bisection * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bisection_setLowerBound" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      (arg1)->setLowerBound(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bisection_setUpperBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bisection *arg1 = (Bisection *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bisection_setUpperBound",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Bisection, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bisection_setUpperBound" "', argument " "1"" of type '" "Bisection *""'"); 
  }
  arg1 = reinterpret_cast< Bisection * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bisection_setUpperBound" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      (arg1)->setUpperBound(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bisection_solve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bisection *arg1 = (Bisection *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bisection_solve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Bisection, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bisection_solve" "', argument " "1"" of type '" "Bisection *""'"); 
  }
  arg1 = reinterpret_cast< Bisection * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bisection_solve" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Bisection_solve" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Bisection_solve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Real)Bisection_solve__SWIG_0(arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bisection_solve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bisection *arg1 = (Bisection *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bisection_solve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Bisection, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bisection_solve" "', argument " "1"" of type '" "Bisection *""'"); 
  }
  arg1 = reinterpret_cast< Bisection * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bisection_solve" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Bisection_solve" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Bisection_solve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Bisection_solve" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (Real)Bisection_solve__SWIG_1(arg1,arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bisection_solve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Bisection, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      _v = (argv[1] != 0);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_Bisection_solve__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Bisection, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      _v = (argv[1] != 0);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_Bisection_solve__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Bisection_solve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Bisection::solve(PyObject *,Real,Real,Real)\n"
    "    Bisection::solve(PyObject *,Real,Real,Real,Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_Bisection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bisection *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bisection",0,0)) SWIG_fail;
  {
    try {
      result = (Bisection *)new Bisection();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Bisection, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Bisection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bisection *arg1 = (Bisection *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Bisection",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Bisection, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bisection" "', argument " "1"" of type '" "Bisection *""'"); 
  }
  arg1 = reinterpret_cast< Bisection * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Bisection_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Bisection, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_FalsePosition_setMaxEvaluations(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FalsePosition *arg1 = (FalsePosition *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"FalsePosition_setMaxEvaluations",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FalsePosition, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FalsePosition_setMaxEvaluations" "', argument " "1"" of type '" "FalsePosition *""'"); 
  }
  arg1 = reinterpret_cast< FalsePosition * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FalsePosition_setMaxEvaluations" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      (arg1)->setMaxEvaluations(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FalsePosition_setLowerBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FalsePosition *arg1 = (FalsePosition *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"FalsePosition_setLowerBound",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FalsePosition, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FalsePosition_setLowerBound" "', argument " "1"" of type '" "FalsePosition *""'"); 
  }
  arg1 = reinterpret_cast< FalsePosition * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FalsePosition_setLowerBound" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      (arg1)->setLowerBound(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FalsePosition_setUpperBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FalsePosition *arg1 = (FalsePosition *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"FalsePosition_setUpperBound",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FalsePosition, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FalsePosition_setUpperBound" "', argument " "1"" of type '" "FalsePosition *""'"); 
  }
  arg1 = reinterpret_cast< FalsePosition * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FalsePosition_setUpperBound" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      (arg1)->setUpperBound(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FalsePosition_solve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FalsePosition *arg1 = (FalsePosition *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FalsePosition_solve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FalsePosition, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FalsePosition_solve" "', argument " "1"" of type '" "FalsePosition *""'"); 
  }
  arg1 = reinterpret_cast< FalsePosition * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FalsePosition_solve" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FalsePosition_solve" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FalsePosition_solve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Real)FalsePosition_solve__SWIG_0(arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FalsePosition_solve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FalsePosition *arg1 = (FalsePosition *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FalsePosition_solve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FalsePosition, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FalsePosition_solve" "', argument " "1"" of type '" "FalsePosition *""'"); 
  }
  arg1 = reinterpret_cast< FalsePosition * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FalsePosition_solve" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FalsePosition_solve" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FalsePosition_solve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FalsePosition_solve" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (Real)FalsePosition_solve__SWIG_1(arg1,arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FalsePosition_solve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FalsePosition, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      _v = (argv[1] != 0);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_FalsePosition_solve__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FalsePosition, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      _v = (argv[1] != 0);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_FalsePosition_solve__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'FalsePosition_solve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FalsePosition::solve(PyObject *,Real,Real,Real)\n"
    "    FalsePosition::solve(PyObject *,Real,Real,Real,Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_FalsePosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FalsePosition *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FalsePosition",0,0)) SWIG_fail;
  {
    try {
      result = (FalsePosition *)new FalsePosition();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FalsePosition, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_FalsePosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FalsePosition *arg1 = (FalsePosition *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FalsePosition",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FalsePosition, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FalsePosition" "', argument " "1"" of type '" "FalsePosition *""'"); 
  }
  arg1 = reinterpret_cast< FalsePosition * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FalsePosition_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FalsePosition, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Ridder_setMaxEvaluations(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Ridder *arg1 = (Ridder *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Ridder_setMaxEvaluations",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Ridder, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Ridder_setMaxEvaluations" "', argument " "1"" of type '" "Ridder *""'"); 
  }
  arg1 = reinterpret_cast< Ridder * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Ridder_setMaxEvaluations" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      (arg1)->setMaxEvaluations(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Ridder_setLowerBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Ridder *arg1 = (Ridder *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Ridder_setLowerBound",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Ridder, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Ridder_setLowerBound" "', argument " "1"" of type '" "Ridder *""'"); 
  }
  arg1 = reinterpret_cast< Ridder * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Ridder_setLowerBound" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      (arg1)->setLowerBound(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Ridder_setUpperBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Ridder *arg1 = (Ridder *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Ridder_setUpperBound",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Ridder, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Ridder_setUpperBound" "', argument " "1"" of type '" "Ridder *""'"); 
  }
  arg1 = reinterpret_cast< Ridder * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Ridder_setUpperBound" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      (arg1)->setUpperBound(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Ridder_solve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Ridder *arg1 = (Ridder *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Ridder_solve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Ridder, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Ridder_solve" "', argument " "1"" of type '" "Ridder *""'"); 
  }
  arg1 = reinterpret_cast< Ridder * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Ridder_solve" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Ridder_solve" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Ridder_solve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Real)Ridder_solve__SWIG_0(arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Ridder_solve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Ridder *arg1 = (Ridder *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Ridder_solve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Ridder, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Ridder_solve" "', argument " "1"" of type '" "Ridder *""'"); 
  }
  arg1 = reinterpret_cast< Ridder * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Ridder_solve" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Ridder_solve" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Ridder_solve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Ridder_solve" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (Real)Ridder_solve__SWIG_1(arg1,arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Ridder_solve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Ridder, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      _v = (argv[1] != 0);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_Ridder_solve__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Ridder, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      _v = (argv[1] != 0);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_Ridder_solve__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Ridder_solve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Ridder::solve(PyObject *,Real,Real,Real)\n"
    "    Ridder::solve(PyObject *,Real,Real,Real,Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_Ridder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Ridder *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Ridder",0,0)) SWIG_fail;
  {
    try {
      result = (Ridder *)new Ridder();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Ridder, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Ridder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Ridder *arg1 = (Ridder *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Ridder",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Ridder, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Ridder" "', argument " "1"" of type '" "Ridder *""'"); 
  }
  arg1 = reinterpret_cast< Ridder * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Ridder_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Ridder, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Secant_setMaxEvaluations(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Secant *arg1 = (Secant *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Secant_setMaxEvaluations",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Secant, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Secant_setMaxEvaluations" "', argument " "1"" of type '" "Secant *""'"); 
  }
  arg1 = reinterpret_cast< Secant * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Secant_setMaxEvaluations" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      (arg1)->setMaxEvaluations(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Secant_setLowerBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Secant *arg1 = (Secant *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Secant_setLowerBound",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Secant, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Secant_setLowerBound" "', argument " "1"" of type '" "Secant *""'"); 
  }
  arg1 = reinterpret_cast< Secant * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Secant_setLowerBound" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      (arg1)->setLowerBound(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Secant_setUpperBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Secant *arg1 = (Secant *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Secant_setUpperBound",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Secant, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Secant_setUpperBound" "', argument " "1"" of type '" "Secant *""'"); 
  }
  arg1 = reinterpret_cast< Secant * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Secant_setUpperBound" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      (arg1)->setUpperBound(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Secant_solve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Secant *arg1 = (Secant *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Secant_solve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Secant, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Secant_solve" "', argument " "1"" of type '" "Secant *""'"); 
  }
  arg1 = reinterpret_cast< Secant * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Secant_solve" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Secant_solve" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Secant_solve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Real)Secant_solve__SWIG_0(arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Secant_solve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Secant *arg1 = (Secant *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Secant_solve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Secant, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Secant_solve" "', argument " "1"" of type '" "Secant *""'"); 
  }
  arg1 = reinterpret_cast< Secant * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Secant_solve" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Secant_solve" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Secant_solve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Secant_solve" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (Real)Secant_solve__SWIG_1(arg1,arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Secant_solve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Secant, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      _v = (argv[1] != 0);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_Secant_solve__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Secant, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      _v = (argv[1] != 0);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_Secant_solve__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Secant_solve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Secant::solve(PyObject *,Real,Real,Real)\n"
    "    Secant::solve(PyObject *,Real,Real,Real,Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_Secant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Secant *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Secant",0,0)) SWIG_fail;
  {
    try {
      result = (Secant *)new Secant();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Secant, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Secant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Secant *arg1 = (Secant *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Secant",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Secant, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Secant" "', argument " "1"" of type '" "Secant *""'"); 
  }
  arg1 = reinterpret_cast< Secant * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Secant_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Secant, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Newton_setMaxEvaluations(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Newton *arg1 = (Newton *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Newton_setMaxEvaluations",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Newton, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Newton_setMaxEvaluations" "', argument " "1"" of type '" "Newton *""'"); 
  }
  arg1 = reinterpret_cast< Newton * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Newton_setMaxEvaluations" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      (arg1)->setMaxEvaluations(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Newton_setLowerBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Newton *arg1 = (Newton *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Newton_setLowerBound",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Newton, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Newton_setLowerBound" "', argument " "1"" of type '" "Newton *""'"); 
  }
  arg1 = reinterpret_cast< Newton * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Newton_setLowerBound" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      (arg1)->setLowerBound(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Newton_setUpperBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Newton *arg1 = (Newton *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Newton_setUpperBound",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Newton, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Newton_setUpperBound" "', argument " "1"" of type '" "Newton *""'"); 
  }
  arg1 = reinterpret_cast< Newton * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Newton_setUpperBound" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      (arg1)->setUpperBound(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Newton_solve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Newton *arg1 = (Newton *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Newton_solve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Newton, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Newton_solve" "', argument " "1"" of type '" "Newton *""'"); 
  }
  arg1 = reinterpret_cast< Newton * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Newton_solve" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Newton_solve" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Newton_solve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Real)Newton_solve__SWIG_0(arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Newton_solve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Newton *arg1 = (Newton *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Newton_solve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Newton, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Newton_solve" "', argument " "1"" of type '" "Newton *""'"); 
  }
  arg1 = reinterpret_cast< Newton * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Newton_solve" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Newton_solve" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Newton_solve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Newton_solve" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (Real)Newton_solve__SWIG_1(arg1,arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Newton_solve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Newton, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      _v = (argv[1] != 0);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_Newton_solve__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Newton, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      _v = (argv[1] != 0);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_Newton_solve__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Newton_solve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Newton::solve(PyObject *,Real,Real,Real)\n"
    "    Newton::solve(PyObject *,Real,Real,Real,Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_Newton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Newton *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Newton",0,0)) SWIG_fail;
  {
    try {
      result = (Newton *)new Newton();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Newton, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Newton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Newton *arg1 = (Newton *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Newton",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Newton, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Newton" "', argument " "1"" of type '" "Newton *""'"); 
  }
  arg1 = reinterpret_cast< Newton * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Newton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Newton, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_NewtonSafe_setMaxEvaluations(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NewtonSafe *arg1 = (NewtonSafe *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NewtonSafe_setMaxEvaluations",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NewtonSafe, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NewtonSafe_setMaxEvaluations" "', argument " "1"" of type '" "NewtonSafe *""'"); 
  }
  arg1 = reinterpret_cast< NewtonSafe * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NewtonSafe_setMaxEvaluations" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      (arg1)->setMaxEvaluations(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NewtonSafe_setLowerBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NewtonSafe *arg1 = (NewtonSafe *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NewtonSafe_setLowerBound",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NewtonSafe, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NewtonSafe_setLowerBound" "', argument " "1"" of type '" "NewtonSafe *""'"); 
  }
  arg1 = reinterpret_cast< NewtonSafe * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NewtonSafe_setLowerBound" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      (arg1)->setLowerBound(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NewtonSafe_setUpperBound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NewtonSafe *arg1 = (NewtonSafe *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NewtonSafe_setUpperBound",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NewtonSafe, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NewtonSafe_setUpperBound" "', argument " "1"" of type '" "NewtonSafe *""'"); 
  }
  arg1 = reinterpret_cast< NewtonSafe * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NewtonSafe_setUpperBound" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      (arg1)->setUpperBound(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NewtonSafe_solve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NewtonSafe *arg1 = (NewtonSafe *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NewtonSafe_solve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NewtonSafe, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NewtonSafe_solve" "', argument " "1"" of type '" "NewtonSafe *""'"); 
  }
  arg1 = reinterpret_cast< NewtonSafe * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NewtonSafe_solve" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NewtonSafe_solve" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "NewtonSafe_solve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Real)NewtonSafe_solve__SWIG_0(arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NewtonSafe_solve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NewtonSafe *arg1 = (NewtonSafe *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NewtonSafe_solve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NewtonSafe, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NewtonSafe_solve" "', argument " "1"" of type '" "NewtonSafe *""'"); 
  }
  arg1 = reinterpret_cast< NewtonSafe * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NewtonSafe_solve" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NewtonSafe_solve" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "NewtonSafe_solve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "NewtonSafe_solve" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (Real)NewtonSafe_solve__SWIG_1(arg1,arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NewtonSafe_solve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_NewtonSafe, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      _v = (argv[1] != 0);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_NewtonSafe_solve__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_NewtonSafe, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      _v = (argv[1] != 0);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_NewtonSafe_solve__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'NewtonSafe_solve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    NewtonSafe::solve(PyObject *,Real,Real,Real)\n"
    "    NewtonSafe::solve(PyObject *,Real,Real,Real,Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_NewtonSafe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NewtonSafe *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NewtonSafe",0,0)) SWIG_fail;
  {
    try {
      result = (NewtonSafe *)new NewtonSafe();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NewtonSafe, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_NewtonSafe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NewtonSafe *arg1 = (NewtonSafe *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NewtonSafe",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NewtonSafe, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NewtonSafe" "', argument " "1"" of type '" "NewtonSafe *""'"); 
  }
  arg1 = reinterpret_cast< NewtonSafe * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NewtonSafe_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_NewtonSafe, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_delete_Constraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Constraint *arg1 = (Constraint *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Constraint",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Constraint, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Constraint" "', argument " "1"" of type '" "Constraint *""'"); 
  }
  arg1 = reinterpret_cast< Constraint * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Constraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Constraint, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BoundaryConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Real arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BoundaryConstraint *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BoundaryConstraint",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BoundaryConstraint" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BoundaryConstraint" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (BoundaryConstraint *)new BoundaryConstraint(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BoundaryConstraint, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BoundaryConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BoundaryConstraint *arg1 = (BoundaryConstraint *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BoundaryConstraint",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BoundaryConstraint, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BoundaryConstraint" "', argument " "1"" of type '" "BoundaryConstraint *""'"); 
  }
  arg1 = reinterpret_cast< BoundaryConstraint * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BoundaryConstraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BoundaryConstraint, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_NoConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NoConstraint *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NoConstraint",0,0)) SWIG_fail;
  {
    try {
      result = (NoConstraint *)new NoConstraint();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NoConstraint, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_NoConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NoConstraint *arg1 = (NoConstraint *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NoConstraint",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NoConstraint, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NoConstraint" "', argument " "1"" of type '" "NoConstraint *""'"); 
  }
  arg1 = reinterpret_cast< NoConstraint * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NoConstraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_NoConstraint, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PositiveConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PositiveConstraint *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PositiveConstraint",0,0)) SWIG_fail;
  {
    try {
      result = (PositiveConstraint *)new PositiveConstraint();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PositiveConstraint, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PositiveConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PositiveConstraint *arg1 = (PositiveConstraint *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PositiveConstraint",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PositiveConstraint, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PositiveConstraint" "', argument " "1"" of type '" "PositiveConstraint *""'"); 
  }
  arg1 = reinterpret_cast< PositiveConstraint * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PositiveConstraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_PositiveConstraint, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CompositeConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Constraint *arg1 = 0 ;
  Constraint *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  CompositeConstraint *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CompositeConstraint",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CompositeConstraint" "', argument " "1"" of type '" "Constraint const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CompositeConstraint" "', argument " "1"" of type '" "Constraint const &""'"); 
  }
  arg1 = reinterpret_cast< Constraint * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CompositeConstraint" "', argument " "2"" of type '" "Constraint const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CompositeConstraint" "', argument " "2"" of type '" "Constraint const &""'"); 
  }
  arg2 = reinterpret_cast< Constraint * >(argp2);
  {
    try {
      result = (CompositeConstraint *)new CompositeConstraint((Constraint const &)*arg1,(Constraint const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CompositeConstraint, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CompositeConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CompositeConstraint *arg1 = (CompositeConstraint *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CompositeConstraint",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CompositeConstraint, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CompositeConstraint" "', argument " "1"" of type '" "CompositeConstraint *""'"); 
  }
  arg1 = reinterpret_cast< CompositeConstraint * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CompositeConstraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CompositeConstraint, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_NonhomogeneousBoundaryConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  NonhomogeneousBoundaryConstraint *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NonhomogeneousBoundaryConstraint",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (NonhomogeneousBoundaryConstraint *)new NonhomogeneousBoundaryConstraint((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NonhomogeneousBoundaryConstraint, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_NonhomogeneousBoundaryConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonhomogeneousBoundaryConstraint *arg1 = (NonhomogeneousBoundaryConstraint *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NonhomogeneousBoundaryConstraint",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NonhomogeneousBoundaryConstraint, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NonhomogeneousBoundaryConstraint" "', argument " "1"" of type '" "NonhomogeneousBoundaryConstraint *""'"); 
  }
  arg1 = reinterpret_cast< NonhomogeneousBoundaryConstraint * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NonhomogeneousBoundaryConstraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_NonhomogeneousBoundaryConstraint, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EndCriteria(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Size arg2 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  size_t val1 ;
  int ecode1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  EndCriteria *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EndCriteria",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EndCriteria" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EndCriteria" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EndCriteria" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_EndCriteria" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_EndCriteria" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (EndCriteria *)new EndCriteria(arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EndCriteria, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_EndCriteria___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EndCriteria *arg1 = (EndCriteria *) 0 ;
  Size arg2 ;
  Size *arg3 = 0 ;
  bool arg4 ;
  Real arg5 ;
  Real arg6 ;
  Real arg7 ;
  Real arg8 ;
  EndCriteria::Type *arg9 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"EndCriteria___call__",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EndCriteria, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EndCriteria___call__" "', argument " "1"" of type '" "EndCriteria const *""'"); 
  }
  arg1 = reinterpret_cast< EndCriteria * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EndCriteria___call__" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__size_t,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "EndCriteria___call__" "', argument " "3"" of type '" "Size &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "EndCriteria___call__" "', argument " "3"" of type '" "Size &""'"); 
  }
  arg3 = reinterpret_cast< Size * >(argp3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EndCriteria___call__" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "EndCriteria___call__" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "EndCriteria___call__" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "EndCriteria___call__" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "EndCriteria___call__" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_EndCriteria__Type,  0 );
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "EndCriteria___call__" "', argument " "9"" of type '" "EndCriteria::Type &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "EndCriteria___call__" "', argument " "9"" of type '" "EndCriteria::Type &""'"); 
  }
  arg9 = reinterpret_cast< EndCriteria::Type * >(argp9);
  {
    try {
      result = (bool)((EndCriteria const *)arg1)->operator ()(arg2,*arg3,arg4,arg5,arg6,arg7,arg8,*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_EndCriteria(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EndCriteria *arg1 = (EndCriteria *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EndCriteria",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EndCriteria, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EndCriteria" "', argument " "1"" of type '" "EndCriteria *""'"); 
  }
  arg1 = reinterpret_cast< EndCriteria * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EndCriteria_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EndCriteria, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_delete_OptimizationMethod(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  OptimizationMethod *arg1 = (OptimizationMethod *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_OptimizationMethod",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OptimizationMethod, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OptimizationMethod" "', argument " "1"" of type '" "OptimizationMethod *""'"); 
  }
  arg1 = reinterpret_cast< OptimizationMethod * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *OptimizationMethod_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_OptimizationMethod, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ConjugateGradient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ConjugateGradient *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConjugateGradient",0,0)) SWIG_fail;
  {
    try {
      result = (ConjugateGradient *)new ConjugateGradient();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConjugateGradient, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ConjugateGradient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ConjugateGradient *arg1 = (ConjugateGradient *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ConjugateGradient",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ConjugateGradient, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ConjugateGradient" "', argument " "1"" of type '" "ConjugateGradient *""'"); 
  }
  arg1 = reinterpret_cast< ConjugateGradient * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ConjugateGradient_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ConjugateGradient, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Simplex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  Simplex *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Simplex",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Simplex" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (Simplex *)new Simplex(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Simplex, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Simplex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Simplex *arg1 = (Simplex *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Simplex",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Simplex, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Simplex" "', argument " "1"" of type '" "Simplex *""'"); 
  }
  arg1 = reinterpret_cast< Simplex * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Simplex_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Simplex, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SteepestDescent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SteepestDescent *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SteepestDescent",0,0)) SWIG_fail;
  {
    try {
      result = (SteepestDescent *)new SteepestDescent();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SteepestDescent, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SteepestDescent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SteepestDescent *arg1 = (SteepestDescent *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SteepestDescent",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SteepestDescent, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SteepestDescent" "', argument " "1"" of type '" "SteepestDescent *""'"); 
  }
  arg1 = reinterpret_cast< SteepestDescent * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SteepestDescent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SteepestDescent, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BFGS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BFGS *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BFGS",0,0)) SWIG_fail;
  {
    try {
      result = (BFGS *)new BFGS();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BFGS, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BFGS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BFGS *arg1 = (BFGS *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BFGS",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BFGS, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BFGS" "', argument " "1"" of type '" "BFGS *""'"); 
  }
  arg1 = reinterpret_cast< BFGS * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BFGS_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BFGS, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_LevenbergMarquardt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Real arg2 ;
  Real arg3 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  LevenbergMarquardt *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LevenbergMarquardt",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LevenbergMarquardt" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LevenbergMarquardt" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LevenbergMarquardt" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (LevenbergMarquardt *)new LevenbergMarquardt(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LevenbergMarquardt, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LevenbergMarquardt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Real arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  LevenbergMarquardt *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LevenbergMarquardt",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LevenbergMarquardt" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LevenbergMarquardt" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (LevenbergMarquardt *)new LevenbergMarquardt(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LevenbergMarquardt, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LevenbergMarquardt__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  LevenbergMarquardt *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LevenbergMarquardt",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LevenbergMarquardt" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (LevenbergMarquardt *)new LevenbergMarquardt(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LevenbergMarquardt, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LevenbergMarquardt__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LevenbergMarquardt *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LevenbergMarquardt",0,0)) SWIG_fail;
  {
    try {
      result = (LevenbergMarquardt *)new LevenbergMarquardt();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LevenbergMarquardt, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LevenbergMarquardt(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_LevenbergMarquardt__SWIG_3(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_LevenbergMarquardt__SWIG_2(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_LevenbergMarquardt__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_LevenbergMarquardt__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LevenbergMarquardt'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    LevenbergMarquardt::LevenbergMarquardt(Real,Real,Real)\n"
    "    LevenbergMarquardt::LevenbergMarquardt(Real,Real)\n"
    "    LevenbergMarquardt::LevenbergMarquardt(Real)\n"
    "    LevenbergMarquardt::LevenbergMarquardt()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_LevenbergMarquardt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LevenbergMarquardt *arg1 = (LevenbergMarquardt *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LevenbergMarquardt",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LevenbergMarquardt, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LevenbergMarquardt" "', argument " "1"" of type '" "LevenbergMarquardt *""'"); 
  }
  arg1 = reinterpret_cast< LevenbergMarquardt * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LevenbergMarquardt_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_LevenbergMarquardt, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DifferentialEvolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DifferentialEvolution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DifferentialEvolution",0,0)) SWIG_fail;
  {
    try {
      result = (DifferentialEvolution *)new DifferentialEvolution();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DifferentialEvolution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DifferentialEvolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DifferentialEvolution *arg1 = (DifferentialEvolution *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DifferentialEvolution",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DifferentialEvolution, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DifferentialEvolution" "', argument " "1"" of type '" "DifferentialEvolution *""'"); 
  }
  arg1 = reinterpret_cast< DifferentialEvolution * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DifferentialEvolution_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DifferentialEvolution, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SamplerGaussian__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  unsigned long arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  SamplerGaussian *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SamplerGaussian",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SamplerGaussian" "', argument " "1"" of type '" "unsigned long""'");
  } 
  arg1 = static_cast< unsigned long >(val1);
  {
    try {
      result = (SamplerGaussian *)new SamplerGaussian(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SamplerGaussian, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SamplerGaussian__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerGaussian *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SamplerGaussian",0,0)) SWIG_fail;
  {
    try {
      result = (SamplerGaussian *)new SamplerGaussian();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SamplerGaussian, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SamplerGaussian(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_SamplerGaussian__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_long(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_SamplerGaussian__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SamplerGaussian'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SamplerGaussian::SamplerGaussian(unsigned long)\n"
    "    SamplerGaussian::SamplerGaussian()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_SamplerGaussian(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerGaussian *arg1 = (SamplerGaussian *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SamplerGaussian",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SamplerGaussian, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SamplerGaussian" "', argument " "1"" of type '" "SamplerGaussian *""'"); 
  }
  arg1 = reinterpret_cast< SamplerGaussian * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SamplerGaussian_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SamplerGaussian, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SamplerLogNormal__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  unsigned long arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  SamplerLogNormal *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SamplerLogNormal",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SamplerLogNormal" "', argument " "1"" of type '" "unsigned long""'");
  } 
  arg1 = static_cast< unsigned long >(val1);
  {
    try {
      result = (SamplerLogNormal *)new SamplerLogNormal(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SamplerLogNormal, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SamplerLogNormal__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerLogNormal *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SamplerLogNormal",0,0)) SWIG_fail;
  {
    try {
      result = (SamplerLogNormal *)new SamplerLogNormal();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SamplerLogNormal, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SamplerLogNormal(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_SamplerLogNormal__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_long(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_SamplerLogNormal__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SamplerLogNormal'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SamplerLogNormal::SamplerLogNormal(unsigned long)\n"
    "    SamplerLogNormal::SamplerLogNormal()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_SamplerLogNormal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerLogNormal *arg1 = (SamplerLogNormal *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SamplerLogNormal",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SamplerLogNormal, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SamplerLogNormal" "', argument " "1"" of type '" "SamplerLogNormal *""'"); 
  }
  arg1 = reinterpret_cast< SamplerLogNormal * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SamplerLogNormal_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SamplerLogNormal, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SamplerMirrorGaussian__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  unsigned long arg3 ;
  Array temp1 ;
  Array temp2 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  SamplerMirrorGaussian *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SamplerMirrorGaussian",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  ecode3 = SWIG_AsVal_unsigned_SS_long(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SamplerMirrorGaussian" "', argument " "3"" of type '" "unsigned long""'");
  } 
  arg3 = static_cast< unsigned long >(val3);
  {
    try {
      result = (SamplerMirrorGaussian *)new SamplerMirrorGaussian((Array const &)*arg1,(Array const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SamplerMirrorGaussian, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SamplerMirrorGaussian__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array temp1 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SamplerMirrorGaussian *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SamplerMirrorGaussian",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SamplerMirrorGaussian *)new SamplerMirrorGaussian((Array const &)*arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SamplerMirrorGaussian, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SamplerMirrorGaussian(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    {
      /* native sequence? */
      if (PyTuple_Check(argv[0]) || PyList_Check(argv[0])) {
        Size size = PySequence_Size(argv[0]);
        if (size == 0) {
          _v = 1;
        } else {
          PyObject* o = PySequence_GetItem(argv[0],0);
          if (PyNumber_Check(o))
          _v = 1;
          else
          _v = 0;
          Py_DECREF(o);
        }
      } else {
        /* wrapped Array? */
        Array* v;
        if (SWIG_ConvertPtr(argv[0],(void **) &v,
            SWIGTYPE_p_Array,0) != -1)
        _v = 1;
        else
        _v = 0;
      }
    }
    if (_v) {
      {
        /* native sequence? */
        if (PyTuple_Check(argv[1]) || PyList_Check(argv[1])) {
          Size size = PySequence_Size(argv[1]);
          if (size == 0) {
            _v = 1;
          } else {
            PyObject* o = PySequence_GetItem(argv[1],0);
            if (PyNumber_Check(o))
            _v = 1;
            else
            _v = 0;
            Py_DECREF(o);
          }
        } else {
          /* wrapped Array? */
          Array* v;
          if (SWIG_ConvertPtr(argv[1],(void **) &v,
              SWIGTYPE_p_Array,0) != -1)
          _v = 1;
          else
          _v = 0;
        }
      }
      if (_v) {
        return _wrap_new_SamplerMirrorGaussian__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      /* native sequence? */
      if (PyTuple_Check(argv[0]) || PyList_Check(argv[0])) {
        Size size = PySequence_Size(argv[0]);
        if (size == 0) {
          _v = 1;
        } else {
          PyObject* o = PySequence_GetItem(argv[0],0);
          if (PyNumber_Check(o))
          _v = 1;
          else
          _v = 0;
          Py_DECREF(o);
        }
      } else {
        /* wrapped Array? */
        Array* v;
        if (SWIG_ConvertPtr(argv[0],(void **) &v,
            SWIGTYPE_p_Array,0) != -1)
        _v = 1;
        else
        _v = 0;
      }
    }
    if (_v) {
      {
        /* native sequence? */
        if (PyTuple_Check(argv[1]) || PyList_Check(argv[1])) {
          Size size = PySequence_Size(argv[1]);
          if (size == 0) {
            _v = 1;
          } else {
            PyObject* o = PySequence_GetItem(argv[1],0);
            if (PyNumber_Check(o))
            _v = 1;
            else
            _v = 0;
            Py_DECREF(o);
          }
        } else {
          /* wrapped Array? */
          Array* v;
          if (SWIG_ConvertPtr(argv[1],(void **) &v,
              SWIGTYPE_p_Array,0) != -1)
          _v = 1;
          else
          _v = 0;
        }
      }
      if (_v) {
        {
          int res = SWIG_AsVal_unsigned_SS_long(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_SamplerMirrorGaussian__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SamplerMirrorGaussian'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SamplerMirrorGaussian::SamplerMirrorGaussian(Array const &,Array const &,unsigned long)\n"
    "    SamplerMirrorGaussian::SamplerMirrorGaussian(Array const &,Array const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_SamplerMirrorGaussian(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerMirrorGaussian *arg1 = (SamplerMirrorGaussian *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SamplerMirrorGaussian",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SamplerMirrorGaussian, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SamplerMirrorGaussian" "', argument " "1"" of type '" "SamplerMirrorGaussian *""'"); 
  }
  arg1 = reinterpret_cast< SamplerMirrorGaussian * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SamplerMirrorGaussian_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SamplerMirrorGaussian, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ProbabilityBoltzmannDownhill__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  unsigned long arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  ProbabilityBoltzmannDownhill *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ProbabilityBoltzmannDownhill",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ProbabilityBoltzmannDownhill" "', argument " "1"" of type '" "unsigned long""'");
  } 
  arg1 = static_cast< unsigned long >(val1);
  {
    try {
      result = (ProbabilityBoltzmannDownhill *)new ProbabilityBoltzmannDownhill(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProbabilityBoltzmannDownhill, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ProbabilityBoltzmannDownhill__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ProbabilityBoltzmannDownhill *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ProbabilityBoltzmannDownhill",0,0)) SWIG_fail;
  {
    try {
      result = (ProbabilityBoltzmannDownhill *)new ProbabilityBoltzmannDownhill();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProbabilityBoltzmannDownhill, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ProbabilityBoltzmannDownhill(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_ProbabilityBoltzmannDownhill__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_long(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_ProbabilityBoltzmannDownhill__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ProbabilityBoltzmannDownhill'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ProbabilityBoltzmannDownhill::ProbabilityBoltzmannDownhill(unsigned long)\n"
    "    ProbabilityBoltzmannDownhill::ProbabilityBoltzmannDownhill()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_ProbabilityBoltzmannDownhill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ProbabilityBoltzmannDownhill *arg1 = (ProbabilityBoltzmannDownhill *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ProbabilityBoltzmannDownhill",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProbabilityBoltzmannDownhill, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProbabilityBoltzmannDownhill" "', argument " "1"" of type '" "ProbabilityBoltzmannDownhill *""'"); 
  }
  arg1 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ProbabilityBoltzmannDownhill_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ProbabilityBoltzmannDownhill, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_TemperatureExponential__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Size arg2 ;
  Real arg3 ;
  double val1 ;
  int ecode1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  TemperatureExponential *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TemperatureExponential",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TemperatureExponential" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TemperatureExponential" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TemperatureExponential" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (TemperatureExponential *)new TemperatureExponential(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TemperatureExponential, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TemperatureExponential__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Size arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TemperatureExponential *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TemperatureExponential",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TemperatureExponential" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TemperatureExponential" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (TemperatureExponential *)new TemperatureExponential(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TemperatureExponential, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TemperatureExponential(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_TemperatureExponential__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_TemperatureExponential__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_TemperatureExponential'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    TemperatureExponential::TemperatureExponential(Real,Size,Real)\n"
    "    TemperatureExponential::TemperatureExponential(Real,Size)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_TemperatureExponential(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TemperatureExponential *arg1 = (TemperatureExponential *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_TemperatureExponential",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TemperatureExponential, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TemperatureExponential" "', argument " "1"" of type '" "TemperatureExponential *""'"); 
  }
  arg1 = reinterpret_cast< TemperatureExponential * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TemperatureExponential_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_TemperatureExponential, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ReannealingTrivial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ReannealingTrivial *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ReannealingTrivial",0,0)) SWIG_fail;
  {
    try {
      result = (ReannealingTrivial *)new ReannealingTrivial();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ReannealingTrivial, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ReannealingTrivial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ReannealingTrivial *arg1 = (ReannealingTrivial *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ReannealingTrivial",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ReannealingTrivial, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ReannealingTrivial" "', argument " "1"" of type '" "ReannealingTrivial *""'"); 
  }
  arg1 = reinterpret_cast< ReannealingTrivial * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ReannealingTrivial_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ReannealingTrivial, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GaussianSimulatedAnnealing__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerGaussian *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  ReannealingTrivial *arg4 = 0 ;
  Real arg5 ;
  Real arg6 ;
  Size arg7 ;
  GaussianSimulatedAnnealing::ResetScheme arg8 ;
  Size arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  size_t val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  size_t val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  GaussianSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussianSimulatedAnnealing",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerGaussian,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerGaussian const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerGaussian const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerGaussian * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ReannealingTrivial,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  arg4 = reinterpret_cast< ReannealingTrivial * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  ecode7 = SWIG_AsVal_size_t(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "7"" of type '" "Size""'");
  } 
  arg7 = static_cast< Size >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "8"" of type '" "GaussianSimulatedAnnealing::ResetScheme""'");
  } 
  arg8 = static_cast< GaussianSimulatedAnnealing::ResetScheme >(val8);
  ecode9 = SWIG_AsVal_size_t(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "9"" of type '" "Size""'");
  } 
  arg9 = static_cast< Size >(val9);
  {
    try {
      result = (GaussianSimulatedAnnealing *)new GaussianSimulatedAnnealing((SamplerGaussian const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3,(ReannealingTrivial const &)*arg4,arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussianSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GaussianSimulatedAnnealing__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerGaussian *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  ReannealingTrivial *arg4 = 0 ;
  Real arg5 ;
  Real arg6 ;
  Size arg7 ;
  GaussianSimulatedAnnealing::ResetScheme arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  size_t val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  GaussianSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussianSimulatedAnnealing",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerGaussian,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerGaussian const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerGaussian const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerGaussian * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ReannealingTrivial,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  arg4 = reinterpret_cast< ReannealingTrivial * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  ecode7 = SWIG_AsVal_size_t(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "7"" of type '" "Size""'");
  } 
  arg7 = static_cast< Size >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "8"" of type '" "GaussianSimulatedAnnealing::ResetScheme""'");
  } 
  arg8 = static_cast< GaussianSimulatedAnnealing::ResetScheme >(val8);
  {
    try {
      result = (GaussianSimulatedAnnealing *)new GaussianSimulatedAnnealing((SamplerGaussian const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3,(ReannealingTrivial const &)*arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussianSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GaussianSimulatedAnnealing__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerGaussian *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  ReannealingTrivial *arg4 = 0 ;
  Real arg5 ;
  Real arg6 ;
  Size arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  size_t val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  GaussianSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussianSimulatedAnnealing",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerGaussian,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerGaussian const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerGaussian const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerGaussian * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ReannealingTrivial,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  arg4 = reinterpret_cast< ReannealingTrivial * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  ecode7 = SWIG_AsVal_size_t(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "7"" of type '" "Size""'");
  } 
  arg7 = static_cast< Size >(val7);
  {
    try {
      result = (GaussianSimulatedAnnealing *)new GaussianSimulatedAnnealing((SamplerGaussian const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3,(ReannealingTrivial const &)*arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussianSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GaussianSimulatedAnnealing__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerGaussian *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  ReannealingTrivial *arg4 = 0 ;
  Real arg5 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  GaussianSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussianSimulatedAnnealing",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerGaussian,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerGaussian const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerGaussian const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerGaussian * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ReannealingTrivial,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  arg4 = reinterpret_cast< ReannealingTrivial * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (GaussianSimulatedAnnealing *)new GaussianSimulatedAnnealing((SamplerGaussian const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3,(ReannealingTrivial const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussianSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GaussianSimulatedAnnealing__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerGaussian *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  ReannealingTrivial *arg4 = 0 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  GaussianSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussianSimulatedAnnealing",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerGaussian,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerGaussian const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerGaussian const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerGaussian * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ReannealingTrivial,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  arg4 = reinterpret_cast< ReannealingTrivial * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (GaussianSimulatedAnnealing *)new GaussianSimulatedAnnealing((SamplerGaussian const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3,(ReannealingTrivial const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussianSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GaussianSimulatedAnnealing__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerGaussian *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  ReannealingTrivial *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  GaussianSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussianSimulatedAnnealing",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerGaussian,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerGaussian const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerGaussian const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerGaussian * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ReannealingTrivial,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  arg4 = reinterpret_cast< ReannealingTrivial * >(argp4);
  {
    try {
      result = (GaussianSimulatedAnnealing *)new GaussianSimulatedAnnealing((SamplerGaussian const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3,(ReannealingTrivial const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussianSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GaussianSimulatedAnnealing__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerGaussian *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  GaussianSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussianSimulatedAnnealing",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerGaussian,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerGaussian const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerGaussian const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerGaussian * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  {
    try {
      result = (GaussianSimulatedAnnealing *)new GaussianSimulatedAnnealing((SamplerGaussian const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussianSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GaussianSimulatedAnnealing(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerGaussian, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_GaussianSimulatedAnnealing__SWIG_6(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerGaussian, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ReannealingTrivial, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_GaussianSimulatedAnnealing__SWIG_5(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerGaussian, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ReannealingTrivial, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_GaussianSimulatedAnnealing__SWIG_4(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerGaussian, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ReannealingTrivial, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_GaussianSimulatedAnnealing__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerGaussian, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ReannealingTrivial, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0;
                }
                if (_v) {
                  return _wrap_new_GaussianSimulatedAnnealing__SWIG_2(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerGaussian, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ReannealingTrivial, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0;
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_GaussianSimulatedAnnealing__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerGaussian, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ReannealingTrivial, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0;
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
                    }
                    if (_v) {
                      return _wrap_new_GaussianSimulatedAnnealing__SWIG_0(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GaussianSimulatedAnnealing'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    GaussianSimulatedAnnealing::GaussianSimulatedAnnealing(SamplerGaussian const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &,ReannealingTrivial const &,Real,Real,Size,GaussianSimulatedAnnealing::ResetScheme,Size)\n"
    "    GaussianSimulatedAnnealing::GaussianSimulatedAnnealing(SamplerGaussian const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &,ReannealingTrivial const &,Real,Real,Size,GaussianSimulatedAnnealing::ResetScheme)\n"
    "    GaussianSimulatedAnnealing::GaussianSimulatedAnnealing(SamplerGaussian const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &,ReannealingTrivial const &,Real,Real,Size)\n"
    "    GaussianSimulatedAnnealing::GaussianSimulatedAnnealing(SamplerGaussian const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &,ReannealingTrivial const &,Real,Real)\n"
    "    GaussianSimulatedAnnealing::GaussianSimulatedAnnealing(SamplerGaussian const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &,ReannealingTrivial const &,Real)\n"
    "    GaussianSimulatedAnnealing::GaussianSimulatedAnnealing(SamplerGaussian const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &,ReannealingTrivial const &)\n"
    "    GaussianSimulatedAnnealing::GaussianSimulatedAnnealing(SamplerGaussian const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_GaussianSimulatedAnnealing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianSimulatedAnnealing *arg1 = (GaussianSimulatedAnnealing *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GaussianSimulatedAnnealing",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianSimulatedAnnealing, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GaussianSimulatedAnnealing" "', argument " "1"" of type '" "GaussianSimulatedAnnealing *""'"); 
  }
  arg1 = reinterpret_cast< GaussianSimulatedAnnealing * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GaussianSimulatedAnnealing_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GaussianSimulatedAnnealing, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MirrorGaussianSimulatedAnnealing__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerMirrorGaussian *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  ReannealingTrivial *arg4 = 0 ;
  Real arg5 ;
  Real arg6 ;
  Size arg7 ;
  MirrorGaussianSimulatedAnnealing::ResetScheme arg8 ;
  Size arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  size_t val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  size_t val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  MirrorGaussianSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MirrorGaussianSimulatedAnnealing",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerMirrorGaussian,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerMirrorGaussian const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerMirrorGaussian const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerMirrorGaussian * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ReannealingTrivial,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  arg4 = reinterpret_cast< ReannealingTrivial * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  ecode7 = SWIG_AsVal_size_t(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "7"" of type '" "Size""'");
  } 
  arg7 = static_cast< Size >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "8"" of type '" "MirrorGaussianSimulatedAnnealing::ResetScheme""'");
  } 
  arg8 = static_cast< MirrorGaussianSimulatedAnnealing::ResetScheme >(val8);
  ecode9 = SWIG_AsVal_size_t(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "9"" of type '" "Size""'");
  } 
  arg9 = static_cast< Size >(val9);
  {
    try {
      result = (MirrorGaussianSimulatedAnnealing *)new MirrorGaussianSimulatedAnnealing((SamplerMirrorGaussian const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3,(ReannealingTrivial const &)*arg4,arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MirrorGaussianSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MirrorGaussianSimulatedAnnealing__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerMirrorGaussian *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  ReannealingTrivial *arg4 = 0 ;
  Real arg5 ;
  Real arg6 ;
  Size arg7 ;
  MirrorGaussianSimulatedAnnealing::ResetScheme arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  size_t val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  MirrorGaussianSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MirrorGaussianSimulatedAnnealing",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerMirrorGaussian,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerMirrorGaussian const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerMirrorGaussian const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerMirrorGaussian * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ReannealingTrivial,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  arg4 = reinterpret_cast< ReannealingTrivial * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  ecode7 = SWIG_AsVal_size_t(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "7"" of type '" "Size""'");
  } 
  arg7 = static_cast< Size >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "8"" of type '" "MirrorGaussianSimulatedAnnealing::ResetScheme""'");
  } 
  arg8 = static_cast< MirrorGaussianSimulatedAnnealing::ResetScheme >(val8);
  {
    try {
      result = (MirrorGaussianSimulatedAnnealing *)new MirrorGaussianSimulatedAnnealing((SamplerMirrorGaussian const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3,(ReannealingTrivial const &)*arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MirrorGaussianSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MirrorGaussianSimulatedAnnealing__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerMirrorGaussian *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  ReannealingTrivial *arg4 = 0 ;
  Real arg5 ;
  Real arg6 ;
  Size arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  size_t val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  MirrorGaussianSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MirrorGaussianSimulatedAnnealing",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerMirrorGaussian,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerMirrorGaussian const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerMirrorGaussian const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerMirrorGaussian * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ReannealingTrivial,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  arg4 = reinterpret_cast< ReannealingTrivial * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  ecode7 = SWIG_AsVal_size_t(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "7"" of type '" "Size""'");
  } 
  arg7 = static_cast< Size >(val7);
  {
    try {
      result = (MirrorGaussianSimulatedAnnealing *)new MirrorGaussianSimulatedAnnealing((SamplerMirrorGaussian const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3,(ReannealingTrivial const &)*arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MirrorGaussianSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MirrorGaussianSimulatedAnnealing__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerMirrorGaussian *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  ReannealingTrivial *arg4 = 0 ;
  Real arg5 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  MirrorGaussianSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MirrorGaussianSimulatedAnnealing",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerMirrorGaussian,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerMirrorGaussian const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerMirrorGaussian const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerMirrorGaussian * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ReannealingTrivial,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  arg4 = reinterpret_cast< ReannealingTrivial * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (MirrorGaussianSimulatedAnnealing *)new MirrorGaussianSimulatedAnnealing((SamplerMirrorGaussian const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3,(ReannealingTrivial const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MirrorGaussianSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MirrorGaussianSimulatedAnnealing__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerMirrorGaussian *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  ReannealingTrivial *arg4 = 0 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  MirrorGaussianSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MirrorGaussianSimulatedAnnealing",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerMirrorGaussian,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerMirrorGaussian const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerMirrorGaussian const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerMirrorGaussian * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ReannealingTrivial,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  arg4 = reinterpret_cast< ReannealingTrivial * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (MirrorGaussianSimulatedAnnealing *)new MirrorGaussianSimulatedAnnealing((SamplerMirrorGaussian const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3,(ReannealingTrivial const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MirrorGaussianSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MirrorGaussianSimulatedAnnealing__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerMirrorGaussian *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  ReannealingTrivial *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  MirrorGaussianSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MirrorGaussianSimulatedAnnealing",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerMirrorGaussian,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerMirrorGaussian const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerMirrorGaussian const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerMirrorGaussian * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ReannealingTrivial,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  arg4 = reinterpret_cast< ReannealingTrivial * >(argp4);
  {
    try {
      result = (MirrorGaussianSimulatedAnnealing *)new MirrorGaussianSimulatedAnnealing((SamplerMirrorGaussian const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3,(ReannealingTrivial const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MirrorGaussianSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MirrorGaussianSimulatedAnnealing__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerMirrorGaussian *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  MirrorGaussianSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MirrorGaussianSimulatedAnnealing",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerMirrorGaussian,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerMirrorGaussian const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "1"" of type '" "SamplerMirrorGaussian const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerMirrorGaussian * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorGaussianSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  {
    try {
      result = (MirrorGaussianSimulatedAnnealing *)new MirrorGaussianSimulatedAnnealing((SamplerMirrorGaussian const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MirrorGaussianSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MirrorGaussianSimulatedAnnealing(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerMirrorGaussian, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_MirrorGaussianSimulatedAnnealing__SWIG_6(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerMirrorGaussian, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ReannealingTrivial, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_MirrorGaussianSimulatedAnnealing__SWIG_5(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerMirrorGaussian, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ReannealingTrivial, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_MirrorGaussianSimulatedAnnealing__SWIG_4(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerMirrorGaussian, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ReannealingTrivial, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_MirrorGaussianSimulatedAnnealing__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerMirrorGaussian, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ReannealingTrivial, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0;
                }
                if (_v) {
                  return _wrap_new_MirrorGaussianSimulatedAnnealing__SWIG_2(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerMirrorGaussian, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ReannealingTrivial, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0;
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_MirrorGaussianSimulatedAnnealing__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerMirrorGaussian, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ReannealingTrivial, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0;
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
                    }
                    if (_v) {
                      return _wrap_new_MirrorGaussianSimulatedAnnealing__SWIG_0(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_MirrorGaussianSimulatedAnnealing'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    MirrorGaussianSimulatedAnnealing::MirrorGaussianSimulatedAnnealing(SamplerMirrorGaussian const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &,ReannealingTrivial const &,Real,Real,Size,MirrorGaussianSimulatedAnnealing::ResetScheme,Size)\n"
    "    MirrorGaussianSimulatedAnnealing::MirrorGaussianSimulatedAnnealing(SamplerMirrorGaussian const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &,ReannealingTrivial const &,Real,Real,Size,MirrorGaussianSimulatedAnnealing::ResetScheme)\n"
    "    MirrorGaussianSimulatedAnnealing::MirrorGaussianSimulatedAnnealing(SamplerMirrorGaussian const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &,ReannealingTrivial const &,Real,Real,Size)\n"
    "    MirrorGaussianSimulatedAnnealing::MirrorGaussianSimulatedAnnealing(SamplerMirrorGaussian const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &,ReannealingTrivial const &,Real,Real)\n"
    "    MirrorGaussianSimulatedAnnealing::MirrorGaussianSimulatedAnnealing(SamplerMirrorGaussian const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &,ReannealingTrivial const &,Real)\n"
    "    MirrorGaussianSimulatedAnnealing::MirrorGaussianSimulatedAnnealing(SamplerMirrorGaussian const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &,ReannealingTrivial const &)\n"
    "    MirrorGaussianSimulatedAnnealing::MirrorGaussianSimulatedAnnealing(SamplerMirrorGaussian const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_MirrorGaussianSimulatedAnnealing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MirrorGaussianSimulatedAnnealing *arg1 = (MirrorGaussianSimulatedAnnealing *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MirrorGaussianSimulatedAnnealing",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MirrorGaussianSimulatedAnnealing, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MirrorGaussianSimulatedAnnealing" "', argument " "1"" of type '" "MirrorGaussianSimulatedAnnealing *""'"); 
  }
  arg1 = reinterpret_cast< MirrorGaussianSimulatedAnnealing * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MirrorGaussianSimulatedAnnealing_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MirrorGaussianSimulatedAnnealing, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_LogNormalSimulatedAnnealing__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerLogNormal *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  ReannealingTrivial *arg4 = 0 ;
  Real arg5 ;
  Real arg6 ;
  Size arg7 ;
  LogNormalSimulatedAnnealing::ResetScheme arg8 ;
  Size arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  size_t val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  size_t val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  LogNormalSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogNormalSimulatedAnnealing",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerLogNormal,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "1"" of type '" "SamplerLogNormal const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "1"" of type '" "SamplerLogNormal const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerLogNormal * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ReannealingTrivial,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  arg4 = reinterpret_cast< ReannealingTrivial * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  ecode7 = SWIG_AsVal_size_t(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "7"" of type '" "Size""'");
  } 
  arg7 = static_cast< Size >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "8"" of type '" "LogNormalSimulatedAnnealing::ResetScheme""'");
  } 
  arg8 = static_cast< LogNormalSimulatedAnnealing::ResetScheme >(val8);
  ecode9 = SWIG_AsVal_size_t(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "9"" of type '" "Size""'");
  } 
  arg9 = static_cast< Size >(val9);
  {
    try {
      result = (LogNormalSimulatedAnnealing *)new LogNormalSimulatedAnnealing((SamplerLogNormal const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3,(ReannealingTrivial const &)*arg4,arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LogNormalSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LogNormalSimulatedAnnealing__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerLogNormal *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  ReannealingTrivial *arg4 = 0 ;
  Real arg5 ;
  Real arg6 ;
  Size arg7 ;
  LogNormalSimulatedAnnealing::ResetScheme arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  size_t val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  LogNormalSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogNormalSimulatedAnnealing",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerLogNormal,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "1"" of type '" "SamplerLogNormal const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "1"" of type '" "SamplerLogNormal const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerLogNormal * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ReannealingTrivial,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  arg4 = reinterpret_cast< ReannealingTrivial * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  ecode7 = SWIG_AsVal_size_t(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "7"" of type '" "Size""'");
  } 
  arg7 = static_cast< Size >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "8"" of type '" "LogNormalSimulatedAnnealing::ResetScheme""'");
  } 
  arg8 = static_cast< LogNormalSimulatedAnnealing::ResetScheme >(val8);
  {
    try {
      result = (LogNormalSimulatedAnnealing *)new LogNormalSimulatedAnnealing((SamplerLogNormal const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3,(ReannealingTrivial const &)*arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LogNormalSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LogNormalSimulatedAnnealing__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerLogNormal *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  ReannealingTrivial *arg4 = 0 ;
  Real arg5 ;
  Real arg6 ;
  Size arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  size_t val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  LogNormalSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogNormalSimulatedAnnealing",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerLogNormal,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "1"" of type '" "SamplerLogNormal const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "1"" of type '" "SamplerLogNormal const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerLogNormal * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ReannealingTrivial,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  arg4 = reinterpret_cast< ReannealingTrivial * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  ecode7 = SWIG_AsVal_size_t(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "7"" of type '" "Size""'");
  } 
  arg7 = static_cast< Size >(val7);
  {
    try {
      result = (LogNormalSimulatedAnnealing *)new LogNormalSimulatedAnnealing((SamplerLogNormal const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3,(ReannealingTrivial const &)*arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LogNormalSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LogNormalSimulatedAnnealing__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerLogNormal *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  ReannealingTrivial *arg4 = 0 ;
  Real arg5 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  LogNormalSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogNormalSimulatedAnnealing",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerLogNormal,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "1"" of type '" "SamplerLogNormal const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "1"" of type '" "SamplerLogNormal const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerLogNormal * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ReannealingTrivial,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  arg4 = reinterpret_cast< ReannealingTrivial * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (LogNormalSimulatedAnnealing *)new LogNormalSimulatedAnnealing((SamplerLogNormal const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3,(ReannealingTrivial const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LogNormalSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LogNormalSimulatedAnnealing__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerLogNormal *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  ReannealingTrivial *arg4 = 0 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  LogNormalSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogNormalSimulatedAnnealing",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerLogNormal,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "1"" of type '" "SamplerLogNormal const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "1"" of type '" "SamplerLogNormal const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerLogNormal * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ReannealingTrivial,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  arg4 = reinterpret_cast< ReannealingTrivial * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (LogNormalSimulatedAnnealing *)new LogNormalSimulatedAnnealing((SamplerLogNormal const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3,(ReannealingTrivial const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LogNormalSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LogNormalSimulatedAnnealing__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerLogNormal *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  ReannealingTrivial *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  LogNormalSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogNormalSimulatedAnnealing",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerLogNormal,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "1"" of type '" "SamplerLogNormal const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "1"" of type '" "SamplerLogNormal const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerLogNormal * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_ReannealingTrivial,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "4"" of type '" "ReannealingTrivial const &""'"); 
  }
  arg4 = reinterpret_cast< ReannealingTrivial * >(argp4);
  {
    try {
      result = (LogNormalSimulatedAnnealing *)new LogNormalSimulatedAnnealing((SamplerLogNormal const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3,(ReannealingTrivial const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LogNormalSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LogNormalSimulatedAnnealing__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SamplerLogNormal *arg1 = 0 ;
  ProbabilityBoltzmannDownhill *arg2 = 0 ;
  TemperatureExponential *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  LogNormalSimulatedAnnealing *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogNormalSimulatedAnnealing",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SamplerLogNormal,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "1"" of type '" "SamplerLogNormal const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "1"" of type '" "SamplerLogNormal const &""'"); 
  }
  arg1 = reinterpret_cast< SamplerLogNormal * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ProbabilityBoltzmannDownhill,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "2"" of type '" "ProbabilityBoltzmannDownhill const &""'"); 
  }
  arg2 = reinterpret_cast< ProbabilityBoltzmannDownhill * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_TemperatureExponential,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogNormalSimulatedAnnealing" "', argument " "3"" of type '" "TemperatureExponential const &""'"); 
  }
  arg3 = reinterpret_cast< TemperatureExponential * >(argp3);
  {
    try {
      result = (LogNormalSimulatedAnnealing *)new LogNormalSimulatedAnnealing((SamplerLogNormal const &)*arg1,(ProbabilityBoltzmannDownhill const &)*arg2,(TemperatureExponential const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LogNormalSimulatedAnnealing, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LogNormalSimulatedAnnealing(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerLogNormal, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_LogNormalSimulatedAnnealing__SWIG_6(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerLogNormal, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ReannealingTrivial, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_LogNormalSimulatedAnnealing__SWIG_5(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerLogNormal, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ReannealingTrivial, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_LogNormalSimulatedAnnealing__SWIG_4(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerLogNormal, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ReannealingTrivial, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_LogNormalSimulatedAnnealing__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerLogNormal, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ReannealingTrivial, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0;
                }
                if (_v) {
                  return _wrap_new_LogNormalSimulatedAnnealing__SWIG_2(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerLogNormal, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ReannealingTrivial, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0;
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_LogNormalSimulatedAnnealing__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SamplerLogNormal, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ProbabilityBoltzmannDownhill, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_TemperatureExponential, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_ReannealingTrivial, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0;
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
                    }
                    if (_v) {
                      return _wrap_new_LogNormalSimulatedAnnealing__SWIG_0(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LogNormalSimulatedAnnealing'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    LogNormalSimulatedAnnealing::LogNormalSimulatedAnnealing(SamplerLogNormal const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &,ReannealingTrivial const &,Real,Real,Size,LogNormalSimulatedAnnealing::ResetScheme,Size)\n"
    "    LogNormalSimulatedAnnealing::LogNormalSimulatedAnnealing(SamplerLogNormal const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &,ReannealingTrivial const &,Real,Real,Size,LogNormalSimulatedAnnealing::ResetScheme)\n"
    "    LogNormalSimulatedAnnealing::LogNormalSimulatedAnnealing(SamplerLogNormal const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &,ReannealingTrivial const &,Real,Real,Size)\n"
    "    LogNormalSimulatedAnnealing::LogNormalSimulatedAnnealing(SamplerLogNormal const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &,ReannealingTrivial const &,Real,Real)\n"
    "    LogNormalSimulatedAnnealing::LogNormalSimulatedAnnealing(SamplerLogNormal const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &,ReannealingTrivial const &,Real)\n"
    "    LogNormalSimulatedAnnealing::LogNormalSimulatedAnnealing(SamplerLogNormal const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &,ReannealingTrivial const &)\n"
    "    LogNormalSimulatedAnnealing::LogNormalSimulatedAnnealing(SamplerLogNormal const &,ProbabilityBoltzmannDownhill const &,TemperatureExponential const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_LogNormalSimulatedAnnealing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LogNormalSimulatedAnnealing *arg1 = (LogNormalSimulatedAnnealing *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LogNormalSimulatedAnnealing",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LogNormalSimulatedAnnealing, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LogNormalSimulatedAnnealing" "', argument " "1"" of type '" "LogNormalSimulatedAnnealing *""'"); 
  }
  arg1 = reinterpret_cast< LogNormalSimulatedAnnealing * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LogNormalSimulatedAnnealing_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_LogNormalSimulatedAnnealing, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Optimizer_solve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Optimizer *arg1 = (Optimizer *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Constraint *arg3 = 0 ;
  OptimizationMethod *arg4 = 0 ;
  EndCriteria *arg5 = 0 ;
  Array *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Optimizer_solve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Optimizer, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Optimizer_solve" "', argument " "1"" of type '" "Optimizer *""'"); 
  }
  arg1 = reinterpret_cast< Optimizer * >(argp1);
  arg2 = obj1;
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Constraint,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Optimizer_solve" "', argument " "3"" of type '" "Constraint &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Optimizer_solve" "', argument " "3"" of type '" "Constraint &""'"); 
  }
  arg3 = reinterpret_cast< Constraint * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Optimizer_solve" "', argument " "4"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Optimizer_solve" "', argument " "4"" of type '" "OptimizationMethod &""'"); 
  }
  arg4 = reinterpret_cast< OptimizationMethod * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_EndCriteria,  0 );
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Optimizer_solve" "', argument " "5"" of type '" "EndCriteria &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Optimizer_solve" "', argument " "5"" of type '" "EndCriteria &""'"); 
  }
  arg5 = reinterpret_cast< EndCriteria * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Array,  0 );
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Optimizer_solve" "', argument " "6"" of type '" "Array &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Optimizer_solve" "', argument " "6"" of type '" "Array &""'"); 
  }
  arg6 = reinterpret_cast< Array * >(argp6);
  {
    try {
      result = Optimizer_solve(arg1,arg2,*arg3,*arg4,*arg5,*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Optimizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Optimizer *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Optimizer",0,0)) SWIG_fail;
  {
    try {
      result = (Optimizer *)new Optimizer();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Optimizer, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Optimizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Optimizer *arg1 = (Optimizer *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Optimizer",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Optimizer, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Optimizer" "', argument " "1"" of type '" "Optimizer *""'"); 
  }
  arg1 = reinterpret_cast< Optimizer * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Optimizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Optimizer, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_BlackVolTermStructure___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BlackVolTermStructure *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure___deref__" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (BlackVolTermStructure *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackVolTermStructure, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_BlackVolTermStructure_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure___bool__" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_BlackVolTermStructure_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_asObservable" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_BlackVolTermStructure_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackVolTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackVolTermStructure",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< BlackVolTermStructure > *)new boost::shared_ptr< BlackVolTermStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BlackVolTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BlackVolTermStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlackVolTermStructure" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_referenceDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_referenceDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_referenceDate" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->referenceDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_dayCounter" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->dayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_calendar" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->calendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_maxDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_maxDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_maxDate" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->maxDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_maxTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_maxTime",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_maxTime" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (Time)(*arg1)->maxTime();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_minStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_minStrike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_minStrike" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->minStrike();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_maxStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_maxStrike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_maxStrike" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->maxStrike();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackVol__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_blackVol",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_blackVol" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlackVolTermStructure_blackVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructure_blackVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructure_blackVol" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructure_blackVol" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Volatility)(*arg1)->blackVol((Date const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackVol__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_blackVol",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_blackVol" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlackVolTermStructure_blackVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructure_blackVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructure_blackVol" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Volatility)(*arg1)->blackVol((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackVol__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  Time arg2 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_blackVol",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_blackVol" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackVolTermStructure_blackVol" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructure_blackVol" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructure_blackVol" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Volatility)(*arg1)->blackVol(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackVol__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  Time arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_blackVol",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_blackVol" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackVolTermStructure_blackVol" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructure_blackVol" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Volatility)(*arg1)->blackVol(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackVol(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_BlackVolTermStructure_blackVol__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_BlackVolTermStructure_blackVol__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BlackVolTermStructure_blackVol__SWIG_0(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BlackVolTermStructure_blackVol__SWIG_2(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BlackVolTermStructure_blackVol'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BlackVolTermStructure::blackVol(Date const &,Real,bool) const\n"
    "    BlackVolTermStructure::blackVol(Date const &,Real) const\n"
    "    BlackVolTermStructure::blackVol(Time,Real,bool) const\n"
    "    BlackVolTermStructure::blackVol(Time,Real) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackVariance__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_blackVariance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_blackVariance" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlackVolTermStructure_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructure_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructure_blackVariance" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructure_blackVariance" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Real)(*arg1)->blackVariance((Date const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackVariance__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_blackVariance",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_blackVariance" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlackVolTermStructure_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructure_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructure_blackVariance" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Real)(*arg1)->blackVariance((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackVariance__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  Time arg2 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_blackVariance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_blackVariance" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackVolTermStructure_blackVariance" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructure_blackVariance" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructure_blackVariance" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Real)(*arg1)->blackVariance(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackVariance__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  Time arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_blackVariance",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_blackVariance" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackVolTermStructure_blackVariance" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructure_blackVariance" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Real)(*arg1)->blackVariance(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackVariance(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_BlackVolTermStructure_blackVariance__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_BlackVolTermStructure_blackVariance__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BlackVolTermStructure_blackVariance__SWIG_0(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BlackVolTermStructure_blackVariance__SWIG_2(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BlackVolTermStructure_blackVariance'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BlackVolTermStructure::blackVariance(Date const &,Real,bool) const\n"
    "    BlackVolTermStructure::blackVariance(Date const &,Real) const\n"
    "    BlackVolTermStructure::blackVariance(Time,Real,bool) const\n"
    "    BlackVolTermStructure::blackVariance(Time,Real) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackForwardVol__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  Real arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_blackForwardVol",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Volatility)(*arg1)->blackForwardVol((Date const &)*arg2,(Date const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackForwardVol__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_blackForwardVol",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Volatility)(*arg1)->blackForwardVol((Date const &)*arg2,(Date const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackForwardVol__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Real arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_blackForwardVol",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Volatility)(*arg1)->blackForwardVol(arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackForwardVol__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_blackForwardVol",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructure_blackForwardVol" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Volatility)(*arg1)->blackForwardVol(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackForwardVol(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BlackVolTermStructure_blackForwardVol__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BlackVolTermStructure_blackForwardVol__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_BlackVolTermStructure_blackForwardVol__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_BlackVolTermStructure_blackForwardVol__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BlackVolTermStructure_blackForwardVol'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BlackVolTermStructure::blackForwardVol(Date const &,Date const &,Real,bool) const\n"
    "    BlackVolTermStructure::blackForwardVol(Date const &,Date const &,Real) const\n"
    "    BlackVolTermStructure::blackForwardVol(Time,Time,Real,bool) const\n"
    "    BlackVolTermStructure::blackForwardVol(Time,Time,Real) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackForwardVariance__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  Real arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_blackForwardVariance",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Real)(*arg1)->blackForwardVariance((Date const &)*arg2,(Date const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackForwardVariance__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_blackForwardVariance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)(*arg1)->blackForwardVariance((Date const &)*arg2,(Date const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackForwardVariance__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Real arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_blackForwardVariance",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Real)(*arg1)->blackForwardVariance(arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackForwardVariance__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_blackForwardVariance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructure_blackForwardVariance" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)(*arg1)->blackForwardVariance(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_blackForwardVariance(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BlackVolTermStructure_blackForwardVariance__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BlackVolTermStructure_blackForwardVariance__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_BlackVolTermStructure_blackForwardVariance__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_BlackVolTermStructure_blackForwardVariance__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BlackVolTermStructure_blackForwardVariance'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BlackVolTermStructure::blackForwardVariance(Date const &,Date const &,Real,bool) const\n"
    "    BlackVolTermStructure::blackForwardVariance(Date const &,Date const &,Real) const\n"
    "    BlackVolTermStructure::blackForwardVariance(Time,Time,Real,bool) const\n"
    "    BlackVolTermStructure::blackForwardVariance(Time,Time,Real) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_enableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_enableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_enableExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  {
    try {
      (*arg1)->enableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_disableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_disableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_disableExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  {
    try {
      (*arg1)->disableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructure_allowsExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = (boost::shared_ptr< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructure_allowsExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructure_allowsExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->allowsExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BlackVolTermStructure_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BlackVolTermStructureHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< BlackVolTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackVolTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackVolTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackVolTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (Handle< BlackVolTermStructure > *)new Handle< BlackVolTermStructure >((boost::shared_ptr< BlackVolTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_BlackVolTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackVolTermStructureHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackVolTermStructureHandle",0,0)) SWIG_fail;
  {
    try {
      result = (Handle< BlackVolTermStructure > *)new Handle< BlackVolTermStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_BlackVolTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackVolTermStructureHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_BlackVolTermStructureHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_BlackVolTermStructureHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BlackVolTermStructureHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Handle< BlackVolTermStructure >::Handle(boost::shared_ptr< BlackVolTermStructure > const &)\n"
    "    Handle< BlackVolTermStructure >::Handle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< BlackVolTermStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle___deref__" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< BlackVolTermStructure >(static_cast< const boost::shared_ptr< BlackVolTermStructure >& >(result))), SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle___nonzero__" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_BlackVolTermStructure_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle___bool__" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_BlackVolTermStructure_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_asObservable" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = Handle_Sl_BlackVolTermStructure_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BlackVolTermStructureHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BlackVolTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlackVolTermStructureHandle" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_referenceDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_referenceDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_referenceDate" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->referenceDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_dayCounter" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->dayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_calendar" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->calendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_maxDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_maxDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_maxDate" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->maxDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_maxTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_maxTime",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_maxTime" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (Time)(*arg1)->maxTime();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_minStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_minStrike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_minStrike" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->minStrike();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_maxStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_maxStrike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_maxStrike" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->maxStrike();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackVol__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_blackVol",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_blackVol" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlackVolTermStructureHandle_blackVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructureHandle_blackVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructureHandle_blackVol" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructureHandle_blackVol" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Volatility)(*arg1)->blackVol((Date const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackVol__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_blackVol",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_blackVol" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlackVolTermStructureHandle_blackVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructureHandle_blackVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructureHandle_blackVol" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Volatility)(*arg1)->blackVol((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackVol__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  Time arg2 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_blackVol",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_blackVol" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackVolTermStructureHandle_blackVol" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructureHandle_blackVol" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructureHandle_blackVol" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Volatility)(*arg1)->blackVol(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackVol__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  Time arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_blackVol",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_blackVol" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackVolTermStructureHandle_blackVol" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructureHandle_blackVol" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Volatility)(*arg1)->blackVol(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackVol(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_BlackVolTermStructureHandle_blackVol__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_BlackVolTermStructureHandle_blackVol__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BlackVolTermStructureHandle_blackVol__SWIG_0(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BlackVolTermStructureHandle_blackVol__SWIG_2(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BlackVolTermStructureHandle_blackVol'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BlackVolTermStructure::blackVol(Date const &,Real,bool) const\n"
    "    BlackVolTermStructure::blackVol(Date const &,Real) const\n"
    "    BlackVolTermStructure::blackVol(Time,Real,bool) const\n"
    "    BlackVolTermStructure::blackVol(Time,Real) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackVariance__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_blackVariance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_blackVariance" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlackVolTermStructureHandle_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructureHandle_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructureHandle_blackVariance" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructureHandle_blackVariance" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Real)(*arg1)->blackVariance((Date const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackVariance__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_blackVariance",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_blackVariance" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlackVolTermStructureHandle_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructureHandle_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructureHandle_blackVariance" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Real)(*arg1)->blackVariance((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackVariance__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  Time arg2 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_blackVariance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_blackVariance" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackVolTermStructureHandle_blackVariance" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructureHandle_blackVariance" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructureHandle_blackVariance" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Real)(*arg1)->blackVariance(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackVariance__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  Time arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_blackVariance",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_blackVariance" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackVolTermStructureHandle_blackVariance" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructureHandle_blackVariance" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Real)(*arg1)->blackVariance(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackVariance(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_BlackVolTermStructureHandle_blackVariance__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_BlackVolTermStructureHandle_blackVariance__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BlackVolTermStructureHandle_blackVariance__SWIG_0(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BlackVolTermStructureHandle_blackVariance__SWIG_2(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BlackVolTermStructureHandle_blackVariance'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BlackVolTermStructure::blackVariance(Date const &,Real,bool) const\n"
    "    BlackVolTermStructure::blackVariance(Date const &,Real) const\n"
    "    BlackVolTermStructure::blackVariance(Time,Real,bool) const\n"
    "    BlackVolTermStructure::blackVariance(Time,Real) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackForwardVol__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  Real arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_blackForwardVol",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Volatility)(*arg1)->blackForwardVol((Date const &)*arg2,(Date const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackForwardVol__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_blackForwardVol",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Volatility)(*arg1)->blackForwardVol((Date const &)*arg2,(Date const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackForwardVol__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Real arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_blackForwardVol",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Volatility)(*arg1)->blackForwardVol(arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackForwardVol__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_blackForwardVol",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructureHandle_blackForwardVol" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Volatility)(*arg1)->blackForwardVol(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackForwardVol(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BlackVolTermStructureHandle_blackForwardVol__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BlackVolTermStructureHandle_blackForwardVol__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_BlackVolTermStructureHandle_blackForwardVol__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_BlackVolTermStructureHandle_blackForwardVol__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BlackVolTermStructureHandle_blackForwardVol'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BlackVolTermStructure::blackForwardVol(Date const &,Date const &,Real,bool) const\n"
    "    BlackVolTermStructure::blackForwardVol(Date const &,Date const &,Real) const\n"
    "    BlackVolTermStructure::blackForwardVol(Time,Time,Real,bool) const\n"
    "    BlackVolTermStructure::blackForwardVol(Time,Time,Real) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackForwardVariance__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  Real arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_blackForwardVariance",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Real)(*arg1)->blackForwardVariance((Date const &)*arg2,(Date const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackForwardVariance__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_blackForwardVariance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)(*arg1)->blackForwardVariance((Date const &)*arg2,(Date const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackForwardVariance__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Real arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_blackForwardVariance",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Real)(*arg1)->blackForwardVariance(arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackForwardVariance__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_blackForwardVariance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlackVolTermStructureHandle_blackForwardVariance" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)(*arg1)->blackForwardVariance(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_blackForwardVariance(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BlackVolTermStructureHandle_blackForwardVariance__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BlackVolTermStructureHandle_blackForwardVariance__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_BlackVolTermStructureHandle_blackForwardVariance__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_BlackVolTermStructureHandle_blackForwardVariance__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BlackVolTermStructureHandle_blackForwardVariance'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BlackVolTermStructure::blackForwardVariance(Date const &,Date const &,Real,bool) const\n"
    "    BlackVolTermStructure::blackForwardVariance(Date const &,Date const &,Real) const\n"
    "    BlackVolTermStructure::blackForwardVariance(Time,Time,Real,bool) const\n"
    "    BlackVolTermStructure::blackForwardVariance(Time,Time,Real) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_enableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_enableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_enableExtrapolation" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  {
    try {
      (*arg1)->enableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_disableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_disableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_disableExtrapolation" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  {
    try {
      (*arg1)->disableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVolTermStructureHandle_allowsExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = (Handle< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVolTermStructureHandle_allowsExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVolTermStructureHandle_allowsExtrapolation" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->allowsExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BlackVolTermStructureHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HandleT_BlackVolTermStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_RelinkableBlackVolTermStructureHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< BlackVolTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  RelinkableHandle< BlackVolTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableBlackVolTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RelinkableBlackVolTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RelinkableBlackVolTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< BlackVolTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp1);
  {
    try {
      result = (RelinkableHandle< BlackVolTermStructure > *)new RelinkableHandle< BlackVolTermStructure >((boost::shared_ptr< BlackVolTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_BlackVolTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableBlackVolTermStructureHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< BlackVolTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableBlackVolTermStructureHandle",0,0)) SWIG_fail;
  {
    try {
      result = (RelinkableHandle< BlackVolTermStructure > *)new RelinkableHandle< BlackVolTermStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_BlackVolTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableBlackVolTermStructureHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_RelinkableBlackVolTermStructureHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_RelinkableBlackVolTermStructureHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RelinkableBlackVolTermStructureHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    RelinkableHandle< BlackVolTermStructure >::RelinkableHandle(boost::shared_ptr< BlackVolTermStructure > const &)\n"
    "    RelinkableHandle< BlackVolTermStructure >::RelinkableHandle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableBlackVolTermStructureHandle_linkTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< BlackVolTermStructure > *arg1 = (RelinkableHandle< BlackVolTermStructure > *) 0 ;
  boost::shared_ptr< BlackVolTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableBlackVolTermStructureHandle_linkTo",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_BlackVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableBlackVolTermStructureHandle_linkTo" "', argument " "1"" of type '" "RelinkableHandle< BlackVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_BlackVolTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableBlackVolTermStructureHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< BlackVolTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableBlackVolTermStructureHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< BlackVolTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< BlackVolTermStructure > * >(argp2);
  {
    try {
      (arg1)->linkTo((boost::shared_ptr< BlackVolTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RelinkableBlackVolTermStructureHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< BlackVolTermStructure > *arg1 = (RelinkableHandle< BlackVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RelinkableBlackVolTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_BlackVolTermStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RelinkableBlackVolTermStructureHandle" "', argument " "1"" of type '" "RelinkableHandle< BlackVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< BlackVolTermStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RelinkableBlackVolTermStructureHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RelinkableHandleT_BlackVolTermStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_LocalVolTermStructure___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  LocalVolTermStructure *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructure___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructure___deref__" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (LocalVolTermStructure *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LocalVolTermStructure, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructure___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructure___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructure___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_LocalVolTermStructure_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructure___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructure___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructure___bool__" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_LocalVolTermStructure_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructure_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructure_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructure_asObservable" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_LocalVolTermStructure_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LocalVolTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LocalVolTermStructure",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< LocalVolTermStructure > *)new boost::shared_ptr< LocalVolTermStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_LocalVolTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LocalVolTermStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LocalVolTermStructure" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructure_referenceDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructure_referenceDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructure_referenceDate" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->referenceDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructure_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructure_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructure_dayCounter" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->dayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructure_calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructure_calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructure_calendar" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->calendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructure_maxDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructure_maxDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructure_maxDate" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->maxDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructure_maxTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructure_maxTime",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructure_maxTime" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (Time)(*arg1)->maxTime();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructure_minStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructure_minStrike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructure_minStrike" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->minStrike();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructure_maxStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructure_maxStrike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructure_maxStrike" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->maxStrike();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructure_localVol__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructure_localVol",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructure_localVol" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LocalVolTermStructure_localVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LocalVolTermStructure_localVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LocalVolTermStructure_localVol" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "LocalVolTermStructure_localVol" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Volatility)(*arg1)->localVol((Date const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructure_localVol__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructure_localVol",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructure_localVol" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LocalVolTermStructure_localVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LocalVolTermStructure_localVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LocalVolTermStructure_localVol" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Volatility)(*arg1)->localVol((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructure_localVol__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  Time arg2 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructure_localVol",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructure_localVol" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LocalVolTermStructure_localVol" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LocalVolTermStructure_localVol" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "LocalVolTermStructure_localVol" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Volatility)(*arg1)->localVol(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructure_localVol__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  Time arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructure_localVol",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructure_localVol" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LocalVolTermStructure_localVol" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LocalVolTermStructure_localVol" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Volatility)(*arg1)->localVol(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructure_localVol(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_LocalVolTermStructure_localVol__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_LocalVolTermStructure_localVol__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_LocalVolTermStructure_localVol__SWIG_0(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_LocalVolTermStructure_localVol__SWIG_2(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'LocalVolTermStructure_localVol'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    LocalVolTermStructure::localVol(Date const &,Real,bool) const\n"
    "    LocalVolTermStructure::localVol(Date const &,Real) const\n"
    "    LocalVolTermStructure::localVol(Time,Real,bool) const\n"
    "    LocalVolTermStructure::localVol(Time,Real) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructure_enableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructure_enableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructure_enableExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  {
    try {
      (*arg1)->enableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructure_disableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructure_disableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructure_disableExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  {
    try {
      (*arg1)->disableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructure_allowsExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = (boost::shared_ptr< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructure_allowsExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructure_allowsExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->allowsExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LocalVolTermStructure_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_LocalVolTermStructureHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< LocalVolTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LocalVolTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LocalVolTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalVolTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (Handle< LocalVolTermStructure > *)new Handle< LocalVolTermStructure >((boost::shared_ptr< LocalVolTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_LocalVolTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LocalVolTermStructureHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LocalVolTermStructureHandle",0,0)) SWIG_fail;
  {
    try {
      result = (Handle< LocalVolTermStructure > *)new Handle< LocalVolTermStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_LocalVolTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LocalVolTermStructureHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_LocalVolTermStructureHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_LocalVolTermStructureHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LocalVolTermStructureHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Handle< LocalVolTermStructure >::Handle(boost::shared_ptr< LocalVolTermStructure > const &)\n"
    "    Handle< LocalVolTermStructure >::Handle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< LocalVolTermStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructureHandle___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructureHandle___deref__" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< LocalVolTermStructure >(static_cast< const boost::shared_ptr< LocalVolTermStructure >& >(result))), SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructureHandle___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructureHandle___nonzero__" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_LocalVolTermStructure_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructureHandle___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructureHandle___bool__" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_LocalVolTermStructure_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructureHandle_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructureHandle_asObservable" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = Handle_Sl_LocalVolTermStructure_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_LocalVolTermStructureHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LocalVolTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LocalVolTermStructureHandle" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle_referenceDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructureHandle_referenceDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructureHandle_referenceDate" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->referenceDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructureHandle_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructureHandle_dayCounter" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->dayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle_calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructureHandle_calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructureHandle_calendar" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->calendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle_maxDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructureHandle_maxDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructureHandle_maxDate" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->maxDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle_maxTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructureHandle_maxTime",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructureHandle_maxTime" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (Time)(*arg1)->maxTime();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle_minStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructureHandle_minStrike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructureHandle_minStrike" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->minStrike();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle_maxStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructureHandle_maxStrike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructureHandle_maxStrike" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->maxStrike();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle_localVol__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructureHandle_localVol",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructureHandle_localVol" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LocalVolTermStructureHandle_localVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LocalVolTermStructureHandle_localVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LocalVolTermStructureHandle_localVol" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "LocalVolTermStructureHandle_localVol" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Volatility)(*arg1)->localVol((Date const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle_localVol__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructureHandle_localVol",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructureHandle_localVol" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LocalVolTermStructureHandle_localVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LocalVolTermStructureHandle_localVol" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LocalVolTermStructureHandle_localVol" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Volatility)(*arg1)->localVol((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle_localVol__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  Time arg2 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructureHandle_localVol",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructureHandle_localVol" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LocalVolTermStructureHandle_localVol" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LocalVolTermStructureHandle_localVol" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "LocalVolTermStructureHandle_localVol" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Volatility)(*arg1)->localVol(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle_localVol__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  Time arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructureHandle_localVol",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructureHandle_localVol" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LocalVolTermStructureHandle_localVol" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LocalVolTermStructureHandle_localVol" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Volatility)(*arg1)->localVol(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle_localVol(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_LocalVolTermStructureHandle_localVol__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_LocalVolTermStructureHandle_localVol__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_LocalVolTermStructureHandle_localVol__SWIG_0(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_LocalVolTermStructureHandle_localVol__SWIG_2(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'LocalVolTermStructureHandle_localVol'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    LocalVolTermStructure::localVol(Date const &,Real,bool) const\n"
    "    LocalVolTermStructure::localVol(Date const &,Real) const\n"
    "    LocalVolTermStructure::localVol(Time,Real,bool) const\n"
    "    LocalVolTermStructure::localVol(Time,Real) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle_enableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructureHandle_enableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructureHandle_enableExtrapolation" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  {
    try {
      (*arg1)->enableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle_disableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructureHandle_disableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructureHandle_disableExtrapolation" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  {
    try {
      (*arg1)->disableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LocalVolTermStructureHandle_allowsExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< LocalVolTermStructure > *arg1 = (Handle< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LocalVolTermStructureHandle_allowsExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocalVolTermStructureHandle_allowsExtrapolation" "', argument " "1"" of type '" "Handle< LocalVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->allowsExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LocalVolTermStructureHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HandleT_LocalVolTermStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_RelinkableLocalVolTermStructureHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< LocalVolTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  RelinkableHandle< LocalVolTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableLocalVolTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RelinkableLocalVolTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RelinkableLocalVolTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< LocalVolTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp1);
  {
    try {
      result = (RelinkableHandle< LocalVolTermStructure > *)new RelinkableHandle< LocalVolTermStructure >((boost::shared_ptr< LocalVolTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_LocalVolTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableLocalVolTermStructureHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< LocalVolTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableLocalVolTermStructureHandle",0,0)) SWIG_fail;
  {
    try {
      result = (RelinkableHandle< LocalVolTermStructure > *)new RelinkableHandle< LocalVolTermStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_LocalVolTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableLocalVolTermStructureHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_RelinkableLocalVolTermStructureHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_RelinkableLocalVolTermStructureHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RelinkableLocalVolTermStructureHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    RelinkableHandle< LocalVolTermStructure >::RelinkableHandle(boost::shared_ptr< LocalVolTermStructure > const &)\n"
    "    RelinkableHandle< LocalVolTermStructure >::RelinkableHandle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableLocalVolTermStructureHandle_linkTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< LocalVolTermStructure > *arg1 = (RelinkableHandle< LocalVolTermStructure > *) 0 ;
  boost::shared_ptr< LocalVolTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableLocalVolTermStructureHandle_linkTo",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_LocalVolTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableLocalVolTermStructureHandle_linkTo" "', argument " "1"" of type '" "RelinkableHandle< LocalVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< LocalVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_LocalVolTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableLocalVolTermStructureHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< LocalVolTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableLocalVolTermStructureHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< LocalVolTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< LocalVolTermStructure > * >(argp2);
  {
    try {
      (arg1)->linkTo((boost::shared_ptr< LocalVolTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RelinkableLocalVolTermStructureHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< LocalVolTermStructure > *arg1 = (RelinkableHandle< LocalVolTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RelinkableLocalVolTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_LocalVolTermStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RelinkableLocalVolTermStructureHandle" "', argument " "1"" of type '" "RelinkableHandle< LocalVolTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< LocalVolTermStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RelinkableLocalVolTermStructureHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RelinkableHandleT_LocalVolTermStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  OptionletVolatilityStructure *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure___deref__" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (OptionletVolatilityStructure *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OptionletVolatilityStructure, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_OptionletVolatilityStructure_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure___bool__" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_OptionletVolatilityStructure_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_asObservable" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_OptionletVolatilityStructure_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OptionletVolatilityStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_OptionletVolatilityStructure",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< OptionletVolatilityStructure > *)new boost::shared_ptr< OptionletVolatilityStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_OptionletVolatilityStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_OptionletVolatilityStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OptionletVolatilityStructure" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_referenceDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_referenceDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_referenceDate" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (*arg1)->referenceDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_dayCounter" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (*arg1)->dayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_calendar" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (*arg1)->calendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_maxDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_maxDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_maxDate" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (*arg1)->maxDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_maxTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_maxTime",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_maxTime" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (Time)(*arg1)->maxTime();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_minStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_minStrike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_minStrike" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->minStrike();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_maxStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_maxStrike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_maxStrike" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->maxStrike();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_volatility__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_volatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_volatility" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionletVolatilityStructure_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OptionletVolatilityStructure_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionletVolatilityStructure_volatility" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "OptionletVolatilityStructure_volatility" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Volatility)(*arg1)->volatility((Date const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_volatility__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_volatility",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_volatility" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionletVolatilityStructure_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OptionletVolatilityStructure_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionletVolatilityStructure_volatility" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Volatility)(*arg1)->volatility((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_volatility__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  Time arg2 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_volatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_volatility" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionletVolatilityStructure_volatility" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionletVolatilityStructure_volatility" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "OptionletVolatilityStructure_volatility" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Volatility)(*arg1)->volatility(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_volatility__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  Time arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_volatility",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_volatility" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionletVolatilityStructure_volatility" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionletVolatilityStructure_volatility" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Volatility)(*arg1)->volatility(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_volatility(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_OptionletVolatilityStructure_volatility__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_OptionletVolatilityStructure_volatility__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_OptionletVolatilityStructure_volatility__SWIG_0(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_OptionletVolatilityStructure_volatility__SWIG_2(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'OptionletVolatilityStructure_volatility'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    OptionletVolatilityStructure::volatility(Date const &,Real,bool) const\n"
    "    OptionletVolatilityStructure::volatility(Date const &,Real) const\n"
    "    OptionletVolatilityStructure::volatility(Time,Real,bool) const\n"
    "    OptionletVolatilityStructure::volatility(Time,Real) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_blackVariance__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Rate arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_blackVariance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_blackVariance" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionletVolatilityStructure_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OptionletVolatilityStructure_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionletVolatilityStructure_blackVariance" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "OptionletVolatilityStructure_blackVariance" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Real)(*arg1)->blackVariance((Date const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_blackVariance__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Rate arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_blackVariance",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_blackVariance" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionletVolatilityStructure_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OptionletVolatilityStructure_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionletVolatilityStructure_blackVariance" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  {
    try {
      result = (Real)(*arg1)->blackVariance((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_blackVariance__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  Time arg2 ;
  Rate arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_blackVariance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_blackVariance" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionletVolatilityStructure_blackVariance" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionletVolatilityStructure_blackVariance" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "OptionletVolatilityStructure_blackVariance" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Real)(*arg1)->blackVariance(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_blackVariance__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  Time arg2 ;
  Rate arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_blackVariance",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_blackVariance" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionletVolatilityStructure_blackVariance" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionletVolatilityStructure_blackVariance" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  {
    try {
      result = (Real)(*arg1)->blackVariance(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_blackVariance(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_OptionletVolatilityStructure_blackVariance__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_OptionletVolatilityStructure_blackVariance__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_OptionletVolatilityStructure_blackVariance__SWIG_0(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_OptionletVolatilityStructure_blackVariance__SWIG_2(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'OptionletVolatilityStructure_blackVariance'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    OptionletVolatilityStructure::blackVariance(Date const &,Rate,bool) const\n"
    "    OptionletVolatilityStructure::blackVariance(Date const &,Rate) const\n"
    "    OptionletVolatilityStructure::blackVariance(Time,Rate,bool) const\n"
    "    OptionletVolatilityStructure::blackVariance(Time,Rate) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_enableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_enableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_enableExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      (*arg1)->enableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_disableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_disableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_disableExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      (*arg1)->disableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructure_allowsExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = (boost::shared_ptr< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructure_allowsExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructure_allowsExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->allowsExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *OptionletVolatilityStructure_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_OptionletVolatilityStructureHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< OptionletVolatilityStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_OptionletVolatilityStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_OptionletVolatilityStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OptionletVolatilityStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (Handle< OptionletVolatilityStructure > *)new Handle< OptionletVolatilityStructure >((boost::shared_ptr< OptionletVolatilityStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OptionletVolatilityStructureHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_OptionletVolatilityStructureHandle",0,0)) SWIG_fail;
  {
    try {
      result = (Handle< OptionletVolatilityStructure > *)new Handle< OptionletVolatilityStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OptionletVolatilityStructureHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_OptionletVolatilityStructureHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_OptionletVolatilityStructureHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_OptionletVolatilityStructureHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Handle< OptionletVolatilityStructure >::Handle(boost::shared_ptr< OptionletVolatilityStructure > const &)\n"
    "    Handle< OptionletVolatilityStructure >::Handle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< OptionletVolatilityStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle___deref__" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< OptionletVolatilityStructure >(static_cast< const boost::shared_ptr< OptionletVolatilityStructure >& >(result))), SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle___nonzero__" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_OptionletVolatilityStructure_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle___bool__" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_OptionletVolatilityStructure_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_asObservable" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = Handle_Sl_OptionletVolatilityStructure_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_OptionletVolatilityStructureHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_OptionletVolatilityStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OptionletVolatilityStructureHandle" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_referenceDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_referenceDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_referenceDate" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (*arg1)->referenceDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_dayCounter" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (*arg1)->dayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_calendar" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (*arg1)->calendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_maxDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_maxDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_maxDate" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (*arg1)->maxDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_maxTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_maxTime",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_maxTime" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (Time)(*arg1)->maxTime();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_minStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_minStrike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_minStrike" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->minStrike();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_maxStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_maxStrike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_maxStrike" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->maxStrike();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_volatility__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_volatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_volatility" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionletVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OptionletVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionletVolatilityStructureHandle_volatility" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "OptionletVolatilityStructureHandle_volatility" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Volatility)(*arg1)->volatility((Date const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_volatility__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_volatility",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_volatility" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionletVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OptionletVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionletVolatilityStructureHandle_volatility" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Volatility)(*arg1)->volatility((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_volatility__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  Time arg2 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_volatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_volatility" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionletVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionletVolatilityStructureHandle_volatility" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "OptionletVolatilityStructureHandle_volatility" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Volatility)(*arg1)->volatility(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_volatility__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  Time arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_volatility",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_volatility" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionletVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionletVolatilityStructureHandle_volatility" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Volatility)(*arg1)->volatility(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_volatility(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_OptionletVolatilityStructureHandle_volatility__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_OptionletVolatilityStructureHandle_volatility__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_OptionletVolatilityStructureHandle_volatility__SWIG_0(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_OptionletVolatilityStructureHandle_volatility__SWIG_2(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'OptionletVolatilityStructureHandle_volatility'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    OptionletVolatilityStructure::volatility(Date const &,Real,bool) const\n"
    "    OptionletVolatilityStructure::volatility(Date const &,Real) const\n"
    "    OptionletVolatilityStructure::volatility(Time,Real,bool) const\n"
    "    OptionletVolatilityStructure::volatility(Time,Real) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_blackVariance__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Rate arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_blackVariance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_blackVariance" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionletVolatilityStructureHandle_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OptionletVolatilityStructureHandle_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionletVolatilityStructureHandle_blackVariance" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "OptionletVolatilityStructureHandle_blackVariance" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Real)(*arg1)->blackVariance((Date const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_blackVariance__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Rate arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_blackVariance",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_blackVariance" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionletVolatilityStructureHandle_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OptionletVolatilityStructureHandle_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionletVolatilityStructureHandle_blackVariance" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  {
    try {
      result = (Real)(*arg1)->blackVariance((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_blackVariance__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  Time arg2 ;
  Rate arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_blackVariance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_blackVariance" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionletVolatilityStructureHandle_blackVariance" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionletVolatilityStructureHandle_blackVariance" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "OptionletVolatilityStructureHandle_blackVariance" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Real)(*arg1)->blackVariance(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_blackVariance__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  Time arg2 ;
  Rate arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_blackVariance",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_blackVariance" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionletVolatilityStructureHandle_blackVariance" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionletVolatilityStructureHandle_blackVariance" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  {
    try {
      result = (Real)(*arg1)->blackVariance(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_blackVariance(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_OptionletVolatilityStructureHandle_blackVariance__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_OptionletVolatilityStructureHandle_blackVariance__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_OptionletVolatilityStructureHandle_blackVariance__SWIG_0(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_OptionletVolatilityStructureHandle_blackVariance__SWIG_2(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'OptionletVolatilityStructureHandle_blackVariance'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    OptionletVolatilityStructure::blackVariance(Date const &,Rate,bool) const\n"
    "    OptionletVolatilityStructure::blackVariance(Date const &,Rate) const\n"
    "    OptionletVolatilityStructure::blackVariance(Time,Rate,bool) const\n"
    "    OptionletVolatilityStructure::blackVariance(Time,Rate) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_enableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_enableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_enableExtrapolation" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      (*arg1)->enableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_disableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_disableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_disableExtrapolation" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      (*arg1)->disableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletVolatilityStructureHandle_allowsExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = (Handle< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletVolatilityStructureHandle_allowsExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletVolatilityStructureHandle_allowsExtrapolation" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->allowsExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *OptionletVolatilityStructureHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_RelinkableOptionletVolatilityStructureHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< OptionletVolatilityStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  RelinkableHandle< OptionletVolatilityStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableOptionletVolatilityStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RelinkableOptionletVolatilityStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RelinkableOptionletVolatilityStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (RelinkableHandle< OptionletVolatilityStructure > *)new RelinkableHandle< OptionletVolatilityStructure >((boost::shared_ptr< OptionletVolatilityStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_OptionletVolatilityStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableOptionletVolatilityStructureHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< OptionletVolatilityStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableOptionletVolatilityStructureHandle",0,0)) SWIG_fail;
  {
    try {
      result = (RelinkableHandle< OptionletVolatilityStructure > *)new RelinkableHandle< OptionletVolatilityStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_OptionletVolatilityStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableOptionletVolatilityStructureHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_RelinkableOptionletVolatilityStructureHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_RelinkableOptionletVolatilityStructureHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RelinkableOptionletVolatilityStructureHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    RelinkableHandle< OptionletVolatilityStructure >::RelinkableHandle(boost::shared_ptr< OptionletVolatilityStructure > const &)\n"
    "    RelinkableHandle< OptionletVolatilityStructure >::RelinkableHandle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableOptionletVolatilityStructureHandle_linkTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< OptionletVolatilityStructure > *arg1 = (RelinkableHandle< OptionletVolatilityStructure > *) 0 ;
  boost::shared_ptr< OptionletVolatilityStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableOptionletVolatilityStructureHandle_linkTo",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_OptionletVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableOptionletVolatilityStructureHandle_linkTo" "', argument " "1"" of type '" "RelinkableHandle< OptionletVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< OptionletVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_OptionletVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableOptionletVolatilityStructureHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableOptionletVolatilityStructureHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< OptionletVolatilityStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< OptionletVolatilityStructure > * >(argp2);
  {
    try {
      (arg1)->linkTo((boost::shared_ptr< OptionletVolatilityStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RelinkableOptionletVolatilityStructureHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< OptionletVolatilityStructure > *arg1 = (RelinkableHandle< OptionletVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RelinkableOptionletVolatilityStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_OptionletVolatilityStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RelinkableOptionletVolatilityStructureHandle" "', argument " "1"" of type '" "RelinkableHandle< OptionletVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RelinkableOptionletVolatilityStructureHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RelinkableHandleT_OptionletVolatilityStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwaptionVolatilityStructure *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure___deref__" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (SwaptionVolatilityStructure *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionVolatilityStructure, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_SwaptionVolatilityStructure_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure___bool__" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_SwaptionVolatilityStructure_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_asObservable" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_SwaptionVolatilityStructure_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionVolatilityStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolatilityStructure",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< SwaptionVolatilityStructure > *)new boost::shared_ptr< SwaptionVolatilityStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SwaptionVolatilityStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SwaptionVolatilityStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwaptionVolatilityStructure" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_referenceDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_referenceDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_referenceDate" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (*arg1)->referenceDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_dayCounter" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (*arg1)->dayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_calendar" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (*arg1)->calendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_maxSwapTenor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Period result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_maxSwapTenor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_maxSwapTenor" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (*arg1)->maxSwapTenor();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Period(static_cast< const Period& >(result))), SWIGTYPE_p_Period, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_maxSwapLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_maxSwapLength",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_maxSwapLength" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (Time)(*arg1)->maxSwapLength();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_minStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_minStrike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_minStrike" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->minStrike();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_maxStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_maxStrike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_maxStrike" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->maxStrike();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_volatility__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  Rate arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_volatility",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Volatility)(*arg1)->volatility((Date const &)*arg2,(Period const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_volatility__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  Rate arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_volatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  {
    try {
      result = (Volatility)(*arg1)->volatility((Date const &)*arg2,(Period const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_volatility__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Rate arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_volatility",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Volatility)(*arg1)->volatility(arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_volatility__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Rate arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_volatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SwaptionVolatilityStructure_volatility" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  {
    try {
      result = (Volatility)(*arg1)->volatility(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_volatility(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_SwaptionVolatilityStructure_volatility__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_SwaptionVolatilityStructure_volatility__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_SwaptionVolatilityStructure_volatility__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_SwaptionVolatilityStructure_volatility__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwaptionVolatilityStructure_volatility'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SwaptionVolatilityStructure::volatility(Date const &,Period const &,Rate,bool) const\n"
    "    SwaptionVolatilityStructure::volatility(Date const &,Period const &,Rate) const\n"
    "    SwaptionVolatilityStructure::volatility(Time,Time,Rate,bool) const\n"
    "    SwaptionVolatilityStructure::volatility(Time,Time,Rate) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_blackVariance__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  Rate arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_blackVariance",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Real)(*arg1)->blackVariance((Date const &)*arg2,(Period const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_blackVariance__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  Rate arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_blackVariance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  {
    try {
      result = (Real)(*arg1)->blackVariance((Date const &)*arg2,(Period const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_blackVariance__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Rate arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_blackVariance",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Real)(*arg1)->blackVariance(arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_blackVariance__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Rate arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_blackVariance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SwaptionVolatilityStructure_blackVariance" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  {
    try {
      result = (Real)(*arg1)->blackVariance(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_blackVariance(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_SwaptionVolatilityStructure_blackVariance__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_SwaptionVolatilityStructure_blackVariance__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_SwaptionVolatilityStructure_blackVariance__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_SwaptionVolatilityStructure_blackVariance__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwaptionVolatilityStructure_blackVariance'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SwaptionVolatilityStructure::blackVariance(Date const &,Period const &,Rate,bool) const\n"
    "    SwaptionVolatilityStructure::blackVariance(Date const &,Period const &,Rate) const\n"
    "    SwaptionVolatilityStructure::blackVariance(Time,Time,Rate,bool) const\n"
    "    SwaptionVolatilityStructure::blackVariance(Time,Time,Rate) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_optionDateFromTenor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  Period *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_optionDateFromTenor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_optionDateFromTenor" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwaptionVolatilityStructure_optionDateFromTenor" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwaptionVolatilityStructure_optionDateFromTenor" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  {
    try {
      result = (*arg1)->optionDateFromTenor((Period const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_enableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_enableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_enableExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      (*arg1)->enableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_disableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_disableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_disableExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      (*arg1)->disableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructure_allowsExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = (boost::shared_ptr< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructure_allowsExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructure_allowsExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->allowsExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SwaptionVolatilityStructure_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SwaptionVolatilityStructureHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< SwaptionVolatilityStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolatilityStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionVolatilityStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (Handle< SwaptionVolatilityStructure > *)new Handle< SwaptionVolatilityStructure >((boost::shared_ptr< SwaptionVolatilityStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionVolatilityStructureHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolatilityStructureHandle",0,0)) SWIG_fail;
  {
    try {
      result = (Handle< SwaptionVolatilityStructure > *)new Handle< SwaptionVolatilityStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionVolatilityStructureHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_SwaptionVolatilityStructureHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_SwaptionVolatilityStructureHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SwaptionVolatilityStructureHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Handle< SwaptionVolatilityStructure >::Handle(boost::shared_ptr< SwaptionVolatilityStructure > const &)\n"
    "    Handle< SwaptionVolatilityStructure >::Handle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< SwaptionVolatilityStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle___deref__" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< SwaptionVolatilityStructure >(static_cast< const boost::shared_ptr< SwaptionVolatilityStructure >& >(result))), SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle___nonzero__" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_SwaptionVolatilityStructure_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle___bool__" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_SwaptionVolatilityStructure_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_asObservable" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = Handle_Sl_SwaptionVolatilityStructure_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SwaptionVolatilityStructureHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SwaptionVolatilityStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwaptionVolatilityStructureHandle" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_referenceDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_referenceDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_referenceDate" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (*arg1)->referenceDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_dayCounter" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (*arg1)->dayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_calendar" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (*arg1)->calendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_maxSwapTenor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Period result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_maxSwapTenor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_maxSwapTenor" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (*arg1)->maxSwapTenor();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Period(static_cast< const Period& >(result))), SWIGTYPE_p_Period, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_maxSwapLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_maxSwapLength",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_maxSwapLength" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (Time)(*arg1)->maxSwapLength();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_minStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_minStrike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_minStrike" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->minStrike();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_maxStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_maxStrike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_maxStrike" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->maxStrike();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_volatility__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  Rate arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_volatility",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Volatility)(*arg1)->volatility((Date const &)*arg2,(Period const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_volatility__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  Rate arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_volatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  {
    try {
      result = (Volatility)(*arg1)->volatility((Date const &)*arg2,(Period const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_volatility__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Rate arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_volatility",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Volatility)(*arg1)->volatility(arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_volatility__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Rate arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_volatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SwaptionVolatilityStructureHandle_volatility" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  {
    try {
      result = (Volatility)(*arg1)->volatility(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_volatility(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_SwaptionVolatilityStructureHandle_volatility__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_SwaptionVolatilityStructureHandle_volatility__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_SwaptionVolatilityStructureHandle_volatility__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_SwaptionVolatilityStructureHandle_volatility__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwaptionVolatilityStructureHandle_volatility'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SwaptionVolatilityStructure::volatility(Date const &,Period const &,Rate,bool) const\n"
    "    SwaptionVolatilityStructure::volatility(Date const &,Period const &,Rate) const\n"
    "    SwaptionVolatilityStructure::volatility(Time,Time,Rate,bool) const\n"
    "    SwaptionVolatilityStructure::volatility(Time,Time,Rate) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_blackVariance__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  Rate arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_blackVariance",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Real)(*arg1)->blackVariance((Date const &)*arg2,(Period const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_blackVariance__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  Rate arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_blackVariance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  {
    try {
      result = (Real)(*arg1)->blackVariance((Date const &)*arg2,(Period const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_blackVariance__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Rate arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_blackVariance",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Real)(*arg1)->blackVariance(arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_blackVariance__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Rate arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_blackVariance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SwaptionVolatilityStructureHandle_blackVariance" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  {
    try {
      result = (Real)(*arg1)->blackVariance(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_blackVariance(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_SwaptionVolatilityStructureHandle_blackVariance__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_SwaptionVolatilityStructureHandle_blackVariance__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_SwaptionVolatilityStructureHandle_blackVariance__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_SwaptionVolatilityStructureHandle_blackVariance__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwaptionVolatilityStructureHandle_blackVariance'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SwaptionVolatilityStructure::blackVariance(Date const &,Period const &,Rate,bool) const\n"
    "    SwaptionVolatilityStructure::blackVariance(Date const &,Period const &,Rate) const\n"
    "    SwaptionVolatilityStructure::blackVariance(Time,Time,Rate,bool) const\n"
    "    SwaptionVolatilityStructure::blackVariance(Time,Time,Rate) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_optionDateFromTenor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  Period *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_optionDateFromTenor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_optionDateFromTenor" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwaptionVolatilityStructureHandle_optionDateFromTenor" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwaptionVolatilityStructureHandle_optionDateFromTenor" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  {
    try {
      result = (*arg1)->optionDateFromTenor((Period const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_enableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_enableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_enableExtrapolation" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      (*arg1)->enableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_disableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_disableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_disableExtrapolation" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      (*arg1)->disableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolatilityStructureHandle_allowsExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = (Handle< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolatilityStructureHandle_allowsExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolatilityStructureHandle_allowsExtrapolation" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->allowsExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SwaptionVolatilityStructureHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_RelinkableSwaptionVolatilityStructureHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  RelinkableHandle< SwaptionVolatilityStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableSwaptionVolatilityStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RelinkableSwaptionVolatilityStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RelinkableSwaptionVolatilityStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      result = (RelinkableHandle< SwaptionVolatilityStructure > *)new RelinkableHandle< SwaptionVolatilityStructure >((boost::shared_ptr< SwaptionVolatilityStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_SwaptionVolatilityStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableSwaptionVolatilityStructureHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< SwaptionVolatilityStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableSwaptionVolatilityStructureHandle",0,0)) SWIG_fail;
  {
    try {
      result = (RelinkableHandle< SwaptionVolatilityStructure > *)new RelinkableHandle< SwaptionVolatilityStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_SwaptionVolatilityStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableSwaptionVolatilityStructureHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_RelinkableSwaptionVolatilityStructureHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_RelinkableSwaptionVolatilityStructureHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RelinkableSwaptionVolatilityStructureHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    RelinkableHandle< SwaptionVolatilityStructure >::RelinkableHandle(boost::shared_ptr< SwaptionVolatilityStructure > const &)\n"
    "    RelinkableHandle< SwaptionVolatilityStructure >::RelinkableHandle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableSwaptionVolatilityStructureHandle_linkTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< SwaptionVolatilityStructure > *arg1 = (RelinkableHandle< SwaptionVolatilityStructure > *) 0 ;
  boost::shared_ptr< SwaptionVolatilityStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableSwaptionVolatilityStructureHandle_linkTo",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_SwaptionVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableSwaptionVolatilityStructureHandle_linkTo" "', argument " "1"" of type '" "RelinkableHandle< SwaptionVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< SwaptionVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableSwaptionVolatilityStructureHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableSwaptionVolatilityStructureHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp2);
  {
    try {
      (arg1)->linkTo((boost::shared_ptr< SwaptionVolatilityStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RelinkableSwaptionVolatilityStructureHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< SwaptionVolatilityStructure > *arg1 = (RelinkableHandle< SwaptionVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RelinkableSwaptionVolatilityStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_SwaptionVolatilityStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RelinkableSwaptionVolatilityStructureHandle" "', argument " "1"" of type '" "RelinkableHandle< SwaptionVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< SwaptionVolatilityStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RelinkableSwaptionVolatilityStructureHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RelinkableHandleT_SwaptionVolatilityStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BlackConstantVol__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  Volatility arg3 ;
  DayCounter *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  BlackConstantVolPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackConstantVol",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackConstantVol" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackConstantVol" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlackConstantVol" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackConstantVol" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BlackConstantVol" "', argument " "3"" of type '" "Volatility""'");
  } 
  arg3 = static_cast< Volatility >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_BlackConstantVol" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackConstantVol" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    try {
      result = (BlackConstantVolPtr *)new_BlackConstantVolPtr__SWIG_0((Date const &)*arg1,(Calendar const &)*arg2,arg3,(DayCounter const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackConstantVolPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackConstantVol__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  BlackConstantVolPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackConstantVol",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackConstantVol" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackConstantVol" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlackConstantVol" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackConstantVol" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BlackConstantVol" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackConstantVol" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_BlackConstantVol" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackConstantVol" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    try {
      result = (BlackConstantVolPtr *)new_BlackConstantVolPtr__SWIG_1((Date const &)*arg1,(Calendar const &)*arg2,(Handle< Quote > const &)*arg3,(DayCounter const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackConstantVolPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackConstantVol__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  Volatility arg3 ;
  DayCounter *arg4 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  BlackConstantVolPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackConstantVol",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BlackConstantVol" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlackConstantVol" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackConstantVol" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BlackConstantVol" "', argument " "3"" of type '" "Volatility""'");
  } 
  arg3 = static_cast< Volatility >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_BlackConstantVol" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackConstantVol" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    try {
      result = (BlackConstantVolPtr *)new_BlackConstantVolPtr__SWIG_2(arg1,(Calendar const &)*arg2,arg3,(DayCounter const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackConstantVolPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackConstantVol__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  BlackConstantVolPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackConstantVol",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BlackConstantVol" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlackConstantVol" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackConstantVol" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BlackConstantVol" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackConstantVol" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_BlackConstantVol" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackConstantVol" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    try {
      result = (BlackConstantVolPtr *)new_BlackConstantVolPtr__SWIG_3(arg1,(Calendar const &)*arg2,(Handle< Quote > const &)*arg3,(DayCounter const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackConstantVolPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackConstantVol(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_BlackConstantVol__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_BlackConstantVol__SWIG_0(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_BlackConstantVol__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_BlackConstantVol__SWIG_2(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BlackConstantVol'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BlackConstantVolPtr::BlackConstantVolPtr(Date const &,Calendar const &,Volatility,DayCounter const &)\n"
    "    BlackConstantVolPtr::BlackConstantVolPtr(Date const &,Calendar const &,Handle< Quote > const &,DayCounter const &)\n"
    "    BlackConstantVolPtr::BlackConstantVolPtr(Natural,Calendar const &,Volatility,DayCounter const &)\n"
    "    BlackConstantVolPtr::BlackConstantVolPtr(Natural,Calendar const &,Handle< Quote > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_BlackConstantVol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackConstantVolPtr *arg1 = (BlackConstantVolPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BlackConstantVol",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackConstantVolPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlackConstantVol" "', argument " "1"" of type '" "BlackConstantVolPtr *""'"); 
  }
  arg1 = reinterpret_cast< BlackConstantVolPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BlackConstantVol_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BlackConstantVolPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BlackVarianceCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  BlackVarianceCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackVarianceCurve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackVarianceCurve" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackVarianceCurve" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlackVarianceCurve" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackVarianceCurve" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BlackVarianceCurve" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackVarianceCurve" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_BlackVarianceCurve" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackVarianceCurve" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_BlackVarianceCurve" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (BlackVarianceCurvePtr *)new_BlackVarianceCurvePtr__SWIG_0((Date const &)*arg1,(std::vector< Date,std::allocator< Date > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(DayCounter const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackVarianceCurvePtr, SWIG_POINTER_NEW |  0 );
  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_new_BlackVarianceCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  BlackVarianceCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackVarianceCurve",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackVarianceCurve" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackVarianceCurve" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlackVarianceCurve" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackVarianceCurve" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BlackVarianceCurve" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackVarianceCurve" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_BlackVarianceCurve" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackVarianceCurve" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    try {
      result = (BlackVarianceCurvePtr *)new_BlackVarianceCurvePtr__SWIG_0((Date const &)*arg1,(std::vector< Date,std::allocator< Date > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(DayCounter const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackVarianceCurvePtr, SWIG_POINTER_NEW |  0 );
  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_new_BlackVarianceCurve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< Date,std::allocator< Date > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_BlackVarianceCurve__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< Date,std::allocator< Date > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_BlackVarianceCurve__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BlackVarianceCurve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BlackVarianceCurvePtr::BlackVarianceCurvePtr(Date const &,std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &,DayCounter const &,bool)\n"
    "    BlackVarianceCurvePtr::BlackVarianceCurvePtr(Date const &,std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_BlackVarianceCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackVarianceCurvePtr *arg1 = (BlackVarianceCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BlackVarianceCurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackVarianceCurvePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlackVarianceCurve" "', argument " "1"" of type '" "BlackVarianceCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< BlackVarianceCurvePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BlackVarianceCurve_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BlackVarianceCurvePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BlackVarianceSurface(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg3 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg4 = 0 ;
  Matrix *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  BlackVarianceSurface::Extrapolation arg7 = (BlackVarianceSurface::Extrapolation) BlackVarianceSurface::InterpolatorDefaultExtrapolation ;
  BlackVarianceSurface::Extrapolation arg8 = (BlackVarianceSurface::Extrapolation) BlackVarianceSurface::InterpolatorDefaultExtrapolation ;
  std::string const &arg9_defvalue = "" ;
  std::string *arg9 = (std::string *) &arg9_defvalue ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  Matrix temp5 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  int res9 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  char *  kwnames[] = {
    (char *) "referenceDate",(char *) "cal",(char *) "dates",(char *) "strikes",(char *) "blackVols",(char *) "dayCounter",(char *) "lower",(char *) "upper",(char *) "interpolator", NULL 
  };
  BlackVarianceSurfacePtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOO:new_BlackVarianceSurface",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackVarianceSurface" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackVarianceSurface" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlackVarianceSurface" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackVarianceSurface" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BlackVarianceSurface" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackVarianceSurface" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_BlackVarianceSurface" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackVarianceSurface" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    if (PyTuple_Check(obj4) || PyList_Check(obj4)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj4) ?
      PyTuple_Size(obj4) :
        PyList_Size(obj4));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj4,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp5 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj4,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp5[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp5[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg5 = &temp5;
    } else {
      SWIG_ConvertPtr(obj4,(void **) &arg5,SWIGTYPE_p_Matrix,1);
    }
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_BlackVarianceSurface" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackVarianceSurface" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  if (obj6) {
    ecode7 = SWIG_AsVal_int(obj6, &val7);
    if (!SWIG_IsOK(ecode7)) {
      SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_BlackVarianceSurface" "', argument " "7"" of type '" "BlackVarianceSurface::Extrapolation""'");
    } 
    arg7 = static_cast< BlackVarianceSurface::Extrapolation >(val7);
  }
  if (obj7) {
    ecode8 = SWIG_AsVal_int(obj7, &val8);
    if (!SWIG_IsOK(ecode8)) {
      SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_BlackVarianceSurface" "', argument " "8"" of type '" "BlackVarianceSurface::Extrapolation""'");
    } 
    arg8 = static_cast< BlackVarianceSurface::Extrapolation >(val8);
  }
  if (obj8) {
    {
      std::string *ptr = (std::string *)0;
      res9 = SWIG_AsPtr_std_string(obj8, &ptr);
      if (!SWIG_IsOK(res9)) {
        SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_BlackVarianceSurface" "', argument " "9"" of type '" "std::string const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackVarianceSurface" "', argument " "9"" of type '" "std::string const &""'"); 
      }
      arg9 = ptr;
    }
  }
  {
    try {
      result = (BlackVarianceSurfacePtr *)new_BlackVarianceSurfacePtr((Date const &)*arg1,(Calendar const &)*arg2,(std::vector< Date,std::allocator< Date > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(Matrix const &)*arg5,(DayCounter const &)*arg6,arg7,arg8,(std::string const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackVarianceSurfacePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res9)) delete arg9;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res9)) delete arg9;
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVarianceSurface_setInterpolation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackVarianceSurfacePtr *arg1 = (BlackVarianceSurfacePtr *) 0 ;
  std::string *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVarianceSurface_setInterpolation",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackVarianceSurfacePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVarianceSurface_setInterpolation" "', argument " "1"" of type '" "BlackVarianceSurfacePtr *""'"); 
  }
  arg1 = reinterpret_cast< BlackVarianceSurfacePtr * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlackVarianceSurface_setInterpolation" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlackVarianceSurface_setInterpolation" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      BlackVarianceSurfacePtr_setInterpolation__SWIG_0(arg1,(std::string const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVarianceSurface_setInterpolation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackVarianceSurfacePtr *arg1 = (BlackVarianceSurfacePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackVarianceSurface_setInterpolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackVarianceSurfacePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackVarianceSurface_setInterpolation" "', argument " "1"" of type '" "BlackVarianceSurfacePtr *""'"); 
  }
  arg1 = reinterpret_cast< BlackVarianceSurfacePtr * >(argp1);
  {
    try {
      BlackVarianceSurfacePtr_setInterpolation__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackVarianceSurface_setInterpolation(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlackVarianceSurfacePtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_BlackVarianceSurface_setInterpolation__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlackVarianceSurfacePtr, 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_BlackVarianceSurface_setInterpolation__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BlackVarianceSurface_setInterpolation'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BlackVarianceSurfacePtr::setInterpolation(std::string const &)\n"
    "    BlackVarianceSurfacePtr::setInterpolation()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_BlackVarianceSurface(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackVarianceSurfacePtr *arg1 = (BlackVarianceSurfacePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BlackVarianceSurface",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackVarianceSurfacePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlackVarianceSurface" "', argument " "1"" of type '" "BlackVarianceSurfacePtr *""'"); 
  }
  arg1 = reinterpret_cast< BlackVarianceSurfacePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BlackVarianceSurface_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BlackVarianceSurfacePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_LocalConstantVol__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Volatility arg2 ;
  DayCounter *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  LocalConstantVolPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LocalConstantVol",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LocalConstantVol" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalConstantVol" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LocalConstantVol" "', argument " "2"" of type '" "Volatility""'");
  } 
  arg2 = static_cast< Volatility >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LocalConstantVol" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalConstantVol" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (LocalConstantVolPtr *)new_LocalConstantVolPtr__SWIG_0((Date const &)*arg1,arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LocalConstantVolPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LocalConstantVol__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  LocalConstantVolPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LocalConstantVol",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LocalConstantVol" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalConstantVol" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LocalConstantVol" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalConstantVol" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LocalConstantVol" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalConstantVol" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (LocalConstantVolPtr *)new_LocalConstantVolPtr__SWIG_1((Date const &)*arg1,(Handle< Quote > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LocalConstantVolPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LocalConstantVol__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  Volatility arg3 ;
  DayCounter *arg4 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  LocalConstantVolPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LocalConstantVol",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LocalConstantVol" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LocalConstantVol" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalConstantVol" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LocalConstantVol" "', argument " "3"" of type '" "Volatility""'");
  } 
  arg3 = static_cast< Volatility >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_LocalConstantVol" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalConstantVol" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    try {
      result = (LocalConstantVolPtr *)new_LocalConstantVolPtr__SWIG_2(arg1,(Calendar const &)*arg2,arg3,(DayCounter const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LocalConstantVolPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LocalConstantVol__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  LocalConstantVolPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LocalConstantVol",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LocalConstantVol" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LocalConstantVol" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalConstantVol" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LocalConstantVol" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalConstantVol" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_LocalConstantVol" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalConstantVol" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    try {
      result = (LocalConstantVolPtr *)new_LocalConstantVolPtr__SWIG_3(arg1,(Calendar const &)*arg2,(Handle< Quote > const &)*arg3,(DayCounter const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LocalConstantVolPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LocalConstantVol(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_LocalConstantVol__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_LocalConstantVol__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_LocalConstantVol__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_LocalConstantVol__SWIG_2(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LocalConstantVol'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    LocalConstantVolPtr::LocalConstantVolPtr(Date const &,Volatility,DayCounter const &)\n"
    "    LocalConstantVolPtr::LocalConstantVolPtr(Date const &,Handle< Quote > const &,DayCounter const &)\n"
    "    LocalConstantVolPtr::LocalConstantVolPtr(Integer,Calendar const &,Volatility,DayCounter const &)\n"
    "    LocalConstantVolPtr::LocalConstantVolPtr(Integer,Calendar const &,Handle< Quote > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_LocalConstantVol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LocalConstantVolPtr *arg1 = (LocalConstantVolPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LocalConstantVol",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LocalConstantVolPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LocalConstantVol" "', argument " "1"" of type '" "LocalConstantVolPtr *""'"); 
  }
  arg1 = reinterpret_cast< LocalConstantVolPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LocalConstantVol_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_LocalConstantVolPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_LocalVolSurface__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  Handle< Quote > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  LocalVolSurfacePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LocalVolSurface",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_BlackVolTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LocalVolSurface" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalVolSurface" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LocalVolSurface" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalVolSurface" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LocalVolSurface" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalVolSurface" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_LocalVolSurface" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalVolSurface" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< Quote > * >(argp4);
  {
    try {
      result = (LocalVolSurfacePtr *)new_LocalVolSurfacePtr__SWIG_0((Handle< BlackVolTermStructure > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< YieldTermStructure > const &)*arg3,(Handle< Quote > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LocalVolSurfacePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LocalVolSurface__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< BlackVolTermStructure > *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  LocalVolSurfacePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LocalVolSurface",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_BlackVolTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LocalVolSurface" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalVolSurface" "', argument " "1"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LocalVolSurface" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalVolSurface" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LocalVolSurface" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LocalVolSurface" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_LocalVolSurface" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (LocalVolSurfacePtr *)new_LocalVolSurfacePtr__SWIG_1((Handle< BlackVolTermStructure > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< YieldTermStructure > const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LocalVolSurfacePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LocalVolSurface(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_LocalVolSurface__SWIG_0(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_BlackVolTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_LocalVolSurface__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LocalVolSurface'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    LocalVolSurfacePtr::LocalVolSurfacePtr(Handle< BlackVolTermStructure > const &,Handle< YieldTermStructure > const &,Handle< YieldTermStructure > const &,Handle< Quote > const &)\n"
    "    LocalVolSurfacePtr::LocalVolSurfacePtr(Handle< BlackVolTermStructure > const &,Handle< YieldTermStructure > const &,Handle< YieldTermStructure > const &,Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_LocalVolSurface(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LocalVolSurfacePtr *arg1 = (LocalVolSurfacePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LocalVolSurface",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LocalVolSurfacePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LocalVolSurface" "', argument " "1"" of type '" "LocalVolSurfacePtr *""'"); 
  }
  arg1 = reinterpret_cast< LocalVolSurfacePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LocalVolSurface_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_LocalVolSurfacePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ConstantOptionletVolatility__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Volatility arg4 ;
  DayCounter *arg5 = 0 ;
  VolatilityType arg6 ;
  Real arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  ConstantOptionletVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantOptionletVolatility",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConstantOptionletVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantOptionletVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ConstantOptionletVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ConstantOptionletVolatility" "', argument " "6"" of type '" "VolatilityType""'");
  } 
  arg6 = static_cast< VolatilityType >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ConstantOptionletVolatility" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (ConstantOptionletVolatilityPtr *)new_ConstantOptionletVolatilityPtr__SWIG_0((Date const &)*arg1,(Calendar const &)*arg2,arg3,arg4,(DayCounter const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantOptionletVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantOptionletVolatility__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Volatility arg4 ;
  DayCounter *arg5 = 0 ;
  VolatilityType arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  ConstantOptionletVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantOptionletVolatility",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConstantOptionletVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantOptionletVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ConstantOptionletVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ConstantOptionletVolatility" "', argument " "6"" of type '" "VolatilityType""'");
  } 
  arg6 = static_cast< VolatilityType >(val6);
  {
    try {
      result = (ConstantOptionletVolatilityPtr *)new_ConstantOptionletVolatilityPtr__SWIG_0((Date const &)*arg1,(Calendar const &)*arg2,arg3,arg4,(DayCounter const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantOptionletVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantOptionletVolatility__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Volatility arg4 ;
  DayCounter *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  ConstantOptionletVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantOptionletVolatility",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConstantOptionletVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantOptionletVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ConstantOptionletVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  {
    try {
      result = (ConstantOptionletVolatilityPtr *)new_ConstantOptionletVolatilityPtr__SWIG_0((Date const &)*arg1,(Calendar const &)*arg2,arg3,arg4,(DayCounter const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantOptionletVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantOptionletVolatility__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Handle< Quote > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  VolatilityType arg6 ;
  Real arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  ConstantOptionletVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantOptionletVolatility",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConstantOptionletVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantOptionletVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ConstantOptionletVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< Quote > * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ConstantOptionletVolatility" "', argument " "6"" of type '" "VolatilityType""'");
  } 
  arg6 = static_cast< VolatilityType >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ConstantOptionletVolatility" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (ConstantOptionletVolatilityPtr *)new_ConstantOptionletVolatilityPtr__SWIG_3((Date const &)*arg1,(Calendar const &)*arg2,arg3,(Handle< Quote > const &)*arg4,(DayCounter const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantOptionletVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantOptionletVolatility__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Handle< Quote > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  VolatilityType arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  ConstantOptionletVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantOptionletVolatility",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConstantOptionletVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantOptionletVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ConstantOptionletVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< Quote > * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ConstantOptionletVolatility" "', argument " "6"" of type '" "VolatilityType""'");
  } 
  arg6 = static_cast< VolatilityType >(val6);
  {
    try {
      result = (ConstantOptionletVolatilityPtr *)new_ConstantOptionletVolatilityPtr__SWIG_3((Date const &)*arg1,(Calendar const &)*arg2,arg3,(Handle< Quote > const &)*arg4,(DayCounter const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantOptionletVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantOptionletVolatility__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Handle< Quote > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  ConstantOptionletVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantOptionletVolatility",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConstantOptionletVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantOptionletVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ConstantOptionletVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< Quote > * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  {
    try {
      result = (ConstantOptionletVolatilityPtr *)new_ConstantOptionletVolatilityPtr__SWIG_3((Date const &)*arg1,(Calendar const &)*arg2,arg3,(Handle< Quote > const &)*arg4,(DayCounter const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantOptionletVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantOptionletVolatility__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Volatility arg4 ;
  DayCounter *arg5 = 0 ;
  VolatilityType arg6 ;
  Real arg7 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  ConstantOptionletVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantOptionletVolatility",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ConstantOptionletVolatility" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantOptionletVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ConstantOptionletVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ConstantOptionletVolatility" "', argument " "6"" of type '" "VolatilityType""'");
  } 
  arg6 = static_cast< VolatilityType >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ConstantOptionletVolatility" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (ConstantOptionletVolatilityPtr *)new_ConstantOptionletVolatilityPtr__SWIG_6(arg1,(Calendar const &)*arg2,arg3,arg4,(DayCounter const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantOptionletVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantOptionletVolatility__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Volatility arg4 ;
  DayCounter *arg5 = 0 ;
  VolatilityType arg6 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  ConstantOptionletVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantOptionletVolatility",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ConstantOptionletVolatility" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantOptionletVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ConstantOptionletVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ConstantOptionletVolatility" "', argument " "6"" of type '" "VolatilityType""'");
  } 
  arg6 = static_cast< VolatilityType >(val6);
  {
    try {
      result = (ConstantOptionletVolatilityPtr *)new_ConstantOptionletVolatilityPtr__SWIG_6(arg1,(Calendar const &)*arg2,arg3,arg4,(DayCounter const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantOptionletVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantOptionletVolatility__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Volatility arg4 ;
  DayCounter *arg5 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  ConstantOptionletVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantOptionletVolatility",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ConstantOptionletVolatility" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantOptionletVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ConstantOptionletVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  {
    try {
      result = (ConstantOptionletVolatilityPtr *)new_ConstantOptionletVolatilityPtr__SWIG_6(arg1,(Calendar const &)*arg2,arg3,arg4,(DayCounter const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantOptionletVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantOptionletVolatility__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Handle< Quote > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  VolatilityType arg6 ;
  Real arg7 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  ConstantOptionletVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantOptionletVolatility",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ConstantOptionletVolatility" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantOptionletVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ConstantOptionletVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< Quote > * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ConstantOptionletVolatility" "', argument " "6"" of type '" "VolatilityType""'");
  } 
  arg6 = static_cast< VolatilityType >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ConstantOptionletVolatility" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (ConstantOptionletVolatilityPtr *)new_ConstantOptionletVolatilityPtr__SWIG_9(arg1,(Calendar const &)*arg2,arg3,(Handle< Quote > const &)*arg4,(DayCounter const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantOptionletVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantOptionletVolatility__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Handle< Quote > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  VolatilityType arg6 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  ConstantOptionletVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantOptionletVolatility",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ConstantOptionletVolatility" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantOptionletVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ConstantOptionletVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< Quote > * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ConstantOptionletVolatility" "', argument " "6"" of type '" "VolatilityType""'");
  } 
  arg6 = static_cast< VolatilityType >(val6);
  {
    try {
      result = (ConstantOptionletVolatilityPtr *)new_ConstantOptionletVolatilityPtr__SWIG_9(arg1,(Calendar const &)*arg2,arg3,(Handle< Quote > const &)*arg4,(DayCounter const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantOptionletVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantOptionletVolatility__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Handle< Quote > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  ConstantOptionletVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantOptionletVolatility",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ConstantOptionletVolatility" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantOptionletVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ConstantOptionletVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< Quote > * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantOptionletVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  {
    try {
      result = (ConstantOptionletVolatilityPtr *)new_ConstantOptionletVolatilityPtr__SWIG_9(arg1,(Calendar const &)*arg2,arg3,(Handle< Quote > const &)*arg4,(DayCounter const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantOptionletVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantOptionletVolatility(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_ConstantOptionletVolatility__SWIG_5(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_ConstantOptionletVolatility__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_ConstantOptionletVolatility__SWIG_11(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_ConstantOptionletVolatility__SWIG_8(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_ConstantOptionletVolatility__SWIG_4(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_ConstantOptionletVolatility__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_ConstantOptionletVolatility__SWIG_10(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_ConstantOptionletVolatility__SWIG_7(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_ConstantOptionletVolatility__SWIG_3(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_ConstantOptionletVolatility__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_ConstantOptionletVolatility__SWIG_9(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_ConstantOptionletVolatility__SWIG_6(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ConstantOptionletVolatility'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ConstantOptionletVolatilityPtr::ConstantOptionletVolatilityPtr(Date const &,Calendar const &,BusinessDayConvention,Volatility,DayCounter const &,VolatilityType const,Real const)\n"
    "    ConstantOptionletVolatilityPtr::ConstantOptionletVolatilityPtr(Date const &,Calendar const &,BusinessDayConvention,Volatility,DayCounter const &,VolatilityType const)\n"
    "    ConstantOptionletVolatilityPtr::ConstantOptionletVolatilityPtr(Date const &,Calendar const &,BusinessDayConvention,Volatility,DayCounter const &)\n"
    "    ConstantOptionletVolatilityPtr::ConstantOptionletVolatilityPtr(Date const &,Calendar const &,BusinessDayConvention,Handle< Quote > const &,DayCounter const &,VolatilityType const,Real const)\n"
    "    ConstantOptionletVolatilityPtr::ConstantOptionletVolatilityPtr(Date const &,Calendar const &,BusinessDayConvention,Handle< Quote > const &,DayCounter const &,VolatilityType const)\n"
    "    ConstantOptionletVolatilityPtr::ConstantOptionletVolatilityPtr(Date const &,Calendar const &,BusinessDayConvention,Handle< Quote > const &,DayCounter const &)\n"
    "    ConstantOptionletVolatilityPtr::ConstantOptionletVolatilityPtr(Natural,Calendar const &,BusinessDayConvention,Volatility,DayCounter const &,VolatilityType const,Real const)\n"
    "    ConstantOptionletVolatilityPtr::ConstantOptionletVolatilityPtr(Natural,Calendar const &,BusinessDayConvention,Volatility,DayCounter const &,VolatilityType const)\n"
    "    ConstantOptionletVolatilityPtr::ConstantOptionletVolatilityPtr(Natural,Calendar const &,BusinessDayConvention,Volatility,DayCounter const &)\n"
    "    ConstantOptionletVolatilityPtr::ConstantOptionletVolatilityPtr(Natural,Calendar const &,BusinessDayConvention,Handle< Quote > const &,DayCounter const &,VolatilityType const,Real const)\n"
    "    ConstantOptionletVolatilityPtr::ConstantOptionletVolatilityPtr(Natural,Calendar const &,BusinessDayConvention,Handle< Quote > const &,DayCounter const &,VolatilityType const)\n"
    "    ConstantOptionletVolatilityPtr::ConstantOptionletVolatilityPtr(Natural,Calendar const &,BusinessDayConvention,Handle< Quote > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_ConstantOptionletVolatility(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ConstantOptionletVolatilityPtr *arg1 = (ConstantOptionletVolatilityPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ConstantOptionletVolatility",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ConstantOptionletVolatilityPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ConstantOptionletVolatility" "', argument " "1"" of type '" "ConstantOptionletVolatilityPtr *""'"); 
  }
  arg1 = reinterpret_cast< ConstantOptionletVolatilityPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ConstantOptionletVolatility_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ConstantOptionletVolatilityPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ConstantSwaptionVolatility__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Handle< Quote > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  VolatilityType arg6 ;
  Real arg7 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  ConstantSwaptionVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantSwaptionVolatility",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ConstantSwaptionVolatility" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantSwaptionVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ConstantSwaptionVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< Quote > * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ConstantSwaptionVolatility" "', argument " "6"" of type '" "VolatilityType""'");
  } 
  arg6 = static_cast< VolatilityType >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ConstantSwaptionVolatility" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (ConstantSwaptionVolatilityPtr *)new_ConstantSwaptionVolatilityPtr__SWIG_0(arg1,(Calendar const &)*arg2,arg3,(Handle< Quote > const &)*arg4,(DayCounter const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantSwaptionVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantSwaptionVolatility__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Handle< Quote > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  VolatilityType arg6 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  ConstantSwaptionVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantSwaptionVolatility",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ConstantSwaptionVolatility" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantSwaptionVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ConstantSwaptionVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< Quote > * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ConstantSwaptionVolatility" "', argument " "6"" of type '" "VolatilityType""'");
  } 
  arg6 = static_cast< VolatilityType >(val6);
  {
    try {
      result = (ConstantSwaptionVolatilityPtr *)new_ConstantSwaptionVolatilityPtr__SWIG_0(arg1,(Calendar const &)*arg2,arg3,(Handle< Quote > const &)*arg4,(DayCounter const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantSwaptionVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantSwaptionVolatility__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Handle< Quote > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  ConstantSwaptionVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantSwaptionVolatility",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ConstantSwaptionVolatility" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantSwaptionVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ConstantSwaptionVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< Quote > * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  {
    try {
      result = (ConstantSwaptionVolatilityPtr *)new_ConstantSwaptionVolatilityPtr__SWIG_0(arg1,(Calendar const &)*arg2,arg3,(Handle< Quote > const &)*arg4,(DayCounter const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantSwaptionVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantSwaptionVolatility__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Handle< Quote > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  VolatilityType arg6 ;
  Real arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  ConstantSwaptionVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantSwaptionVolatility",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConstantSwaptionVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantSwaptionVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ConstantSwaptionVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< Quote > * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ConstantSwaptionVolatility" "', argument " "6"" of type '" "VolatilityType""'");
  } 
  arg6 = static_cast< VolatilityType >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ConstantSwaptionVolatility" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (ConstantSwaptionVolatilityPtr *)new_ConstantSwaptionVolatilityPtr__SWIG_3((Date const &)*arg1,(Calendar const &)*arg2,arg3,(Handle< Quote > const &)*arg4,(DayCounter const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantSwaptionVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantSwaptionVolatility__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Handle< Quote > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  VolatilityType arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  ConstantSwaptionVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantSwaptionVolatility",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConstantSwaptionVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantSwaptionVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ConstantSwaptionVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< Quote > * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ConstantSwaptionVolatility" "', argument " "6"" of type '" "VolatilityType""'");
  } 
  arg6 = static_cast< VolatilityType >(val6);
  {
    try {
      result = (ConstantSwaptionVolatilityPtr *)new_ConstantSwaptionVolatilityPtr__SWIG_3((Date const &)*arg1,(Calendar const &)*arg2,arg3,(Handle< Quote > const &)*arg4,(DayCounter const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantSwaptionVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantSwaptionVolatility__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Handle< Quote > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  ConstantSwaptionVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantSwaptionVolatility",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConstantSwaptionVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantSwaptionVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ConstantSwaptionVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< Quote > * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  {
    try {
      result = (ConstantSwaptionVolatilityPtr *)new_ConstantSwaptionVolatilityPtr__SWIG_3((Date const &)*arg1,(Calendar const &)*arg2,arg3,(Handle< Quote > const &)*arg4,(DayCounter const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantSwaptionVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantSwaptionVolatility__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Volatility arg4 ;
  DayCounter *arg5 = 0 ;
  VolatilityType arg6 ;
  Real arg7 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  ConstantSwaptionVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantSwaptionVolatility",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ConstantSwaptionVolatility" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantSwaptionVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ConstantSwaptionVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ConstantSwaptionVolatility" "', argument " "6"" of type '" "VolatilityType""'");
  } 
  arg6 = static_cast< VolatilityType >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ConstantSwaptionVolatility" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (ConstantSwaptionVolatilityPtr *)new_ConstantSwaptionVolatilityPtr__SWIG_6(arg1,(Calendar const &)*arg2,arg3,arg4,(DayCounter const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantSwaptionVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantSwaptionVolatility__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Volatility arg4 ;
  DayCounter *arg5 = 0 ;
  VolatilityType arg6 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  ConstantSwaptionVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantSwaptionVolatility",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ConstantSwaptionVolatility" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantSwaptionVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ConstantSwaptionVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ConstantSwaptionVolatility" "', argument " "6"" of type '" "VolatilityType""'");
  } 
  arg6 = static_cast< VolatilityType >(val6);
  {
    try {
      result = (ConstantSwaptionVolatilityPtr *)new_ConstantSwaptionVolatilityPtr__SWIG_6(arg1,(Calendar const &)*arg2,arg3,arg4,(DayCounter const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantSwaptionVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantSwaptionVolatility__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Volatility arg4 ;
  DayCounter *arg5 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  ConstantSwaptionVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantSwaptionVolatility",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ConstantSwaptionVolatility" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantSwaptionVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ConstantSwaptionVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  {
    try {
      result = (ConstantSwaptionVolatilityPtr *)new_ConstantSwaptionVolatilityPtr__SWIG_6(arg1,(Calendar const &)*arg2,arg3,arg4,(DayCounter const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantSwaptionVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantSwaptionVolatility__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Volatility arg4 ;
  DayCounter *arg5 = 0 ;
  VolatilityType arg6 ;
  Real arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  ConstantSwaptionVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantSwaptionVolatility",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConstantSwaptionVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantSwaptionVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ConstantSwaptionVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ConstantSwaptionVolatility" "', argument " "6"" of type '" "VolatilityType""'");
  } 
  arg6 = static_cast< VolatilityType >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ConstantSwaptionVolatility" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (ConstantSwaptionVolatilityPtr *)new_ConstantSwaptionVolatilityPtr__SWIG_9((Date const &)*arg1,(Calendar const &)*arg2,arg3,arg4,(DayCounter const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantSwaptionVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantSwaptionVolatility__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Volatility arg4 ;
  DayCounter *arg5 = 0 ;
  VolatilityType arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  ConstantSwaptionVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantSwaptionVolatility",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConstantSwaptionVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantSwaptionVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ConstantSwaptionVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ConstantSwaptionVolatility" "', argument " "6"" of type '" "VolatilityType""'");
  } 
  arg6 = static_cast< VolatilityType >(val6);
  {
    try {
      result = (ConstantSwaptionVolatilityPtr *)new_ConstantSwaptionVolatilityPtr__SWIG_9((Date const &)*arg1,(Calendar const &)*arg2,arg3,arg4,(DayCounter const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantSwaptionVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantSwaptionVolatility__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  Volatility arg4 ;
  DayCounter *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  ConstantSwaptionVolatilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantSwaptionVolatility",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConstantSwaptionVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ConstantSwaptionVolatility" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ConstantSwaptionVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantSwaptionVolatility" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  {
    try {
      result = (ConstantSwaptionVolatilityPtr *)new_ConstantSwaptionVolatilityPtr__SWIG_9((Date const &)*arg1,(Calendar const &)*arg2,arg3,arg4,(DayCounter const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantSwaptionVolatilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantSwaptionVolatility(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_ConstantSwaptionVolatility__SWIG_5(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_ConstantSwaptionVolatility__SWIG_11(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_ConstantSwaptionVolatility__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_ConstantSwaptionVolatility__SWIG_8(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_ConstantSwaptionVolatility__SWIG_4(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_ConstantSwaptionVolatility__SWIG_10(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_ConstantSwaptionVolatility__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_ConstantSwaptionVolatility__SWIG_7(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_ConstantSwaptionVolatility__SWIG_3(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_ConstantSwaptionVolatility__SWIG_9(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_ConstantSwaptionVolatility__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_ConstantSwaptionVolatility__SWIG_6(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ConstantSwaptionVolatility'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ConstantSwaptionVolatilityPtr::ConstantSwaptionVolatilityPtr(Natural,Calendar const &,BusinessDayConvention,Handle< Quote > const &,DayCounter const &,VolatilityType const,Real const)\n"
    "    ConstantSwaptionVolatilityPtr::ConstantSwaptionVolatilityPtr(Natural,Calendar const &,BusinessDayConvention,Handle< Quote > const &,DayCounter const &,VolatilityType const)\n"
    "    ConstantSwaptionVolatilityPtr::ConstantSwaptionVolatilityPtr(Natural,Calendar const &,BusinessDayConvention,Handle< Quote > const &,DayCounter const &)\n"
    "    ConstantSwaptionVolatilityPtr::ConstantSwaptionVolatilityPtr(Date const &,Calendar const &,BusinessDayConvention,Handle< Quote > const &,DayCounter const &,VolatilityType const,Real const)\n"
    "    ConstantSwaptionVolatilityPtr::ConstantSwaptionVolatilityPtr(Date const &,Calendar const &,BusinessDayConvention,Handle< Quote > const &,DayCounter const &,VolatilityType const)\n"
    "    ConstantSwaptionVolatilityPtr::ConstantSwaptionVolatilityPtr(Date const &,Calendar const &,BusinessDayConvention,Handle< Quote > const &,DayCounter const &)\n"
    "    ConstantSwaptionVolatilityPtr::ConstantSwaptionVolatilityPtr(Natural,Calendar const &,BusinessDayConvention,Volatility,DayCounter const &,VolatilityType const,Real const)\n"
    "    ConstantSwaptionVolatilityPtr::ConstantSwaptionVolatilityPtr(Natural,Calendar const &,BusinessDayConvention,Volatility,DayCounter const &,VolatilityType const)\n"
    "    ConstantSwaptionVolatilityPtr::ConstantSwaptionVolatilityPtr(Natural,Calendar const &,BusinessDayConvention,Volatility,DayCounter const &)\n"
    "    ConstantSwaptionVolatilityPtr::ConstantSwaptionVolatilityPtr(Date const &,Calendar const &,BusinessDayConvention,Volatility,DayCounter const &,VolatilityType const,Real const)\n"
    "    ConstantSwaptionVolatilityPtr::ConstantSwaptionVolatilityPtr(Date const &,Calendar const &,BusinessDayConvention,Volatility,DayCounter const &,VolatilityType const)\n"
    "    ConstantSwaptionVolatilityPtr::ConstantSwaptionVolatilityPtr(Date const &,Calendar const &,BusinessDayConvention,Volatility,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_ConstantSwaptionVolatility(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ConstantSwaptionVolatilityPtr *arg1 = (ConstantSwaptionVolatilityPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ConstantSwaptionVolatility",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ConstantSwaptionVolatilityPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ConstantSwaptionVolatility" "', argument " "1"" of type '" "ConstantSwaptionVolatilityPtr *""'"); 
  }
  arg1 = reinterpret_cast< ConstantSwaptionVolatilityPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ConstantSwaptionVolatility_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ConstantSwaptionVolatilityPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SwaptionVolatilityMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg2 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg3 = 0 ;
  Matrix *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  bool arg6 ;
  VolatilityType arg7 ;
  Matrix *arg8 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  Matrix temp4 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  Matrix temp8 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  SwaptionVolatilityMatrixPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolatilityMatrix",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    if (PyTuple_Check(obj3) || PyList_Check(obj3)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj3) ?
      PyTuple_Size(obj3) :
        PyList_Size(obj3));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj3,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp4 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj3,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp4[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp4[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg4 = &temp4;
    } else {
      SWIG_ConvertPtr(obj3,(void **) &arg4,SWIGTYPE_p_Matrix,1);
    }
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "7"" of type '" "VolatilityType""'");
  } 
  arg7 = static_cast< VolatilityType >(val7);
  {
    if (PyTuple_Check(obj7) || PyList_Check(obj7)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj7) ?
      PyTuple_Size(obj7) :
        PyList_Size(obj7));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj7,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp8 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj7,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp8[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp8[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg8 = &temp8;
    } else {
      SWIG_ConvertPtr(obj7,(void **) &arg8,SWIGTYPE_p_Matrix,1);
    }
  }
  {
    try {
      result = (SwaptionVolatilityMatrixPtr *)new_SwaptionVolatilityMatrixPtr__SWIG_0((Date const &)*arg1,(std::vector< Date,std::allocator< Date > > const &)*arg2,(std::vector< Period,std::allocator< Period > > const &)*arg3,(Matrix const &)*arg4,(DayCounter const &)*arg5,arg6,arg7,(Matrix const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionVolatilityMatrixPtr, SWIG_POINTER_NEW |  0 );
  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_new_SwaptionVolatilityMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg2 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg3 = 0 ;
  Matrix *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  bool arg6 ;
  VolatilityType arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  Matrix temp4 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  SwaptionVolatilityMatrixPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolatilityMatrix",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    if (PyTuple_Check(obj3) || PyList_Check(obj3)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj3) ?
      PyTuple_Size(obj3) :
        PyList_Size(obj3));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj3,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp4 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj3,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp4[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp4[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg4 = &temp4;
    } else {
      SWIG_ConvertPtr(obj3,(void **) &arg4,SWIGTYPE_p_Matrix,1);
    }
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "7"" of type '" "VolatilityType""'");
  } 
  arg7 = static_cast< VolatilityType >(val7);
  {
    try {
      result = (SwaptionVolatilityMatrixPtr *)new_SwaptionVolatilityMatrixPtr__SWIG_0((Date const &)*arg1,(std::vector< Date,std::allocator< Date > > const &)*arg2,(std::vector< Period,std::allocator< Period > > const &)*arg3,(Matrix const &)*arg4,(DayCounter const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionVolatilityMatrixPtr, SWIG_POINTER_NEW |  0 );
  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_new_SwaptionVolatilityMatrix__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg2 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg3 = 0 ;
  Matrix *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  bool arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  Matrix temp4 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  SwaptionVolatilityMatrixPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolatilityMatrix",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    if (PyTuple_Check(obj3) || PyList_Check(obj3)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj3) ?
      PyTuple_Size(obj3) :
        PyList_Size(obj3));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj3,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp4 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj3,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp4[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp4[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg4 = &temp4;
    } else {
      SWIG_ConvertPtr(obj3,(void **) &arg4,SWIGTYPE_p_Matrix,1);
    }
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    try {
      result = (SwaptionVolatilityMatrixPtr *)new_SwaptionVolatilityMatrixPtr__SWIG_0((Date const &)*arg1,(std::vector< Date,std::allocator< Date > > const &)*arg2,(std::vector< Period,std::allocator< Period > > const &)*arg3,(Matrix const &)*arg4,(DayCounter const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionVolatilityMatrixPtr, SWIG_POINTER_NEW |  0 );
  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_new_SwaptionVolatilityMatrix__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg2 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg3 = 0 ;
  Matrix *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  Matrix temp4 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  SwaptionVolatilityMatrixPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolatilityMatrix",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    if (PyTuple_Check(obj3) || PyList_Check(obj3)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj3) ?
      PyTuple_Size(obj3) :
        PyList_Size(obj3));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj3,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp4 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj3,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp4[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp4[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg4 = &temp4;
    } else {
      SWIG_ConvertPtr(obj3,(void **) &arg4,SWIGTYPE_p_Matrix,1);
    }
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  {
    try {
      result = (SwaptionVolatilityMatrixPtr *)new_SwaptionVolatilityMatrixPtr__SWIG_0((Date const &)*arg1,(std::vector< Date,std::allocator< Date > > const &)*arg2,(std::vector< Period,std::allocator< Period > > const &)*arg3,(Matrix const &)*arg4,(DayCounter const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionVolatilityMatrixPtr, SWIG_POINTER_NEW |  0 );
  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_new_SwaptionVolatilityMatrix__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = 0 ;
  BusinessDayConvention arg2 ;
  std::vector< Period,std::allocator< Period > > *arg3 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  bool arg7 ;
  VolatilityType arg8 ;
  std::vector< std::vector< Real,std::allocator< Real > >,std::allocator< std::vector< Real,std::allocator< Real > > > > *arg9 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  SwaptionVolatilityMatrixPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolatilityMatrix",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "2"" of type '" "BusinessDayConvention""'");
  } 
  arg2 = static_cast< BusinessDayConvention >(val2);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "5"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "5"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "8"" of type '" "VolatilityType""'");
  } 
  arg8 = static_cast< VolatilityType >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "9"" of type '" "std::vector< std::vector< Real,std::allocator< Real > >,std::allocator< std::vector< Real,std::allocator< Real > > > > const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "9"" of type '" "std::vector< std::vector< Real,std::allocator< Real > >,std::allocator< std::vector< Real,std::allocator< Real > > > > const &""'"); 
  }
  arg9 = reinterpret_cast< std::vector< std::vector< Real,std::allocator< Real > >,std::allocator< std::vector< Real,std::allocator< Real > > > > * >(argp9);
  {
    try {
      result = (SwaptionVolatilityMatrixPtr *)new_SwaptionVolatilityMatrixPtr__SWIG_4((Calendar const &)*arg1,arg2,(std::vector< Period,std::allocator< Period > > const &)*arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg5,(DayCounter const &)*arg6,arg7,arg8,(std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionVolatilityMatrixPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionVolatilityMatrix__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = 0 ;
  BusinessDayConvention arg2 ;
  std::vector< Period,std::allocator< Period > > *arg3 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  bool arg7 ;
  VolatilityType arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  SwaptionVolatilityMatrixPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolatilityMatrix",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "2"" of type '" "BusinessDayConvention""'");
  } 
  arg2 = static_cast< BusinessDayConvention >(val2);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "5"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "5"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "8"" of type '" "VolatilityType""'");
  } 
  arg8 = static_cast< VolatilityType >(val8);
  {
    try {
      result = (SwaptionVolatilityMatrixPtr *)new_SwaptionVolatilityMatrixPtr__SWIG_4((Calendar const &)*arg1,arg2,(std::vector< Period,std::allocator< Period > > const &)*arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg5,(DayCounter const &)*arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionVolatilityMatrixPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionVolatilityMatrix__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = 0 ;
  BusinessDayConvention arg2 ;
  std::vector< Period,std::allocator< Period > > *arg3 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  bool arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  SwaptionVolatilityMatrixPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolatilityMatrix",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "2"" of type '" "BusinessDayConvention""'");
  } 
  arg2 = static_cast< BusinessDayConvention >(val2);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "5"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "5"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  {
    try {
      result = (SwaptionVolatilityMatrixPtr *)new_SwaptionVolatilityMatrixPtr__SWIG_4((Calendar const &)*arg1,arg2,(std::vector< Period,std::allocator< Period > > const &)*arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg5,(DayCounter const &)*arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionVolatilityMatrixPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionVolatilityMatrix__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = 0 ;
  BusinessDayConvention arg2 ;
  std::vector< Period,std::allocator< Period > > *arg3 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  SwaptionVolatilityMatrixPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolatilityMatrix",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "2"" of type '" "BusinessDayConvention""'");
  } 
  arg2 = static_cast< BusinessDayConvention >(val2);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "5"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "5"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  {
    try {
      result = (SwaptionVolatilityMatrixPtr *)new_SwaptionVolatilityMatrixPtr__SWIG_4((Calendar const &)*arg1,arg2,(std::vector< Period,std::allocator< Period > > const &)*arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg5,(DayCounter const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionVolatilityMatrixPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionVolatilityMatrix__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = 0 ;
  BusinessDayConvention arg2 ;
  std::vector< Period,std::allocator< Period > > *arg3 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  Matrix *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  bool arg7 ;
  VolatilityType arg8 ;
  Matrix *arg9 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  Matrix temp5 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  Matrix temp9 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  SwaptionVolatilityMatrixPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolatilityMatrix",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "2"" of type '" "BusinessDayConvention""'");
  } 
  arg2 = static_cast< BusinessDayConvention >(val2);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    if (PyTuple_Check(obj4) || PyList_Check(obj4)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj4) ?
      PyTuple_Size(obj4) :
        PyList_Size(obj4));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj4,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp5 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj4,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp5[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp5[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg5 = &temp5;
    } else {
      SWIG_ConvertPtr(obj4,(void **) &arg5,SWIGTYPE_p_Matrix,1);
    }
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "8"" of type '" "VolatilityType""'");
  } 
  arg8 = static_cast< VolatilityType >(val8);
  {
    if (PyTuple_Check(obj8) || PyList_Check(obj8)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj8) ?
      PyTuple_Size(obj8) :
        PyList_Size(obj8));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj8,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp9 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj8,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp9[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp9[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg9 = &temp9;
    } else {
      SWIG_ConvertPtr(obj8,(void **) &arg9,SWIGTYPE_p_Matrix,1);
    }
  }
  {
    try {
      result = (SwaptionVolatilityMatrixPtr *)new_SwaptionVolatilityMatrixPtr__SWIG_8((Calendar const &)*arg1,arg2,(std::vector< Period,std::allocator< Period > > const &)*arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(Matrix const &)*arg5,(DayCounter const &)*arg6,arg7,arg8,(Matrix const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionVolatilityMatrixPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionVolatilityMatrix__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = 0 ;
  BusinessDayConvention arg2 ;
  std::vector< Period,std::allocator< Period > > *arg3 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  Matrix *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  bool arg7 ;
  VolatilityType arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  Matrix temp5 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  SwaptionVolatilityMatrixPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolatilityMatrix",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "2"" of type '" "BusinessDayConvention""'");
  } 
  arg2 = static_cast< BusinessDayConvention >(val2);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    if (PyTuple_Check(obj4) || PyList_Check(obj4)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj4) ?
      PyTuple_Size(obj4) :
        PyList_Size(obj4));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj4,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp5 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj4,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp5[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp5[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg5 = &temp5;
    } else {
      SWIG_ConvertPtr(obj4,(void **) &arg5,SWIGTYPE_p_Matrix,1);
    }
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "8"" of type '" "VolatilityType""'");
  } 
  arg8 = static_cast< VolatilityType >(val8);
  {
    try {
      result = (SwaptionVolatilityMatrixPtr *)new_SwaptionVolatilityMatrixPtr__SWIG_8((Calendar const &)*arg1,arg2,(std::vector< Period,std::allocator< Period > > const &)*arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(Matrix const &)*arg5,(DayCounter const &)*arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionVolatilityMatrixPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionVolatilityMatrix__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = 0 ;
  BusinessDayConvention arg2 ;
  std::vector< Period,std::allocator< Period > > *arg3 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  Matrix *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  bool arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  Matrix temp5 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  SwaptionVolatilityMatrixPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolatilityMatrix",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "2"" of type '" "BusinessDayConvention""'");
  } 
  arg2 = static_cast< BusinessDayConvention >(val2);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    if (PyTuple_Check(obj4) || PyList_Check(obj4)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj4) ?
      PyTuple_Size(obj4) :
        PyList_Size(obj4));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj4,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp5 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj4,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp5[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp5[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg5 = &temp5;
    } else {
      SWIG_ConvertPtr(obj4,(void **) &arg5,SWIGTYPE_p_Matrix,1);
    }
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  {
    try {
      result = (SwaptionVolatilityMatrixPtr *)new_SwaptionVolatilityMatrixPtr__SWIG_8((Calendar const &)*arg1,arg2,(std::vector< Period,std::allocator< Period > > const &)*arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(Matrix const &)*arg5,(DayCounter const &)*arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionVolatilityMatrixPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionVolatilityMatrix__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Calendar *arg1 = 0 ;
  BusinessDayConvention arg2 ;
  std::vector< Period,std::allocator< Period > > *arg3 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  Matrix *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  Matrix temp5 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  SwaptionVolatilityMatrixPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolatilityMatrix",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "Calendar const &""'"); 
  }
  arg1 = reinterpret_cast< Calendar * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "2"" of type '" "BusinessDayConvention""'");
  } 
  arg2 = static_cast< BusinessDayConvention >(val2);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    if (PyTuple_Check(obj4) || PyList_Check(obj4)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj4) ?
      PyTuple_Size(obj4) :
        PyList_Size(obj4));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj4,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp5 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj4,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp5[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp5[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg5 = &temp5;
    } else {
      SWIG_ConvertPtr(obj4,(void **) &arg5,SWIGTYPE_p_Matrix,1);
    }
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolatilityMatrix" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  {
    try {
      result = (SwaptionVolatilityMatrixPtr *)new_SwaptionVolatilityMatrixPtr__SWIG_8((Calendar const &)*arg1,arg2,(std::vector< Period,std::allocator< Period > > const &)*arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(Matrix const &)*arg5,(DayCounter const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionVolatilityMatrixPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionVolatilityMatrix(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< Date,std::allocator< Date > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Period,std::allocator< Period > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            /* native sequence? */
            if (PyTuple_Check(argv[3]) || PyList_Check(argv[3])) {
              _v = 1;
              /* wrapped Matrix? */
            } else {
              Matrix* m;
              if (SWIG_ConvertPtr(argv[3],(void **) &m,
                  SWIGTYPE_p_Matrix,0) != -1)
              _v = 1;
              else
              _v = 0;
            }
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_SwaptionVolatilityMatrix__SWIG_3(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< Date,std::allocator< Date > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Period,std::allocator< Period > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            /* native sequence? */
            if (PyTuple_Check(argv[3]) || PyList_Check(argv[3])) {
              _v = 1;
              /* wrapped Matrix? */
            } else {
              Matrix* m;
              if (SWIG_ConvertPtr(argv[3],(void **) &m,
                  SWIGTYPE_p_Matrix,0) != -1)
              _v = 1;
              else
              _v = 0;
            }
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_SwaptionVolatilityMatrix__SWIG_2(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Period,std::allocator< Period > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_SwaptionVolatilityMatrix__SWIG_7(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Period,std::allocator< Period > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              /* native sequence? */
              if (PyTuple_Check(argv[4]) || PyList_Check(argv[4])) {
                _v = 1;
                /* wrapped Matrix? */
              } else {
                Matrix* m;
                if (SWIG_ConvertPtr(argv[4],(void **) &m,
                    SWIGTYPE_p_Matrix,0) != -1)
                _v = 1;
                else
                _v = 0;
              }
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_SwaptionVolatilityMatrix__SWIG_11(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< Date,std::allocator< Date > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Period,std::allocator< Period > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            /* native sequence? */
            if (PyTuple_Check(argv[3]) || PyList_Check(argv[3])) {
              _v = 1;
              /* wrapped Matrix? */
            } else {
              Matrix* m;
              if (SWIG_ConvertPtr(argv[3],(void **) &m,
                  SWIGTYPE_p_Matrix,0) != -1)
              _v = 1;
              else
              _v = 0;
            }
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_SwaptionVolatilityMatrix__SWIG_1(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Period,std::allocator< Period > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_SwaptionVolatilityMatrix__SWIG_6(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Period,std::allocator< Period > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              /* native sequence? */
              if (PyTuple_Check(argv[4]) || PyList_Check(argv[4])) {
                _v = 1;
                /* wrapped Matrix? */
              } else {
                Matrix* m;
                if (SWIG_ConvertPtr(argv[4],(void **) &m,
                    SWIGTYPE_p_Matrix,0) != -1)
                _v = 1;
                else
                _v = 0;
              }
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_SwaptionVolatilityMatrix__SWIG_10(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Period,std::allocator< Period > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_SwaptionVolatilityMatrix__SWIG_5(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< Date,std::allocator< Date > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Period,std::allocator< Period > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            /* native sequence? */
            if (PyTuple_Check(argv[3]) || PyList_Check(argv[3])) {
              _v = 1;
              /* wrapped Matrix? */
            } else {
              Matrix* m;
              if (SWIG_ConvertPtr(argv[3],(void **) &m,
                  SWIGTYPE_p_Matrix,0) != -1)
              _v = 1;
              else
              _v = 0;
            }
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    /* native sequence? */
                    if (PyTuple_Check(argv[7]) || PyList_Check(argv[7])) {
                      _v = 1;
                      /* wrapped Matrix? */
                    } else {
                      Matrix* m;
                      if (SWIG_ConvertPtr(argv[7],(void **) &m,
                          SWIGTYPE_p_Matrix,0) != -1)
                      _v = 1;
                      else
                      _v = 0;
                    }
                  }
                  if (_v) {
                    return _wrap_new_SwaptionVolatilityMatrix__SWIG_0(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Period,std::allocator< Period > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              /* native sequence? */
              if (PyTuple_Check(argv[4]) || PyList_Check(argv[4])) {
                _v = 1;
                /* wrapped Matrix? */
              } else {
                Matrix* m;
                if (SWIG_ConvertPtr(argv[4],(void **) &m,
                    SWIGTYPE_p_Matrix,0) != -1)
                _v = 1;
                else
                _v = 0;
              }
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_SwaptionVolatilityMatrix__SWIG_9(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Period,std::allocator< Period > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap_new_SwaptionVolatilityMatrix__SWIG_4(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Calendar, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Period,std::allocator< Period > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              /* native sequence? */
              if (PyTuple_Check(argv[4]) || PyList_Check(argv[4])) {
                _v = 1;
                /* wrapped Matrix? */
              } else {
                Matrix* m;
                if (SWIG_ConvertPtr(argv[4],(void **) &m,
                    SWIGTYPE_p_Matrix,0) != -1)
                _v = 1;
                else
                _v = 0;
              }
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      /* native sequence? */
                      if (PyTuple_Check(argv[8]) || PyList_Check(argv[8])) {
                        _v = 1;
                        /* wrapped Matrix? */
                      } else {
                        Matrix* m;
                        if (SWIG_ConvertPtr(argv[8],(void **) &m,
                            SWIGTYPE_p_Matrix,0) != -1)
                        _v = 1;
                        else
                        _v = 0;
                      }
                    }
                    if (_v) {
                      return _wrap_new_SwaptionVolatilityMatrix__SWIG_8(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SwaptionVolatilityMatrix'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SwaptionVolatilityMatrixPtr::SwaptionVolatilityMatrixPtr(Date const &,std::vector< Date,std::allocator< Date > > const &,std::vector< Period,std::allocator< Period > > const &,Matrix const &,DayCounter const &,bool const,VolatilityType const,Matrix const &)\n"
    "    SwaptionVolatilityMatrixPtr::SwaptionVolatilityMatrixPtr(Date const &,std::vector< Date,std::allocator< Date > > const &,std::vector< Period,std::allocator< Period > > const &,Matrix const &,DayCounter const &,bool const,VolatilityType const)\n"
    "    SwaptionVolatilityMatrixPtr::SwaptionVolatilityMatrixPtr(Date const &,std::vector< Date,std::allocator< Date > > const &,std::vector< Period,std::allocator< Period > > const &,Matrix const &,DayCounter const &,bool const)\n"
    "    SwaptionVolatilityMatrixPtr::SwaptionVolatilityMatrixPtr(Date const &,std::vector< Date,std::allocator< Date > > const &,std::vector< Period,std::allocator< Period > > const &,Matrix const &,DayCounter const &)\n"
    "    SwaptionVolatilityMatrixPtr::SwaptionVolatilityMatrixPtr(Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Period,std::allocator< Period > > const &,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &,DayCounter const &,bool const,VolatilityType const,std::vector< std::vector< Real,std::allocator< Real > >,std::allocator< std::vector< Real,std::allocator< Real > > > > const &)\n"
    "    SwaptionVolatilityMatrixPtr::SwaptionVolatilityMatrixPtr(Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Period,std::allocator< Period > > const &,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &,DayCounter const &,bool const,VolatilityType const)\n"
    "    SwaptionVolatilityMatrixPtr::SwaptionVolatilityMatrixPtr(Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Period,std::allocator< Period > > const &,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &,DayCounter const &,bool const)\n"
    "    SwaptionVolatilityMatrixPtr::SwaptionVolatilityMatrixPtr(Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Period,std::allocator< Period > > const &,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &,DayCounter const &)\n"
    "    SwaptionVolatilityMatrixPtr::SwaptionVolatilityMatrixPtr(Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Period,std::allocator< Period > > const &,Matrix const &,DayCounter const &,bool const,VolatilityType const,Matrix const &)\n"
    "    SwaptionVolatilityMatrixPtr::SwaptionVolatilityMatrixPtr(Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Period,std::allocator< Period > > const &,Matrix const &,DayCounter const &,bool const,VolatilityType const)\n"
    "    SwaptionVolatilityMatrixPtr::SwaptionVolatilityMatrixPtr(Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Period,std::allocator< Period > > const &,Matrix const &,DayCounter const &,bool const)\n"
    "    SwaptionVolatilityMatrixPtr::SwaptionVolatilityMatrixPtr(Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Period,std::allocator< Period > > const &,Matrix const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_SwaptionVolatilityMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwaptionVolatilityMatrixPtr *arg1 = (SwaptionVolatilityMatrixPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SwaptionVolatilityMatrix",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwaptionVolatilityMatrixPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwaptionVolatilityMatrix" "', argument " "1"" of type '" "SwaptionVolatilityMatrixPtr *""'"); 
  }
  arg1 = reinterpret_cast< SwaptionVolatilityMatrixPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SwaptionVolatilityMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SwaptionVolatilityMatrixPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SwaptionVolCube1__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg2 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg3 = 0 ;
  std::vector< Spread,std::allocator< Spread > > *arg4 = 0 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg5 = 0 ;
  SwapIndexPtr *arg6 = 0 ;
  SwapIndexPtr *arg7 = 0 ;
  bool arg8 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg9 = 0 ;
  std::vector< bool,std::allocator< bool > > *arg10 = 0 ;
  bool arg11 ;
  boost::shared_ptr< EndCriteria > *arg12 = 0 ;
  Real arg13 ;
  boost::shared_ptr< OptimizationMethod > *arg14 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  bool val8 ;
  int ecode8 = 0 ;
  int res9 = SWIG_OLDOBJ ;
  int res10 = SWIG_OLDOBJ ;
  bool val11 ;
  int ecode11 = 0 ;
  void *argp12 = 0 ;
  int res12 = 0 ;
  double val13 ;
  int ecode13 = 0 ;
  void *argp14 = 0 ;
  int res14 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  SwaptionVolCube1Ptr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolCube1",14,14,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionVolCube1" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionVolCube1" "', argument " "2"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "2"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionVolCube1" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionVolCube1" "', argument " "4"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "4"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionVolCube1" "', argument " "5"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "5"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionVolCube1" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg6 = reinterpret_cast< SwapIndexPtr * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionVolCube1" "', argument " "7"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "7"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< SwapIndexPtr * >(argp7);
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SwaptionVolCube1" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res9 = swig::asptr(obj8, &ptr);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_SwaptionVolCube1" "', argument " "9"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "9"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg9 = ptr;
  }
  {
    std::vector<bool,std::allocator< bool > > *ptr = (std::vector<bool,std::allocator< bool > > *)0;
    res10 = swig::asptr(obj9, &ptr);
    if (!SWIG_IsOK(res10)) {
      SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SwaptionVolCube1" "', argument " "10"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "10"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    arg10 = ptr;
  }
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwaptionVolCube1" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  res12 = SWIG_ConvertPtr(obj11, &argp12, SWIGTYPE_p_boost__shared_ptrT_EndCriteria_t,  0  | 0);
  if (!SWIG_IsOK(res12)) {
    SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_SwaptionVolCube1" "', argument " "12"" of type '" "boost::shared_ptr< EndCriteria > const &""'"); 
  }
  if (!argp12) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "12"" of type '" "boost::shared_ptr< EndCriteria > const &""'"); 
  }
  arg12 = reinterpret_cast< boost::shared_ptr< EndCriteria > * >(argp12);
  ecode13 = SWIG_AsVal_double(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_SwaptionVolCube1" "', argument " "13"" of type '" "Real""'");
  } 
  arg13 = static_cast< Real >(val13);
  res14 = SWIG_ConvertPtr(obj13, &argp14, SWIGTYPE_p_boost__shared_ptrT_OptimizationMethod_t,  0  | 0);
  if (!SWIG_IsOK(res14)) {
    SWIG_exception_fail(SWIG_ArgError(res14), "in method '" "new_SwaptionVolCube1" "', argument " "14"" of type '" "boost::shared_ptr< OptimizationMethod > const &""'"); 
  }
  if (!argp14) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "14"" of type '" "boost::shared_ptr< OptimizationMethod > const &""'"); 
  }
  arg14 = reinterpret_cast< boost::shared_ptr< OptimizationMethod > * >(argp14);
  {
    try {
      result = (SwaptionVolCube1Ptr *)new_SwaptionVolCube1Ptr__SWIG_0((Handle< SwaptionVolatilityStructure > const &)*arg1,(std::vector< Period,std::allocator< Period > > const &)*arg2,(std::vector< Period,std::allocator< Period > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg5,(SwapIndexPtr const &)*arg6,(SwapIndexPtr const &)*arg7,arg8,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg9,(std::vector< bool,std::allocator< bool > > const &)*arg10,arg11,(boost::shared_ptr< EndCriteria > const &)*arg12,arg13,(boost::shared_ptr< OptimizationMethod > const &)*arg14);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionVolCube1Ptr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionVolCube1__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg2 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg3 = 0 ;
  std::vector< Spread,std::allocator< Spread > > *arg4 = 0 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg5 = 0 ;
  SwapIndexPtr *arg6 = 0 ;
  SwapIndexPtr *arg7 = 0 ;
  bool arg8 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg9 = 0 ;
  std::vector< bool,std::allocator< bool > > *arg10 = 0 ;
  bool arg11 ;
  boost::shared_ptr< EndCriteria > *arg12 = 0 ;
  Real arg13 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  bool val8 ;
  int ecode8 = 0 ;
  int res9 = SWIG_OLDOBJ ;
  int res10 = SWIG_OLDOBJ ;
  bool val11 ;
  int ecode11 = 0 ;
  void *argp12 = 0 ;
  int res12 = 0 ;
  double val13 ;
  int ecode13 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  SwaptionVolCube1Ptr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolCube1",13,13,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionVolCube1" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionVolCube1" "', argument " "2"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "2"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionVolCube1" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionVolCube1" "', argument " "4"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "4"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionVolCube1" "', argument " "5"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "5"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionVolCube1" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg6 = reinterpret_cast< SwapIndexPtr * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionVolCube1" "', argument " "7"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "7"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< SwapIndexPtr * >(argp7);
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SwaptionVolCube1" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res9 = swig::asptr(obj8, &ptr);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_SwaptionVolCube1" "', argument " "9"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "9"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg9 = ptr;
  }
  {
    std::vector<bool,std::allocator< bool > > *ptr = (std::vector<bool,std::allocator< bool > > *)0;
    res10 = swig::asptr(obj9, &ptr);
    if (!SWIG_IsOK(res10)) {
      SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SwaptionVolCube1" "', argument " "10"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "10"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    arg10 = ptr;
  }
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwaptionVolCube1" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  res12 = SWIG_ConvertPtr(obj11, &argp12, SWIGTYPE_p_boost__shared_ptrT_EndCriteria_t,  0  | 0);
  if (!SWIG_IsOK(res12)) {
    SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_SwaptionVolCube1" "', argument " "12"" of type '" "boost::shared_ptr< EndCriteria > const &""'"); 
  }
  if (!argp12) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "12"" of type '" "boost::shared_ptr< EndCriteria > const &""'"); 
  }
  arg12 = reinterpret_cast< boost::shared_ptr< EndCriteria > * >(argp12);
  ecode13 = SWIG_AsVal_double(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_SwaptionVolCube1" "', argument " "13"" of type '" "Real""'");
  } 
  arg13 = static_cast< Real >(val13);
  {
    try {
      result = (SwaptionVolCube1Ptr *)new_SwaptionVolCube1Ptr__SWIG_0((Handle< SwaptionVolatilityStructure > const &)*arg1,(std::vector< Period,std::allocator< Period > > const &)*arg2,(std::vector< Period,std::allocator< Period > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg5,(SwapIndexPtr const &)*arg6,(SwapIndexPtr const &)*arg7,arg8,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg9,(std::vector< bool,std::allocator< bool > > const &)*arg10,arg11,(boost::shared_ptr< EndCriteria > const &)*arg12,arg13);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionVolCube1Ptr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionVolCube1__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg2 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg3 = 0 ;
  std::vector< Spread,std::allocator< Spread > > *arg4 = 0 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg5 = 0 ;
  SwapIndexPtr *arg6 = 0 ;
  SwapIndexPtr *arg7 = 0 ;
  bool arg8 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg9 = 0 ;
  std::vector< bool,std::allocator< bool > > *arg10 = 0 ;
  bool arg11 ;
  boost::shared_ptr< EndCriteria > *arg12 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  bool val8 ;
  int ecode8 = 0 ;
  int res9 = SWIG_OLDOBJ ;
  int res10 = SWIG_OLDOBJ ;
  bool val11 ;
  int ecode11 = 0 ;
  void *argp12 = 0 ;
  int res12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  SwaptionVolCube1Ptr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolCube1",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionVolCube1" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionVolCube1" "', argument " "2"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "2"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionVolCube1" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionVolCube1" "', argument " "4"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "4"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionVolCube1" "', argument " "5"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "5"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionVolCube1" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg6 = reinterpret_cast< SwapIndexPtr * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionVolCube1" "', argument " "7"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "7"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< SwapIndexPtr * >(argp7);
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SwaptionVolCube1" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res9 = swig::asptr(obj8, &ptr);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_SwaptionVolCube1" "', argument " "9"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "9"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg9 = ptr;
  }
  {
    std::vector<bool,std::allocator< bool > > *ptr = (std::vector<bool,std::allocator< bool > > *)0;
    res10 = swig::asptr(obj9, &ptr);
    if (!SWIG_IsOK(res10)) {
      SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SwaptionVolCube1" "', argument " "10"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "10"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    arg10 = ptr;
  }
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwaptionVolCube1" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  res12 = SWIG_ConvertPtr(obj11, &argp12, SWIGTYPE_p_boost__shared_ptrT_EndCriteria_t,  0  | 0);
  if (!SWIG_IsOK(res12)) {
    SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_SwaptionVolCube1" "', argument " "12"" of type '" "boost::shared_ptr< EndCriteria > const &""'"); 
  }
  if (!argp12) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "12"" of type '" "boost::shared_ptr< EndCriteria > const &""'"); 
  }
  arg12 = reinterpret_cast< boost::shared_ptr< EndCriteria > * >(argp12);
  {
    try {
      result = (SwaptionVolCube1Ptr *)new_SwaptionVolCube1Ptr__SWIG_0((Handle< SwaptionVolatilityStructure > const &)*arg1,(std::vector< Period,std::allocator< Period > > const &)*arg2,(std::vector< Period,std::allocator< Period > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg5,(SwapIndexPtr const &)*arg6,(SwapIndexPtr const &)*arg7,arg8,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg9,(std::vector< bool,std::allocator< bool > > const &)*arg10,arg11,(boost::shared_ptr< EndCriteria > const &)*arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionVolCube1Ptr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionVolCube1__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg2 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg3 = 0 ;
  std::vector< Spread,std::allocator< Spread > > *arg4 = 0 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg5 = 0 ;
  SwapIndexPtr *arg6 = 0 ;
  SwapIndexPtr *arg7 = 0 ;
  bool arg8 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg9 = 0 ;
  std::vector< bool,std::allocator< bool > > *arg10 = 0 ;
  bool arg11 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  bool val8 ;
  int ecode8 = 0 ;
  int res9 = SWIG_OLDOBJ ;
  int res10 = SWIG_OLDOBJ ;
  bool val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  SwaptionVolCube1Ptr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolCube1",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionVolCube1" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionVolCube1" "', argument " "2"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "2"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionVolCube1" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionVolCube1" "', argument " "4"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "4"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionVolCube1" "', argument " "5"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "5"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionVolCube1" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg6 = reinterpret_cast< SwapIndexPtr * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionVolCube1" "', argument " "7"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "7"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< SwapIndexPtr * >(argp7);
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SwaptionVolCube1" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res9 = swig::asptr(obj8, &ptr);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_SwaptionVolCube1" "', argument " "9"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "9"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg9 = ptr;
  }
  {
    std::vector<bool,std::allocator< bool > > *ptr = (std::vector<bool,std::allocator< bool > > *)0;
    res10 = swig::asptr(obj9, &ptr);
    if (!SWIG_IsOK(res10)) {
      SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SwaptionVolCube1" "', argument " "10"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube1" "', argument " "10"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    arg10 = ptr;
  }
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwaptionVolCube1" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  {
    try {
      result = (SwaptionVolCube1Ptr *)new_SwaptionVolCube1Ptr__SWIG_0((Handle< SwaptionVolatilityStructure > const &)*arg1,(std::vector< Period,std::allocator< Period > > const &)*arg2,(std::vector< Period,std::allocator< Period > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg5,(SwapIndexPtr const &)*arg6,(SwapIndexPtr const &)*arg7,arg8,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg9,(std::vector< bool,std::allocator< bool > > const &)*arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionVolCube1Ptr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionVolCube1(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[15] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 14) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 11) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< Period,std::allocator< Period > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Period,std::allocator< Period > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_SwapIndexPtr, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_SwapIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = swig::asptr(argv[8], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = swig::asptr(argv[9], (std::vector<bool,std::allocator< bool > >**)(0));
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          return _wrap_new_SwaptionVolCube1__SWIG_3(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< Period,std::allocator< Period > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Period,std::allocator< Period > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_SwapIndexPtr, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_SwapIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = swig::asptr(argv[8], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = swig::asptr(argv[9], (std::vector<bool,std::allocator< bool > >**)(0));
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          int res = SWIG_ConvertPtr(argv[11], 0, SWIGTYPE_p_boost__shared_ptrT_EndCriteria_t, 0);
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            return _wrap_new_SwaptionVolCube1__SWIG_2(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 13) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< Period,std::allocator< Period > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Period,std::allocator< Period > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_SwapIndexPtr, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_SwapIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = swig::asptr(argv[8], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = swig::asptr(argv[9], (std::vector<bool,std::allocator< bool > >**)(0));
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          int res = SWIG_ConvertPtr(argv[11], 0, SWIGTYPE_p_boost__shared_ptrT_EndCriteria_t, 0);
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            {
                              int res = SWIG_AsVal_double(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              return _wrap_new_SwaptionVolCube1__SWIG_1(self, args);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 14) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< Period,std::allocator< Period > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Period,std::allocator< Period > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_SwapIndexPtr, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_SwapIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = swig::asptr(argv[8], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = swig::asptr(argv[9], (std::vector<bool,std::allocator< bool > >**)(0));
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          int res = SWIG_ConvertPtr(argv[11], 0, SWIGTYPE_p_boost__shared_ptrT_EndCriteria_t, 0);
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            {
                              int res = SWIG_AsVal_double(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              int res = SWIG_ConvertPtr(argv[13], 0, SWIGTYPE_p_boost__shared_ptrT_OptimizationMethod_t, 0);
                              _v = SWIG_CheckState(res);
                              if (_v) {
                                return _wrap_new_SwaptionVolCube1__SWIG_0(self, args);
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SwaptionVolCube1'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SwaptionVolCube1Ptr::SwaptionVolCube1Ptr(Handle< SwaptionVolatilityStructure > const &,std::vector< Period,std::allocator< Period > > const &,std::vector< Period,std::allocator< Period > > const &,std::vector< Spread,std::allocator< Spread > > const &,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &,SwapIndexPtr const &,SwapIndexPtr const &,bool,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &,std::vector< bool,std::allocator< bool > > const &,bool,boost::shared_ptr< EndCriteria > const &,Real,boost::shared_ptr< OptimizationMethod > const &)\n"
    "    SwaptionVolCube1Ptr::SwaptionVolCube1Ptr(Handle< SwaptionVolatilityStructure > const &,std::vector< Period,std::allocator< Period > > const &,std::vector< Period,std::allocator< Period > > const &,std::vector< Spread,std::allocator< Spread > > const &,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &,SwapIndexPtr const &,SwapIndexPtr const &,bool,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &,std::vector< bool,std::allocator< bool > > const &,bool,boost::shared_ptr< EndCriteria > const &,Real)\n"
    "    SwaptionVolCube1Ptr::SwaptionVolCube1Ptr(Handle< SwaptionVolatilityStructure > const &,std::vector< Period,std::allocator< Period > > const &,std::vector< Period,std::allocator< Period > > const &,std::vector< Spread,std::allocator< Spread > > const &,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &,SwapIndexPtr const &,SwapIndexPtr const &,bool,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &,std::vector< bool,std::allocator< bool > > const &,bool,boost::shared_ptr< EndCriteria > const &)\n"
    "    SwaptionVolCube1Ptr::SwaptionVolCube1Ptr(Handle< SwaptionVolatilityStructure > const &,std::vector< Period,std::allocator< Period > > const &,std::vector< Period,std::allocator< Period > > const &,std::vector< Spread,std::allocator< Spread > > const &,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &,SwapIndexPtr const &,SwapIndexPtr const &,bool,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &,std::vector< bool,std::allocator< bool > > const &,bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_SwaptionVolCube1_sparseSabrParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwaptionVolCube1Ptr *arg1 = (SwaptionVolCube1Ptr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolCube1_sparseSabrParameters",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwaptionVolCube1Ptr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolCube1_sparseSabrParameters" "', argument " "1"" of type '" "SwaptionVolCube1Ptr const *""'"); 
  }
  arg1 = reinterpret_cast< SwaptionVolCube1Ptr * >(argp1);
  {
    try {
      result = SwaptionVolCube1Ptr_sparseSabrParameters((SwaptionVolCube1Ptr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolCube1_denseSabrParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwaptionVolCube1Ptr *arg1 = (SwaptionVolCube1Ptr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolCube1_denseSabrParameters",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwaptionVolCube1Ptr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolCube1_denseSabrParameters" "', argument " "1"" of type '" "SwaptionVolCube1Ptr const *""'"); 
  }
  arg1 = reinterpret_cast< SwaptionVolCube1Ptr * >(argp1);
  {
    try {
      result = SwaptionVolCube1Ptr_denseSabrParameters((SwaptionVolCube1Ptr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolCube1_marketVolCube(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwaptionVolCube1Ptr *arg1 = (SwaptionVolCube1Ptr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolCube1_marketVolCube",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwaptionVolCube1Ptr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolCube1_marketVolCube" "', argument " "1"" of type '" "SwaptionVolCube1Ptr const *""'"); 
  }
  arg1 = reinterpret_cast< SwaptionVolCube1Ptr * >(argp1);
  {
    try {
      result = SwaptionVolCube1Ptr_marketVolCube((SwaptionVolCube1Ptr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwaptionVolCube1_volCubeAtmCalibrated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwaptionVolCube1Ptr *arg1 = (SwaptionVolCube1Ptr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionVolCube1_volCubeAtmCalibrated",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwaptionVolCube1Ptr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionVolCube1_volCubeAtmCalibrated" "', argument " "1"" of type '" "SwaptionVolCube1Ptr const *""'"); 
  }
  arg1 = reinterpret_cast< SwaptionVolCube1Ptr * >(argp1);
  {
    try {
      result = SwaptionVolCube1Ptr_volCubeAtmCalibrated((SwaptionVolCube1Ptr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SwaptionVolCube1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwaptionVolCube1Ptr *arg1 = (SwaptionVolCube1Ptr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SwaptionVolCube1",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwaptionVolCube1Ptr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwaptionVolCube1" "', argument " "1"" of type '" "SwaptionVolCube1Ptr *""'"); 
  }
  arg1 = reinterpret_cast< SwaptionVolCube1Ptr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SwaptionVolCube1_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SwaptionVolCube1Ptr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SwaptionVolCube2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg2 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg3 = 0 ;
  std::vector< Spread,std::allocator< Spread > > *arg4 = 0 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg5 = 0 ;
  SwapIndexPtr *arg6 = 0 ;
  SwapIndexPtr *arg7 = 0 ;
  bool arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  bool val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  SwaptionVolCube2Ptr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionVolCube2",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionVolCube2" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube2" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionVolCube2" "', argument " "2"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube2" "', argument " "2"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionVolCube2" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube2" "', argument " "3"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionVolCube2" "', argument " "4"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube2" "', argument " "4"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionVolCube2" "', argument " "5"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube2" "', argument " "5"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionVolCube2" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube2" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg6 = reinterpret_cast< SwapIndexPtr * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionVolCube2" "', argument " "7"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionVolCube2" "', argument " "7"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< SwapIndexPtr * >(argp7);
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SwaptionVolCube2" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  {
    try {
      result = (SwaptionVolCube2Ptr *)new_SwaptionVolCube2Ptr((Handle< SwaptionVolatilityStructure > const &)*arg1,(std::vector< Period,std::allocator< Period > > const &)*arg2,(std::vector< Period,std::allocator< Period > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg5,(SwapIndexPtr const &)*arg6,(SwapIndexPtr const &)*arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionVolCube2Ptr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SwaptionVolCube2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwaptionVolCube2Ptr *arg1 = (SwaptionVolCube2Ptr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SwaptionVolCube2",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwaptionVolCube2Ptr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwaptionVolCube2" "', argument " "1"" of type '" "SwaptionVolCube2Ptr *""'"); 
  }
  arg1 = reinterpret_cast< SwaptionVolCube2Ptr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SwaptionVolCube2_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SwaptionVolCube2Ptr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_StochasticProcess___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StochasticProcess > *arg1 = (boost::shared_ptr< StochasticProcess > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  StochasticProcess *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess___deref__" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StochasticProcess > * >(argp1);
  {
    try {
      result = (StochasticProcess *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_StochasticProcess, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StochasticProcess > *arg1 = (boost::shared_ptr< StochasticProcess > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StochasticProcess > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_StochasticProcess_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StochasticProcess > *arg1 = (boost::shared_ptr< StochasticProcess > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess___bool__" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StochasticProcess > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_StochasticProcess_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StochasticProcess > *arg1 = (boost::shared_ptr< StochasticProcess > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess_asObservable" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StochasticProcess > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_StochasticProcess_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_StochasticProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StochasticProcess > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_StochasticProcess",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< StochasticProcess > *)new boost::shared_ptr< StochasticProcess >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_StochasticProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StochasticProcess > *arg1 = (boost::shared_ptr< StochasticProcess > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_StochasticProcess",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StochasticProcess" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StochasticProcess > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StochasticProcess > *arg1 = (boost::shared_ptr< StochasticProcess > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess_size" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StochasticProcess > * >(argp1);
  {
    try {
      result = (*arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess_factors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StochasticProcess > *arg1 = (boost::shared_ptr< StochasticProcess > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess_factors",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess_factors" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StochasticProcess > * >(argp1);
  {
    try {
      result = (*arg1)->factors();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess_initialValues(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StochasticProcess > *arg1 = (boost::shared_ptr< StochasticProcess > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess_initialValues",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess_initialValues" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StochasticProcess > * >(argp1);
  {
    try {
      result = (*arg1)->initialValues();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess_drift(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StochasticProcess > *arg1 = (boost::shared_ptr< StochasticProcess > *) 0 ;
  Time arg2 ;
  Array *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  Array temp3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess_drift",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess_drift" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StochasticProcess > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcess_drift" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    if (extractArray(obj2,&temp3)) {
      arg3 = &temp3;
    } else {
      SWIG_ConvertPtr(obj2,(void **) &arg3,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (*arg1)->drift(arg2,(Array const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess_diffusion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StochasticProcess > *arg1 = (boost::shared_ptr< StochasticProcess > *) 0 ;
  Time arg2 ;
  Array *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  Array temp3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess_diffusion",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess_diffusion" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StochasticProcess > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcess_diffusion" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    if (extractArray(obj2,&temp3)) {
      arg3 = &temp3;
    } else {
      SWIG_ConvertPtr(obj2,(void **) &arg3,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (*arg1)->diffusion(arg2,(Array const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess_expectation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StochasticProcess > *arg1 = (boost::shared_ptr< StochasticProcess > *) 0 ;
  Time arg2 ;
  Array *arg3 = 0 ;
  Time arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  Array temp3 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess_expectation",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess_expectation" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StochasticProcess > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcess_expectation" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    if (extractArray(obj2,&temp3)) {
      arg3 = &temp3;
    } else {
      SWIG_ConvertPtr(obj2,(void **) &arg3,SWIGTYPE_p_Array,1);
    }
  }
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "StochasticProcess_expectation" "', argument " "4"" of type '" "Time""'");
  } 
  arg4 = static_cast< Time >(val4);
  {
    try {
      result = (*arg1)->expectation(arg2,(Array const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess_stdDeviation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StochasticProcess > *arg1 = (boost::shared_ptr< StochasticProcess > *) 0 ;
  Time arg2 ;
  Array *arg3 = 0 ;
  Time arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  Array temp3 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess_stdDeviation",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess_stdDeviation" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StochasticProcess > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcess_stdDeviation" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    if (extractArray(obj2,&temp3)) {
      arg3 = &temp3;
    } else {
      SWIG_ConvertPtr(obj2,(void **) &arg3,SWIGTYPE_p_Array,1);
    }
  }
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "StochasticProcess_stdDeviation" "', argument " "4"" of type '" "Time""'");
  } 
  arg4 = static_cast< Time >(val4);
  {
    try {
      result = (*arg1)->stdDeviation(arg2,(Array const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess_covariance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StochasticProcess > *arg1 = (boost::shared_ptr< StochasticProcess > *) 0 ;
  Time arg2 ;
  Array *arg3 = 0 ;
  Time arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  Array temp3 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess_covariance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess_covariance" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StochasticProcess > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcess_covariance" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    if (extractArray(obj2,&temp3)) {
      arg3 = &temp3;
    } else {
      SWIG_ConvertPtr(obj2,(void **) &arg3,SWIGTYPE_p_Array,1);
    }
  }
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "StochasticProcess_covariance" "', argument " "4"" of type '" "Time""'");
  } 
  arg4 = static_cast< Time >(val4);
  {
    try {
      result = (*arg1)->covariance(arg2,(Array const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess_evolve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StochasticProcess > *arg1 = (boost::shared_ptr< StochasticProcess > *) 0 ;
  Time arg2 ;
  Array *arg3 = 0 ;
  Time arg4 ;
  Array *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  Array temp3 ;
  double val4 ;
  int ecode4 = 0 ;
  Array temp5 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess_evolve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess_evolve" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StochasticProcess > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcess_evolve" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    if (extractArray(obj2,&temp3)) {
      arg3 = &temp3;
    } else {
      SWIG_ConvertPtr(obj2,(void **) &arg3,SWIGTYPE_p_Array,1);
    }
  }
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "StochasticProcess_evolve" "', argument " "4"" of type '" "Time""'");
  } 
  arg4 = static_cast< Time >(val4);
  {
    if (extractArray(obj4,&temp5)) {
      arg5 = &temp5;
    } else {
      SWIG_ConvertPtr(obj4,(void **) &arg5,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (*arg1)->evolve(arg2,(Array const &)*arg3,arg4,(Array const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *StochasticProcess_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_StochasticProcessVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_iterator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector___nonzero__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____nonzero__((std::vector< boost::shared_ptr< StochasticProcess > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector___bool__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____bool__((std::vector< boost::shared_ptr< StochasticProcess > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector___len__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____len__((std::vector< boost::shared_ptr< StochasticProcess > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector___getslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcessVector___getslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< StochasticProcess > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StochasticProcessVector___getslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< StochasticProcess > >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > *)std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcessVector___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< StochasticProcess > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StochasticProcessVector___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< StochasticProcess > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::difference_type arg3 ;
  std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcessVector___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< StochasticProcess > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StochasticProcessVector___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< StochasticProcess > >::difference_type >(val3);
  {
    std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > *ptr = (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StochasticProcessVector___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StochasticProcessVector___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >**)(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_StochasticProcessVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >**)(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< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_StochasticProcessVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StochasticProcessVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::__setslice__(std::vector< boost::shared_ptr< StochasticProcess > >::difference_type,std::vector< boost::shared_ptr< StochasticProcess > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::__setslice__(std::vector< boost::shared_ptr< StochasticProcess > >::difference_type,std::vector< boost::shared_ptr< StochasticProcess > >::difference_type,std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector___delslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcessVector___delslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< StochasticProcess > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StochasticProcessVector___delslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< StochasticProcess > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcessVector___delitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< StochasticProcess > >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StochasticProcessVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > *)std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StochasticProcessVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > *ptr = (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StochasticProcessVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StochasticProcessVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StochasticProcessVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StochasticProcessVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_StochasticProcessVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_StochasticProcessVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StochasticProcessVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::__delitem__(std::vector< boost::shared_ptr< StochasticProcess > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcessVector___getitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< StochasticProcess > >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< StochasticProcess > >::value_type *) &std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____getitem____SWIG_1((std::vector< boost::shared_ptr< StochasticProcess > > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_StochasticProcessVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_StochasticProcessVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StochasticProcessVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::__getitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::__getitem__(std::vector< boost::shared_ptr< StochasticProcess > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcessVector___setitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< StochasticProcess > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StochasticProcessVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StochasticProcessVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > >::value_type * >(argp3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg____setitem____SWIG_2(arg1,arg2,(boost::shared_ptr< StochasticProcess > const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_StochasticProcessVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_StochasticProcessVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >**)(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_boost__shared_ptrT_StochasticProcess_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_StochasticProcessVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StochasticProcessVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::__setitem__(PySliceObject *,std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > const &)\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::__setitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::__setitem__(std::vector< boost::shared_ptr< StochasticProcess > >::difference_type,std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_pop" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< StochasticProcess > >::value_type(static_cast< const std::vector< boost::shared_ptr< StochasticProcess > >::value_type& >(result))), SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_append" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StochasticProcessVector_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StochasticProcessVector_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > >::value_type * >(argp2);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg__append(arg1,(boost::shared_ptr< StochasticProcess > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_StochasticProcessVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_StochasticProcessVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< boost::shared_ptr< StochasticProcess > > *)new std::vector< boost::shared_ptr< StochasticProcess > >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_StochasticProcessVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_StochasticProcessVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > *ptr = (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StochasticProcessVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StochasticProcessVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< boost::shared_ptr< StochasticProcess > > *)new std::vector< boost::shared_ptr< StochasticProcess > >((std::vector< boost::shared_ptr< StochasticProcess > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_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_StochasticProcessVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_empty" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    try {
      result = (bool)((std::vector< boost::shared_ptr< StochasticProcess > > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_size" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< StochasticProcess > > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_swap" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StochasticProcessVector_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StochasticProcessVector_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_begin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< StochasticProcess > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_end" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< StochasticProcess > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_rbegin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< StochasticProcess > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_rend" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< StochasticProcess > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_clear" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< boost::shared_ptr< StochasticProcess > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_get_allocator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< StochasticProcess > > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< StochasticProcess > >::allocator_type(static_cast< const std::vector< boost::shared_ptr< StochasticProcess > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_StochasticProcessVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_StochasticProcessVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StochasticProcessVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< StochasticProcess > >::size_type >(val1);
  {
    try {
      result = (std::vector< boost::shared_ptr< StochasticProcess > > *)new std::vector< boost::shared_ptr< StochasticProcess > >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_pop_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcessVector_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< StochasticProcess > >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StochasticProcessVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< StochasticProcess > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< StochasticProcess > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StochasticProcessVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< StochasticProcess > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::iterator arg2 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StochasticProcessVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< StochasticProcess > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< StochasticProcess > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StochasticProcessVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StochasticProcessVector_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< StochasticProcess > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< StochasticProcess > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StochasticProcessVector_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< StochasticProcess > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >**)(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< boost::shared_ptr< StochasticProcess > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_StochasticProcessVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >**)(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< boost::shared_ptr< StochasticProcess > >::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< boost::shared_ptr< StochasticProcess > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_StochasticProcessVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StochasticProcessVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::erase(std::vector< boost::shared_ptr< StochasticProcess > >::iterator)\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::erase(std::vector< boost::shared_ptr< StochasticProcess > >::iterator,std::vector< boost::shared_ptr< StochasticProcess > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_StochasticProcessVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > >::size_type arg1 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_StochasticProcessVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StochasticProcessVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< StochasticProcess > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_StochasticProcessVector" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StochasticProcessVector" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > >::value_type * >(argp2);
  {
    try {
      result = (std::vector< boost::shared_ptr< StochasticProcess > > *)new std::vector< boost::shared_ptr< StochasticProcess > >(arg1,(std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_StochasticProcessVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_StochasticProcessVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_StochasticProcessVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_StochasticProcessVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_StochasticProcessVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_StochasticProcessVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::vector()\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::vector(std::vector< boost::shared_ptr< StochasticProcess > > const &)\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::vector(std::vector< boost::shared_ptr< StochasticProcess > >::size_type)\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::vector(std::vector< boost::shared_ptr< StochasticProcess > >::size_type,std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_push_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StochasticProcessVector_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StochasticProcessVector_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > >::value_type * >(argp2);
  {
    try {
      (arg1)->push_back((std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_front" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< StochasticProcess > >::value_type *) &((std::vector< boost::shared_ptr< StochasticProcess > > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< StochasticProcess > >::value_type *) &((std::vector< boost::shared_ptr< StochasticProcess > > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::size_type arg2 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_assign" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcessVector_assign" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< StochasticProcess > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StochasticProcessVector_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StochasticProcessVector_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > >::value_type * >(argp3);
  {
    try {
      (arg1)->assign(arg2,(std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::size_type arg2 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcessVector_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< StochasticProcess > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StochasticProcessVector_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StochasticProcessVector_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > >::value_type * >(argp3);
  {
    try {
      (arg1)->resize(arg2,(std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_StochasticProcessVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >**)(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_boost__shared_ptrT_StochasticProcess_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_StochasticProcessVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StochasticProcessVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::resize(std::vector< boost::shared_ptr< StochasticProcess > >::size_type)\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::resize(std::vector< boost::shared_ptr< StochasticProcess > >::size_type,std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::iterator arg2 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StochasticProcessVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< StochasticProcess > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< StochasticProcess > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StochasticProcessVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StochasticProcessVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StochasticProcessVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > >::value_type * >(argp3);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg__insert__SWIG_0(arg1,arg2,(boost::shared_ptr< StochasticProcess > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< StochasticProcess > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::iterator arg2 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::size_type arg3 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::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 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StochasticProcessVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< StochasticProcess > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< StochasticProcess > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StochasticProcessVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StochasticProcessVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< StochasticProcess > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StochasticProcessVector_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StochasticProcessVector_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > >::value_type * >(argp4);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_StochasticProcess_Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(boost::shared_ptr< StochasticProcess > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >**)(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< boost::shared_ptr< StochasticProcess > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_StochasticProcessVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > >**)(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< boost::shared_ptr< StochasticProcess > >::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_boost__shared_ptrT_StochasticProcess_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_StochasticProcessVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'StochasticProcessVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::insert(std::vector< boost::shared_ptr< StochasticProcess > >::iterator,std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &)\n"
    "    std::vector< boost::shared_ptr< StochasticProcess > >::insert(std::vector< boost::shared_ptr< StochasticProcess > >::iterator,std::vector< boost::shared_ptr< StochasticProcess > >::size_type,std::vector< boost::shared_ptr< StochasticProcess > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_reserve" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcessVector_reserve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< StochasticProcess > >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcessVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< StochasticProcess > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcessVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcessVector_capacity" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< StochasticProcess > > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_StochasticProcessVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess > > *arg1 = (std::vector< boost::shared_ptr< StochasticProcess > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_StochasticProcessVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StochasticProcessVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< StochasticProcess > > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *StochasticProcessVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_StochasticProcess1D_x0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  StochasticProcess1DPtr *arg1 = (StochasticProcess1DPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess1D_x0",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_StochasticProcess1DPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess1D_x0" "', argument " "1"" of type '" "StochasticProcess1DPtr *""'"); 
  }
  arg1 = reinterpret_cast< StochasticProcess1DPtr * >(argp1);
  {
    try {
      result = (Real)StochasticProcess1DPtr_x0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess1D_drift(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  StochasticProcess1DPtr *arg1 = (StochasticProcess1DPtr *) 0 ;
  Time arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess1D_drift",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_StochasticProcess1DPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess1D_drift" "', argument " "1"" of type '" "StochasticProcess1DPtr *""'"); 
  }
  arg1 = reinterpret_cast< StochasticProcess1DPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcess1D_drift" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StochasticProcess1D_drift" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Real)StochasticProcess1DPtr_drift(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess1D_diffusion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  StochasticProcess1DPtr *arg1 = (StochasticProcess1DPtr *) 0 ;
  Time arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess1D_diffusion",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_StochasticProcess1DPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess1D_diffusion" "', argument " "1"" of type '" "StochasticProcess1DPtr *""'"); 
  }
  arg1 = reinterpret_cast< StochasticProcess1DPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcess1D_diffusion" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StochasticProcess1D_diffusion" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Real)StochasticProcess1DPtr_diffusion(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess1D_expectation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  StochasticProcess1DPtr *arg1 = (StochasticProcess1DPtr *) 0 ;
  Time arg2 ;
  Real arg3 ;
  Time arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess1D_expectation",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_StochasticProcess1DPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess1D_expectation" "', argument " "1"" of type '" "StochasticProcess1DPtr *""'"); 
  }
  arg1 = reinterpret_cast< StochasticProcess1DPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcess1D_expectation" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StochasticProcess1D_expectation" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "StochasticProcess1D_expectation" "', argument " "4"" of type '" "Time""'");
  } 
  arg4 = static_cast< Time >(val4);
  {
    try {
      result = (Real)StochasticProcess1DPtr_expectation(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess1D_stdDeviation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  StochasticProcess1DPtr *arg1 = (StochasticProcess1DPtr *) 0 ;
  Time arg2 ;
  Real arg3 ;
  Time arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess1D_stdDeviation",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_StochasticProcess1DPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess1D_stdDeviation" "', argument " "1"" of type '" "StochasticProcess1DPtr *""'"); 
  }
  arg1 = reinterpret_cast< StochasticProcess1DPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcess1D_stdDeviation" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StochasticProcess1D_stdDeviation" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "StochasticProcess1D_stdDeviation" "', argument " "4"" of type '" "Time""'");
  } 
  arg4 = static_cast< Time >(val4);
  {
    try {
      result = (Real)StochasticProcess1DPtr_stdDeviation(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess1D_variance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  StochasticProcess1DPtr *arg1 = (StochasticProcess1DPtr *) 0 ;
  Time arg2 ;
  Real arg3 ;
  Time arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess1D_variance",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_StochasticProcess1DPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess1D_variance" "', argument " "1"" of type '" "StochasticProcess1DPtr *""'"); 
  }
  arg1 = reinterpret_cast< StochasticProcess1DPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcess1D_variance" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StochasticProcess1D_variance" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "StochasticProcess1D_variance" "', argument " "4"" of type '" "Time""'");
  } 
  arg4 = static_cast< Time >(val4);
  {
    try {
      result = (Real)StochasticProcess1DPtr_variance(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess1D_evolve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  StochasticProcess1DPtr *arg1 = (StochasticProcess1DPtr *) 0 ;
  Time arg2 ;
  Real arg3 ;
  Time arg4 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess1D_evolve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_StochasticProcess1DPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess1D_evolve" "', argument " "1"" of type '" "StochasticProcess1DPtr *""'"); 
  }
  arg1 = reinterpret_cast< StochasticProcess1DPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcess1D_evolve" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StochasticProcess1D_evolve" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "StochasticProcess1D_evolve" "', argument " "4"" of type '" "Time""'");
  } 
  arg4 = static_cast< Time >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "StochasticProcess1D_evolve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Real)StochasticProcess1DPtr_evolve(arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StochasticProcess1D_apply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  StochasticProcess1DPtr *arg1 = (StochasticProcess1DPtr *) 0 ;
  Real arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StochasticProcess1D_apply",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_StochasticProcess1DPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StochasticProcess1D_apply" "', argument " "1"" of type '" "StochasticProcess1DPtr *""'"); 
  }
  arg1 = reinterpret_cast< StochasticProcess1DPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StochasticProcess1D_apply" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StochasticProcess1D_apply" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Real)StochasticProcess1DPtr_apply(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_StochasticProcess1D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  StochasticProcess1DPtr *arg1 = (StochasticProcess1DPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_StochasticProcess1D",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_StochasticProcess1DPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StochasticProcess1D" "', argument " "1"" of type '" "StochasticProcess1DPtr *""'"); 
  }
  arg1 = reinterpret_cast< StochasticProcess1DPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *StochasticProcess1D_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_StochasticProcess1DPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GeneralizedBlackScholesProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  Handle< BlackVolTermStructure > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  GeneralizedBlackScholesProcessPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GeneralizedBlackScholesProcess",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GeneralizedBlackScholesProcess" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GeneralizedBlackScholesProcess" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GeneralizedBlackScholesProcess" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GeneralizedBlackScholesProcess" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GeneralizedBlackScholesProcess" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GeneralizedBlackScholesProcess" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_BlackVolTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_GeneralizedBlackScholesProcess" "', argument " "4"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GeneralizedBlackScholesProcess" "', argument " "4"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp4);
  {
    try {
      result = (GeneralizedBlackScholesProcessPtr *)new_GeneralizedBlackScholesProcessPtr((Handle< Quote > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< YieldTermStructure > const &)*arg3,(Handle< BlackVolTermStructure > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GeneralizedBlackScholesProcess_stateVariable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = (GeneralizedBlackScholesProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< Quote > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GeneralizedBlackScholesProcess_stateVariable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GeneralizedBlackScholesProcess_stateVariable" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = GeneralizedBlackScholesProcessPtr_stateVariable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Handle< Quote >(static_cast< const Handle< Quote >& >(result))), SWIGTYPE_p_HandleT_Quote_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GeneralizedBlackScholesProcess_dividendYield(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = (GeneralizedBlackScholesProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< YieldTermStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GeneralizedBlackScholesProcess_dividendYield",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GeneralizedBlackScholesProcess_dividendYield" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = GeneralizedBlackScholesProcessPtr_dividendYield(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Handle< YieldTermStructure >(static_cast< const Handle< YieldTermStructure >& >(result))), SWIGTYPE_p_HandleT_YieldTermStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GeneralizedBlackScholesProcess_riskFreeRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = (GeneralizedBlackScholesProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< YieldTermStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GeneralizedBlackScholesProcess_riskFreeRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GeneralizedBlackScholesProcess_riskFreeRate" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = GeneralizedBlackScholesProcessPtr_riskFreeRate(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Handle< YieldTermStructure >(static_cast< const Handle< YieldTermStructure >& >(result))), SWIGTYPE_p_HandleT_YieldTermStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GeneralizedBlackScholesProcess_blackVolatility(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = (GeneralizedBlackScholesProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< BlackVolTermStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GeneralizedBlackScholesProcess_blackVolatility",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GeneralizedBlackScholesProcess_blackVolatility" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const *""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = GeneralizedBlackScholesProcessPtr_blackVolatility((GeneralizedBlackScholesProcessPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Handle< BlackVolTermStructure >(static_cast< const Handle< BlackVolTermStructure >& >(result))), SWIGTYPE_p_HandleT_BlackVolTermStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GeneralizedBlackScholesProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = (GeneralizedBlackScholesProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GeneralizedBlackScholesProcess",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GeneralizedBlackScholesProcess" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GeneralizedBlackScholesProcess_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BlackScholesProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< BlackVolTermStructure > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  BlackScholesProcessPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackScholesProcess",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackScholesProcess" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackScholesProcess" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlackScholesProcess" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackScholesProcess" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_BlackVolTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BlackScholesProcess" "', argument " "3"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackScholesProcess" "', argument " "3"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp3);
  {
    try {
      result = (BlackScholesProcessPtr *)new_BlackScholesProcessPtr((Handle< Quote > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< BlackVolTermStructure > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackScholesProcessPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BlackScholesProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackScholesProcessPtr *arg1 = (BlackScholesProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BlackScholesProcess",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackScholesProcessPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlackScholesProcess" "', argument " "1"" of type '" "BlackScholesProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< BlackScholesProcessPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BlackScholesProcess_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BlackScholesProcessPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BlackScholesMertonProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  Handle< BlackVolTermStructure > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  BlackScholesMertonProcessPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackScholesMertonProcess",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackScholesMertonProcess" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackScholesMertonProcess" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlackScholesMertonProcess" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackScholesMertonProcess" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BlackScholesMertonProcess" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackScholesMertonProcess" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_BlackVolTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_BlackScholesMertonProcess" "', argument " "4"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackScholesMertonProcess" "', argument " "4"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp4);
  {
    try {
      result = (BlackScholesMertonProcessPtr *)new_BlackScholesMertonProcessPtr((Handle< Quote > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< YieldTermStructure > const &)*arg3,(Handle< BlackVolTermStructure > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackScholesMertonProcessPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BlackScholesMertonProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackScholesMertonProcessPtr *arg1 = (BlackScholesMertonProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BlackScholesMertonProcess",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackScholesMertonProcessPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlackScholesMertonProcess" "', argument " "1"" of type '" "BlackScholesMertonProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< BlackScholesMertonProcessPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BlackScholesMertonProcess_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BlackScholesMertonProcessPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BlackProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< BlackVolTermStructure > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  BlackProcessPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackProcess",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackProcess" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackProcess" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlackProcess" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackProcess" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_BlackVolTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BlackProcess" "', argument " "3"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackProcess" "', argument " "3"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp3);
  {
    try {
      result = (BlackProcessPtr *)new_BlackProcessPtr((Handle< Quote > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< BlackVolTermStructure > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackProcessPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BlackProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackProcessPtr *arg1 = (BlackProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BlackProcess",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackProcessPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlackProcess" "', argument " "1"" of type '" "BlackProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< BlackProcessPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BlackProcess_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BlackProcessPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GarmanKohlagenProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  Handle< BlackVolTermStructure > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  GarmanKohlagenProcessPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GarmanKohlagenProcess",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GarmanKohlagenProcess" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GarmanKohlagenProcess" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GarmanKohlagenProcess" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GarmanKohlagenProcess" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GarmanKohlagenProcess" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GarmanKohlagenProcess" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_BlackVolTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_GarmanKohlagenProcess" "', argument " "4"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GarmanKohlagenProcess" "', argument " "4"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp4);
  {
    try {
      result = (GarmanKohlagenProcessPtr *)new_GarmanKohlagenProcessPtr((Handle< Quote > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< YieldTermStructure > const &)*arg3,(Handle< BlackVolTermStructure > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GarmanKohlagenProcessPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GarmanKohlagenProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GarmanKohlagenProcessPtr *arg1 = (GarmanKohlagenProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GarmanKohlagenProcess",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GarmanKohlagenProcessPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GarmanKohlagenProcess" "', argument " "1"" of type '" "GarmanKohlagenProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< GarmanKohlagenProcessPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GarmanKohlagenProcess_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GarmanKohlagenProcessPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Merton76Process(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  Handle< BlackVolTermStructure > *arg4 = 0 ;
  Handle< Quote > *arg5 = 0 ;
  Handle< Quote > *arg6 = 0 ;
  Handle< Quote > *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Merton76ProcessPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Merton76Process",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Merton76Process" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Merton76Process" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Merton76Process" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Merton76Process" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Merton76Process" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Merton76Process" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_BlackVolTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Merton76Process" "', argument " "4"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Merton76Process" "', argument " "4"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_Merton76Process" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Merton76Process" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< Quote > * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_Merton76Process" "', argument " "6"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Merton76Process" "', argument " "6"" of type '" "Handle< Quote > const &""'"); 
  }
  arg6 = reinterpret_cast< Handle< Quote > * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Merton76Process" "', argument " "7"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Merton76Process" "', argument " "7"" of type '" "Handle< Quote > const &""'"); 
  }
  arg7 = reinterpret_cast< Handle< Quote > * >(argp7);
  {
    try {
      result = (Merton76ProcessPtr *)new_Merton76ProcessPtr((Handle< Quote > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< YieldTermStructure > const &)*arg3,(Handle< BlackVolTermStructure > const &)*arg4,(Handle< Quote > const &)*arg5,(Handle< Quote > const &)*arg6,(Handle< Quote > const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Merton76ProcessPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Merton76Process(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Merton76ProcessPtr *arg1 = (Merton76ProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Merton76Process",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Merton76ProcessPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Merton76Process" "', argument " "1"" of type '" "Merton76ProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< Merton76ProcessPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Merton76Process_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Merton76ProcessPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_StochasticProcessArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > *arg1 = 0 ;
  Matrix *arg2 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  Matrix temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  StochasticProcessArrayPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_StochasticProcessArray",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > *ptr = (std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StochasticProcessArray" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StochasticProcessArray" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    if (PyTuple_Check(obj1) || PyList_Check(obj1)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj1) ?
      PyTuple_Size(obj1) :
        PyList_Size(obj1));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj1,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp2 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj1,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp2[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp2[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Matrix,1);
    }
  }
  {
    try {
      result = (StochasticProcessArrayPtr *)new_StochasticProcessArrayPtr((std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > const &)*arg1,(Matrix const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_StochasticProcessArrayPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_StochasticProcessArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  StochasticProcessArrayPtr *arg1 = (StochasticProcessArrayPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_StochasticProcessArray",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_StochasticProcessArrayPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StochasticProcessArray" "', argument " "1"" of type '" "StochasticProcessArrayPtr *""'"); 
  }
  arg1 = reinterpret_cast< StochasticProcessArrayPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *StochasticProcessArray_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_StochasticProcessArrayPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GeometricBrownianMotionProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Real arg2 ;
  Real arg3 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  GeometricBrownianMotionProcessPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GeometricBrownianMotionProcess",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GeometricBrownianMotionProcess" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GeometricBrownianMotionProcess" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GeometricBrownianMotionProcess" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (GeometricBrownianMotionProcessPtr *)new_GeometricBrownianMotionProcessPtr(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GeometricBrownianMotionProcessPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GeometricBrownianMotionProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeometricBrownianMotionProcessPtr *arg1 = (GeometricBrownianMotionProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GeometricBrownianMotionProcess",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GeometricBrownianMotionProcessPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GeometricBrownianMotionProcess" "', argument " "1"" of type '" "GeometricBrownianMotionProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< GeometricBrownianMotionProcessPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GeometricBrownianMotionProcess_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GeometricBrownianMotionProcessPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_VarianceGammaProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  Real arg4 ;
  Real arg5 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  VarianceGammaProcessPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_VarianceGammaProcess",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VarianceGammaProcess" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VarianceGammaProcess" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VarianceGammaProcess" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VarianceGammaProcess" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_VarianceGammaProcess" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VarianceGammaProcess" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_VarianceGammaProcess" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_VarianceGammaProcess" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_VarianceGammaProcess" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (VarianceGammaProcessPtr *)new_VarianceGammaProcessPtr((Handle< Quote > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< YieldTermStructure > const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VarianceGammaProcessPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_VarianceGammaProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VarianceGammaProcessPtr *arg1 = (VarianceGammaProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_VarianceGammaProcess",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VarianceGammaProcessPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VarianceGammaProcess" "', argument " "1"" of type '" "VarianceGammaProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< VarianceGammaProcessPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *VarianceGammaProcess_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_VarianceGammaProcessPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_HestonProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  Real arg4 ;
  Real arg5 ;
  Real arg6 ;
  Real arg7 ;
  Real arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  HestonProcessPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HestonProcess",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HestonProcess" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HestonProcess" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_HestonProcess" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HestonProcess" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_HestonProcess" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HestonProcess" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HestonProcess" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_HestonProcess" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_HestonProcess" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HestonProcess" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_HestonProcess" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  {
    try {
      result = (HestonProcessPtr *)new_HestonProcessPtr((Handle< YieldTermStructure > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< Quote > const &)*arg3,arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HestonProcessPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HestonProcess_s0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HestonProcessPtr *arg1 = (HestonProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< Quote > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"HestonProcess_s0",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HestonProcessPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HestonProcess_s0" "', argument " "1"" of type '" "HestonProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< HestonProcessPtr * >(argp1);
  {
    try {
      result = HestonProcessPtr_s0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Handle< Quote >(static_cast< const Handle< Quote >& >(result))), SWIGTYPE_p_HandleT_Quote_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HestonProcess_dividendYield(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HestonProcessPtr *arg1 = (HestonProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< YieldTermStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"HestonProcess_dividendYield",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HestonProcessPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HestonProcess_dividendYield" "', argument " "1"" of type '" "HestonProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< HestonProcessPtr * >(argp1);
  {
    try {
      result = HestonProcessPtr_dividendYield(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Handle< YieldTermStructure >(static_cast< const Handle< YieldTermStructure >& >(result))), SWIGTYPE_p_HandleT_YieldTermStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HestonProcess_riskFreeRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HestonProcessPtr *arg1 = (HestonProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< YieldTermStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"HestonProcess_riskFreeRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HestonProcessPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HestonProcess_riskFreeRate" "', argument " "1"" of type '" "HestonProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< HestonProcessPtr * >(argp1);
  {
    try {
      result = HestonProcessPtr_riskFreeRate(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Handle< YieldTermStructure >(static_cast< const Handle< YieldTermStructure >& >(result))), SWIGTYPE_p_HandleT_YieldTermStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_HestonProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HestonProcessPtr *arg1 = (HestonProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_HestonProcess",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HestonProcessPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HestonProcess" "', argument " "1"" of type '" "HestonProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< HestonProcessPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *HestonProcess_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HestonProcessPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BatesProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  Real arg4 ;
  Real arg5 ;
  Real arg6 ;
  Real arg7 ;
  Real arg8 ;
  Real arg9 ;
  Real arg10 ;
  Real arg11 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  double val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  BatesProcessPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BatesProcess",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BatesProcess" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BatesProcess" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BatesProcess" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BatesProcess" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BatesProcess" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BatesProcess" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BatesProcess" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_BatesProcess" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BatesProcess" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_BatesProcess" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_BatesProcess" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_BatesProcess" "', argument " "9"" of type '" "Real""'");
  } 
  arg9 = static_cast< Real >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_BatesProcess" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_double(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_BatesProcess" "', argument " "11"" of type '" "Real""'");
  } 
  arg11 = static_cast< Real >(val11);
  {
    try {
      result = (BatesProcessPtr *)new_BatesProcessPtr((Handle< YieldTermStructure > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< Quote > const &)*arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BatesProcessPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BatesProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BatesProcessPtr *arg1 = (BatesProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BatesProcess",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BatesProcessPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BatesProcess" "', argument " "1"" of type '" "BatesProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< BatesProcessPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BatesProcess_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BatesProcessPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_HullWhiteProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  HullWhiteProcessPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HullWhiteProcess",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HullWhiteProcess" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HullWhiteProcess" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HullWhiteProcess" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_HullWhiteProcess" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (HullWhiteProcessPtr *)new_HullWhiteProcessPtr((Handle< YieldTermStructure > const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HullWhiteProcessPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_HullWhiteProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HullWhiteProcessPtr *arg1 = (HullWhiteProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_HullWhiteProcess",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HullWhiteProcessPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HullWhiteProcess" "', argument " "1"" of type '" "HullWhiteProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< HullWhiteProcessPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *HullWhiteProcess_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HullWhiteProcessPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_HullWhiteForwardProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  HullWhiteForwardProcessPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HullWhiteForwardProcess",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HullWhiteForwardProcess" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HullWhiteForwardProcess" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HullWhiteForwardProcess" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_HullWhiteForwardProcess" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (HullWhiteForwardProcessPtr *)new_HullWhiteForwardProcessPtr((Handle< YieldTermStructure > const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HullWhiteForwardProcessPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HullWhiteForwardProcess_alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HullWhiteForwardProcessPtr *arg1 = (HullWhiteForwardProcessPtr *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"HullWhiteForwardProcess_alpha",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HullWhiteForwardProcessPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HullWhiteForwardProcess_alpha" "', argument " "1"" of type '" "HullWhiteForwardProcessPtr const *""'"); 
  }
  arg1 = reinterpret_cast< HullWhiteForwardProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HullWhiteForwardProcess_alpha" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)HullWhiteForwardProcessPtr_alpha((HullWhiteForwardProcessPtr const *)arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HullWhiteForwardProcess_M_T(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HullWhiteForwardProcessPtr *arg1 = (HullWhiteForwardProcessPtr *) 0 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"HullWhiteForwardProcess_M_T",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HullWhiteForwardProcessPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HullWhiteForwardProcess_M_T" "', argument " "1"" of type '" "HullWhiteForwardProcessPtr const *""'"); 
  }
  arg1 = reinterpret_cast< HullWhiteForwardProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HullWhiteForwardProcess_M_T" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HullWhiteForwardProcess_M_T" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HullWhiteForwardProcess_M_T" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)HullWhiteForwardProcessPtr_M_T((HullWhiteForwardProcessPtr const *)arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HullWhiteForwardProcess_B(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HullWhiteForwardProcessPtr *arg1 = (HullWhiteForwardProcessPtr *) 0 ;
  Time arg2 ;
  Time arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"HullWhiteForwardProcess_B",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HullWhiteForwardProcessPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HullWhiteForwardProcess_B" "', argument " "1"" of type '" "HullWhiteForwardProcessPtr const *""'"); 
  }
  arg1 = reinterpret_cast< HullWhiteForwardProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HullWhiteForwardProcess_B" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HullWhiteForwardProcess_B" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  {
    try {
      result = (Real)HullWhiteForwardProcessPtr_B((HullWhiteForwardProcessPtr const *)arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HullWhiteForwardProcess_setForwardMeasureTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HullWhiteForwardProcessPtr *arg1 = (HullWhiteForwardProcessPtr *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"HullWhiteForwardProcess_setForwardMeasureTime",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HullWhiteForwardProcessPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HullWhiteForwardProcess_setForwardMeasureTime" "', argument " "1"" of type '" "HullWhiteForwardProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< HullWhiteForwardProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HullWhiteForwardProcess_setForwardMeasureTime" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      HullWhiteForwardProcessPtr_setForwardMeasureTime(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_HullWhiteForwardProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HullWhiteForwardProcessPtr *arg1 = (HullWhiteForwardProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_HullWhiteForwardProcess",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HullWhiteForwardProcessPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HullWhiteForwardProcess" "', argument " "1"" of type '" "HullWhiteForwardProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< HullWhiteForwardProcessPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *HullWhiteForwardProcess_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HullWhiteForwardProcessPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GsrProcess__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array *arg3 = 0 ;
  Real arg4 ;
  Array temp1 ;
  Array temp2 ;
  Array temp3 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  GsrProcessPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GsrProcess",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj2,&temp3)) {
      arg3 = &temp3;
    } else {
      SWIG_ConvertPtr(obj2,(void **) &arg3,SWIGTYPE_p_Array,1);
    }
  }
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GsrProcess" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (GsrProcessPtr *)new_GsrProcessPtr__SWIG_0((Array const &)*arg1,(Array const &)*arg2,(Array const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GsrProcessPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GsrProcess__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array *arg3 = 0 ;
  Array temp1 ;
  Array temp2 ;
  Array temp3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  GsrProcessPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GsrProcess",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj2,&temp3)) {
      arg3 = &temp3;
    } else {
      SWIG_ConvertPtr(obj2,(void **) &arg3,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (GsrProcessPtr *)new_GsrProcessPtr__SWIG_0((Array const &)*arg1,(Array const &)*arg2,(Array const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GsrProcessPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GsrProcess(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    {
      /* native sequence? */
      if (PyTuple_Check(argv[0]) || PyList_Check(argv[0])) {
        Size size = PySequence_Size(argv[0]);
        if (size == 0) {
          _v = 1;
        } else {
          PyObject* o = PySequence_GetItem(argv[0],0);
          if (PyNumber_Check(o))
          _v = 1;
          else
          _v = 0;
          Py_DECREF(o);
        }
      } else {
        /* wrapped Array? */
        Array* v;
        if (SWIG_ConvertPtr(argv[0],(void **) &v,
            SWIGTYPE_p_Array,0) != -1)
        _v = 1;
        else
        _v = 0;
      }
    }
    if (_v) {
      {
        /* native sequence? */
        if (PyTuple_Check(argv[1]) || PyList_Check(argv[1])) {
          Size size = PySequence_Size(argv[1]);
          if (size == 0) {
            _v = 1;
          } else {
            PyObject* o = PySequence_GetItem(argv[1],0);
            if (PyNumber_Check(o))
            _v = 1;
            else
            _v = 0;
            Py_DECREF(o);
          }
        } else {
          /* wrapped Array? */
          Array* v;
          if (SWIG_ConvertPtr(argv[1],(void **) &v,
              SWIGTYPE_p_Array,0) != -1)
          _v = 1;
          else
          _v = 0;
        }
      }
      if (_v) {
        {
          /* native sequence? */
          if (PyTuple_Check(argv[2]) || PyList_Check(argv[2])) {
            Size size = PySequence_Size(argv[2]);
            if (size == 0) {
              _v = 1;
            } else {
              PyObject* o = PySequence_GetItem(argv[2],0);
              if (PyNumber_Check(o))
              _v = 1;
              else
              _v = 0;
              Py_DECREF(o);
            }
          } else {
            /* wrapped Array? */
            Array* v;
            if (SWIG_ConvertPtr(argv[2],(void **) &v,
                SWIGTYPE_p_Array,0) != -1)
            _v = 1;
            else
            _v = 0;
          }
        }
        if (_v) {
          return _wrap_new_GsrProcess__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      /* native sequence? */
      if (PyTuple_Check(argv[0]) || PyList_Check(argv[0])) {
        Size size = PySequence_Size(argv[0]);
        if (size == 0) {
          _v = 1;
        } else {
          PyObject* o = PySequence_GetItem(argv[0],0);
          if (PyNumber_Check(o))
          _v = 1;
          else
          _v = 0;
          Py_DECREF(o);
        }
      } else {
        /* wrapped Array? */
        Array* v;
        if (SWIG_ConvertPtr(argv[0],(void **) &v,
            SWIGTYPE_p_Array,0) != -1)
        _v = 1;
        else
        _v = 0;
      }
    }
    if (_v) {
      {
        /* native sequence? */
        if (PyTuple_Check(argv[1]) || PyList_Check(argv[1])) {
          Size size = PySequence_Size(argv[1]);
          if (size == 0) {
            _v = 1;
          } else {
            PyObject* o = PySequence_GetItem(argv[1],0);
            if (PyNumber_Check(o))
            _v = 1;
            else
            _v = 0;
            Py_DECREF(o);
          }
        } else {
          /* wrapped Array? */
          Array* v;
          if (SWIG_ConvertPtr(argv[1],(void **) &v,
              SWIGTYPE_p_Array,0) != -1)
          _v = 1;
          else
          _v = 0;
        }
      }
      if (_v) {
        {
          /* native sequence? */
          if (PyTuple_Check(argv[2]) || PyList_Check(argv[2])) {
            Size size = PySequence_Size(argv[2]);
            if (size == 0) {
              _v = 1;
            } else {
              PyObject* o = PySequence_GetItem(argv[2],0);
              if (PyNumber_Check(o))
              _v = 1;
              else
              _v = 0;
              Py_DECREF(o);
            }
          } else {
            /* wrapped Array? */
            Array* v;
            if (SWIG_ConvertPtr(argv[2],(void **) &v,
                SWIGTYPE_p_Array,0) != -1)
            _v = 1;
            else
            _v = 0;
          }
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_GsrProcess__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GsrProcess'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    GsrProcessPtr::GsrProcessPtr(Array const &,Array const &,Array const &,Real const)\n"
    "    GsrProcessPtr::GsrProcessPtr(Array const &,Array const &,Array const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_GsrProcess_sigma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrProcessPtr *arg1 = (GsrProcessPtr *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GsrProcess_sigma",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrProcessPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GsrProcess_sigma" "', argument " "1"" of type '" "GsrProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< GsrProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GsrProcess_sigma" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)GsrProcessPtr_sigma(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GsrProcess_reversion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrProcessPtr *arg1 = (GsrProcessPtr *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GsrProcess_reversion",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrProcessPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GsrProcess_reversion" "', argument " "1"" of type '" "GsrProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< GsrProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GsrProcess_reversion" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)GsrProcessPtr_reversion(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GsrProcess_y(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrProcessPtr *arg1 = (GsrProcessPtr *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GsrProcess_y",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrProcessPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GsrProcess_y" "', argument " "1"" of type '" "GsrProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< GsrProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GsrProcess_y" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)GsrProcessPtr_y(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GsrProcess_G(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrProcessPtr *arg1 = (GsrProcessPtr *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GsrProcess_G",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrProcessPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GsrProcess_G" "', argument " "1"" of type '" "GsrProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< GsrProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GsrProcess_G" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GsrProcess_G" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GsrProcess_G" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)GsrProcessPtr_G(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GsrProcess_setForwardMeasureTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrProcessPtr *arg1 = (GsrProcessPtr *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"GsrProcess_setForwardMeasureTime",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrProcessPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GsrProcess_setForwardMeasureTime" "', argument " "1"" of type '" "GsrProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< GsrProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GsrProcess_setForwardMeasureTime" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      GsrProcessPtr_setForwardMeasureTime(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GsrProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrProcessPtr *arg1 = (GsrProcessPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GsrProcess",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrProcessPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GsrProcess" "', argument " "1"" of type '" "GsrProcessPtr *""'"); 
  }
  arg1 = reinterpret_cast< GsrProcessPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GsrProcess_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GsrProcessPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_as_gsr_process(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StochasticProcess > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< GsrProcessPtr > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"as_gsr_process",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "as_gsr_process" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "as_gsr_process" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StochasticProcess > * >(argp1);
  {
    try {
      result = as_gsr_process((boost::shared_ptr< StochasticProcess > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new GsrProcessPtr(static_cast< const GsrProcessPtr& >(result))), SWIGTYPE_p_GsrProcessPtr, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PricingEngine___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< PricingEngine > *arg1 = (boost::shared_ptr< PricingEngine > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PricingEngine *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PricingEngine___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_PricingEngine_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PricingEngine___deref__" "', argument " "1"" of type '" "boost::shared_ptr< PricingEngine > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< PricingEngine > * >(argp1);
  {
    try {
      result = (PricingEngine *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PricingEngine, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PricingEngine___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< PricingEngine > *arg1 = (boost::shared_ptr< PricingEngine > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PricingEngine___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_PricingEngine_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PricingEngine___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< PricingEngine > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< PricingEngine > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_PricingEngine_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PricingEngine___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< PricingEngine > *arg1 = (boost::shared_ptr< PricingEngine > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PricingEngine___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_PricingEngine_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PricingEngine___bool__" "', argument " "1"" of type '" "boost::shared_ptr< PricingEngine > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< PricingEngine > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_PricingEngine_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PricingEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< PricingEngine > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PricingEngine",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< PricingEngine > *)new boost::shared_ptr< PricingEngine >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_PricingEngine_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PricingEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< PricingEngine > *arg1 = (boost::shared_ptr< PricingEngine > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PricingEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_PricingEngine_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PricingEngine" "', argument " "1"" of type '" "boost::shared_ptr< PricingEngine > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< PricingEngine > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PricingEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_PricingEngine_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Instrument___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Instrument > *arg1 = (boost::shared_ptr< Instrument > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Instrument *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Instrument___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Instrument___deref__" "', argument " "1"" of type '" "boost::shared_ptr< Instrument > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Instrument > * >(argp1);
  {
    try {
      result = (Instrument *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Instrument, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Instrument___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Instrument > *arg1 = (boost::shared_ptr< Instrument > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Instrument___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Instrument___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< Instrument > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Instrument > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Instrument_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Instrument___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Instrument > *arg1 = (boost::shared_ptr< Instrument > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Instrument___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Instrument___bool__" "', argument " "1"" of type '" "boost::shared_ptr< Instrument > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Instrument > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Instrument_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Instrument_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Instrument > *arg1 = (boost::shared_ptr< Instrument > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Instrument_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Instrument_asObservable" "', argument " "1"" of type '" "boost::shared_ptr< Instrument > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Instrument > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_Instrument_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Instrument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Instrument > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Instrument",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< Instrument > *)new boost::shared_ptr< Instrument >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Instrument_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Instrument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Instrument > *arg1 = (boost::shared_ptr< Instrument > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Instrument",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Instrument_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Instrument" "', argument " "1"" of type '" "boost::shared_ptr< Instrument > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Instrument > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Instrument_NPV(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Instrument > *arg1 = (boost::shared_ptr< Instrument > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Instrument_NPV",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Instrument_NPV" "', argument " "1"" of type '" "boost::shared_ptr< Instrument > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Instrument > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->NPV();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Instrument_errorEstimate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Instrument > *arg1 = (boost::shared_ptr< Instrument > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Instrument_errorEstimate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Instrument_errorEstimate" "', argument " "1"" of type '" "boost::shared_ptr< Instrument > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Instrument > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->errorEstimate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Instrument_isExpired(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Instrument > *arg1 = (boost::shared_ptr< Instrument > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Instrument_isExpired",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Instrument_isExpired" "', argument " "1"" of type '" "boost::shared_ptr< Instrument > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Instrument > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->isExpired();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Instrument_setPricingEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Instrument > *arg1 = (boost::shared_ptr< Instrument > *) 0 ;
  boost::shared_ptr< PricingEngine > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Instrument_setPricingEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Instrument_setPricingEngine" "', argument " "1"" of type '" "boost::shared_ptr< Instrument > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Instrument > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_PricingEngine_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Instrument_setPricingEngine" "', argument " "2"" of type '" "boost::shared_ptr< PricingEngine > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Instrument_setPricingEngine" "', argument " "2"" of type '" "boost::shared_ptr< PricingEngine > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< PricingEngine > * >(argp2);
  {
    try {
      (*arg1)->setPricingEngine((boost::shared_ptr< PricingEngine > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Instrument_recalculate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Instrument > *arg1 = (boost::shared_ptr< Instrument > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Instrument_recalculate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Instrument_recalculate" "', argument " "1"" of type '" "boost::shared_ptr< Instrument > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Instrument > * >(argp1);
  {
    try {
      (*arg1)->recalculate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Instrument_freeze(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Instrument > *arg1 = (boost::shared_ptr< Instrument > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Instrument_freeze",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Instrument_freeze" "', argument " "1"" of type '" "boost::shared_ptr< Instrument > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Instrument > * >(argp1);
  {
    try {
      (*arg1)->freeze();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Instrument_unfreeze(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Instrument > *arg1 = (boost::shared_ptr< Instrument > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Instrument_unfreeze",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Instrument_unfreeze" "', argument " "1"" of type '" "boost::shared_ptr< Instrument > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Instrument > * >(argp1);
  {
    try {
      (*arg1)->unfreeze();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Instrument_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_Instrument_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_InstrumentVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_iterator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector___nonzero__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____nonzero__((std::vector< boost::shared_ptr< Instrument > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector___bool__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____bool__((std::vector< boost::shared_ptr< Instrument > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Instrument > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector___len__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____len__((std::vector< boost::shared_ptr< Instrument > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  std::vector< boost::shared_ptr< Instrument > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Instrument > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector___getslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InstrumentVector___getslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Instrument > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InstrumentVector___getslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Instrument > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Instrument > >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > *)std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  std::vector< boost::shared_ptr< Instrument > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Instrument > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InstrumentVector___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Instrument > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InstrumentVector___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Instrument > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Instrument > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  std::vector< boost::shared_ptr< Instrument > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Instrument > >::difference_type arg3 ;
  std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InstrumentVector___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Instrument > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InstrumentVector___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Instrument > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Instrument > >::difference_type >(val3);
  {
    std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > *ptr = (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "InstrumentVector___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InstrumentVector___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >**)(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_InstrumentVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >**)(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< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_InstrumentVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InstrumentVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Instrument > >::__setslice__(std::vector< boost::shared_ptr< Instrument > >::difference_type,std::vector< boost::shared_ptr< Instrument > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< Instrument > >::__setslice__(std::vector< boost::shared_ptr< Instrument > >::difference_type,std::vector< boost::shared_ptr< Instrument > >::difference_type,std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InstrumentVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  std::vector< boost::shared_ptr< Instrument > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Instrument > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector___delslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InstrumentVector___delslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Instrument > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InstrumentVector___delslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Instrument > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Instrument > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  std::vector< boost::shared_ptr< Instrument > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InstrumentVector___delitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Instrument > >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InstrumentVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > *)std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InstrumentVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > *ptr = (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InstrumentVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InstrumentVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InstrumentVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InstrumentVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_InstrumentVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_InstrumentVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InstrumentVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Instrument > >::__delitem__(std::vector< boost::shared_ptr< Instrument > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< Instrument > >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InstrumentVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  std::vector< boost::shared_ptr< Instrument > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< Instrument > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InstrumentVector___getitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Instrument > >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< Instrument > >::value_type *) &std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____getitem____SWIG_1((std::vector< boost::shared_ptr< Instrument > > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_InstrumentVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_InstrumentVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InstrumentVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Instrument > >::__getitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< Instrument > >::__getitem__(std::vector< boost::shared_ptr< Instrument > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InstrumentVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  std::vector< boost::shared_ptr< Instrument > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Instrument > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InstrumentVector___setitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Instrument > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Instrument_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InstrumentVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Instrument > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InstrumentVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Instrument > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > >::value_type * >(argp3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg____setitem____SWIG_2(arg1,arg2,(boost::shared_ptr< Instrument > const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_InstrumentVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_InstrumentVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >**)(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_boost__shared_ptrT_Instrument_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_InstrumentVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InstrumentVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Instrument > >::__setitem__(PySliceObject *,std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > const &)\n"
    "    std::vector< boost::shared_ptr< Instrument > >::__setitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< Instrument > >::__setitem__(std::vector< boost::shared_ptr< Instrument > >::difference_type,std::vector< boost::shared_ptr< Instrument > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Instrument > >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_pop" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< Instrument > >::value_type(static_cast< const std::vector< boost::shared_ptr< Instrument > >::value_type& >(result))), SWIGTYPE_p_boost__shared_ptrT_Instrument_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  std::vector< boost::shared_ptr< Instrument > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_append" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Instrument_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InstrumentVector_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InstrumentVector_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > >::value_type * >(argp2);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg__append(arg1,(boost::shared_ptr< Instrument > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InstrumentVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InstrumentVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< boost::shared_ptr< Instrument > > *)new std::vector< boost::shared_ptr< Instrument > >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InstrumentVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Instrument > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InstrumentVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > *ptr = (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InstrumentVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InstrumentVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< boost::shared_ptr< Instrument > > *)new std::vector< boost::shared_ptr< Instrument > >((std::vector< boost::shared_ptr< Instrument > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_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_InstrumentVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_empty" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    try {
      result = (bool)((std::vector< boost::shared_ptr< Instrument > > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Instrument > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_size" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< Instrument > > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  std::vector< boost::shared_ptr< Instrument > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_swap" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InstrumentVector_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InstrumentVector_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Instrument > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_begin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Instrument > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Instrument > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_end" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Instrument > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Instrument > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_rbegin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Instrument > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Instrument > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_rend" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Instrument > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_clear" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< boost::shared_ptr< Instrument > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_get_allocator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< Instrument > > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< Instrument > >::allocator_type(static_cast< const std::vector< boost::shared_ptr< Instrument > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_Instrument_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InstrumentVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Instrument > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InstrumentVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InstrumentVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< Instrument > >::size_type >(val1);
  {
    try {
      result = (std::vector< boost::shared_ptr< Instrument > > *)new std::vector< boost::shared_ptr< Instrument > >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_pop_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  std::vector< boost::shared_ptr< Instrument > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InstrumentVector_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Instrument > >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  std::vector< boost::shared_ptr< Instrument > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< Instrument > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InstrumentVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Instrument > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Instrument > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InstrumentVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Instrument > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  std::vector< boost::shared_ptr< Instrument > >::iterator arg2 ;
  std::vector< boost::shared_ptr< Instrument > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< Instrument > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InstrumentVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Instrument > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Instrument > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InstrumentVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InstrumentVector_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Instrument > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Instrument > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Instrument > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InstrumentVector_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Instrument > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Instrument > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >**)(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< boost::shared_ptr< Instrument > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_InstrumentVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >**)(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< boost::shared_ptr< Instrument > >::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< boost::shared_ptr< Instrument > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_InstrumentVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InstrumentVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Instrument > >::erase(std::vector< boost::shared_ptr< Instrument > >::iterator)\n"
    "    std::vector< boost::shared_ptr< Instrument > >::erase(std::vector< boost::shared_ptr< Instrument > >::iterator,std::vector< boost::shared_ptr< Instrument > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_InstrumentVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > >::size_type arg1 ;
  std::vector< boost::shared_ptr< Instrument > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< Instrument > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InstrumentVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InstrumentVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< Instrument > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Instrument_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_InstrumentVector" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InstrumentVector" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > >::value_type * >(argp2);
  {
    try {
      result = (std::vector< boost::shared_ptr< Instrument > > *)new std::vector< boost::shared_ptr< Instrument > >(arg1,(std::vector< boost::shared_ptr< Instrument > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InstrumentVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_InstrumentVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_InstrumentVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_InstrumentVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_InstrumentVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_InstrumentVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Instrument > >::vector()\n"
    "    std::vector< boost::shared_ptr< Instrument > >::vector(std::vector< boost::shared_ptr< Instrument > > const &)\n"
    "    std::vector< boost::shared_ptr< Instrument > >::vector(std::vector< boost::shared_ptr< Instrument > >::size_type)\n"
    "    std::vector< boost::shared_ptr< Instrument > >::vector(std::vector< boost::shared_ptr< Instrument > >::size_type,std::vector< boost::shared_ptr< Instrument > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  std::vector< boost::shared_ptr< Instrument > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_push_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Instrument_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InstrumentVector_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InstrumentVector_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > >::value_type * >(argp2);
  {
    try {
      (arg1)->push_back((std::vector< boost::shared_ptr< Instrument > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Instrument > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_front" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< Instrument > >::value_type *) &((std::vector< boost::shared_ptr< Instrument > > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Instrument > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< Instrument > >::value_type *) &((std::vector< boost::shared_ptr< Instrument > > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  std::vector< boost::shared_ptr< Instrument > >::size_type arg2 ;
  std::vector< boost::shared_ptr< Instrument > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_assign" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InstrumentVector_assign" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Instrument > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Instrument_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InstrumentVector_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Instrument > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InstrumentVector_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Instrument > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > >::value_type * >(argp3);
  {
    try {
      (arg1)->assign(arg2,(std::vector< boost::shared_ptr< Instrument > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  std::vector< boost::shared_ptr< Instrument > >::size_type arg2 ;
  std::vector< boost::shared_ptr< Instrument > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InstrumentVector_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Instrument > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Instrument_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InstrumentVector_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Instrument > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InstrumentVector_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Instrument > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > >::value_type * >(argp3);
  {
    try {
      (arg1)->resize(arg2,(std::vector< boost::shared_ptr< Instrument > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_InstrumentVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >**)(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_boost__shared_ptrT_Instrument_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_InstrumentVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InstrumentVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Instrument > >::resize(std::vector< boost::shared_ptr< Instrument > >::size_type)\n"
    "    std::vector< boost::shared_ptr< Instrument > >::resize(std::vector< boost::shared_ptr< Instrument > >::size_type,std::vector< boost::shared_ptr< Instrument > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  std::vector< boost::shared_ptr< Instrument > >::iterator arg2 ;
  std::vector< boost::shared_ptr< Instrument > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< Instrument > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InstrumentVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Instrument > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Instrument > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InstrumentVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Instrument_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InstrumentVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Instrument > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InstrumentVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Instrument > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > >::value_type * >(argp3);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg__insert__SWIG_0(arg1,arg2,(boost::shared_ptr< Instrument > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Instrument > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  std::vector< boost::shared_ptr< Instrument > >::iterator arg2 ;
  std::vector< boost::shared_ptr< Instrument > >::size_type arg3 ;
  std::vector< boost::shared_ptr< Instrument > >::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 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InstrumentVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Instrument > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Instrument > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InstrumentVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InstrumentVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Instrument > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Instrument > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_boost__shared_ptrT_Instrument_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "InstrumentVector_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Instrument > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InstrumentVector_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Instrument > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > >::value_type * >(argp4);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_Instrument_Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(boost::shared_ptr< Instrument > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >**)(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< boost::shared_ptr< Instrument > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_InstrumentVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > >**)(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< boost::shared_ptr< Instrument > >::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_boost__shared_ptrT_Instrument_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_InstrumentVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InstrumentVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Instrument > >::insert(std::vector< boost::shared_ptr< Instrument > >::iterator,std::vector< boost::shared_ptr< Instrument > >::value_type const &)\n"
    "    std::vector< boost::shared_ptr< Instrument > >::insert(std::vector< boost::shared_ptr< Instrument > >::iterator,std::vector< boost::shared_ptr< Instrument > >::size_type,std::vector< boost::shared_ptr< Instrument > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  std::vector< boost::shared_ptr< Instrument > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_reserve" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InstrumentVector_reserve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Instrument > >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InstrumentVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Instrument > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InstrumentVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InstrumentVector_capacity" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< Instrument > > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InstrumentVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Instrument > > *arg1 = (std::vector< boost::shared_ptr< Instrument > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_InstrumentVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InstrumentVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Instrument > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Instrument > > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InstrumentVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Stock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  StockPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Stock",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Stock" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Stock" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  {
    try {
      result = (StockPtr *)new_StockPtr((Handle< Quote > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_StockPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Stock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  StockPtr *arg1 = (StockPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Stock",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_StockPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Stock" "', argument " "1"" of type '" "StockPtr *""'"); 
  }
  arg1 = reinterpret_cast< StockPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Stock_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_StockPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CompositeInstrument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CompositeInstrumentPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CompositeInstrument",0,0)) SWIG_fail;
  {
    try {
      result = (CompositeInstrumentPtr *)new_CompositeInstrumentPtr();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CompositeInstrumentPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CompositeInstrument_add__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CompositeInstrumentPtr *arg1 = (CompositeInstrumentPtr *) 0 ;
  boost::shared_ptr< Instrument > *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CompositeInstrument_add",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CompositeInstrumentPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CompositeInstrument_add" "', argument " "1"" of type '" "CompositeInstrumentPtr *""'"); 
  }
  arg1 = reinterpret_cast< CompositeInstrumentPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Instrument_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CompositeInstrument_add" "', argument " "2"" of type '" "boost::shared_ptr< Instrument > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CompositeInstrument_add" "', argument " "2"" of type '" "boost::shared_ptr< Instrument > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Instrument > * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CompositeInstrument_add" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      CompositeInstrumentPtr_add__SWIG_0(arg1,(boost::shared_ptr< Instrument > const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CompositeInstrument_add__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CompositeInstrumentPtr *arg1 = (CompositeInstrumentPtr *) 0 ;
  boost::shared_ptr< Instrument > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CompositeInstrument_add",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CompositeInstrumentPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CompositeInstrument_add" "', argument " "1"" of type '" "CompositeInstrumentPtr *""'"); 
  }
  arg1 = reinterpret_cast< CompositeInstrumentPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Instrument_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CompositeInstrument_add" "', argument " "2"" of type '" "boost::shared_ptr< Instrument > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CompositeInstrument_add" "', argument " "2"" of type '" "boost::shared_ptr< Instrument > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Instrument > * >(argp2);
  {
    try {
      CompositeInstrumentPtr_add__SWIG_0(arg1,(boost::shared_ptr< Instrument > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CompositeInstrument_add(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CompositeInstrumentPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_CompositeInstrument_add__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CompositeInstrumentPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CompositeInstrument_add__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CompositeInstrument_add'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CompositeInstrumentPtr::add(boost::shared_ptr< Instrument > const &,Real)\n"
    "    CompositeInstrumentPtr::add(boost::shared_ptr< Instrument > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CompositeInstrument_subtract__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CompositeInstrumentPtr *arg1 = (CompositeInstrumentPtr *) 0 ;
  boost::shared_ptr< Instrument > *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CompositeInstrument_subtract",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CompositeInstrumentPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CompositeInstrument_subtract" "', argument " "1"" of type '" "CompositeInstrumentPtr *""'"); 
  }
  arg1 = reinterpret_cast< CompositeInstrumentPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Instrument_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CompositeInstrument_subtract" "', argument " "2"" of type '" "boost::shared_ptr< Instrument > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CompositeInstrument_subtract" "', argument " "2"" of type '" "boost::shared_ptr< Instrument > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Instrument > * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CompositeInstrument_subtract" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      CompositeInstrumentPtr_subtract__SWIG_0(arg1,(boost::shared_ptr< Instrument > const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CompositeInstrument_subtract__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CompositeInstrumentPtr *arg1 = (CompositeInstrumentPtr *) 0 ;
  boost::shared_ptr< Instrument > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CompositeInstrument_subtract",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CompositeInstrumentPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CompositeInstrument_subtract" "', argument " "1"" of type '" "CompositeInstrumentPtr *""'"); 
  }
  arg1 = reinterpret_cast< CompositeInstrumentPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Instrument_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CompositeInstrument_subtract" "', argument " "2"" of type '" "boost::shared_ptr< Instrument > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CompositeInstrument_subtract" "', argument " "2"" of type '" "boost::shared_ptr< Instrument > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Instrument > * >(argp2);
  {
    try {
      CompositeInstrumentPtr_subtract__SWIG_0(arg1,(boost::shared_ptr< Instrument > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CompositeInstrument_subtract(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CompositeInstrumentPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_CompositeInstrument_subtract__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CompositeInstrumentPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_Instrument_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CompositeInstrument_subtract__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CompositeInstrument_subtract'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CompositeInstrumentPtr::subtract(boost::shared_ptr< Instrument > const &,Real)\n"
    "    CompositeInstrumentPtr::subtract(boost::shared_ptr< Instrument > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_CompositeInstrument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CompositeInstrumentPtr *arg1 = (CompositeInstrumentPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CompositeInstrument",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CompositeInstrumentPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CompositeInstrument" "', argument " "1"" of type '" "CompositeInstrumentPtr *""'"); 
  }
  arg1 = reinterpret_cast< CompositeInstrumentPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CompositeInstrument_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CompositeInstrumentPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DateGeneration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DateGeneration *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DateGeneration",0,0)) SWIG_fail;
  {
    try {
      result = (DateGeneration *)new DateGeneration();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DateGeneration, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DateGeneration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DateGeneration *arg1 = (DateGeneration *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DateGeneration",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DateGeneration, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DateGeneration" "', argument " "1"" of type '" "DateGeneration *""'"); 
  }
  arg1 = reinterpret_cast< DateGeneration * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DateGeneration_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DateGeneration, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Schedule__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  boost::optional< BusinessDayConvention > arg4 ;
  SwigValueWrapper< boost::optional< Period > > arg5 ;
  boost::optional< DateGeneration::Rule > arg6 ;
  boost::optional< bool > arg7 ;
  std::vector< bool,std::allocator< bool > > *arg8 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res8 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Schedule *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Schedule",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Schedule" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Schedule" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Schedule" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  
  if(obj3 == Py_None)
  arg4 = boost::none;
  else if (PyInt_Check(obj3))
  arg4 = (BusinessDayConvention) PyInt_AsLong(obj3);
  else
  arg4 = (BusinessDayConvention) PyLong_AsLong(obj3);
  
  
  if(obj4 == Py_None)
  arg5 = boost::none;
  else
  {
    Period *temp;
    if (!SWIG_IsOK(SWIG_ConvertPtr(obj4,(void **) &temp, SWIGTYPE_p_Period,0)))
    SWIG_exception_fail(SWIG_TypeError, "in method 'new_Schedule', expecting type Period");
    arg5 = (boost::optional<Period>) *temp;
  }
  
  
  if(obj5 == Py_None)
  arg6 = boost::none;
  else if (PyInt_Check(obj5))
  arg6 = (DateGeneration::Rule) PyInt_AsLong(obj5);
  else
  arg6 = (DateGeneration::Rule) PyLong_AsLong(obj5);
  
  
  if(obj6 == Py_None)
  arg7 = boost::none;
  else if (obj6 == Py_True)
  arg7 = true;
  else
  arg7 = false;
  
  {
    std::vector<bool,std::allocator< bool > > *ptr = (std::vector<bool,std::allocator< bool > > *)0;
    res8 = swig::asptr(obj7, &ptr);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_Schedule" "', argument " "8"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "8"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    arg8 = ptr;
  }
  {
    try {
      result = (Schedule *)new Schedule((std::vector< Date,std::allocator< Date > > const &)*arg1,(Calendar const &)*arg2,arg3,arg4,arg5,arg6,arg7,(std::vector< bool,std::allocator< bool > > const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Schedule, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res8)) delete arg8;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res8)) delete arg8;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Schedule__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  boost::optional< BusinessDayConvention > arg4 ;
  SwigValueWrapper< boost::optional< Period > > arg5 ;
  boost::optional< DateGeneration::Rule > arg6 ;
  boost::optional< bool > arg7 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Schedule *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Schedule",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Schedule" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Schedule" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Schedule" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  
  if(obj3 == Py_None)
  arg4 = boost::none;
  else if (PyInt_Check(obj3))
  arg4 = (BusinessDayConvention) PyInt_AsLong(obj3);
  else
  arg4 = (BusinessDayConvention) PyLong_AsLong(obj3);
  
  
  if(obj4 == Py_None)
  arg5 = boost::none;
  else
  {
    Period *temp;
    if (!SWIG_IsOK(SWIG_ConvertPtr(obj4,(void **) &temp, SWIGTYPE_p_Period,0)))
    SWIG_exception_fail(SWIG_TypeError, "in method 'new_Schedule', expecting type Period");
    arg5 = (boost::optional<Period>) *temp;
  }
  
  
  if(obj5 == Py_None)
  arg6 = boost::none;
  else if (PyInt_Check(obj5))
  arg6 = (DateGeneration::Rule) PyInt_AsLong(obj5);
  else
  arg6 = (DateGeneration::Rule) PyLong_AsLong(obj5);
  
  
  if(obj6 == Py_None)
  arg7 = boost::none;
  else if (obj6 == Py_True)
  arg7 = true;
  else
  arg7 = false;
  
  {
    try {
      result = (Schedule *)new Schedule((std::vector< Date,std::allocator< Date > > const &)*arg1,(Calendar const &)*arg2,arg3,arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Schedule, 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_Schedule__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  boost::optional< BusinessDayConvention > arg4 ;
  SwigValueWrapper< boost::optional< Period > > arg5 ;
  boost::optional< DateGeneration::Rule > arg6 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Schedule *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Schedule",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Schedule" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Schedule" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Schedule" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  
  if(obj3 == Py_None)
  arg4 = boost::none;
  else if (PyInt_Check(obj3))
  arg4 = (BusinessDayConvention) PyInt_AsLong(obj3);
  else
  arg4 = (BusinessDayConvention) PyLong_AsLong(obj3);
  
  
  if(obj4 == Py_None)
  arg5 = boost::none;
  else
  {
    Period *temp;
    if (!SWIG_IsOK(SWIG_ConvertPtr(obj4,(void **) &temp, SWIGTYPE_p_Period,0)))
    SWIG_exception_fail(SWIG_TypeError, "in method 'new_Schedule', expecting type Period");
    arg5 = (boost::optional<Period>) *temp;
  }
  
  
  if(obj5 == Py_None)
  arg6 = boost::none;
  else if (PyInt_Check(obj5))
  arg6 = (DateGeneration::Rule) PyInt_AsLong(obj5);
  else
  arg6 = (DateGeneration::Rule) PyLong_AsLong(obj5);
  
  {
    try {
      result = (Schedule *)new Schedule((std::vector< Date,std::allocator< Date > > const &)*arg1,(Calendar const &)*arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Schedule, 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_Schedule__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  boost::optional< BusinessDayConvention > arg4 ;
  SwigValueWrapper< boost::optional< Period > > arg5 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Schedule *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Schedule",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Schedule" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Schedule" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Schedule" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  
  if(obj3 == Py_None)
  arg4 = boost::none;
  else if (PyInt_Check(obj3))
  arg4 = (BusinessDayConvention) PyInt_AsLong(obj3);
  else
  arg4 = (BusinessDayConvention) PyLong_AsLong(obj3);
  
  
  if(obj4 == Py_None)
  arg5 = boost::none;
  else
  {
    Period *temp;
    if (!SWIG_IsOK(SWIG_ConvertPtr(obj4,(void **) &temp, SWIGTYPE_p_Period,0)))
    SWIG_exception_fail(SWIG_TypeError, "in method 'new_Schedule', expecting type Period");
    arg5 = (boost::optional<Period>) *temp;
  }
  
  {
    try {
      result = (Schedule *)new Schedule((std::vector< Date,std::allocator< Date > > const &)*arg1,(Calendar const &)*arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Schedule, 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_Schedule__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  boost::optional< BusinessDayConvention > arg4 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Schedule *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Schedule",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Schedule" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Schedule" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Schedule" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  
  if(obj3 == Py_None)
  arg4 = boost::none;
  else if (PyInt_Check(obj3))
  arg4 = (BusinessDayConvention) PyInt_AsLong(obj3);
  else
  arg4 = (BusinessDayConvention) PyLong_AsLong(obj3);
  
  {
    try {
      result = (Schedule *)new Schedule((std::vector< Date,std::allocator< Date > > const &)*arg1,(Calendar const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Schedule, 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_Schedule__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Schedule *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Schedule",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Schedule" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Schedule" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Schedule" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  {
    try {
      result = (Schedule *)new Schedule((std::vector< Date,std::allocator< Date > > const &)*arg1,(Calendar const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Schedule, 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_Schedule__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Schedule *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Schedule",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Schedule" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Schedule" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    try {
      result = (Schedule *)new Schedule((std::vector< Date,std::allocator< Date > > const &)*arg1,(Calendar const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Schedule, 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_Schedule__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  Schedule *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Schedule",1,1,&obj0)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Schedule" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (Schedule *)new Schedule((std::vector< Date,std::allocator< Date > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Schedule, 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_Schedule__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  BusinessDayConvention arg6 ;
  DateGeneration::Rule arg7 ;
  bool arg8 ;
  Date *arg9 = 0 ;
  Date *arg10 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  bool val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  Schedule *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Schedule",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Schedule" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Schedule" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Schedule" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Schedule" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Schedule" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Schedule" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Schedule" "', argument " "7"" of type '" "DateGeneration::Rule""'");
  } 
  arg7 = static_cast< DateGeneration::Rule >(val7);
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Schedule" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Schedule" "', argument " "9"" of type '" "Date const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "9"" of type '" "Date const &""'"); 
  }
  arg9 = reinterpret_cast< Date * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_Schedule" "', argument " "10"" of type '" "Date const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "10"" of type '" "Date const &""'"); 
  }
  arg10 = reinterpret_cast< Date * >(argp10);
  {
    try {
      result = (Schedule *)new Schedule((Date const &)*arg1,(Date const &)*arg2,(Period const &)*arg3,(Calendar const &)*arg4,arg5,arg6,arg7,arg8,(Date const &)*arg9,(Date const &)*arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Schedule, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Schedule__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  BusinessDayConvention arg6 ;
  DateGeneration::Rule arg7 ;
  bool arg8 ;
  Date *arg9 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  bool val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Schedule *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Schedule",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Schedule" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Schedule" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Schedule" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Schedule" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Schedule" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Schedule" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Schedule" "', argument " "7"" of type '" "DateGeneration::Rule""'");
  } 
  arg7 = static_cast< DateGeneration::Rule >(val7);
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Schedule" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Schedule" "', argument " "9"" of type '" "Date const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "9"" of type '" "Date const &""'"); 
  }
  arg9 = reinterpret_cast< Date * >(argp9);
  {
    try {
      result = (Schedule *)new Schedule((Date const &)*arg1,(Date const &)*arg2,(Period const &)*arg3,(Calendar const &)*arg4,arg5,arg6,arg7,arg8,(Date const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Schedule, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Schedule__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  BusinessDayConvention arg6 ;
  DateGeneration::Rule arg7 ;
  bool arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  bool val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Schedule *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Schedule",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Schedule" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Schedule" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Schedule" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Schedule" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Schedule" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Schedule" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Schedule" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Schedule" "', argument " "7"" of type '" "DateGeneration::Rule""'");
  } 
  arg7 = static_cast< DateGeneration::Rule >(val7);
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Schedule" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  {
    try {
      result = (Schedule *)new Schedule((Date const &)*arg1,(Date const &)*arg2,(Period const &)*arg3,(Calendar const &)*arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Schedule, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Schedule__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Schedule *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Schedule",0,0)) SWIG_fail;
  {
    try {
      result = (Schedule *)new Schedule();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Schedule, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Schedule(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[11] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 10) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Schedule__SWIG_11(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Schedule__SWIG_7(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_Schedule__SWIG_6(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_Schedule__SWIG_5(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            if (PyInt_Check(argv[3]) || PyLong_Check(argv[3]) || Py_None == argv[3])
            _v = 1;
            else
            _v = 0;
          }
          if (_v) {
            return _wrap_new_Schedule__SWIG_4(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            if (PyInt_Check(argv[3]) || PyLong_Check(argv[3]) || Py_None == argv[3])
            _v = 1;
            else
            _v = 0;
          }
          if (_v) {
            {
              if(argv[4] == Py_None)
              _v = 1;
              else {
                Period *temp;
                int res = SWIG_ConvertPtr(argv[4],(void **) &temp, SWIGTYPE_p_Period,0);
                _v = SWIG_IsOK(res) ? 1 : 0;
              }
              
            }
            if (_v) {
              return _wrap_new_Schedule__SWIG_3(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            if (PyInt_Check(argv[3]) || PyLong_Check(argv[3]) || Py_None == argv[3])
            _v = 1;
            else
            _v = 0;
          }
          if (_v) {
            {
              if(argv[4] == Py_None)
              _v = 1;
              else {
                Period *temp;
                int res = SWIG_ConvertPtr(argv[4],(void **) &temp, SWIGTYPE_p_Period,0);
                _v = SWIG_IsOK(res) ? 1 : 0;
              }
              
            }
            if (_v) {
              {
                if (PyInt_Check(argv[5]) || PyLong_Check(argv[5]) || Py_None == argv[5])
                _v = 1;
                else
                _v = 0;
              }
              if (_v) {
                return _wrap_new_Schedule__SWIG_2(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            if (PyInt_Check(argv[3]) || PyLong_Check(argv[3]) || Py_None == argv[3])
            _v = 1;
            else
            _v = 0;
          }
          if (_v) {
            {
              if(argv[4] == Py_None)
              _v = 1;
              else {
                Period *temp;
                int res = SWIG_ConvertPtr(argv[4],(void **) &temp, SWIGTYPE_p_Period,0);
                _v = SWIG_IsOK(res) ? 1 : 0;
              }
              
            }
            if (_v) {
              {
                if (PyInt_Check(argv[5]) || PyLong_Check(argv[5]) || Py_None == argv[5])
                _v = 1;
                else
                _v = 0;
              }
              if (_v) {
                {
                  if (PyBool_Check(argv[6]) || Py_None == argv[6]) 
                  _v = 1;
                  else
                  _v = 0;
                }
                if (_v) {
                  return _wrap_new_Schedule__SWIG_1(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_Schedule__SWIG_10(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            if (PyInt_Check(argv[3]) || PyLong_Check(argv[3]) || Py_None == argv[3])
            _v = 1;
            else
            _v = 0;
          }
          if (_v) {
            {
              if(argv[4] == Py_None)
              _v = 1;
              else {
                Period *temp;
                int res = SWIG_ConvertPtr(argv[4],(void **) &temp, SWIGTYPE_p_Period,0);
                _v = SWIG_IsOK(res) ? 1 : 0;
              }
              
            }
            if (_v) {
              {
                if (PyInt_Check(argv[5]) || PyLong_Check(argv[5]) || Py_None == argv[5])
                _v = 1;
                else
                _v = 0;
              }
              if (_v) {
                {
                  if (PyBool_Check(argv[6]) || Py_None == argv[6]) 
                  _v = 1;
                  else
                  _v = 0;
                }
                if (_v) {
                  int res = swig::asptr(argv[7], (std::vector<bool,std::allocator< bool > >**)(0));
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_Schedule__SWIG_0(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Date, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap_new_Schedule__SWIG_9(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Date, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Date, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        return _wrap_new_Schedule__SWIG_8(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Schedule'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Schedule::Schedule(std::vector< Date,std::allocator< Date > > const &,Calendar const &,BusinessDayConvention const,boost::optional< BusinessDayConvention >,boost::optional< Period > const,boost::optional< DateGeneration::Rule >,boost::optional< bool >,std::vector< bool,std::allocator< bool > > const &)\n"
    "    Schedule::Schedule(std::vector< Date,std::allocator< Date > > const &,Calendar const &,BusinessDayConvention const,boost::optional< BusinessDayConvention >,boost::optional< Period > const,boost::optional< DateGeneration::Rule >,boost::optional< bool >)\n"
    "    Schedule::Schedule(std::vector< Date,std::allocator< Date > > const &,Calendar const &,BusinessDayConvention const,boost::optional< BusinessDayConvention >,boost::optional< Period > const,boost::optional< DateGeneration::Rule >)\n"
    "    Schedule::Schedule(std::vector< Date,std::allocator< Date > > const &,Calendar const &,BusinessDayConvention const,boost::optional< BusinessDayConvention >,boost::optional< Period > const)\n"
    "    Schedule::Schedule(std::vector< Date,std::allocator< Date > > const &,Calendar const &,BusinessDayConvention const,boost::optional< BusinessDayConvention >)\n"
    "    Schedule::Schedule(std::vector< Date,std::allocator< Date > > const &,Calendar const &,BusinessDayConvention const)\n"
    "    Schedule::Schedule(std::vector< Date,std::allocator< Date > > const &,Calendar const &)\n"
    "    Schedule::Schedule(std::vector< Date,std::allocator< Date > > const &)\n"
    "    Schedule::Schedule(Date const &,Date const &,Period const &,Calendar const &,BusinessDayConvention,BusinessDayConvention,DateGeneration::Rule,bool,Date const &,Date const &)\n"
    "    Schedule::Schedule(Date const &,Date const &,Period const &,Calendar const &,BusinessDayConvention,BusinessDayConvention,DateGeneration::Rule,bool,Date const &)\n"
    "    Schedule::Schedule(Date const &,Date const &,Period const &,Calendar const &,BusinessDayConvention,BusinessDayConvention,DateGeneration::Rule,bool)\n"
    "    Schedule::Schedule()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Schedule___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Schedule *arg1 = (Schedule *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Schedule___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Schedule, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Schedule___len__" "', argument " "1"" of type '" "Schedule const *""'"); 
  }
  arg1 = reinterpret_cast< Schedule * >(argp1);
  {
    try {
      result = ((Schedule const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Schedule_isRegular(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Schedule *arg1 = (Schedule *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Schedule_isRegular",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Schedule, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Schedule_isRegular" "', argument " "1"" of type '" "Schedule const *""'"); 
  }
  arg1 = reinterpret_cast< Schedule * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Schedule_isRegular" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (bool)((Schedule const *)arg1)->isRegular(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Schedule_until(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Schedule *arg1 = (Schedule *) 0 ;
  Date arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Schedule result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Schedule_until",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Schedule, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Schedule_until" "', argument " "1"" of type '" "Schedule const *""'"); 
  }
  arg1 = reinterpret_cast< Schedule * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Schedule_until" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Schedule_until" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    try {
      result = ((Schedule const *)arg1)->until(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Schedule(static_cast< const Schedule& >(result))), SWIGTYPE_p_Schedule, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Schedule___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Schedule *arg1 = (Schedule *) 0 ;
  Integer arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Schedule___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Schedule, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Schedule___getitem__" "', argument " "1"" of type '" "Schedule *""'"); 
  }
  arg1 = reinterpret_cast< Schedule * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Schedule___getitem__" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  {
    try {
      result = Schedule___getitem__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Schedule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Schedule *arg1 = (Schedule *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Schedule",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Schedule, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Schedule" "', argument " "1"" of type '" "Schedule *""'"); 
  }
  arg1 = reinterpret_cast< Schedule * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Schedule_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Schedule, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_CashFlow___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CashFlow > *arg1 = (boost::shared_ptr< CashFlow > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  CashFlow *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlow___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CashFlow_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlow___deref__" "', argument " "1"" of type '" "boost::shared_ptr< CashFlow > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CashFlow > * >(argp1);
  {
    try {
      result = (CashFlow *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CashFlow, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlow___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CashFlow > *arg1 = (boost::shared_ptr< CashFlow > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlow___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CashFlow_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlow___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< CashFlow > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CashFlow > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_CashFlow_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlow___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CashFlow > *arg1 = (boost::shared_ptr< CashFlow > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlow___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CashFlow_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlow___bool__" "', argument " "1"" of type '" "boost::shared_ptr< CashFlow > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CashFlow > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_CashFlow_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlow_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CashFlow > *arg1 = (boost::shared_ptr< CashFlow > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlow_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CashFlow_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlow_asObservable" "', argument " "1"" of type '" "boost::shared_ptr< CashFlow > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CashFlow > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_CashFlow_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CashFlow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CashFlow > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CashFlow",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< CashFlow > *)new boost::shared_ptr< CashFlow >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_CashFlow_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CashFlow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CashFlow > *arg1 = (boost::shared_ptr< CashFlow > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CashFlow",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CashFlow_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CashFlow" "', argument " "1"" of type '" "boost::shared_ptr< CashFlow > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CashFlow > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlow_amount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CashFlow > *arg1 = (boost::shared_ptr< CashFlow > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlow_amount",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CashFlow_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlow_amount" "', argument " "1"" of type '" "boost::shared_ptr< CashFlow > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CashFlow > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->amount();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlow_date(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CashFlow > *arg1 = (boost::shared_ptr< CashFlow > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlow_date",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CashFlow_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlow_date" "', argument " "1"" of type '" "boost::shared_ptr< CashFlow > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CashFlow > * >(argp1);
  {
    try {
      result = (*arg1)->date();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CashFlow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_CashFlow_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Leg_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"Leg_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_iterator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg___nonzero__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____nonzero__((std::vector< boost::shared_ptr< CashFlow > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg___bool__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____bool__((std::vector< boost::shared_ptr< CashFlow > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg___len__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____len__((std::vector< boost::shared_ptr< CashFlow > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< CashFlow > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg___getslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Leg___getslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CashFlow > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Leg___getslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< CashFlow > >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< CashFlow > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Leg___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CashFlow > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Leg___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< CashFlow > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< CashFlow > >::difference_type arg3 ;
  std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Leg___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CashFlow > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Leg___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< CashFlow > >::difference_type >(val3);
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Leg___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Leg___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(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_Leg___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(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< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_Leg___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Leg___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::__setslice__(std::vector< boost::shared_ptr< CashFlow > >::difference_type,std::vector< boost::shared_ptr< CashFlow > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::__setslice__(std::vector< boost::shared_ptr< CashFlow > >::difference_type,std::vector< boost::shared_ptr< CashFlow > >::difference_type,std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Leg___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< CashFlow > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg___delslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Leg___delslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CashFlow > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Leg___delslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< CashFlow > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Leg___delitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CashFlow > >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "Leg___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "Leg___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Leg___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Leg___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "Leg___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "Leg___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_Leg___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_Leg___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Leg___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::__delitem__(std::vector< boost::shared_ptr< CashFlow > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Leg___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Leg___getitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CashFlow > >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< CashFlow > >::value_type *) &std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____getitem____SWIG_1((std::vector< boost::shared_ptr< CashFlow > > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_CashFlow_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_Leg___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_Leg___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Leg___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::__getitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::__getitem__(std::vector< boost::shared_ptr< CashFlow > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Leg___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< CashFlow > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Leg___setitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CashFlow > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_CashFlow_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Leg___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Leg___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > >::value_type * >(argp3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg____setitem____SWIG_2(arg1,arg2,(boost::shared_ptr< CashFlow > const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_Leg___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_Leg___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(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_boost__shared_ptrT_CashFlow_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_Leg___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Leg___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::__setitem__(PySliceObject *,std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::__setitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::__setitem__(std::vector< boost::shared_ptr< CashFlow > >::difference_type,std::vector< boost::shared_ptr< CashFlow > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Leg_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_pop" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< CashFlow > >::value_type(static_cast< const std::vector< boost::shared_ptr< CashFlow > >::value_type& >(result))), SWIGTYPE_p_boost__shared_ptrT_CashFlow_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_append" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_CashFlow_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Leg_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Leg_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > >::value_type * >(argp2);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg__append(arg1,(boost::shared_ptr< CashFlow > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Leg__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Leg",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< boost::shared_ptr< CashFlow > > *)new std::vector< boost::shared_ptr< CashFlow > >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Leg__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CashFlow > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Leg",1,1,&obj0)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Leg" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Leg" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< boost::shared_ptr< CashFlow > > *)new std::vector< boost::shared_ptr< CashFlow > >((std::vector< boost::shared_ptr< CashFlow > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_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_Leg_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_empty" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    try {
      result = (bool)((std::vector< boost::shared_ptr< CashFlow > > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_size" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< CashFlow > > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  std::vector< boost::shared_ptr< CashFlow > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_swap" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Leg_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Leg_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_begin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< CashFlow > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_end" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< CashFlow > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_rbegin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< CashFlow > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_rend" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< CashFlow > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_clear" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< boost::shared_ptr< CashFlow > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_get_allocator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< CashFlow > > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< CashFlow > >::allocator_type(static_cast< const std::vector< boost::shared_ptr< CashFlow > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_CashFlow_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Leg__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CashFlow > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Leg",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Leg" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< CashFlow > >::size_type >(val1);
  {
    try {
      result = (std::vector< boost::shared_ptr< CashFlow > > *)new std::vector< boost::shared_ptr< CashFlow > >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_pop_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Leg_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CashFlow > >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "Leg_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CashFlow > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CashFlow > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "Leg_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< CashFlow > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::iterator arg2 ;
  std::vector< boost::shared_ptr< CashFlow > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "Leg_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CashFlow > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CashFlow > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "Leg_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "Leg_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CashFlow > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CashFlow > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "Leg_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< CashFlow > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(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< boost::shared_ptr< CashFlow > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_Leg_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(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< boost::shared_ptr< CashFlow > >::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< boost::shared_ptr< CashFlow > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_Leg_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Leg_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::erase(std::vector< boost::shared_ptr< CashFlow > >::iterator)\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::erase(std::vector< boost::shared_ptr< CashFlow > >::iterator,std::vector< boost::shared_ptr< CashFlow > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_Leg__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > >::size_type arg1 ;
  std::vector< boost::shared_ptr< CashFlow > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< CashFlow > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Leg",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Leg" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< CashFlow > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_CashFlow_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Leg" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Leg" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > >::value_type * >(argp2);
  {
    try {
      result = (std::vector< boost::shared_ptr< CashFlow > > *)new std::vector< boost::shared_ptr< CashFlow > >(arg1,(std::vector< boost::shared_ptr< CashFlow > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Leg(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Leg__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Leg__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Leg__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_CashFlow_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_Leg__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Leg'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::vector()\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::vector(std::vector< boost::shared_ptr< CashFlow > > const &)\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::vector(std::vector< boost::shared_ptr< CashFlow > >::size_type)\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::vector(std::vector< boost::shared_ptr< CashFlow > >::size_type,std::vector< boost::shared_ptr< CashFlow > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Leg_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_push_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_CashFlow_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Leg_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Leg_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > >::value_type * >(argp2);
  {
    try {
      (arg1)->push_back((std::vector< boost::shared_ptr< CashFlow > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_front" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< CashFlow > >::value_type *) &((std::vector< boost::shared_ptr< CashFlow > > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_CashFlow_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< CashFlow > >::value_type *) &((std::vector< boost::shared_ptr< CashFlow > > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_CashFlow_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::size_type arg2 ;
  std::vector< boost::shared_ptr< CashFlow > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_assign" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Leg_assign" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CashFlow > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_CashFlow_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Leg_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Leg_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > >::value_type * >(argp3);
  {
    try {
      (arg1)->assign(arg2,(std::vector< boost::shared_ptr< CashFlow > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::size_type arg2 ;
  std::vector< boost::shared_ptr< CashFlow > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Leg_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CashFlow > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_CashFlow_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Leg_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Leg_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > >::value_type * >(argp3);
  {
    try {
      (arg1)->resize(arg2,(std::vector< boost::shared_ptr< CashFlow > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_Leg_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(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_boost__shared_ptrT_CashFlow_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_Leg_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Leg_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::resize(std::vector< boost::shared_ptr< CashFlow > >::size_type)\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::resize(std::vector< boost::shared_ptr< CashFlow > >::size_type,std::vector< boost::shared_ptr< CashFlow > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Leg_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::iterator arg2 ;
  std::vector< boost::shared_ptr< CashFlow > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "Leg_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CashFlow > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CashFlow > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "Leg_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_CashFlow_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Leg_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Leg_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > >::value_type * >(argp3);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg__insert__SWIG_0(arg1,arg2,(boost::shared_ptr< CashFlow > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< CashFlow > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::iterator arg2 ;
  std::vector< boost::shared_ptr< CashFlow > >::size_type arg3 ;
  std::vector< boost::shared_ptr< CashFlow > >::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 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "Leg_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CashFlow > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CashFlow > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "Leg_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Leg_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< CashFlow > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_boost__shared_ptrT_CashFlow_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Leg_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Leg_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > >::value_type * >(argp4);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_CashFlow_Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(boost::shared_ptr< CashFlow > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(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< boost::shared_ptr< CashFlow > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_CashFlow_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_Leg_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(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< boost::shared_ptr< CashFlow > >::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_boost__shared_ptrT_CashFlow_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_Leg_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Leg_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::insert(std::vector< boost::shared_ptr< CashFlow > >::iterator,std::vector< boost::shared_ptr< CashFlow > >::value_type const &)\n"
    "    std::vector< boost::shared_ptr< CashFlow > >::insert(std::vector< boost::shared_ptr< CashFlow > >::iterator,std::vector< boost::shared_ptr< CashFlow > >::size_type,std::vector< boost::shared_ptr< CashFlow > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Leg_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_reserve" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Leg_reserve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CashFlow > >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Leg_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CashFlow > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Leg_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Leg_capacity" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< CashFlow > > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Leg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow > > *arg1 = (std::vector< boost::shared_ptr< CashFlow > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Leg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Leg" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CashFlow > > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Leg_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SimpleCashFlow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Date *arg2 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SimpleCashFlowPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SimpleCashFlow",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SimpleCashFlow" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SimpleCashFlow" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimpleCashFlow" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (SimpleCashFlowPtr *)new_SimpleCashFlowPtr(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SimpleCashFlowPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SimpleCashFlow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SimpleCashFlowPtr *arg1 = (SimpleCashFlowPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SimpleCashFlow",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SimpleCashFlowPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SimpleCashFlow" "', argument " "1"" of type '" "SimpleCashFlowPtr *""'"); 
  }
  arg1 = reinterpret_cast< SimpleCashFlowPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SimpleCashFlow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SimpleCashFlowPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Redemption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Date *arg2 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  RedemptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Redemption",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Redemption" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Redemption" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Redemption" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (RedemptionPtr *)new_RedemptionPtr(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RedemptionPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Redemption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RedemptionPtr *arg1 = (RedemptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Redemption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RedemptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Redemption" "', argument " "1"" of type '" "RedemptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< RedemptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Redemption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RedemptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AmortizingPayment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Date *arg2 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  AmortizingPaymentPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AmortizingPayment",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_AmortizingPayment" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AmortizingPayment" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AmortizingPayment" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (AmortizingPaymentPtr *)new_AmortizingPaymentPtr(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AmortizingPaymentPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_AmortizingPayment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AmortizingPaymentPtr *arg1 = (AmortizingPaymentPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AmortizingPayment",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AmortizingPaymentPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AmortizingPayment" "', argument " "1"" of type '" "AmortizingPaymentPtr *""'"); 
  }
  arg1 = reinterpret_cast< AmortizingPaymentPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AmortizingPayment_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AmortizingPaymentPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Coupon_nominal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CouponPtr *arg1 = (CouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Coupon_nominal",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Coupon_nominal" "', argument " "1"" of type '" "CouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CouponPtr * >(argp1);
  {
    try {
      result = (Real)CouponPtr_nominal(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Coupon_accrualStartDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CouponPtr *arg1 = (CouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Coupon_accrualStartDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Coupon_accrualStartDate" "', argument " "1"" of type '" "CouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CouponPtr * >(argp1);
  {
    try {
      result = CouponPtr_accrualStartDate(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Coupon_accrualEndDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CouponPtr *arg1 = (CouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Coupon_accrualEndDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Coupon_accrualEndDate" "', argument " "1"" of type '" "CouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CouponPtr * >(argp1);
  {
    try {
      result = CouponPtr_accrualEndDate(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Coupon_referencePeriodStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CouponPtr *arg1 = (CouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Coupon_referencePeriodStart",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Coupon_referencePeriodStart" "', argument " "1"" of type '" "CouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CouponPtr * >(argp1);
  {
    try {
      result = CouponPtr_referencePeriodStart(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Coupon_referencePeriodEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CouponPtr *arg1 = (CouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Coupon_referencePeriodEnd",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Coupon_referencePeriodEnd" "', argument " "1"" of type '" "CouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CouponPtr * >(argp1);
  {
    try {
      result = CouponPtr_referencePeriodEnd(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Coupon_exCouponDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CouponPtr *arg1 = (CouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Coupon_exCouponDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Coupon_exCouponDate" "', argument " "1"" of type '" "CouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CouponPtr * >(argp1);
  {
    try {
      result = CouponPtr_exCouponDate(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Coupon_rate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CouponPtr *arg1 = (CouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Coupon_rate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Coupon_rate" "', argument " "1"" of type '" "CouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CouponPtr * >(argp1);
  {
    try {
      result = (Real)CouponPtr_rate(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Coupon_accrualPeriod(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CouponPtr *arg1 = (CouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Coupon_accrualPeriod",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Coupon_accrualPeriod" "', argument " "1"" of type '" "CouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CouponPtr * >(argp1);
  {
    try {
      result = (Time)CouponPtr_accrualPeriod(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Coupon_accrualDays(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CouponPtr *arg1 = (CouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BigInteger result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Coupon_accrualDays",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Coupon_accrualDays" "', argument " "1"" of type '" "CouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CouponPtr * >(argp1);
  {
    try {
      result = (BigInteger)CouponPtr_accrualDays(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_long(static_cast< long >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Coupon_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CouponPtr *arg1 = (CouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Coupon_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Coupon_dayCounter" "', argument " "1"" of type '" "CouponPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CouponPtr * >(argp1);
  {
    try {
      result = CouponPtr_dayCounter((CouponPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Coupon_accruedAmount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CouponPtr *arg1 = (CouponPtr *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Coupon_accruedAmount",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Coupon_accruedAmount" "', argument " "1"" of type '" "CouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CouponPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Coupon_accruedAmount" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Coupon_accruedAmount" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Real)CouponPtr_accruedAmount(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Coupon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CouponPtr *arg1 = (CouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Coupon",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CouponPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Coupon" "', argument " "1"" of type '" "CouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CouponPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Coupon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CouponPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_as_coupon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CashFlow > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< CouponPtr > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"as_coupon",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_CashFlow_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "as_coupon" "', argument " "1"" of type '" "boost::shared_ptr< CashFlow > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "as_coupon" "', argument " "1"" of type '" "boost::shared_ptr< CashFlow > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CashFlow > * >(argp1);
  {
    try {
      result = as_coupon((boost::shared_ptr< CashFlow > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new CouponPtr(static_cast< const CouponPtr& >(result))), SWIGTYPE_p_CouponPtr, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateCoupon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Real arg2 ;
  Rate arg3 ;
  DayCounter *arg4 = 0 ;
  Date *arg5 = 0 ;
  Date *arg6 = 0 ;
  Date const &arg7_defvalue = Date() ;
  Date *arg7 = (Date *) &arg7_defvalue ;
  Date const &arg8_defvalue = Date() ;
  Date *arg8 = (Date *) &arg8_defvalue ;
  Date const &arg9_defvalue = Date() ;
  Date *arg9 = (Date *) &arg9_defvalue ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  char *  kwnames[] = {
    (char *) "paymentDate",(char *) "nominal",(char *) "rate",(char *) "dayCounter",(char *) "startDate",(char *) "endDate",(char *) "refPeriodStart",(char *) "refPeriodEnd",(char *) "exCouponDate", NULL 
  };
  FixedRateCouponPtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOO:new_FixedRateCoupon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FixedRateCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateCoupon" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FixedRateCoupon" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateCoupon" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateCoupon" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateCoupon" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateCoupon" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FixedRateCoupon" "', argument " "6"" of type '" "Date const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateCoupon" "', argument " "6"" of type '" "Date const &""'"); 
  }
  arg6 = reinterpret_cast< Date * >(argp6);
  if (obj6) {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FixedRateCoupon" "', argument " "7"" of type '" "Date const &""'"); 
    }
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateCoupon" "', argument " "7"" of type '" "Date const &""'"); 
    }
    arg7 = reinterpret_cast< Date * >(argp7);
  }
  if (obj7) {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FixedRateCoupon" "', argument " "8"" of type '" "Date const &""'"); 
    }
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateCoupon" "', argument " "8"" of type '" "Date const &""'"); 
    }
    arg8 = reinterpret_cast< Date * >(argp8);
  }
  if (obj8) {
    res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateCoupon" "', argument " "9"" of type '" "Date const &""'"); 
    }
    if (!argp9) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateCoupon" "', argument " "9"" of type '" "Date const &""'"); 
    }
    arg9 = reinterpret_cast< Date * >(argp9);
  }
  {
    try {
      result = (FixedRateCouponPtr *)new_FixedRateCouponPtr((Date const &)*arg1,arg2,arg3,(DayCounter const &)*arg4,(Date const &)*arg5,(Date const &)*arg6,(Date const &)*arg7,(Date const &)*arg8,(Date const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateCouponPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FixedRateCoupon_interestRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FixedRateCouponPtr *arg1 = (FixedRateCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FixedRateCoupon_interestRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FixedRateCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedRateCoupon_interestRate" "', argument " "1"" of type '" "FixedRateCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< FixedRateCouponPtr * >(argp1);
  {
    try {
      result = FixedRateCouponPtr_interestRate(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_FixedRateCoupon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FixedRateCouponPtr *arg1 = (FixedRateCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FixedRateCoupon",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FixedRateCouponPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FixedRateCoupon" "', argument " "1"" of type '" "FixedRateCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< FixedRateCouponPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FixedRateCoupon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FixedRateCouponPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_as_fixed_rate_coupon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CashFlow > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< FixedRateCouponPtr > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"as_fixed_rate_coupon",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_CashFlow_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "as_fixed_rate_coupon" "', argument " "1"" of type '" "boost::shared_ptr< CashFlow > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "as_fixed_rate_coupon" "', argument " "1"" of type '" "boost::shared_ptr< CashFlow > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CashFlow > * >(argp1);
  {
    try {
      result = as_fixed_rate_coupon((boost::shared_ptr< CashFlow > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new FixedRateCouponPtr(static_cast< const FixedRateCouponPtr& >(result))), SWIGTYPE_p_FixedRateCouponPtr, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FloatingRateCouponPricer___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< FloatingRateCouponPricer > *arg1 = (boost::shared_ptr< FloatingRateCouponPricer > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  FloatingRateCouponPricer *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"FloatingRateCouponPricer___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_FloatingRateCouponPricer_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatingRateCouponPricer___deref__" "', argument " "1"" of type '" "boost::shared_ptr< FloatingRateCouponPricer > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< FloatingRateCouponPricer > * >(argp1);
  {
    try {
      result = (FloatingRateCouponPricer *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloatingRateCouponPricer, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FloatingRateCouponPricer___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< FloatingRateCouponPricer > *arg1 = (boost::shared_ptr< FloatingRateCouponPricer > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FloatingRateCouponPricer___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_FloatingRateCouponPricer_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatingRateCouponPricer___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< FloatingRateCouponPricer > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< FloatingRateCouponPricer > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_FloatingRateCouponPricer_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FloatingRateCouponPricer___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< FloatingRateCouponPricer > *arg1 = (boost::shared_ptr< FloatingRateCouponPricer > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FloatingRateCouponPricer___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_FloatingRateCouponPricer_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatingRateCouponPricer___bool__" "', argument " "1"" of type '" "boost::shared_ptr< FloatingRateCouponPricer > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< FloatingRateCouponPricer > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_FloatingRateCouponPricer_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FloatingRateCouponPricer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< FloatingRateCouponPricer > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FloatingRateCouponPricer",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< FloatingRateCouponPricer > *)new boost::shared_ptr< FloatingRateCouponPricer >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_FloatingRateCouponPricer_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_FloatingRateCouponPricer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< FloatingRateCouponPricer > *arg1 = (boost::shared_ptr< FloatingRateCouponPricer > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FloatingRateCouponPricer",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_FloatingRateCouponPricer_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FloatingRateCouponPricer" "', argument " "1"" of type '" "boost::shared_ptr< FloatingRateCouponPricer > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< FloatingRateCouponPricer > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FloatingRateCouponPricer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_FloatingRateCouponPricer_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_setCouponPricer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  boost::shared_ptr< FloatingRateCouponPricer > *arg2 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"setCouponPricer",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "setCouponPricer" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "setCouponPricer" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_FloatingRateCouponPricer_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "setCouponPricer" "', argument " "2"" of type '" "boost::shared_ptr< FloatingRateCouponPricer > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "setCouponPricer" "', argument " "2"" of type '" "boost::shared_ptr< FloatingRateCouponPricer > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< FloatingRateCouponPricer > * >(argp2);
  {
    try {
      setCouponPricer((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(boost::shared_ptr< FloatingRateCouponPricer > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_FloatingRateCoupon_fixingDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloatingRateCouponPtr *arg1 = (FloatingRateCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FloatingRateCoupon_fixingDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatingRateCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatingRateCoupon_fixingDate" "', argument " "1"" of type '" "FloatingRateCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< FloatingRateCouponPtr * >(argp1);
  {
    try {
      result = FloatingRateCouponPtr_fixingDate(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FloatingRateCoupon_fixingDays(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloatingRateCouponPtr *arg1 = (FloatingRateCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Integer result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FloatingRateCoupon_fixingDays",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatingRateCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatingRateCoupon_fixingDays" "', argument " "1"" of type '" "FloatingRateCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< FloatingRateCouponPtr * >(argp1);
  {
    try {
      result = (Integer)FloatingRateCouponPtr_fixingDays(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FloatingRateCoupon_isInArrears(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloatingRateCouponPtr *arg1 = (FloatingRateCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FloatingRateCoupon_isInArrears",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatingRateCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatingRateCoupon_isInArrears" "', argument " "1"" of type '" "FloatingRateCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< FloatingRateCouponPtr * >(argp1);
  {
    try {
      result = (bool)FloatingRateCouponPtr_isInArrears(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FloatingRateCoupon_gearing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloatingRateCouponPtr *arg1 = (FloatingRateCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FloatingRateCoupon_gearing",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatingRateCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatingRateCoupon_gearing" "', argument " "1"" of type '" "FloatingRateCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< FloatingRateCouponPtr * >(argp1);
  {
    try {
      result = (Real)FloatingRateCouponPtr_gearing(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FloatingRateCoupon_spread(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloatingRateCouponPtr *arg1 = (FloatingRateCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FloatingRateCoupon_spread",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatingRateCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatingRateCoupon_spread" "', argument " "1"" of type '" "FloatingRateCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< FloatingRateCouponPtr * >(argp1);
  {
    try {
      result = (Rate)FloatingRateCouponPtr_spread(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FloatingRateCoupon_indexFixing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloatingRateCouponPtr *arg1 = (FloatingRateCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FloatingRateCoupon_indexFixing",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatingRateCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatingRateCoupon_indexFixing" "', argument " "1"" of type '" "FloatingRateCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< FloatingRateCouponPtr * >(argp1);
  {
    try {
      result = (Rate)FloatingRateCouponPtr_indexFixing(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FloatingRateCoupon_adjustedFixing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloatingRateCouponPtr *arg1 = (FloatingRateCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FloatingRateCoupon_adjustedFixing",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatingRateCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatingRateCoupon_adjustedFixing" "', argument " "1"" of type '" "FloatingRateCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< FloatingRateCouponPtr * >(argp1);
  {
    try {
      result = (Rate)FloatingRateCouponPtr_adjustedFixing(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FloatingRateCoupon_convexityAdjustment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloatingRateCouponPtr *arg1 = (FloatingRateCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FloatingRateCoupon_convexityAdjustment",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatingRateCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatingRateCoupon_convexityAdjustment" "', argument " "1"" of type '" "FloatingRateCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< FloatingRateCouponPtr * >(argp1);
  {
    try {
      result = (Rate)FloatingRateCouponPtr_convexityAdjustment(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FloatingRateCoupon_price(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloatingRateCouponPtr *arg1 = (FloatingRateCouponPtr *) 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FloatingRateCoupon_price",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatingRateCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatingRateCoupon_price" "', argument " "1"" of type '" "FloatingRateCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< FloatingRateCouponPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FloatingRateCoupon_price" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FloatingRateCoupon_price" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (Real)FloatingRateCouponPtr_price(arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FloatingRateCoupon_index(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloatingRateCouponPtr *arg1 = (FloatingRateCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< InterestRateIndexPtr > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FloatingRateCoupon_index",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatingRateCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatingRateCoupon_index" "', argument " "1"" of type '" "FloatingRateCouponPtr const *""'"); 
  }
  arg1 = reinterpret_cast< FloatingRateCouponPtr * >(argp1);
  {
    try {
      result = FloatingRateCouponPtr_index((FloatingRateCouponPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRateIndexPtr(static_cast< const InterestRateIndexPtr& >(result))), SWIGTYPE_p_InterestRateIndexPtr, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FloatingRateCoupon_setPricer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloatingRateCouponPtr *arg1 = (FloatingRateCouponPtr *) 0 ;
  boost::shared_ptr< FloatingRateCouponPricer > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"FloatingRateCoupon_setPricer",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatingRateCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatingRateCoupon_setPricer" "', argument " "1"" of type '" "FloatingRateCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< FloatingRateCouponPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_FloatingRateCouponPricer_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FloatingRateCoupon_setPricer" "', argument " "2"" of type '" "boost::shared_ptr< FloatingRateCouponPricer > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FloatingRateCoupon_setPricer" "', argument " "2"" of type '" "boost::shared_ptr< FloatingRateCouponPricer > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< FloatingRateCouponPricer > * >(argp2);
  {
    try {
      FloatingRateCouponPtr_setPricer(arg1,(boost::shared_ptr< FloatingRateCouponPricer > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_FloatingRateCoupon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloatingRateCouponPtr *arg1 = (FloatingRateCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FloatingRateCoupon",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatingRateCouponPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FloatingRateCoupon" "', argument " "1"" of type '" "FloatingRateCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< FloatingRateCouponPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FloatingRateCoupon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FloatingRateCouponPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_as_floating_rate_coupon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CashFlow > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< FloatingRateCouponPtr > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"as_floating_rate_coupon",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_CashFlow_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "as_floating_rate_coupon" "', argument " "1"" of type '" "boost::shared_ptr< CashFlow > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "as_floating_rate_coupon" "', argument " "1"" of type '" "boost::shared_ptr< CashFlow > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CashFlow > * >(argp1);
  {
    try {
      result = as_floating_rate_coupon((boost::shared_ptr< CashFlow > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new FloatingRateCouponPtr(static_cast< const FloatingRateCouponPtr& >(result))), SWIGTYPE_p_FloatingRateCouponPtr, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CappedFlooredCoupon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  FloatingRateCouponPtr *arg1 = 0 ;
  Rate arg2 = (Rate) Null< Rate >() ;
  Rate arg3 = (Rate) Null< Rate >() ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  char *  kwnames[] = {
    (char *) "underlying",(char *) "cap",(char *) "floor", NULL 
  };
  CappedFlooredCouponPtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_CappedFlooredCoupon",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_FloatingRateCouponPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CappedFlooredCoupon" "', argument " "1"" of type '" "FloatingRateCouponPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCoupon" "', argument " "1"" of type '" "FloatingRateCouponPtr const &""'"); 
  }
  arg1 = reinterpret_cast< FloatingRateCouponPtr * >(argp1);
  if (obj1) {
    ecode2 = SWIG_AsVal_double(obj1, &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CappedFlooredCoupon" "', argument " "2"" of type '" "Rate""'");
    } 
    arg2 = static_cast< Rate >(val2);
  }
  if (obj2) {
    ecode3 = SWIG_AsVal_double(obj2, &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CappedFlooredCoupon" "', argument " "3"" of type '" "Rate""'");
    } 
    arg3 = static_cast< Rate >(val3);
  }
  {
    try {
      result = (CappedFlooredCouponPtr *)new_CappedFlooredCouponPtr((FloatingRateCouponPtr const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CappedFlooredCouponPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CappedFlooredCoupon_cap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CappedFlooredCouponPtr *arg1 = (CappedFlooredCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CappedFlooredCoupon_cap",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CappedFlooredCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CappedFlooredCoupon_cap" "', argument " "1"" of type '" "CappedFlooredCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CappedFlooredCouponPtr * >(argp1);
  {
    try {
      result = (Rate)CappedFlooredCouponPtr_cap(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CappedFlooredCoupon_floor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CappedFlooredCouponPtr *arg1 = (CappedFlooredCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CappedFlooredCoupon_floor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CappedFlooredCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CappedFlooredCoupon_floor" "', argument " "1"" of type '" "CappedFlooredCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CappedFlooredCouponPtr * >(argp1);
  {
    try {
      result = (Rate)CappedFlooredCouponPtr_floor(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CappedFlooredCoupon_effectiveCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CappedFlooredCouponPtr *arg1 = (CappedFlooredCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CappedFlooredCoupon_effectiveCap",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CappedFlooredCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CappedFlooredCoupon_effectiveCap" "', argument " "1"" of type '" "CappedFlooredCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CappedFlooredCouponPtr * >(argp1);
  {
    try {
      result = (Rate)CappedFlooredCouponPtr_effectiveCap(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CappedFlooredCoupon_effectiveFloor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CappedFlooredCouponPtr *arg1 = (CappedFlooredCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CappedFlooredCoupon_effectiveFloor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CappedFlooredCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CappedFlooredCoupon_effectiveFloor" "', argument " "1"" of type '" "CappedFlooredCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CappedFlooredCouponPtr * >(argp1);
  {
    try {
      result = (Rate)CappedFlooredCouponPtr_effectiveFloor(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CappedFlooredCoupon_isCapped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CappedFlooredCouponPtr *arg1 = (CappedFlooredCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CappedFlooredCoupon_isCapped",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CappedFlooredCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CappedFlooredCoupon_isCapped" "', argument " "1"" of type '" "CappedFlooredCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CappedFlooredCouponPtr * >(argp1);
  {
    try {
      result = (bool)CappedFlooredCouponPtr_isCapped(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CappedFlooredCoupon_isFloored(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CappedFlooredCouponPtr *arg1 = (CappedFlooredCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CappedFlooredCoupon_isFloored",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CappedFlooredCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CappedFlooredCoupon_isFloored" "', argument " "1"" of type '" "CappedFlooredCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CappedFlooredCouponPtr * >(argp1);
  {
    try {
      result = (bool)CappedFlooredCouponPtr_isFloored(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CappedFlooredCoupon_setPricer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CappedFlooredCouponPtr *arg1 = (CappedFlooredCouponPtr *) 0 ;
  boost::shared_ptr< FloatingRateCouponPricer > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CappedFlooredCoupon_setPricer",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CappedFlooredCouponPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CappedFlooredCoupon_setPricer" "', argument " "1"" of type '" "CappedFlooredCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CappedFlooredCouponPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_FloatingRateCouponPricer_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CappedFlooredCoupon_setPricer" "', argument " "2"" of type '" "boost::shared_ptr< FloatingRateCouponPricer > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CappedFlooredCoupon_setPricer" "', argument " "2"" of type '" "boost::shared_ptr< FloatingRateCouponPricer > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< FloatingRateCouponPricer > * >(argp2);
  {
    try {
      CappedFlooredCouponPtr_setPricer(arg1,(boost::shared_ptr< FloatingRateCouponPricer > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CappedFlooredCoupon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CappedFlooredCouponPtr *arg1 = (CappedFlooredCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CappedFlooredCoupon",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CappedFlooredCouponPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CappedFlooredCoupon" "', argument " "1"" of type '" "CappedFlooredCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CappedFlooredCouponPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CappedFlooredCoupon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CappedFlooredCouponPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_IborCoupon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Real arg2 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Integer arg5 ;
  InterestRateIndexPtr *arg6 = 0 ;
  Real arg7 = (Real) 1.0 ;
  Spread arg8 = (Spread) 0.0 ;
  Date const &arg9_defvalue = Date() ;
  Date *arg9 = (Date *) &arg9_defvalue ;
  Date const &arg10_defvalue = Date() ;
  Date *arg10 = (Date *) &arg10_defvalue ;
  DayCounter const &arg11_defvalue = DayCounter() ;
  DayCounter *arg11 = (DayCounter *) &arg11_defvalue ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  char *  kwnames[] = {
    (char *) "paymentDate",(char *) "nominal",(char *) "startDate",(char *) "endDate",(char *) "fixingDays",(char *) "index",(char *) "gearing",(char *) "spread",(char *) "refPeriodStart",(char *) "refPeriodEnd",(char *) "dayCounter", NULL 
  };
  IborCouponPtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:new_IborCoupon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IborCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IborCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IborCoupon" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_IborCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IborCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_IborCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IborCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_IborCoupon" "', argument " "5"" of type '" "Integer""'");
  } 
  arg5 = static_cast< Integer >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_InterestRateIndexPtr,  0 );
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_IborCoupon" "', argument " "6"" of type '" "InterestRateIndexPtr &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IborCoupon" "', argument " "6"" of type '" "InterestRateIndexPtr &""'"); 
  }
  arg6 = reinterpret_cast< InterestRateIndexPtr * >(argp6);
  if (obj6) {
    ecode7 = SWIG_AsVal_double(obj6, &val7);
    if (!SWIG_IsOK(ecode7)) {
      SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_IborCoupon" "', argument " "7"" of type '" "Real""'");
    } 
    arg7 = static_cast< Real >(val7);
  }
  if (obj7) {
    ecode8 = SWIG_AsVal_double(obj7, &val8);
    if (!SWIG_IsOK(ecode8)) {
      SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_IborCoupon" "', argument " "8"" of type '" "Spread""'");
    } 
    arg8 = static_cast< Spread >(val8);
  }
  if (obj8) {
    res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_IborCoupon" "', argument " "9"" of type '" "Date const &""'"); 
    }
    if (!argp9) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IborCoupon" "', argument " "9"" of type '" "Date const &""'"); 
    }
    arg9 = reinterpret_cast< Date * >(argp9);
  }
  if (obj9) {
    res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res10)) {
      SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_IborCoupon" "', argument " "10"" of type '" "Date const &""'"); 
    }
    if (!argp10) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IborCoupon" "', argument " "10"" of type '" "Date const &""'"); 
    }
    arg10 = reinterpret_cast< Date * >(argp10);
  }
  if (obj10) {
    res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_DayCounter,  0  | 0);
    if (!SWIG_IsOK(res11)) {
      SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_IborCoupon" "', argument " "11"" of type '" "DayCounter const &""'"); 
    }
    if (!argp11) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IborCoupon" "', argument " "11"" of type '" "DayCounter const &""'"); 
    }
    arg11 = reinterpret_cast< DayCounter * >(argp11);
  }
  {
    try {
      result = (IborCouponPtr *)new_IborCouponPtr((Date const &)*arg1,arg2,(Date const &)*arg3,(Date const &)*arg4,arg5,*arg6,arg7,arg8,(Date const &)*arg9,(Date const &)*arg10,(DayCounter const &)*arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IborCouponPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_IborCoupon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IborCouponPtr *arg1 = (IborCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_IborCoupon",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IborCouponPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IborCoupon" "', argument " "1"" of type '" "IborCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< IborCouponPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *IborCoupon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_IborCouponPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_IborCouponPricer_capletVolatility(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IborCouponPricerPtr *arg1 = (IborCouponPricerPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< OptionletVolatilityStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IborCouponPricer_capletVolatility",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IborCouponPricerPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IborCouponPricer_capletVolatility" "', argument " "1"" of type '" "IborCouponPricerPtr *""'"); 
  }
  arg1 = reinterpret_cast< IborCouponPricerPtr * >(argp1);
  {
    try {
      result = IborCouponPricerPtr_capletVolatility(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Handle< OptionletVolatilityStructure >(static_cast< const Handle< OptionletVolatilityStructure >& >(result))), SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IborCouponPricer_setCapletVolatility__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IborCouponPricerPtr *arg1 = (IborCouponPricerPtr *) 0 ;
  Handle< OptionletVolatilityStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IborCouponPricer_setCapletVolatility",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IborCouponPricerPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IborCouponPricer_setCapletVolatility" "', argument " "1"" of type '" "IborCouponPricerPtr *""'"); 
  }
  arg1 = reinterpret_cast< IborCouponPricerPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IborCouponPricer_setCapletVolatility" "', argument " "2"" of type '" "Handle< OptionletVolatilityStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IborCouponPricer_setCapletVolatility" "', argument " "2"" of type '" "Handle< OptionletVolatilityStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp2);
  {
    try {
      IborCouponPricerPtr_setCapletVolatility__SWIG_0(arg1,(Handle< OptionletVolatilityStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IborCouponPricer_setCapletVolatility__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IborCouponPricerPtr *arg1 = (IborCouponPricerPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IborCouponPricer_setCapletVolatility",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IborCouponPricerPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IborCouponPricer_setCapletVolatility" "', argument " "1"" of type '" "IborCouponPricerPtr *""'"); 
  }
  arg1 = reinterpret_cast< IborCouponPricerPtr * >(argp1);
  {
    try {
      IborCouponPricerPtr_setCapletVolatility__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IborCouponPricer_setCapletVolatility(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IborCouponPricerPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_IborCouponPricer_setCapletVolatility__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IborCouponPricerPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_IborCouponPricer_setCapletVolatility__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IborCouponPricer_setCapletVolatility'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    IborCouponPricerPtr::setCapletVolatility(Handle< OptionletVolatilityStructure > const &)\n"
    "    IborCouponPricerPtr::setCapletVolatility()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_IborCouponPricer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IborCouponPricerPtr *arg1 = (IborCouponPricerPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_IborCouponPricer",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IborCouponPricerPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IborCouponPricer" "', argument " "1"" of type '" "IborCouponPricerPtr *""'"); 
  }
  arg1 = reinterpret_cast< IborCouponPricerPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *IborCouponPricer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_IborCouponPricerPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BlackIborCouponPricer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< OptionletVolatilityStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BlackIborCouponPricerPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackIborCouponPricer",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackIborCouponPricer" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackIborCouponPricer" "', argument " "1"" of type '" "Handle< OptionletVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp1);
  {
    try {
      result = (BlackIborCouponPricerPtr *)new_BlackIborCouponPricerPtr__SWIG_0((Handle< OptionletVolatilityStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackIborCouponPricerPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackIborCouponPricer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackIborCouponPricerPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackIborCouponPricer",0,0)) SWIG_fail;
  {
    try {
      result = (BlackIborCouponPricerPtr *)new_BlackIborCouponPricerPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackIborCouponPricerPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackIborCouponPricer(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_BlackIborCouponPricer__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_BlackIborCouponPricer__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BlackIborCouponPricer'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BlackIborCouponPricerPtr::BlackIborCouponPricerPtr(Handle< OptionletVolatilityStructure > const &)\n"
    "    BlackIborCouponPricerPtr::BlackIborCouponPricerPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_BlackIborCouponPricer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackIborCouponPricerPtr *arg1 = (BlackIborCouponPricerPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BlackIborCouponPricer",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackIborCouponPricerPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlackIborCouponPricer" "', argument " "1"" of type '" "BlackIborCouponPricerPtr *""'"); 
  }
  arg1 = reinterpret_cast< BlackIborCouponPricerPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BlackIborCouponPricer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BlackIborCouponPricerPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CmsCoupon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Real arg2 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Integer arg5 ;
  SwapIndexPtr *arg6 = 0 ;
  Real arg7 = (Real) 1.0 ;
  Spread arg8 = (Spread) 0.0 ;
  Date const &arg9_defvalue = Date() ;
  Date *arg9 = (Date *) &arg9_defvalue ;
  Date const &arg10_defvalue = Date() ;
  Date *arg10 = (Date *) &arg10_defvalue ;
  DayCounter const &arg11_defvalue = DayCounter() ;
  DayCounter *arg11 = (DayCounter *) &arg11_defvalue ;
  bool arg12 = (bool) false ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  bool val12 ;
  int ecode12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  char *  kwnames[] = {
    (char *) "paymentDate",(char *) "nominal",(char *) "startDate",(char *) "endDate",(char *) "fixingDays",(char *) "index",(char *) "gearing",(char *) "spread",(char *) "refPeriodStart",(char *) "refPeriodEnd",(char *) "dayCounter",(char *) "isInArrears", NULL 
  };
  CmsCouponPtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOOO:new_CmsCoupon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CmsCoupon" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_CmsCoupon" "', argument " "5"" of type '" "Integer""'");
  } 
  arg5 = static_cast< Integer >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg6 = reinterpret_cast< SwapIndexPtr * >(argp6);
  if (obj6) {
    ecode7 = SWIG_AsVal_double(obj6, &val7);
    if (!SWIG_IsOK(ecode7)) {
      SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_CmsCoupon" "', argument " "7"" of type '" "Real""'");
    } 
    arg7 = static_cast< Real >(val7);
  }
  if (obj7) {
    ecode8 = SWIG_AsVal_double(obj7, &val8);
    if (!SWIG_IsOK(ecode8)) {
      SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_CmsCoupon" "', argument " "8"" of type '" "Spread""'");
    } 
    arg8 = static_cast< Spread >(val8);
  }
  if (obj8) {
    res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_CmsCoupon" "', argument " "9"" of type '" "Date const &""'"); 
    }
    if (!argp9) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CmsCoupon" "', argument " "9"" of type '" "Date const &""'"); 
    }
    arg9 = reinterpret_cast< Date * >(argp9);
  }
  if (obj9) {
    res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res10)) {
      SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_CmsCoupon" "', argument " "10"" of type '" "Date const &""'"); 
    }
    if (!argp10) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CmsCoupon" "', argument " "10"" of type '" "Date const &""'"); 
    }
    arg10 = reinterpret_cast< Date * >(argp10);
  }
  if (obj10) {
    res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_DayCounter,  0  | 0);
    if (!SWIG_IsOK(res11)) {
      SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_CmsCoupon" "', argument " "11"" of type '" "DayCounter const &""'"); 
    }
    if (!argp11) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CmsCoupon" "', argument " "11"" of type '" "DayCounter const &""'"); 
    }
    arg11 = reinterpret_cast< DayCounter * >(argp11);
  }
  if (obj11) {
    ecode12 = SWIG_AsVal_bool(obj11, &val12);
    if (!SWIG_IsOK(ecode12)) {
      SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_CmsCoupon" "', argument " "12"" of type '" "bool""'");
    } 
    arg12 = static_cast< bool >(val12);
  }
  {
    try {
      result = (CmsCouponPtr *)new_CmsCouponPtr((Date const &)*arg1,arg2,(Date const &)*arg3,(Date const &)*arg4,arg5,(SwapIndexPtr const &)*arg6,arg7,arg8,(Date const &)*arg9,(Date const &)*arg10,(DayCounter const &)*arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CmsCouponPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CmsCoupon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CmsCouponPtr *arg1 = (CmsCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CmsCoupon",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CmsCouponPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CmsCoupon" "', argument " "1"" of type '" "CmsCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CmsCouponPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CmsCoupon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CmsCouponPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_CmsCouponPricer_swaptionVolatility(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CmsCouponPricerPtr *arg1 = (CmsCouponPricerPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< SwaptionVolatilityStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CmsCouponPricer_swaptionVolatility",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CmsCouponPricerPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CmsCouponPricer_swaptionVolatility" "', argument " "1"" of type '" "CmsCouponPricerPtr *""'"); 
  }
  arg1 = reinterpret_cast< CmsCouponPricerPtr * >(argp1);
  {
    try {
      result = CmsCouponPricerPtr_swaptionVolatility(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Handle< SwaptionVolatilityStructure >(static_cast< const Handle< SwaptionVolatilityStructure >& >(result))), SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CmsCouponPricer_setSwaptionVolatility__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CmsCouponPricerPtr *arg1 = (CmsCouponPricerPtr *) 0 ;
  Handle< SwaptionVolatilityStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CmsCouponPricer_setSwaptionVolatility",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CmsCouponPricerPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CmsCouponPricer_setSwaptionVolatility" "', argument " "1"" of type '" "CmsCouponPricerPtr *""'"); 
  }
  arg1 = reinterpret_cast< CmsCouponPricerPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CmsCouponPricer_setSwaptionVolatility" "', argument " "2"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsCouponPricer_setSwaptionVolatility" "', argument " "2"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp2);
  {
    try {
      CmsCouponPricerPtr_setSwaptionVolatility__SWIG_0(arg1,(Handle< SwaptionVolatilityStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CmsCouponPricer_setSwaptionVolatility__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CmsCouponPricerPtr *arg1 = (CmsCouponPricerPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CmsCouponPricer_setSwaptionVolatility",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CmsCouponPricerPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CmsCouponPricer_setSwaptionVolatility" "', argument " "1"" of type '" "CmsCouponPricerPtr *""'"); 
  }
  arg1 = reinterpret_cast< CmsCouponPricerPtr * >(argp1);
  {
    try {
      CmsCouponPricerPtr_setSwaptionVolatility__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CmsCouponPricer_setSwaptionVolatility(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CmsCouponPricerPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_CmsCouponPricer_setSwaptionVolatility__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CmsCouponPricerPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_CmsCouponPricer_setSwaptionVolatility__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CmsCouponPricer_setSwaptionVolatility'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CmsCouponPricerPtr::setSwaptionVolatility(Handle< SwaptionVolatilityStructure > const &)\n"
    "    CmsCouponPricerPtr::setSwaptionVolatility()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_CmsCouponPricer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CmsCouponPricerPtr *arg1 = (CmsCouponPricerPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CmsCouponPricer",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CmsCouponPricerPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CmsCouponPricer" "', argument " "1"" of type '" "CmsCouponPricerPtr *""'"); 
  }
  arg1 = reinterpret_cast< CmsCouponPricerPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CmsCouponPricer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CmsCouponPricerPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_delete_GFunctionFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GFunctionFactory *arg1 = (GFunctionFactory *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GFunctionFactory",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GFunctionFactory, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GFunctionFactory" "', argument " "1"" of type '" "GFunctionFactory *""'"); 
  }
  arg1 = reinterpret_cast< GFunctionFactory * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GFunctionFactory_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GFunctionFactory, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AnalyticHaganPricer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = 0 ;
  GFunctionFactory::YieldCurveModel arg2 ;
  Handle< Quote > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  AnalyticHaganPricerPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticHaganPricer",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticHaganPricer" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticHaganPricer" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AnalyticHaganPricer" "', argument " "2"" of type '" "GFunctionFactory::YieldCurveModel""'");
  } 
  arg2 = static_cast< GFunctionFactory::YieldCurveModel >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_AnalyticHaganPricer" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticHaganPricer" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  {
    try {
      result = (AnalyticHaganPricerPtr *)new_AnalyticHaganPricerPtr((Handle< SwaptionVolatilityStructure > const &)*arg1,arg2,(Handle< Quote > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticHaganPricerPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_AnalyticHaganPricer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AnalyticHaganPricerPtr *arg1 = (AnalyticHaganPricerPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AnalyticHaganPricer",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AnalyticHaganPricerPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AnalyticHaganPricer" "', argument " "1"" of type '" "AnalyticHaganPricerPtr *""'"); 
  }
  arg1 = reinterpret_cast< AnalyticHaganPricerPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AnalyticHaganPricer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AnalyticHaganPricerPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_NumericHaganPricer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = 0 ;
  GFunctionFactory::YieldCurveModel arg2 ;
  Handle< Quote > *arg3 = 0 ;
  Rate arg4 ;
  Rate arg5 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  NumericHaganPricerPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NumericHaganPricer",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NumericHaganPricer" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumericHaganPricer" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NumericHaganPricer" "', argument " "2"" of type '" "GFunctionFactory::YieldCurveModel""'");
  } 
  arg2 = static_cast< GFunctionFactory::YieldCurveModel >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_NumericHaganPricer" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumericHaganPricer" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NumericHaganPricer" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_NumericHaganPricer" "', argument " "5"" of type '" "Rate""'");
  } 
  arg5 = static_cast< Rate >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_NumericHaganPricer" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (NumericHaganPricerPtr *)new_NumericHaganPricerPtr__SWIG_0((Handle< SwaptionVolatilityStructure > const &)*arg1,arg2,(Handle< Quote > const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NumericHaganPricerPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NumericHaganPricer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = 0 ;
  GFunctionFactory::YieldCurveModel arg2 ;
  Handle< Quote > *arg3 = 0 ;
  Rate arg4 ;
  Rate arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  NumericHaganPricerPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NumericHaganPricer",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NumericHaganPricer" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumericHaganPricer" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NumericHaganPricer" "', argument " "2"" of type '" "GFunctionFactory::YieldCurveModel""'");
  } 
  arg2 = static_cast< GFunctionFactory::YieldCurveModel >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_NumericHaganPricer" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumericHaganPricer" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NumericHaganPricer" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_NumericHaganPricer" "', argument " "5"" of type '" "Rate""'");
  } 
  arg5 = static_cast< Rate >(val5);
  {
    try {
      result = (NumericHaganPricerPtr *)new_NumericHaganPricerPtr__SWIG_0((Handle< SwaptionVolatilityStructure > const &)*arg1,arg2,(Handle< Quote > const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NumericHaganPricerPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NumericHaganPricer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = 0 ;
  GFunctionFactory::YieldCurveModel arg2 ;
  Handle< Quote > *arg3 = 0 ;
  Rate arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  NumericHaganPricerPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NumericHaganPricer",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NumericHaganPricer" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumericHaganPricer" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NumericHaganPricer" "', argument " "2"" of type '" "GFunctionFactory::YieldCurveModel""'");
  } 
  arg2 = static_cast< GFunctionFactory::YieldCurveModel >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_NumericHaganPricer" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumericHaganPricer" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NumericHaganPricer" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  {
    try {
      result = (NumericHaganPricerPtr *)new_NumericHaganPricerPtr__SWIG_0((Handle< SwaptionVolatilityStructure > const &)*arg1,arg2,(Handle< Quote > const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NumericHaganPricerPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NumericHaganPricer__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = 0 ;
  GFunctionFactory::YieldCurveModel arg2 ;
  Handle< Quote > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  NumericHaganPricerPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NumericHaganPricer",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NumericHaganPricer" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumericHaganPricer" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NumericHaganPricer" "', argument " "2"" of type '" "GFunctionFactory::YieldCurveModel""'");
  } 
  arg2 = static_cast< GFunctionFactory::YieldCurveModel >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_NumericHaganPricer" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NumericHaganPricer" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  {
    try {
      result = (NumericHaganPricerPtr *)new_NumericHaganPricerPtr__SWIG_0((Handle< SwaptionVolatilityStructure > const &)*arg1,arg2,(Handle< Quote > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NumericHaganPricerPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NumericHaganPricer(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_NumericHaganPricer__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_NumericHaganPricer__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_NumericHaganPricer__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_NumericHaganPricer__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_NumericHaganPricer'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    NumericHaganPricerPtr::NumericHaganPricerPtr(Handle< SwaptionVolatilityStructure > const &,GFunctionFactory::YieldCurveModel,Handle< Quote > const &,Rate,Rate,Real)\n"
    "    NumericHaganPricerPtr::NumericHaganPricerPtr(Handle< SwaptionVolatilityStructure > const &,GFunctionFactory::YieldCurveModel,Handle< Quote > const &,Rate,Rate)\n"
    "    NumericHaganPricerPtr::NumericHaganPricerPtr(Handle< SwaptionVolatilityStructure > const &,GFunctionFactory::YieldCurveModel,Handle< Quote > const &,Rate)\n"
    "    NumericHaganPricerPtr::NumericHaganPricerPtr(Handle< SwaptionVolatilityStructure > const &,GFunctionFactory::YieldCurveModel,Handle< Quote > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_NumericHaganPricer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NumericHaganPricerPtr *arg1 = (NumericHaganPricerPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NumericHaganPricer",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NumericHaganPricerPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NumericHaganPricer" "', argument " "1"" of type '" "NumericHaganPricerPtr *""'"); 
  }
  arg1 = reinterpret_cast< NumericHaganPricerPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NumericHaganPricer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_NumericHaganPricerPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CappedFlooredCmsCoupon__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Real arg2 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Natural arg5 ;
  SwapIndexPtr *arg6 = 0 ;
  Real arg7 ;
  Spread arg8 ;
  Rate arg9 ;
  Rate arg10 ;
  Date *arg11 = 0 ;
  Date *arg12 = 0 ;
  DayCounter *arg13 = 0 ;
  bool arg14 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  void *argp12 = 0 ;
  int res12 = 0 ;
  void *argp13 = 0 ;
  int res13 = 0 ;
  bool val14 ;
  int ecode14 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  CappedFlooredCmsCouponPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CappedFlooredCmsCoupon",14,14,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "5"" of type '" "Natural""'");
  } 
  arg5 = static_cast< Natural >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg6 = reinterpret_cast< SwapIndexPtr * >(argp6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "8"" of type '" "Spread""'");
  } 
  arg8 = static_cast< Spread >(val8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "9"" of type '" "Rate""'");
  } 
  arg9 = static_cast< Rate >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "10"" of type '" "Rate""'");
  } 
  arg10 = static_cast< Rate >(val10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "11"" of type '" "Date const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "11"" of type '" "Date const &""'"); 
  }
  arg11 = reinterpret_cast< Date * >(argp11);
  res12 = SWIG_ConvertPtr(obj11, &argp12, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res12)) {
    SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "12"" of type '" "Date const &""'"); 
  }
  if (!argp12) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "12"" of type '" "Date const &""'"); 
  }
  arg12 = reinterpret_cast< Date * >(argp12);
  res13 = SWIG_ConvertPtr(obj12, &argp13, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res13)) {
    SWIG_exception_fail(SWIG_ArgError(res13), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "13"" of type '" "DayCounter const &""'"); 
  }
  if (!argp13) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "13"" of type '" "DayCounter const &""'"); 
  }
  arg13 = reinterpret_cast< DayCounter * >(argp13);
  ecode14 = SWIG_AsVal_bool(obj13, &val14);
  if (!SWIG_IsOK(ecode14)) {
    SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "14"" of type '" "bool""'");
  } 
  arg14 = static_cast< bool >(val14);
  {
    try {
      result = (CappedFlooredCmsCouponPtr *)new_CappedFlooredCmsCouponPtr__SWIG_0((Date const &)*arg1,arg2,(Date const &)*arg3,(Date const &)*arg4,arg5,(SwapIndexPtr const &)*arg6,arg7,arg8,arg9,arg10,(Date const &)*arg11,(Date const &)*arg12,(DayCounter const &)*arg13,arg14);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CappedFlooredCmsCouponPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CappedFlooredCmsCoupon__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Real arg2 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Natural arg5 ;
  SwapIndexPtr *arg6 = 0 ;
  Real arg7 ;
  Spread arg8 ;
  Rate arg9 ;
  Rate arg10 ;
  Date *arg11 = 0 ;
  Date *arg12 = 0 ;
  DayCounter *arg13 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  void *argp12 = 0 ;
  int res12 = 0 ;
  void *argp13 = 0 ;
  int res13 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  CappedFlooredCmsCouponPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CappedFlooredCmsCoupon",13,13,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "5"" of type '" "Natural""'");
  } 
  arg5 = static_cast< Natural >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg6 = reinterpret_cast< SwapIndexPtr * >(argp6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "8"" of type '" "Spread""'");
  } 
  arg8 = static_cast< Spread >(val8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "9"" of type '" "Rate""'");
  } 
  arg9 = static_cast< Rate >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "10"" of type '" "Rate""'");
  } 
  arg10 = static_cast< Rate >(val10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "11"" of type '" "Date const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "11"" of type '" "Date const &""'"); 
  }
  arg11 = reinterpret_cast< Date * >(argp11);
  res12 = SWIG_ConvertPtr(obj11, &argp12, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res12)) {
    SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "12"" of type '" "Date const &""'"); 
  }
  if (!argp12) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "12"" of type '" "Date const &""'"); 
  }
  arg12 = reinterpret_cast< Date * >(argp12);
  res13 = SWIG_ConvertPtr(obj12, &argp13, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res13)) {
    SWIG_exception_fail(SWIG_ArgError(res13), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "13"" of type '" "DayCounter const &""'"); 
  }
  if (!argp13) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "13"" of type '" "DayCounter const &""'"); 
  }
  arg13 = reinterpret_cast< DayCounter * >(argp13);
  {
    try {
      result = (CappedFlooredCmsCouponPtr *)new_CappedFlooredCmsCouponPtr__SWIG_0((Date const &)*arg1,arg2,(Date const &)*arg3,(Date const &)*arg4,arg5,(SwapIndexPtr const &)*arg6,arg7,arg8,arg9,arg10,(Date const &)*arg11,(Date const &)*arg12,(DayCounter const &)*arg13);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CappedFlooredCmsCouponPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CappedFlooredCmsCoupon__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Real arg2 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Natural arg5 ;
  SwapIndexPtr *arg6 = 0 ;
  Real arg7 ;
  Spread arg8 ;
  Rate arg9 ;
  Rate arg10 ;
  Date *arg11 = 0 ;
  Date *arg12 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  void *argp12 = 0 ;
  int res12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  CappedFlooredCmsCouponPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CappedFlooredCmsCoupon",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "5"" of type '" "Natural""'");
  } 
  arg5 = static_cast< Natural >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg6 = reinterpret_cast< SwapIndexPtr * >(argp6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "8"" of type '" "Spread""'");
  } 
  arg8 = static_cast< Spread >(val8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "9"" of type '" "Rate""'");
  } 
  arg9 = static_cast< Rate >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "10"" of type '" "Rate""'");
  } 
  arg10 = static_cast< Rate >(val10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "11"" of type '" "Date const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "11"" of type '" "Date const &""'"); 
  }
  arg11 = reinterpret_cast< Date * >(argp11);
  res12 = SWIG_ConvertPtr(obj11, &argp12, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res12)) {
    SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "12"" of type '" "Date const &""'"); 
  }
  if (!argp12) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "12"" of type '" "Date const &""'"); 
  }
  arg12 = reinterpret_cast< Date * >(argp12);
  {
    try {
      result = (CappedFlooredCmsCouponPtr *)new_CappedFlooredCmsCouponPtr__SWIG_0((Date const &)*arg1,arg2,(Date const &)*arg3,(Date const &)*arg4,arg5,(SwapIndexPtr const &)*arg6,arg7,arg8,arg9,arg10,(Date const &)*arg11,(Date const &)*arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CappedFlooredCmsCouponPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CappedFlooredCmsCoupon__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Real arg2 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Natural arg5 ;
  SwapIndexPtr *arg6 = 0 ;
  Real arg7 ;
  Spread arg8 ;
  Rate arg9 ;
  Rate arg10 ;
  Date *arg11 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  CappedFlooredCmsCouponPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CappedFlooredCmsCoupon",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "5"" of type '" "Natural""'");
  } 
  arg5 = static_cast< Natural >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg6 = reinterpret_cast< SwapIndexPtr * >(argp6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "8"" of type '" "Spread""'");
  } 
  arg8 = static_cast< Spread >(val8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "9"" of type '" "Rate""'");
  } 
  arg9 = static_cast< Rate >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "10"" of type '" "Rate""'");
  } 
  arg10 = static_cast< Rate >(val10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "11"" of type '" "Date const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "11"" of type '" "Date const &""'"); 
  }
  arg11 = reinterpret_cast< Date * >(argp11);
  {
    try {
      result = (CappedFlooredCmsCouponPtr *)new_CappedFlooredCmsCouponPtr__SWIG_0((Date const &)*arg1,arg2,(Date const &)*arg3,(Date const &)*arg4,arg5,(SwapIndexPtr const &)*arg6,arg7,arg8,arg9,arg10,(Date const &)*arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CappedFlooredCmsCouponPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CappedFlooredCmsCoupon__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Real arg2 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Natural arg5 ;
  SwapIndexPtr *arg6 = 0 ;
  Real arg7 ;
  Spread arg8 ;
  Rate arg9 ;
  Rate arg10 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  CappedFlooredCmsCouponPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CappedFlooredCmsCoupon",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "5"" of type '" "Natural""'");
  } 
  arg5 = static_cast< Natural >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg6 = reinterpret_cast< SwapIndexPtr * >(argp6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "8"" of type '" "Spread""'");
  } 
  arg8 = static_cast< Spread >(val8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "9"" of type '" "Rate""'");
  } 
  arg9 = static_cast< Rate >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "10"" of type '" "Rate""'");
  } 
  arg10 = static_cast< Rate >(val10);
  {
    try {
      result = (CappedFlooredCmsCouponPtr *)new_CappedFlooredCmsCouponPtr__SWIG_0((Date const &)*arg1,arg2,(Date const &)*arg3,(Date const &)*arg4,arg5,(SwapIndexPtr const &)*arg6,arg7,arg8,arg9,arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CappedFlooredCmsCouponPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CappedFlooredCmsCoupon__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Real arg2 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Natural arg5 ;
  SwapIndexPtr *arg6 = 0 ;
  Real arg7 ;
  Spread arg8 ;
  Rate arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  CappedFlooredCmsCouponPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CappedFlooredCmsCoupon",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "5"" of type '" "Natural""'");
  } 
  arg5 = static_cast< Natural >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg6 = reinterpret_cast< SwapIndexPtr * >(argp6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "8"" of type '" "Spread""'");
  } 
  arg8 = static_cast< Spread >(val8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "9"" of type '" "Rate""'");
  } 
  arg9 = static_cast< Rate >(val9);
  {
    try {
      result = (CappedFlooredCmsCouponPtr *)new_CappedFlooredCmsCouponPtr__SWIG_0((Date const &)*arg1,arg2,(Date const &)*arg3,(Date const &)*arg4,arg5,(SwapIndexPtr const &)*arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CappedFlooredCmsCouponPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CappedFlooredCmsCoupon__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Real arg2 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Natural arg5 ;
  SwapIndexPtr *arg6 = 0 ;
  Real arg7 ;
  Spread arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  CappedFlooredCmsCouponPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CappedFlooredCmsCoupon",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "5"" of type '" "Natural""'");
  } 
  arg5 = static_cast< Natural >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg6 = reinterpret_cast< SwapIndexPtr * >(argp6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "8"" of type '" "Spread""'");
  } 
  arg8 = static_cast< Spread >(val8);
  {
    try {
      result = (CappedFlooredCmsCouponPtr *)new_CappedFlooredCmsCouponPtr__SWIG_0((Date const &)*arg1,arg2,(Date const &)*arg3,(Date const &)*arg4,arg5,(SwapIndexPtr const &)*arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CappedFlooredCmsCouponPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CappedFlooredCmsCoupon__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Real arg2 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Natural arg5 ;
  SwapIndexPtr *arg6 = 0 ;
  Real arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  CappedFlooredCmsCouponPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CappedFlooredCmsCoupon",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "5"" of type '" "Natural""'");
  } 
  arg5 = static_cast< Natural >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg6 = reinterpret_cast< SwapIndexPtr * >(argp6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (CappedFlooredCmsCouponPtr *)new_CappedFlooredCmsCouponPtr__SWIG_0((Date const &)*arg1,arg2,(Date const &)*arg3,(Date const &)*arg4,arg5,(SwapIndexPtr const &)*arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CappedFlooredCmsCouponPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CappedFlooredCmsCoupon__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Real arg2 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Natural arg5 ;
  SwapIndexPtr *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  CappedFlooredCmsCouponPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CappedFlooredCmsCoupon",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "5"" of type '" "Natural""'");
  } 
  arg5 = static_cast< Natural >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CappedFlooredCmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CappedFlooredCmsCoupon" "', argument " "6"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg6 = reinterpret_cast< SwapIndexPtr * >(argp6);
  {
    try {
      result = (CappedFlooredCmsCouponPtr *)new_CappedFlooredCmsCouponPtr__SWIG_0((Date const &)*arg1,arg2,(Date const &)*arg3,(Date const &)*arg4,arg5,(SwapIndexPtr const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CappedFlooredCmsCouponPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CappedFlooredCmsCoupon(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[15] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 14) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_SwapIndexPtr, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_CappedFlooredCmsCoupon__SWIG_8(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_SwapIndexPtr, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_CappedFlooredCmsCoupon__SWIG_7(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_SwapIndexPtr, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_CappedFlooredCmsCoupon__SWIG_6(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_SwapIndexPtr, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_new_CappedFlooredCmsCoupon__SWIG_5(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_SwapIndexPtr, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        return _wrap_new_CappedFlooredCmsCoupon__SWIG_4(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_SwapIndexPtr, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_Date, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          return _wrap_new_CappedFlooredCmsCoupon__SWIG_3(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_SwapIndexPtr, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_Date, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          int res = SWIG_ConvertPtr(argv[11], 0, SWIGTYPE_p_Date, 0);
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            return _wrap_new_CappedFlooredCmsCoupon__SWIG_2(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 13) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_SwapIndexPtr, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_Date, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          int res = SWIG_ConvertPtr(argv[11], 0, SWIGTYPE_p_Date, 0);
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            int res = SWIG_ConvertPtr(argv[12], 0, SWIGTYPE_p_DayCounter, 0);
                            _v = SWIG_CheckState(res);
                            if (_v) {
                              return _wrap_new_CappedFlooredCmsCoupon__SWIG_1(self, args);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 14) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_SwapIndexPtr, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_Date, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          int res = SWIG_ConvertPtr(argv[11], 0, SWIGTYPE_p_Date, 0);
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            int res = SWIG_ConvertPtr(argv[12], 0, SWIGTYPE_p_DayCounter, 0);
                            _v = SWIG_CheckState(res);
                            if (_v) {
                              {
                                int res = SWIG_AsVal_bool(argv[13], NULL);
                                _v = SWIG_CheckState(res);
                              }
                              if (_v) {
                                return _wrap_new_CappedFlooredCmsCoupon__SWIG_0(self, args);
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CappedFlooredCmsCoupon'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CappedFlooredCmsCouponPtr::CappedFlooredCmsCouponPtr(Date const &,Real,Date const &,Date const &,Natural,SwapIndexPtr const &,Real,Spread,Rate const,Rate const,Date const &,Date const &,DayCounter const &,bool)\n"
    "    CappedFlooredCmsCouponPtr::CappedFlooredCmsCouponPtr(Date const &,Real,Date const &,Date const &,Natural,SwapIndexPtr const &,Real,Spread,Rate const,Rate const,Date const &,Date const &,DayCounter const &)\n"
    "    CappedFlooredCmsCouponPtr::CappedFlooredCmsCouponPtr(Date const &,Real,Date const &,Date const &,Natural,SwapIndexPtr const &,Real,Spread,Rate const,Rate const,Date const &,Date const &)\n"
    "    CappedFlooredCmsCouponPtr::CappedFlooredCmsCouponPtr(Date const &,Real,Date const &,Date const &,Natural,SwapIndexPtr const &,Real,Spread,Rate const,Rate const,Date const &)\n"
    "    CappedFlooredCmsCouponPtr::CappedFlooredCmsCouponPtr(Date const &,Real,Date const &,Date const &,Natural,SwapIndexPtr const &,Real,Spread,Rate const,Rate const)\n"
    "    CappedFlooredCmsCouponPtr::CappedFlooredCmsCouponPtr(Date const &,Real,Date const &,Date const &,Natural,SwapIndexPtr const &,Real,Spread,Rate const)\n"
    "    CappedFlooredCmsCouponPtr::CappedFlooredCmsCouponPtr(Date const &,Real,Date const &,Date const &,Natural,SwapIndexPtr const &,Real,Spread)\n"
    "    CappedFlooredCmsCouponPtr::CappedFlooredCmsCouponPtr(Date const &,Real,Date const &,Date const &,Natural,SwapIndexPtr const &,Real)\n"
    "    CappedFlooredCmsCouponPtr::CappedFlooredCmsCouponPtr(Date const &,Real,Date const &,Date const &,Natural,SwapIndexPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_CappedFlooredCmsCoupon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CappedFlooredCmsCouponPtr *arg1 = (CappedFlooredCmsCouponPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CappedFlooredCmsCoupon",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CappedFlooredCmsCouponPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CappedFlooredCmsCoupon" "', argument " "1"" of type '" "CappedFlooredCmsCouponPtr *""'"); 
  }
  arg1 = reinterpret_cast< CappedFlooredCmsCouponPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CappedFlooredCmsCoupon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CappedFlooredCmsCouponPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_LinearTsrPricer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  LinearTsrPricer::Settings *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  LinearTsrPricerPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LinearTsrPricer",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LinearTsrPricer" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LinearTsrPricer" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LinearTsrPricer" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LinearTsrPricer" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LinearTsrPricer" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LinearTsrPricer" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_LinearTsrPricer__Settings,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_LinearTsrPricer" "', argument " "4"" of type '" "LinearTsrPricer::Settings const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LinearTsrPricer" "', argument " "4"" of type '" "LinearTsrPricer::Settings const &""'"); 
  }
  arg4 = reinterpret_cast< LinearTsrPricer::Settings * >(argp4);
  {
    try {
      result = (LinearTsrPricerPtr *)new_LinearTsrPricerPtr__SWIG_0((Handle< SwaptionVolatilityStructure > const &)*arg1,(Handle< Quote > const &)*arg2,(Handle< YieldTermStructure > const &)*arg3,(LinearTsrPricer::Settings const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LinearTsrPricerPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LinearTsrPricer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  LinearTsrPricerPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LinearTsrPricer",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LinearTsrPricer" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LinearTsrPricer" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LinearTsrPricer" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LinearTsrPricer" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LinearTsrPricer" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LinearTsrPricer" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  {
    try {
      result = (LinearTsrPricerPtr *)new_LinearTsrPricerPtr__SWIG_0((Handle< SwaptionVolatilityStructure > const &)*arg1,(Handle< Quote > const &)*arg2,(Handle< YieldTermStructure > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LinearTsrPricerPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LinearTsrPricer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< SwaptionVolatilityStructure > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  LinearTsrPricerPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LinearTsrPricer",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LinearTsrPricer" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LinearTsrPricer" "', argument " "1"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LinearTsrPricer" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LinearTsrPricer" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  {
    try {
      result = (LinearTsrPricerPtr *)new_LinearTsrPricerPtr__SWIG_0((Handle< SwaptionVolatilityStructure > const &)*arg1,(Handle< Quote > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LinearTsrPricerPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LinearTsrPricer(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_LinearTsrPricer__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_LinearTsrPricer__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_LinearTsrPricer__Settings, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_LinearTsrPricer__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LinearTsrPricer'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    LinearTsrPricerPtr::LinearTsrPricerPtr(Handle< SwaptionVolatilityStructure > const &,Handle< Quote > const &,Handle< YieldTermStructure > const &,LinearTsrPricer::Settings const &)\n"
    "    LinearTsrPricerPtr::LinearTsrPricerPtr(Handle< SwaptionVolatilityStructure > const &,Handle< Quote > const &,Handle< YieldTermStructure > const &)\n"
    "    LinearTsrPricerPtr::LinearTsrPricerPtr(Handle< SwaptionVolatilityStructure > const &,Handle< Quote > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_LinearTsrPricer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LinearTsrPricerPtr *arg1 = (LinearTsrPricerPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LinearTsrPricer",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LinearTsrPricerPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LinearTsrPricer" "', argument " "1"" of type '" "LinearTsrPricerPtr *""'"); 
  }
  arg1 = reinterpret_cast< LinearTsrPricerPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LinearTsrPricer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_LinearTsrPricerPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_FixedRateLeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  Schedule *arg1 = 0 ;
  DayCounter *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg4 = 0 ;
  BusinessDayConvention arg5 = (BusinessDayConvention) Following ;
  DayCounter const &arg6_defvalue = DayCounter() ;
  DayCounter *arg6 = (DayCounter *) &arg6_defvalue ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  char *  kwnames[] = {
    (char *) "schedule",(char *) "dayCount",(char *) "nominals",(char *) "couponRates",(char *) "paymentAdjustment",(char *) "firstPeriodDayCount", NULL 
  };
  Leg result;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:FixedRateLeg",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedRateLeg" "', argument " "1"" of type '" "Schedule const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedRateLeg" "', argument " "1"" of type '" "Schedule const &""'"); 
  }
  arg1 = reinterpret_cast< Schedule * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FixedRateLeg" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedRateLeg" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  arg2 = reinterpret_cast< DayCounter * >(argp2);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "FixedRateLeg" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedRateLeg" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FixedRateLeg" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedRateLeg" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg4 = ptr;
  }
  if (obj4) {
    ecode5 = SWIG_AsVal_int(obj4, &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FixedRateLeg" "', argument " "5"" of type '" "BusinessDayConvention""'");
    } 
    arg5 = static_cast< BusinessDayConvention >(val5);
  }
  if (obj5) {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "FixedRateLeg" "', argument " "6"" of type '" "DayCounter const &""'"); 
    }
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedRateLeg" "', argument " "6"" of type '" "DayCounter const &""'"); 
    }
    arg6 = reinterpret_cast< DayCounter * >(argp6);
  }
  {
    try {
      result = _FixedRateLeg((Schedule const &)*arg1,(DayCounter const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,arg5,(DayCounter const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > >(result));
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IborLeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  std::vector< Real,std::allocator< Real > > *arg1 = 0 ;
  Schedule *arg2 = 0 ;
  IborIndexPtr *arg3 = 0 ;
  DayCounter const &arg4_defvalue = DayCounter() ;
  DayCounter *arg4 = (DayCounter *) &arg4_defvalue ;
  BusinessDayConvention arg5 = (BusinessDayConvention) (BusinessDayConvention)Following ;
  std::vector< Natural,std::allocator< Natural > > const &arg6_defvalue = std::vector< Natural >() ;
  std::vector< Natural,std::allocator< Natural > > *arg6 = (std::vector< Natural,std::allocator< Natural > > *) &arg6_defvalue ;
  std::vector< Real,std::allocator< Real > > const &arg7_defvalue = std::vector< Real >() ;
  std::vector< Real,std::allocator< Real > > *arg7 = (std::vector< Real,std::allocator< Real > > *) &arg7_defvalue ;
  std::vector< Spread,std::allocator< Spread > > const &arg8_defvalue = std::vector< Spread >() ;
  std::vector< Spread,std::allocator< Spread > > *arg8 = (std::vector< Spread,std::allocator< Spread > > *) &arg8_defvalue ;
  std::vector< Rate,std::allocator< Rate > > const &arg9_defvalue = std::vector< Rate >() ;
  std::vector< Rate,std::allocator< Rate > > *arg9 = (std::vector< Rate,std::allocator< Rate > > *) &arg9_defvalue ;
  std::vector< Rate,std::allocator< Rate > > const &arg10_defvalue = std::vector< Rate >() ;
  std::vector< Rate,std::allocator< Rate > > *arg10 = (std::vector< Rate,std::allocator< Rate > > *) &arg10_defvalue ;
  bool arg11 = (bool) false ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  int res7 = SWIG_OLDOBJ ;
  int res8 = SWIG_OLDOBJ ;
  int res9 = SWIG_OLDOBJ ;
  int res10 = SWIG_OLDOBJ ;
  bool val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  char *  kwnames[] = {
    (char *) "nominals",(char *) "schedule",(char *) "index",(char *) "paymentDayCounter",(char *) "paymentConvention",(char *) "fixingDays",(char *) "gearings",(char *) "spreads",(char *) "caps",(char *) "floors",(char *) "isInArrears", NULL 
  };
  Leg result;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOOO:IborLeg",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IborLeg" "', argument " "1"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IborLeg" "', argument " "1"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IborLeg" "', argument " "2"" of type '" "Schedule const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IborLeg" "', argument " "2"" of type '" "Schedule const &""'"); 
  }
  arg2 = reinterpret_cast< Schedule * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IborLeg" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IborLeg" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  arg3 = reinterpret_cast< IborIndexPtr * >(argp3);
  if (obj3) {
    res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IborLeg" "', argument " "4"" of type '" "DayCounter const &""'"); 
    }
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IborLeg" "', argument " "4"" of type '" "DayCounter const &""'"); 
    }
    arg4 = reinterpret_cast< DayCounter * >(argp4);
  }
  if (obj4) {
    ecode5 = SWIG_AsVal_int(obj4, &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "IborLeg" "', argument " "5"" of type '" "BusinessDayConvention""'");
    } 
    arg5 = static_cast< BusinessDayConvention >(val5);
  }
  if (obj5) {
    {
      std::vector< unsigned int,std::allocator< unsigned int > > *ptr = (std::vector< unsigned int,std::allocator< unsigned int > > *)0;
      res6 = swig::asptr(obj5, &ptr);
      if (!SWIG_IsOK(res6)) {
        SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "IborLeg" "', argument " "6"" of type '" "std::vector< Natural,std::allocator< Natural > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IborLeg" "', argument " "6"" of type '" "std::vector< Natural,std::allocator< Natural > > const &""'"); 
      }
      arg6 = ptr;
    }
  }
  if (obj6) {
    {
      std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
      res7 = swig::asptr(obj6, &ptr);
      if (!SWIG_IsOK(res7)) {
        SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "IborLeg" "', argument " "7"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IborLeg" "', argument " "7"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
      }
      arg7 = ptr;
    }
  }
  if (obj7) {
    {
      std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
      res8 = swig::asptr(obj7, &ptr);
      if (!SWIG_IsOK(res8)) {
        SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "IborLeg" "', argument " "8"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IborLeg" "', argument " "8"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
      }
      arg8 = ptr;
    }
  }
  if (obj8) {
    {
      std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
      res9 = swig::asptr(obj8, &ptr);
      if (!SWIG_IsOK(res9)) {
        SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "IborLeg" "', argument " "9"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IborLeg" "', argument " "9"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
      }
      arg9 = ptr;
    }
  }
  if (obj9) {
    {
      std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
      res10 = swig::asptr(obj9, &ptr);
      if (!SWIG_IsOK(res10)) {
        SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "IborLeg" "', argument " "10"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IborLeg" "', argument " "10"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
      }
      arg10 = ptr;
    }
  }
  if (obj10) {
    ecode11 = SWIG_AsVal_bool(obj10, &val11);
    if (!SWIG_IsOK(ecode11)) {
      SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "IborLeg" "', argument " "11"" of type '" "bool""'");
    } 
    arg11 = static_cast< bool >(val11);
  }
  {
    try {
      result = _IborLeg((std::vector< double,std::allocator< double > > const &)*arg1,(Schedule const &)*arg2,(IborIndexPtr const &)*arg3,(DayCounter const &)*arg4,arg5,(std::vector< unsigned int,std::allocator< unsigned int > > const &)*arg6,(std::vector< double,std::allocator< double > > const &)*arg7,(std::vector< double,std::allocator< double > > const &)*arg8,(std::vector< double,std::allocator< double > > const &)*arg9,(std::vector< double,std::allocator< double > > const &)*arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  if (SWIG_IsNewObj(res8)) delete arg8;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  if (SWIG_IsNewObj(res8)) delete arg8;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CmsLeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  std::vector< Real,std::allocator< Real > > *arg1 = 0 ;
  Schedule *arg2 = 0 ;
  SwapIndexPtr *arg3 = 0 ;
  DayCounter const &arg4_defvalue = DayCounter() ;
  DayCounter *arg4 = (DayCounter *) &arg4_defvalue ;
  BusinessDayConvention arg5 = (BusinessDayConvention) (BusinessDayConvention)Following ;
  std::vector< Natural,std::allocator< Natural > > const &arg6_defvalue = std::vector< Natural >() ;
  std::vector< Natural,std::allocator< Natural > > *arg6 = (std::vector< Natural,std::allocator< Natural > > *) &arg6_defvalue ;
  std::vector< Real,std::allocator< Real > > const &arg7_defvalue = std::vector< Real >() ;
  std::vector< Real,std::allocator< Real > > *arg7 = (std::vector< Real,std::allocator< Real > > *) &arg7_defvalue ;
  std::vector< Spread,std::allocator< Spread > > const &arg8_defvalue = std::vector< Spread >() ;
  std::vector< Spread,std::allocator< Spread > > *arg8 = (std::vector< Spread,std::allocator< Spread > > *) &arg8_defvalue ;
  std::vector< Rate,std::allocator< Rate > > const &arg9_defvalue = std::vector< Rate >() ;
  std::vector< Rate,std::allocator< Rate > > *arg9 = (std::vector< Rate,std::allocator< Rate > > *) &arg9_defvalue ;
  std::vector< Rate,std::allocator< Rate > > const &arg10_defvalue = std::vector< Rate >() ;
  std::vector< Rate,std::allocator< Rate > > *arg10 = (std::vector< Rate,std::allocator< Rate > > *) &arg10_defvalue ;
  bool arg11 = (bool) false ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  int res7 = SWIG_OLDOBJ ;
  int res8 = SWIG_OLDOBJ ;
  int res9 = SWIG_OLDOBJ ;
  int res10 = SWIG_OLDOBJ ;
  bool val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  char *  kwnames[] = {
    (char *) "nominals",(char *) "schedule",(char *) "index",(char *) "paymentDayCounter",(char *) "paymentConvention",(char *) "fixingDays",(char *) "gearings",(char *) "spreads",(char *) "caps",(char *) "floors",(char *) "isInArrears", NULL 
  };
  Leg result;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOOO:CmsLeg",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CmsLeg" "', argument " "1"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsLeg" "', argument " "1"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CmsLeg" "', argument " "2"" of type '" "Schedule const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsLeg" "', argument " "2"" of type '" "Schedule const &""'"); 
  }
  arg2 = reinterpret_cast< Schedule * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CmsLeg" "', argument " "3"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsLeg" "', argument " "3"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg3 = reinterpret_cast< SwapIndexPtr * >(argp3);
  if (obj3) {
    res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CmsLeg" "', argument " "4"" of type '" "DayCounter const &""'"); 
    }
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsLeg" "', argument " "4"" of type '" "DayCounter const &""'"); 
    }
    arg4 = reinterpret_cast< DayCounter * >(argp4);
  }
  if (obj4) {
    ecode5 = SWIG_AsVal_int(obj4, &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CmsLeg" "', argument " "5"" of type '" "BusinessDayConvention""'");
    } 
    arg5 = static_cast< BusinessDayConvention >(val5);
  }
  if (obj5) {
    {
      std::vector< unsigned int,std::allocator< unsigned int > > *ptr = (std::vector< unsigned int,std::allocator< unsigned int > > *)0;
      res6 = swig::asptr(obj5, &ptr);
      if (!SWIG_IsOK(res6)) {
        SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CmsLeg" "', argument " "6"" of type '" "std::vector< Natural,std::allocator< Natural > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsLeg" "', argument " "6"" of type '" "std::vector< Natural,std::allocator< Natural > > const &""'"); 
      }
      arg6 = ptr;
    }
  }
  if (obj6) {
    {
      std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
      res7 = swig::asptr(obj6, &ptr);
      if (!SWIG_IsOK(res7)) {
        SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CmsLeg" "', argument " "7"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsLeg" "', argument " "7"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
      }
      arg7 = ptr;
    }
  }
  if (obj7) {
    {
      std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
      res8 = swig::asptr(obj7, &ptr);
      if (!SWIG_IsOK(res8)) {
        SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CmsLeg" "', argument " "8"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsLeg" "', argument " "8"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
      }
      arg8 = ptr;
    }
  }
  if (obj8) {
    {
      std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
      res9 = swig::asptr(obj8, &ptr);
      if (!SWIG_IsOK(res9)) {
        SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "CmsLeg" "', argument " "9"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsLeg" "', argument " "9"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
      }
      arg9 = ptr;
    }
  }
  if (obj9) {
    {
      std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
      res10 = swig::asptr(obj9, &ptr);
      if (!SWIG_IsOK(res10)) {
        SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "CmsLeg" "', argument " "10"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsLeg" "', argument " "10"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
      }
      arg10 = ptr;
    }
  }
  if (obj10) {
    ecode11 = SWIG_AsVal_bool(obj10, &val11);
    if (!SWIG_IsOK(ecode11)) {
      SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "CmsLeg" "', argument " "11"" of type '" "bool""'");
    } 
    arg11 = static_cast< bool >(val11);
  }
  {
    try {
      result = _CmsLeg((std::vector< double,std::allocator< double > > const &)*arg1,(Schedule const &)*arg2,(SwapIndexPtr const &)*arg3,(DayCounter const &)*arg4,arg5,(std::vector< unsigned int,std::allocator< unsigned int > > const &)*arg6,(std::vector< double,std::allocator< double > > const &)*arg7,(std::vector< double,std::allocator< double > > const &)*arg8,(std::vector< double,std::allocator< double > > const &)*arg9,(std::vector< double,std::allocator< double > > const &)*arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  if (SWIG_IsNewObj(res8)) delete arg8;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  if (SWIG_IsNewObj(res8)) delete arg8;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CmsZeroLeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  std::vector< Real,std::allocator< Real > > *arg1 = 0 ;
  Schedule *arg2 = 0 ;
  SwapIndexPtr *arg3 = 0 ;
  DayCounter const &arg4_defvalue = DayCounter() ;
  DayCounter *arg4 = (DayCounter *) &arg4_defvalue ;
  BusinessDayConvention arg5 = (BusinessDayConvention) (BusinessDayConvention)Following ;
  std::vector< Natural,std::allocator< Natural > > const &arg6_defvalue = std::vector< Natural >() ;
  std::vector< Natural,std::allocator< Natural > > *arg6 = (std::vector< Natural,std::allocator< Natural > > *) &arg6_defvalue ;
  std::vector< Real,std::allocator< Real > > const &arg7_defvalue = std::vector< Real >() ;
  std::vector< Real,std::allocator< Real > > *arg7 = (std::vector< Real,std::allocator< Real > > *) &arg7_defvalue ;
  std::vector< Spread,std::allocator< Spread > > const &arg8_defvalue = std::vector< Spread >() ;
  std::vector< Spread,std::allocator< Spread > > *arg8 = (std::vector< Spread,std::allocator< Spread > > *) &arg8_defvalue ;
  std::vector< Rate,std::allocator< Rate > > const &arg9_defvalue = std::vector< Rate >() ;
  std::vector< Rate,std::allocator< Rate > > *arg9 = (std::vector< Rate,std::allocator< Rate > > *) &arg9_defvalue ;
  std::vector< Rate,std::allocator< Rate > > const &arg10_defvalue = std::vector< Rate >() ;
  std::vector< Rate,std::allocator< Rate > > *arg10 = (std::vector< Rate,std::allocator< Rate > > *) &arg10_defvalue ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  int res7 = SWIG_OLDOBJ ;
  int res8 = SWIG_OLDOBJ ;
  int res9 = SWIG_OLDOBJ ;
  int res10 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  char *  kwnames[] = {
    (char *) "nominals",(char *) "schedule",(char *) "index",(char *) "paymentDayCounter",(char *) "paymentConvention",(char *) "fixingDays",(char *) "gearings",(char *) "spreads",(char *) "caps",(char *) "floors", NULL 
  };
  Leg result;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:CmsZeroLeg",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CmsZeroLeg" "', argument " "1"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsZeroLeg" "', argument " "1"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CmsZeroLeg" "', argument " "2"" of type '" "Schedule const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsZeroLeg" "', argument " "2"" of type '" "Schedule const &""'"); 
  }
  arg2 = reinterpret_cast< Schedule * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CmsZeroLeg" "', argument " "3"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsZeroLeg" "', argument " "3"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg3 = reinterpret_cast< SwapIndexPtr * >(argp3);
  if (obj3) {
    res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CmsZeroLeg" "', argument " "4"" of type '" "DayCounter const &""'"); 
    }
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsZeroLeg" "', argument " "4"" of type '" "DayCounter const &""'"); 
    }
    arg4 = reinterpret_cast< DayCounter * >(argp4);
  }
  if (obj4) {
    ecode5 = SWIG_AsVal_int(obj4, &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CmsZeroLeg" "', argument " "5"" of type '" "BusinessDayConvention""'");
    } 
    arg5 = static_cast< BusinessDayConvention >(val5);
  }
  if (obj5) {
    {
      std::vector< unsigned int,std::allocator< unsigned int > > *ptr = (std::vector< unsigned int,std::allocator< unsigned int > > *)0;
      res6 = swig::asptr(obj5, &ptr);
      if (!SWIG_IsOK(res6)) {
        SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CmsZeroLeg" "', argument " "6"" of type '" "std::vector< Natural,std::allocator< Natural > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsZeroLeg" "', argument " "6"" of type '" "std::vector< Natural,std::allocator< Natural > > const &""'"); 
      }
      arg6 = ptr;
    }
  }
  if (obj6) {
    {
      std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
      res7 = swig::asptr(obj6, &ptr);
      if (!SWIG_IsOK(res7)) {
        SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CmsZeroLeg" "', argument " "7"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsZeroLeg" "', argument " "7"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
      }
      arg7 = ptr;
    }
  }
  if (obj7) {
    {
      std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
      res8 = swig::asptr(obj7, &ptr);
      if (!SWIG_IsOK(res8)) {
        SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CmsZeroLeg" "', argument " "8"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsZeroLeg" "', argument " "8"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
      }
      arg8 = ptr;
    }
  }
  if (obj8) {
    {
      std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
      res9 = swig::asptr(obj8, &ptr);
      if (!SWIG_IsOK(res9)) {
        SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "CmsZeroLeg" "', argument " "9"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsZeroLeg" "', argument " "9"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
      }
      arg9 = ptr;
    }
  }
  if (obj9) {
    {
      std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
      res10 = swig::asptr(obj9, &ptr);
      if (!SWIG_IsOK(res10)) {
        SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "CmsZeroLeg" "', argument " "10"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CmsZeroLeg" "', argument " "10"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
      }
      arg10 = ptr;
    }
  }
  {
    try {
      result = _CmsZeroLeg((std::vector< double,std::allocator< double > > const &)*arg1,(Schedule const &)*arg2,(SwapIndexPtr const &)*arg3,(DayCounter const &)*arg4,arg5,(std::vector< unsigned int,std::allocator< unsigned int > > const &)*arg6,(std::vector< double,std::allocator< double > > const &)*arg7,(std::vector< double,std::allocator< double > > const &)*arg8,(std::vector< double,std::allocator< double > > const &)*arg9,(std::vector< double,std::allocator< double > > const &)*arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  if (SWIG_IsNewObj(res8)) delete arg8;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  if (SWIG_IsNewObj(res8)) delete arg8;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Duration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Duration *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Duration",0,0)) SWIG_fail;
  {
    try {
      result = (Duration *)new Duration();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Duration, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Duration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Duration *arg1 = (Duration *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Duration",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Duration, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Duration" "', argument " "1"" of type '" "Duration *""'"); 
  }
  arg1 = reinterpret_cast< Duration * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Duration_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Duration, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_CashFlows_startDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_startDate",1,1,&obj0)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_startDate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_startDate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = CashFlows::startDate((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_maturityDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_maturityDate",1,1,&obj0)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_maturityDate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_maturityDate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = CashFlows::maturityDate((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_npv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  Spread arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  bool arg7 ;
  Date *arg8 = 0 ;
  Date *arg9 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_npv",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_npv" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_npv" "', argument " "3"" of type '" "Spread""'");
  } 
  arg3 = static_cast< Spread >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_npv" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_npv" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_npv" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CashFlows_npv" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CashFlows_npv" "', argument " "8"" of type '" "Date const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "8"" of type '" "Date const &""'"); 
  }
  arg8 = reinterpret_cast< Date * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "CashFlows_npv" "', argument " "9"" of type '" "Date const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "9"" of type '" "Date const &""'"); 
  }
  arg9 = reinterpret_cast< Date * >(argp9);
  {
    try {
      result = (Real)CashFlows_npv__SWIG_0((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,(Date const &)*arg8,(Date const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_npv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  Spread arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  bool arg7 ;
  Date *arg8 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_npv",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_npv" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_npv" "', argument " "3"" of type '" "Spread""'");
  } 
  arg3 = static_cast< Spread >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_npv" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_npv" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_npv" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CashFlows_npv" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CashFlows_npv" "', argument " "8"" of type '" "Date const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "8"" of type '" "Date const &""'"); 
  }
  arg8 = reinterpret_cast< Date * >(argp8);
  {
    try {
      result = (Real)CashFlows_npv__SWIG_0((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,(Date const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_npv__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  Spread arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  bool arg7 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_npv",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_npv" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_npv" "', argument " "3"" of type '" "Spread""'");
  } 
  arg3 = static_cast< Spread >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_npv" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_npv" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_npv" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CashFlows_npv" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  {
    try {
      result = (Real)CashFlows_npv__SWIG_0((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_npv__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  bool arg3 ;
  Date *arg4 = 0 ;
  Date *arg5 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_npv",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_npv" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_npv" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_npv" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CashFlows_npv" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  {
    try {
      result = (Real)CashFlows_npv__SWIG_3((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,arg3,(Date const &)*arg4,(Date const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_npv__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  bool arg3 ;
  Date *arg4 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_npv",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_npv" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_npv" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_npv" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  {
    try {
      result = (Real)CashFlows_npv__SWIG_3((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,arg3,(Date const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_npv__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  bool arg3 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_npv",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_npv" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_npv" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)CashFlows_npv__SWIG_3((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_npv__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  bool arg3 ;
  Date arg4 ;
  Date arg5 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  void *argp5 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_npv",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_npv" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_npv" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_npv" "', argument " "4"" of type '" "Date""'"); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "4"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp4);
      arg4 = *temp;
      if (SWIG_IsNewObj(res4)) delete temp;
    }
  }
  {
    res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CashFlows_npv" "', argument " "5"" of type '" "Date""'"); 
    }  
    if (!argp5) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "5"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp5);
      arg5 = *temp;
      if (SWIG_IsNewObj(res5)) delete temp;
    }
  }
  {
    try {
      result = (Real)CashFlows::npv((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(InterestRate const &)*arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_npv__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  bool arg3 ;
  Date arg4 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_npv",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_npv" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_npv" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_npv" "', argument " "4"" of type '" "Date""'"); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "4"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp4);
      arg4 = *temp;
      if (SWIG_IsNewObj(res4)) delete temp;
    }
  }
  {
    try {
      result = (Real)CashFlows::npv((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(InterestRate const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_npv__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  bool arg3 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_npv",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_npv" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_npv" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)CashFlows::npv((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(InterestRate const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_npv__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  Date arg7 ;
  Date arg8 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_npv",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_npv" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_npv" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_npv" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_npv" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_npv" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CashFlows_npv" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CashFlows_npv" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  {
    try {
      result = (Real)CashFlows::npv((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_npv__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  Date arg7 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_npv",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_npv" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_npv" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_npv" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_npv" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_npv" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CashFlows_npv" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    try {
      result = (Real)CashFlows::npv((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_npv__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_npv",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_npv" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_npv" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_npv" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_npv" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_npv" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_npv" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    try {
      result = (Real)CashFlows::npv((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_npv(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CashFlows_npv__SWIG_5(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CashFlows_npv__SWIG_8(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_CashFlows_npv__SWIG_7(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_CashFlows_npv__SWIG_4(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_CashFlows_npv__SWIG_3(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_CashFlows_npv__SWIG_6(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_CashFlows_npv__SWIG_11(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_CashFlows_npv__SWIG_2(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_CashFlows_npv__SWIG_10(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_CashFlows_npv__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_CashFlows_npv__SWIG_9(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Date, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap_CashFlows_npv__SWIG_0(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CashFlows_npv'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CashFlows::npv(Leg const &,boost::shared_ptr< YieldTermStructure > const &,Spread,DayCounter const &,Compounding,Frequency,bool,Date const &,Date const &)\n"
    "    CashFlows::npv(Leg const &,boost::shared_ptr< YieldTermStructure > const &,Spread,DayCounter const &,Compounding,Frequency,bool,Date const &)\n"
    "    CashFlows::npv(Leg const &,boost::shared_ptr< YieldTermStructure > const &,Spread,DayCounter const &,Compounding,Frequency,bool)\n"
    "    CashFlows::npv(Leg const &,Handle< YieldTermStructure > const &,bool,Date const &,Date const &)\n"
    "    CashFlows::npv(Leg const &,Handle< YieldTermStructure > const &,bool,Date const &)\n"
    "    CashFlows::npv(Leg const &,Handle< YieldTermStructure > const &,bool)\n"
    "    CashFlows::npv(Leg const &,InterestRate const &,bool,Date,Date)\n"
    "    CashFlows::npv(Leg const &,InterestRate const &,bool,Date)\n"
    "    CashFlows::npv(Leg const &,InterestRate const &,bool)\n"
    "    CashFlows::npv(Leg const &,Rate,DayCounter const &,Compounding,Frequency,bool,Date,Date)\n"
    "    CashFlows::npv(Leg const &,Rate,DayCounter const &,Compounding,Frequency,bool,Date)\n"
    "    CashFlows::npv(Leg const &,Rate,DayCounter const &,Compounding,Frequency,bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CashFlows_bps__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  bool arg3 ;
  Date *arg4 = 0 ;
  Date *arg5 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_bps",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_bps" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_bps" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_bps" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CashFlows_bps" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  {
    try {
      result = (Real)CashFlows_bps__SWIG_0((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2,arg3,(Date const &)*arg4,(Date const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_bps__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  bool arg3 ;
  Date *arg4 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_bps",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_bps" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_bps" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_bps" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  {
    try {
      result = (Real)CashFlows_bps__SWIG_0((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2,arg3,(Date const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_bps__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  bool arg3 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_bps",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_bps" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_bps" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)CashFlows_bps__SWIG_0((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_bps__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  bool arg3 ;
  Date *arg4 = 0 ;
  Date *arg5 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_bps",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_bps" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_bps" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_bps" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CashFlows_bps" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  {
    try {
      result = (Real)CashFlows_bps__SWIG_3((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,arg3,(Date const &)*arg4,(Date const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_bps__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  bool arg3 ;
  Date *arg4 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_bps",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_bps" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_bps" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_bps" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  {
    try {
      result = (Real)CashFlows_bps__SWIG_3((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,arg3,(Date const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_bps__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  bool arg3 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_bps",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_bps" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_bps" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)CashFlows_bps__SWIG_3((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_bps__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  bool arg3 ;
  Date arg4 ;
  Date arg5 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  void *argp5 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_bps",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_bps" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_bps" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_bps" "', argument " "4"" of type '" "Date""'"); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "4"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp4);
      arg4 = *temp;
      if (SWIG_IsNewObj(res4)) delete temp;
    }
  }
  {
    res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CashFlows_bps" "', argument " "5"" of type '" "Date""'"); 
    }  
    if (!argp5) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "5"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp5);
      arg5 = *temp;
      if (SWIG_IsNewObj(res5)) delete temp;
    }
  }
  {
    try {
      result = (Real)CashFlows::bps((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(InterestRate const &)*arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_bps__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  bool arg3 ;
  Date arg4 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_bps",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_bps" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_bps" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_bps" "', argument " "4"" of type '" "Date""'"); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "4"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp4);
      arg4 = *temp;
      if (SWIG_IsNewObj(res4)) delete temp;
    }
  }
  {
    try {
      result = (Real)CashFlows::bps((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(InterestRate const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_bps__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  bool arg3 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_bps",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_bps" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_bps" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)CashFlows::bps((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(InterestRate const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_bps__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  Date arg7 ;
  Date arg8 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_bps",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_bps" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_bps" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_bps" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_bps" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_bps" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CashFlows_bps" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CashFlows_bps" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  {
    try {
      result = (Real)CashFlows::bps((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_bps__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  Date arg7 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_bps",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_bps" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_bps" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_bps" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_bps" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_bps" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CashFlows_bps" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    try {
      result = (Real)CashFlows::bps((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_bps__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_bps",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_bps" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_bps" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_bps" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_bps" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_bps" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_bps" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    try {
      result = (Real)CashFlows::bps((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_bps(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[9] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 8) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CashFlows_bps__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CashFlows_bps__SWIG_5(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CashFlows_bps__SWIG_8(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_CashFlows_bps__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_CashFlows_bps__SWIG_7(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_CashFlows_bps__SWIG_4(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_CashFlows_bps__SWIG_6(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_CashFlows_bps__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_CashFlows_bps__SWIG_3(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_CashFlows_bps__SWIG_11(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_CashFlows_bps__SWIG_10(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_CashFlows_bps__SWIG_9(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CashFlows_bps'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CashFlows::bps(Leg const &,boost::shared_ptr< YieldTermStructure > const &,bool,Date const &,Date const &)\n"
    "    CashFlows::bps(Leg const &,boost::shared_ptr< YieldTermStructure > const &,bool,Date const &)\n"
    "    CashFlows::bps(Leg const &,boost::shared_ptr< YieldTermStructure > const &,bool)\n"
    "    CashFlows::bps(Leg const &,Handle< YieldTermStructure > const &,bool,Date const &,Date const &)\n"
    "    CashFlows::bps(Leg const &,Handle< YieldTermStructure > const &,bool,Date const &)\n"
    "    CashFlows::bps(Leg const &,Handle< YieldTermStructure > const &,bool)\n"
    "    CashFlows::bps(Leg const &,InterestRate const &,bool,Date,Date)\n"
    "    CashFlows::bps(Leg const &,InterestRate const &,bool,Date)\n"
    "    CashFlows::bps(Leg const &,InterestRate const &,bool)\n"
    "    CashFlows::bps(Leg const &,Rate,DayCounter const &,Compounding,Frequency,bool,Date,Date)\n"
    "    CashFlows::bps(Leg const &,Rate,DayCounter const &,Compounding,Frequency,bool,Date)\n"
    "    CashFlows::bps(Leg const &,Rate,DayCounter const &,Compounding,Frequency,bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CashFlows_atmRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  bool arg3 ;
  Date *arg4 = 0 ;
  Date *arg5 = 0 ;
  Real arg6 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_atmRate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_atmRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_atmRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_atmRate" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_atmRate" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_atmRate" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_atmRate" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_atmRate" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CashFlows_atmRate" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_atmRate" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_atmRate" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (Rate)CashFlows_atmRate__SWIG_0((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2,arg3,(Date const &)*arg4,(Date const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_atmRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  bool arg3 ;
  Date *arg4 = 0 ;
  Date *arg5 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_atmRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_atmRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_atmRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_atmRate" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_atmRate" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_atmRate" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_atmRate" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_atmRate" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CashFlows_atmRate" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_atmRate" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  {
    try {
      result = (Rate)CashFlows_atmRate__SWIG_0((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2,arg3,(Date const &)*arg4,(Date const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_atmRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  bool arg3 ;
  Date *arg4 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_atmRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_atmRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_atmRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_atmRate" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_atmRate" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_atmRate" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_atmRate" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_atmRate" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  {
    try {
      result = (Rate)CashFlows_atmRate__SWIG_0((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2,arg3,(Date const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_atmRate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  bool arg3 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_atmRate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_atmRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_atmRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_atmRate" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_atmRate" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_atmRate" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Rate)CashFlows_atmRate__SWIG_0((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_atmRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CashFlows_atmRate__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_CashFlows_atmRate__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_CashFlows_atmRate__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_CashFlows_atmRate__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CashFlows_atmRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CashFlows::atmRate(Leg const &,boost::shared_ptr< YieldTermStructure > const &,bool,Date const &,Date const &,Real)\n"
    "    CashFlows::atmRate(Leg const &,boost::shared_ptr< YieldTermStructure > const &,bool,Date const &,Date const &)\n"
    "    CashFlows::atmRate(Leg const &,boost::shared_ptr< YieldTermStructure > const &,bool,Date const &)\n"
    "    CashFlows::CashFlows_atmRate__SWIG_0(Leg const &,boost::shared_ptr< YieldTermStructure > const &,bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CashFlows_yieldRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Real arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  Date arg7 ;
  Date arg8 ;
  Real arg9 ;
  Size arg10 ;
  Rate arg11 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  size_t val10 ;
  int ecode10 = 0 ;
  double val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_yieldRate",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_yieldRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_yieldRate" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_yieldRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_yieldRate" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_yieldRate" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_yieldRate" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CashFlows_yieldRate" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CashFlows_yieldRate" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "CashFlows_yieldRate" "', argument " "9"" of type '" "Real""'");
  } 
  arg9 = static_cast< Real >(val9);
  ecode10 = SWIG_AsVal_size_t(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "CashFlows_yieldRate" "', argument " "10"" of type '" "Size""'");
  } 
  arg10 = static_cast< Size >(val10);
  ecode11 = SWIG_AsVal_double(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "CashFlows_yieldRate" "', argument " "11"" of type '" "Rate""'");
  } 
  arg11 = static_cast< Rate >(val11);
  {
    try {
      result = (Rate)CashFlows::yield((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_yieldRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Real arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  Date arg7 ;
  Date arg8 ;
  Real arg9 ;
  Size arg10 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  size_t val10 ;
  int ecode10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_yieldRate",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_yieldRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_yieldRate" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_yieldRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_yieldRate" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_yieldRate" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_yieldRate" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CashFlows_yieldRate" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CashFlows_yieldRate" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "CashFlows_yieldRate" "', argument " "9"" of type '" "Real""'");
  } 
  arg9 = static_cast< Real >(val9);
  ecode10 = SWIG_AsVal_size_t(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "CashFlows_yieldRate" "', argument " "10"" of type '" "Size""'");
  } 
  arg10 = static_cast< Size >(val10);
  {
    try {
      result = (Rate)CashFlows::yield((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_yieldRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Real arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  Date arg7 ;
  Date arg8 ;
  Real arg9 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_yieldRate",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_yieldRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_yieldRate" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_yieldRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_yieldRate" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_yieldRate" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_yieldRate" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CashFlows_yieldRate" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CashFlows_yieldRate" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "CashFlows_yieldRate" "', argument " "9"" of type '" "Real""'");
  } 
  arg9 = static_cast< Real >(val9);
  {
    try {
      result = (Rate)CashFlows::yield((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_yieldRate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Real arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  Date arg7 ;
  Date arg8 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_yieldRate",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_yieldRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_yieldRate" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_yieldRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_yieldRate" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_yieldRate" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_yieldRate" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CashFlows_yieldRate" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CashFlows_yieldRate" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  {
    try {
      result = (Rate)CashFlows::yield((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_yieldRate__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Real arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  Date arg7 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_yieldRate",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_yieldRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_yieldRate" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_yieldRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_yieldRate" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_yieldRate" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_yieldRate" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CashFlows_yieldRate" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    try {
      result = (Rate)CashFlows::yield((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_yieldRate__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Real arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_yieldRate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_yieldRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_yieldRate" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_yieldRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_yieldRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_yieldRate" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_yieldRate" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_yieldRate" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    try {
      result = (Rate)CashFlows::yield((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_yieldRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[12] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 11) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_CashFlows_yieldRate__SWIG_5(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_CashFlows_yieldRate__SWIG_4(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_CashFlows_yieldRate__SWIG_3(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_CashFlows_yieldRate__SWIG_2(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        _v = (PyInt_Check(argv[9]) || PyLong_Check(argv[9])) ? 1 : 0;
                      }
                      if (_v) {
                        return _wrap_CashFlows_yieldRate__SWIG_1(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        _v = (PyInt_Check(argv[9]) || PyLong_Check(argv[9])) ? 1 : 0;
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_double(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          return _wrap_CashFlows_yieldRate__SWIG_0(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CashFlows_yieldRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CashFlows::yield(Leg const &,Real,DayCounter const &,Compounding,Frequency,bool,Date,Date,Real,Size,Rate)\n"
    "    CashFlows::yield(Leg const &,Real,DayCounter const &,Compounding,Frequency,bool,Date,Date,Real,Size)\n"
    "    CashFlows::yield(Leg const &,Real,DayCounter const &,Compounding,Frequency,bool,Date,Date,Real)\n"
    "    CashFlows::yield(Leg const &,Real,DayCounter const &,Compounding,Frequency,bool,Date,Date)\n"
    "    CashFlows::yield(Leg const &,Real,DayCounter const &,Compounding,Frequency,bool,Date)\n"
    "    CashFlows::yield(Leg const &,Real,DayCounter const &,Compounding,Frequency,bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CashFlows_duration__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  Duration::Type arg3 ;
  bool arg4 ;
  Date arg5 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  void *argp5 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_duration",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_duration" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_duration" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_duration" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_duration" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_duration" "', argument " "3"" of type '" "Duration::Type""'");
  } 
  arg3 = static_cast< Duration::Type >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_duration" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CashFlows_duration" "', argument " "5"" of type '" "Date""'"); 
    }  
    if (!argp5) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_duration" "', argument " "5"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp5);
      arg5 = *temp;
      if (SWIG_IsNewObj(res5)) delete temp;
    }
  }
  {
    try {
      result = (Time)CashFlows::duration((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(InterestRate const &)*arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_duration__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  Duration::Type arg3 ;
  bool arg4 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_duration",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_duration" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_duration" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_duration" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_duration" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_duration" "', argument " "3"" of type '" "Duration::Type""'");
  } 
  arg3 = static_cast< Duration::Type >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_duration" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Time)CashFlows::duration((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(InterestRate const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_duration__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Duration::Type arg6 ;
  bool arg7 ;
  Date arg8 ;
  Date arg9 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  void *argp9 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_duration",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_duration" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_duration" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_duration" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_duration" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_duration" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_duration" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_duration" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_duration" "', argument " "6"" of type '" "Duration::Type""'");
  } 
  arg6 = static_cast< Duration::Type >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CashFlows_duration" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CashFlows_duration" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_duration" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  {
    res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "CashFlows_duration" "', argument " "9"" of type '" "Date""'"); 
    }  
    if (!argp9) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_duration" "', argument " "9"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp9);
      arg9 = *temp;
      if (SWIG_IsNewObj(res9)) delete temp;
    }
  }
  {
    try {
      result = (Time)CashFlows::duration((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_duration__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Duration::Type arg6 ;
  bool arg7 ;
  Date arg8 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_duration",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_duration" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_duration" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_duration" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_duration" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_duration" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_duration" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_duration" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_duration" "', argument " "6"" of type '" "Duration::Type""'");
  } 
  arg6 = static_cast< Duration::Type >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CashFlows_duration" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CashFlows_duration" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_duration" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  {
    try {
      result = (Time)CashFlows::duration((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_duration__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Duration::Type arg6 ;
  bool arg7 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_duration",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_duration" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_duration" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_duration" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_duration" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_duration" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_duration" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_duration" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_duration" "', argument " "6"" of type '" "Duration::Type""'");
  } 
  arg6 = static_cast< Duration::Type >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CashFlows_duration" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  {
    try {
      result = (Time)CashFlows::duration((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_duration(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_CashFlows_duration__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_CashFlows_duration__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_CashFlows_duration__SWIG_4(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_CashFlows_duration__SWIG_3(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Date, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap_CashFlows_duration__SWIG_2(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CashFlows_duration'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CashFlows::duration(Leg const &,InterestRate const &,Duration::Type,bool,Date)\n"
    "    CashFlows::duration(Leg const &,InterestRate const &,Duration::Type,bool)\n"
    "    CashFlows::duration(Leg const &,Rate,DayCounter const &,Compounding,Frequency,Duration::Type,bool,Date,Date)\n"
    "    CashFlows::duration(Leg const &,Rate,DayCounter const &,Compounding,Frequency,Duration::Type,bool,Date)\n"
    "    CashFlows::duration(Leg const &,Rate,DayCounter const &,Compounding,Frequency,Duration::Type,bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CashFlows_convexity__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  bool arg3 ;
  Date arg4 ;
  Date arg5 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  void *argp5 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_convexity",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_convexity" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_convexity" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_convexity" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_convexity" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_convexity" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_convexity" "', argument " "4"" of type '" "Date""'"); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_convexity" "', argument " "4"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp4);
      arg4 = *temp;
      if (SWIG_IsNewObj(res4)) delete temp;
    }
  }
  {
    res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CashFlows_convexity" "', argument " "5"" of type '" "Date""'"); 
    }  
    if (!argp5) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_convexity" "', argument " "5"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp5);
      arg5 = *temp;
      if (SWIG_IsNewObj(res5)) delete temp;
    }
  }
  {
    try {
      result = (Real)CashFlows::convexity((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(InterestRate const &)*arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_convexity__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  bool arg3 ;
  Date arg4 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_convexity",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_convexity" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_convexity" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_convexity" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_convexity" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_convexity" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_convexity" "', argument " "4"" of type '" "Date""'"); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_convexity" "', argument " "4"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp4);
      arg4 = *temp;
      if (SWIG_IsNewObj(res4)) delete temp;
    }
  }
  {
    try {
      result = (Real)CashFlows::convexity((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(InterestRate const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_convexity__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  bool arg3 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_convexity",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_convexity" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_convexity" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_convexity" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_convexity" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_convexity" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)CashFlows::convexity((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(InterestRate const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_convexity__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  Date arg7 ;
  Date arg8 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_convexity",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_convexity" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_convexity" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_convexity" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_convexity" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_convexity" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_convexity" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_convexity" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_convexity" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CashFlows_convexity" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_convexity" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CashFlows_convexity" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_convexity" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  {
    try {
      result = (Real)CashFlows::convexity((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_convexity__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  Date arg7 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_convexity",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_convexity" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_convexity" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_convexity" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_convexity" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_convexity" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_convexity" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_convexity" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_convexity" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CashFlows_convexity" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_convexity" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    try {
      result = (Real)CashFlows::convexity((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_convexity__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_convexity",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_convexity" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_convexity" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_convexity" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_convexity" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_convexity" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_convexity" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_convexity" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_convexity" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    try {
      result = (Real)CashFlows::convexity((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_convexity(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[9] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 8) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CashFlows_convexity__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_CashFlows_convexity__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_CashFlows_convexity__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_CashFlows_convexity__SWIG_5(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_CashFlows_convexity__SWIG_4(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_CashFlows_convexity__SWIG_3(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CashFlows_convexity'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CashFlows::convexity(Leg const &,InterestRate const &,bool,Date,Date)\n"
    "    CashFlows::convexity(Leg const &,InterestRate const &,bool,Date)\n"
    "    CashFlows::convexity(Leg const &,InterestRate const &,bool)\n"
    "    CashFlows::convexity(Leg const &,Rate,DayCounter const &,Compounding,Frequency,bool,Date,Date)\n"
    "    CashFlows::convexity(Leg const &,Rate,DayCounter const &,Compounding,Frequency,bool,Date)\n"
    "    CashFlows::convexity(Leg const &,Rate,DayCounter const &,Compounding,Frequency,bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CashFlows_basisPointValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  bool arg3 ;
  Date arg4 ;
  Date arg5 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  void *argp5 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_basisPointValue",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_basisPointValue" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_basisPointValue" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_basisPointValue" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_basisPointValue" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_basisPointValue" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_basisPointValue" "', argument " "4"" of type '" "Date""'"); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_basisPointValue" "', argument " "4"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp4);
      arg4 = *temp;
      if (SWIG_IsNewObj(res4)) delete temp;
    }
  }
  {
    res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CashFlows_basisPointValue" "', argument " "5"" of type '" "Date""'"); 
    }  
    if (!argp5) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_basisPointValue" "', argument " "5"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp5);
      arg5 = *temp;
      if (SWIG_IsNewObj(res5)) delete temp;
    }
  }
  {
    try {
      result = (Real)CashFlows::basisPointValue((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(InterestRate const &)*arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_basisPointValue__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  bool arg3 ;
  Date arg4 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_basisPointValue",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_basisPointValue" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_basisPointValue" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_basisPointValue" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_basisPointValue" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_basisPointValue" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_basisPointValue" "', argument " "4"" of type '" "Date""'"); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_basisPointValue" "', argument " "4"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp4);
      arg4 = *temp;
      if (SWIG_IsNewObj(res4)) delete temp;
    }
  }
  {
    try {
      result = (Real)CashFlows::basisPointValue((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(InterestRate const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_basisPointValue__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  bool arg3 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_basisPointValue",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_basisPointValue" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_basisPointValue" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CashFlows_basisPointValue" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_basisPointValue" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CashFlows_basisPointValue" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)CashFlows::basisPointValue((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(InterestRate const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_basisPointValue__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  Date arg7 ;
  Date arg8 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_basisPointValue",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_basisPointValue" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_basisPointValue" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_basisPointValue" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_basisPointValue" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_basisPointValue" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_basisPointValue" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_basisPointValue" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_basisPointValue" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CashFlows_basisPointValue" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_basisPointValue" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CashFlows_basisPointValue" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_basisPointValue" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  {
    try {
      result = (Real)CashFlows::basisPointValue((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_basisPointValue__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  Date arg7 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_basisPointValue",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_basisPointValue" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_basisPointValue" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_basisPointValue" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_basisPointValue" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_basisPointValue" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_basisPointValue" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_basisPointValue" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_basisPointValue" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CashFlows_basisPointValue" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_basisPointValue" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    try {
      result = (Real)CashFlows::basisPointValue((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_basisPointValue__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  bool arg6 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_basisPointValue",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_basisPointValue" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_basisPointValue" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_basisPointValue" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_basisPointValue" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_basisPointValue" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CashFlows_basisPointValue" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_basisPointValue" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_basisPointValue" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    try {
      result = (Real)CashFlows::basisPointValue((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_basisPointValue(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[9] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 8) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CashFlows_basisPointValue__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_CashFlows_basisPointValue__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_CashFlows_basisPointValue__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_CashFlows_basisPointValue__SWIG_5(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_CashFlows_basisPointValue__SWIG_4(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_CashFlows_basisPointValue__SWIG_3(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CashFlows_basisPointValue'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CashFlows::basisPointValue(Leg const &,InterestRate const &,bool,Date,Date)\n"
    "    CashFlows::basisPointValue(Leg const &,InterestRate const &,bool,Date)\n"
    "    CashFlows::basisPointValue(Leg const &,InterestRate const &,bool)\n"
    "    CashFlows::basisPointValue(Leg const &,Rate,DayCounter const &,Compounding,Frequency,bool,Date,Date)\n"
    "    CashFlows::basisPointValue(Leg const &,Rate,DayCounter const &,Compounding,Frequency,bool,Date)\n"
    "    CashFlows::basisPointValue(Leg const &,Rate,DayCounter const &,Compounding,Frequency,bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CashFlows_zSpread__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Real arg2 ;
  boost::shared_ptr< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  bool arg7 ;
  Date arg8 ;
  Date arg9 ;
  Real arg10 ;
  Size arg11 ;
  Rate arg12 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  void *argp9 ;
  int res9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  size_t val11 ;
  int ecode11 = 0 ;
  double val12 ;
  int ecode12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  Spread result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_zSpread",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_zSpread" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_zSpread" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_zSpread" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_zSpread" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CashFlows_zSpread" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CashFlows_zSpread" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  {
    res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "CashFlows_zSpread" "', argument " "9"" of type '" "Date""'"); 
    }  
    if (!argp9) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "9"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp9);
      arg9 = *temp;
      if (SWIG_IsNewObj(res9)) delete temp;
    }
  }
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "CashFlows_zSpread" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_size_t(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "CashFlows_zSpread" "', argument " "11"" of type '" "Size""'");
  } 
  arg11 = static_cast< Size >(val11);
  ecode12 = SWIG_AsVal_double(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "CashFlows_zSpread" "', argument " "12"" of type '" "Rate""'");
  } 
  arg12 = static_cast< Rate >(val12);
  {
    try {
      result = (Spread)CashFlows::zSpread((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(boost::shared_ptr< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_zSpread__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Real arg2 ;
  boost::shared_ptr< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  bool arg7 ;
  Date arg8 ;
  Date arg9 ;
  Real arg10 ;
  Size arg11 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  void *argp9 ;
  int res9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  size_t val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  Spread result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_zSpread",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_zSpread" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_zSpread" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_zSpread" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_zSpread" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CashFlows_zSpread" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CashFlows_zSpread" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  {
    res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "CashFlows_zSpread" "', argument " "9"" of type '" "Date""'"); 
    }  
    if (!argp9) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "9"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp9);
      arg9 = *temp;
      if (SWIG_IsNewObj(res9)) delete temp;
    }
  }
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "CashFlows_zSpread" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_size_t(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "CashFlows_zSpread" "', argument " "11"" of type '" "Size""'");
  } 
  arg11 = static_cast< Size >(val11);
  {
    try {
      result = (Spread)CashFlows::zSpread((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(boost::shared_ptr< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_zSpread__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Real arg2 ;
  boost::shared_ptr< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  bool arg7 ;
  Date arg8 ;
  Date arg9 ;
  Real arg10 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  void *argp9 ;
  int res9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  Spread result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_zSpread",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_zSpread" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_zSpread" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_zSpread" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_zSpread" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CashFlows_zSpread" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CashFlows_zSpread" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  {
    res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "CashFlows_zSpread" "', argument " "9"" of type '" "Date""'"); 
    }  
    if (!argp9) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "9"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp9);
      arg9 = *temp;
      if (SWIG_IsNewObj(res9)) delete temp;
    }
  }
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "CashFlows_zSpread" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  {
    try {
      result = (Spread)CashFlows::zSpread((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(boost::shared_ptr< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8,arg9,arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_zSpread__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Real arg2 ;
  boost::shared_ptr< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  bool arg7 ;
  Date arg8 ;
  Date arg9 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  void *argp9 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Spread result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_zSpread",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_zSpread" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_zSpread" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_zSpread" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_zSpread" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CashFlows_zSpread" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CashFlows_zSpread" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  {
    res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "CashFlows_zSpread" "', argument " "9"" of type '" "Date""'"); 
    }  
    if (!argp9) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "9"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp9);
      arg9 = *temp;
      if (SWIG_IsNewObj(res9)) delete temp;
    }
  }
  {
    try {
      result = (Spread)CashFlows::zSpread((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(boost::shared_ptr< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_zSpread__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Real arg2 ;
  boost::shared_ptr< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  bool arg7 ;
  Date arg8 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Spread result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_zSpread",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_zSpread" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_zSpread" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_zSpread" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_zSpread" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CashFlows_zSpread" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CashFlows_zSpread" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  {
    try {
      result = (Spread)CashFlows::zSpread((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(boost::shared_ptr< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_zSpread__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Leg *arg1 = 0 ;
  Real arg2 ;
  boost::shared_ptr< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  bool arg7 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Spread result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CashFlows_zSpread",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CashFlows_zSpread" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "1"" of type '" "Leg const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CashFlows_zSpread" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CashFlows_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CashFlows_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CashFlows_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CashFlows_zSpread" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CashFlows_zSpread" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CashFlows_zSpread" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  {
    try {
      result = (Spread)CashFlows::zSpread((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,arg2,(boost::shared_ptr< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CashFlows_zSpread(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[13] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 12) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 7) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_CashFlows_zSpread__SWIG_5(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_CashFlows_zSpread__SWIG_4(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Date, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap_CashFlows_zSpread__SWIG_3(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Date, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        return _wrap_CashFlows_zSpread__SWIG_2(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Date, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          _v = (PyInt_Check(argv[10]) || PyLong_Check(argv[10])) ? 1 : 0;
                        }
                        if (_v) {
                          return _wrap_CashFlows_zSpread__SWIG_1(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Date, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          _v = (PyInt_Check(argv[10]) || PyLong_Check(argv[10])) ? 1 : 0;
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_double(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            return _wrap_CashFlows_zSpread__SWIG_0(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CashFlows_zSpread'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CashFlows::zSpread(Leg const &,Real,boost::shared_ptr< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency,bool,Date,Date,Real,Size,Rate)\n"
    "    CashFlows::zSpread(Leg const &,Real,boost::shared_ptr< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency,bool,Date,Date,Real,Size)\n"
    "    CashFlows::zSpread(Leg const &,Real,boost::shared_ptr< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency,bool,Date,Date,Real)\n"
    "    CashFlows::zSpread(Leg const &,Real,boost::shared_ptr< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency,bool,Date,Date)\n"
    "    CashFlows::zSpread(Leg const &,Real,boost::shared_ptr< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency,bool,Date)\n"
    "    CashFlows::zSpread(Leg const &,Real,boost::shared_ptr< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency,bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_CashFlows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CashFlows *arg1 = (CashFlows *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CashFlows",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CashFlows, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CashFlows" "', argument " "1"" of type '" "CashFlows *""'"); 
  }
  arg1 = reinterpret_cast< CashFlows * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CashFlows_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CashFlows, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_CalibrationHelper___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibrationHelper > *arg1 = (boost::shared_ptr< CalibrationHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  CalibrationHelper *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelper___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelper___deref__" "', argument " "1"" of type '" "boost::shared_ptr< CalibrationHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibrationHelper > * >(argp1);
  {
    try {
      result = (CalibrationHelper *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CalibrationHelper, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelper___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibrationHelper > *arg1 = (boost::shared_ptr< CalibrationHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelper___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelper___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< CalibrationHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibrationHelper > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_CalibrationHelper_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelper___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibrationHelper > *arg1 = (boost::shared_ptr< CalibrationHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelper___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelper___bool__" "', argument " "1"" of type '" "boost::shared_ptr< CalibrationHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibrationHelper > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_CalibrationHelper_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelper_swaptionExpiryDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibrationHelper > *arg1 = (boost::shared_ptr< CalibrationHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelper_swaptionExpiryDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelper_swaptionExpiryDate" "', argument " "1"" of type '" "boost::shared_ptr< CalibrationHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibrationHelper > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_CalibrationHelper_Sg__swaptionExpiryDate(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelper_swaptionStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibrationHelper > *arg1 = (boost::shared_ptr< CalibrationHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelper_swaptionStrike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelper_swaptionStrike" "', argument " "1"" of type '" "boost::shared_ptr< CalibrationHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibrationHelper > * >(argp1);
  {
    try {
      result = (Real)boost_shared_ptr_Sl_CalibrationHelper_Sg__swaptionStrike(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelper_swaptionNominal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibrationHelper > *arg1 = (boost::shared_ptr< CalibrationHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelper_swaptionNominal",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelper_swaptionNominal" "', argument " "1"" of type '" "boost::shared_ptr< CalibrationHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibrationHelper > * >(argp1);
  {
    try {
      result = (Real)boost_shared_ptr_Sl_CalibrationHelper_Sg__swaptionNominal(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelper_swaptionMaturityDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibrationHelper > *arg1 = (boost::shared_ptr< CalibrationHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelper_swaptionMaturityDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelper_swaptionMaturityDate" "', argument " "1"" of type '" "boost::shared_ptr< CalibrationHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibrationHelper > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_CalibrationHelper_Sg__swaptionMaturityDate(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CalibrationHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibrationHelper > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CalibrationHelper",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< CalibrationHelper > *)new boost::shared_ptr< CalibrationHelper >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CalibrationHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibrationHelper > *arg1 = (boost::shared_ptr< CalibrationHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CalibrationHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CalibrationHelper" "', argument " "1"" of type '" "boost::shared_ptr< CalibrationHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibrationHelper > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelper_setPricingEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibrationHelper > *arg1 = (boost::shared_ptr< CalibrationHelper > *) 0 ;
  boost::shared_ptr< PricingEngine > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelper_setPricingEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelper_setPricingEngine" "', argument " "1"" of type '" "boost::shared_ptr< CalibrationHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibrationHelper > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_PricingEngine_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CalibrationHelper_setPricingEngine" "', argument " "2"" of type '" "boost::shared_ptr< PricingEngine > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibrationHelper_setPricingEngine" "', argument " "2"" of type '" "boost::shared_ptr< PricingEngine > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< PricingEngine > * >(argp2);
  {
    try {
      (*arg1)->setPricingEngine((boost::shared_ptr< PricingEngine > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelper_marketValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibrationHelper > *arg1 = (boost::shared_ptr< CalibrationHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelper_marketValue",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelper_marketValue" "', argument " "1"" of type '" "boost::shared_ptr< CalibrationHelper > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibrationHelper > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->marketValue();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelper_modelValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibrationHelper > *arg1 = (boost::shared_ptr< CalibrationHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelper_modelValue",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelper_modelValue" "', argument " "1"" of type '" "boost::shared_ptr< CalibrationHelper > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibrationHelper > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->modelValue();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelper_calibrationError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibrationHelper > *arg1 = (boost::shared_ptr< CalibrationHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelper_calibrationError",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelper_calibrationError" "', argument " "1"" of type '" "boost::shared_ptr< CalibrationHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibrationHelper > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->calibrationError();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelper_impliedVolatility(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibrationHelper > *arg1 = (boost::shared_ptr< CalibrationHelper > *) 0 ;
  Real arg2 ;
  Real arg3 ;
  Size arg4 ;
  Volatility arg5 ;
  Volatility arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelper_impliedVolatility",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelper_impliedVolatility" "', argument " "1"" of type '" "boost::shared_ptr< CalibrationHelper > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibrationHelper > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalibrationHelper_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CalibrationHelper_impliedVolatility" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CalibrationHelper_impliedVolatility" "', argument " "4"" of type '" "Size""'");
  } 
  arg4 = static_cast< Size >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CalibrationHelper_impliedVolatility" "', argument " "5"" of type '" "Volatility""'");
  } 
  arg5 = static_cast< Volatility >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CalibrationHelper_impliedVolatility" "', argument " "6"" of type '" "Volatility""'");
  } 
  arg6 = static_cast< Volatility >(val6);
  {
    try {
      result = (Volatility)(*arg1)->impliedVolatility(arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelper_blackPrice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibrationHelper > *arg1 = (boost::shared_ptr< CalibrationHelper > *) 0 ;
  Volatility arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelper_blackPrice",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelper_blackPrice" "', argument " "1"" of type '" "boost::shared_ptr< CalibrationHelper > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibrationHelper > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalibrationHelper_blackPrice" "', argument " "2"" of type '" "Volatility""'");
  } 
  arg2 = static_cast< Volatility >(val2);
  {
    try {
      result = (Real)(*arg1)->blackPrice(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelper_volatility(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibrationHelper > *arg1 = (boost::shared_ptr< CalibrationHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< Quote > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelper_volatility",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelper_volatility" "', argument " "1"" of type '" "boost::shared_ptr< CalibrationHelper > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibrationHelper > * >(argp1);
  {
    try {
      result = (*arg1)->volatility();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Handle< Quote >(static_cast< const Handle< Quote >& >(result))), SWIGTYPE_p_HandleT_Quote_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelper_volatilityType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibrationHelper > *arg1 = (boost::shared_ptr< CalibrationHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  VolatilityType result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelper_volatilityType",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelper_volatilityType" "', argument " "1"" of type '" "boost::shared_ptr< CalibrationHelper > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibrationHelper > * >(argp1);
  {
    try {
      result = (VolatilityType)(*arg1)->volatilityType();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CalibrationHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SwaptionHelper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  Period *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  CalibrationHelper::CalibrationErrorType arg9 ;
  Real arg10 ;
  Real arg11 ;
  VolatilityType arg12 ;
  Real arg13 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  double val11 ;
  int ecode11 = 0 ;
  int val12 ;
  int ecode12 = 0 ;
  double val13 ;
  int ecode13 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  SwaptionHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionHelper",13,13,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SwaptionHelper" "', argument " "9"" of type '" "CalibrationHelper::CalibrationErrorType""'");
  } 
  arg9 = static_cast< CalibrationHelper::CalibrationErrorType >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_SwaptionHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_double(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwaptionHelper" "', argument " "11"" of type '" "Real""'");
  } 
  arg11 = static_cast< Real >(val11);
  ecode12 = SWIG_AsVal_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_SwaptionHelper" "', argument " "12"" of type '" "VolatilityType""'");
  } 
  arg12 = static_cast< VolatilityType >(val12);
  ecode13 = SWIG_AsVal_double(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_SwaptionHelper" "', argument " "13"" of type '" "Real""'");
  } 
  arg13 = static_cast< Real >(val13);
  {
    try {
      result = (SwaptionHelperPtr *)new_SwaptionHelperPtr__SWIG_0((Period const &)*arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(IborIndexPtr const &)*arg4,(Period const &)*arg5,(DayCounter const &)*arg6,(DayCounter const &)*arg7,(Handle< YieldTermStructure > const &)*arg8,arg9,arg10,arg11,arg12,arg13);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionHelper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  Period *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  CalibrationHelper::CalibrationErrorType arg9 ;
  Real arg10 ;
  Real arg11 ;
  VolatilityType arg12 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  double val11 ;
  int ecode11 = 0 ;
  int val12 ;
  int ecode12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  SwaptionHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionHelper",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SwaptionHelper" "', argument " "9"" of type '" "CalibrationHelper::CalibrationErrorType""'");
  } 
  arg9 = static_cast< CalibrationHelper::CalibrationErrorType >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_SwaptionHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_double(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwaptionHelper" "', argument " "11"" of type '" "Real""'");
  } 
  arg11 = static_cast< Real >(val11);
  ecode12 = SWIG_AsVal_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_SwaptionHelper" "', argument " "12"" of type '" "VolatilityType""'");
  } 
  arg12 = static_cast< VolatilityType >(val12);
  {
    try {
      result = (SwaptionHelperPtr *)new_SwaptionHelperPtr__SWIG_0((Period const &)*arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(IborIndexPtr const &)*arg4,(Period const &)*arg5,(DayCounter const &)*arg6,(DayCounter const &)*arg7,(Handle< YieldTermStructure > const &)*arg8,arg9,arg10,arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionHelper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  Period *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  CalibrationHelper::CalibrationErrorType arg9 ;
  Real arg10 ;
  Real arg11 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  double val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  SwaptionHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionHelper",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SwaptionHelper" "', argument " "9"" of type '" "CalibrationHelper::CalibrationErrorType""'");
  } 
  arg9 = static_cast< CalibrationHelper::CalibrationErrorType >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_SwaptionHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_double(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwaptionHelper" "', argument " "11"" of type '" "Real""'");
  } 
  arg11 = static_cast< Real >(val11);
  {
    try {
      result = (SwaptionHelperPtr *)new_SwaptionHelperPtr__SWIG_0((Period const &)*arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(IborIndexPtr const &)*arg4,(Period const &)*arg5,(DayCounter const &)*arg6,(DayCounter const &)*arg7,(Handle< YieldTermStructure > const &)*arg8,arg9,arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionHelper__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  Period *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  CalibrationHelper::CalibrationErrorType arg9 ;
  Real arg10 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  SwaptionHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionHelper",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SwaptionHelper" "', argument " "9"" of type '" "CalibrationHelper::CalibrationErrorType""'");
  } 
  arg9 = static_cast< CalibrationHelper::CalibrationErrorType >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_SwaptionHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  {
    try {
      result = (SwaptionHelperPtr *)new_SwaptionHelperPtr__SWIG_0((Period const &)*arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(IborIndexPtr const &)*arg4,(Period const &)*arg5,(DayCounter const &)*arg6,(DayCounter const &)*arg7,(Handle< YieldTermStructure > const &)*arg8,arg9,arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionHelper__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  Period *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  CalibrationHelper::CalibrationErrorType arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  SwaptionHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionHelper",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SwaptionHelper" "', argument " "9"" of type '" "CalibrationHelper::CalibrationErrorType""'");
  } 
  arg9 = static_cast< CalibrationHelper::CalibrationErrorType >(val9);
  {
    try {
      result = (SwaptionHelperPtr *)new_SwaptionHelperPtr__SWIG_0((Period const &)*arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(IborIndexPtr const &)*arg4,(Period const &)*arg5,(DayCounter const &)*arg6,(DayCounter const &)*arg7,(Handle< YieldTermStructure > const &)*arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionHelper__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  Period *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  SwaptionHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionHelper",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  {
    try {
      result = (SwaptionHelperPtr *)new_SwaptionHelperPtr__SWIG_0((Period const &)*arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(IborIndexPtr const &)*arg4,(Period const &)*arg5,(DayCounter const &)*arg6,(DayCounter const &)*arg7,(Handle< YieldTermStructure > const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionHelper__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  Period *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  CalibrationHelper::CalibrationErrorType arg9 ;
  Real arg10 ;
  Real arg11 ;
  VolatilityType arg12 ;
  Real arg13 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  double val11 ;
  int ecode11 = 0 ;
  int val12 ;
  int ecode12 = 0 ;
  double val13 ;
  int ecode13 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  SwaptionHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionHelper",13,13,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SwaptionHelper" "', argument " "9"" of type '" "CalibrationHelper::CalibrationErrorType""'");
  } 
  arg9 = static_cast< CalibrationHelper::CalibrationErrorType >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_SwaptionHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_double(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwaptionHelper" "', argument " "11"" of type '" "Real""'");
  } 
  arg11 = static_cast< Real >(val11);
  ecode12 = SWIG_AsVal_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_SwaptionHelper" "', argument " "12"" of type '" "VolatilityType""'");
  } 
  arg12 = static_cast< VolatilityType >(val12);
  ecode13 = SWIG_AsVal_double(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_SwaptionHelper" "', argument " "13"" of type '" "Real""'");
  } 
  arg13 = static_cast< Real >(val13);
  {
    try {
      result = (SwaptionHelperPtr *)new_SwaptionHelperPtr__SWIG_6((Date const &)*arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(IborIndexPtr const &)*arg4,(Period const &)*arg5,(DayCounter const &)*arg6,(DayCounter const &)*arg7,(Handle< YieldTermStructure > const &)*arg8,arg9,arg10,arg11,arg12,arg13);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionHelper__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  Period *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  CalibrationHelper::CalibrationErrorType arg9 ;
  Real arg10 ;
  Real arg11 ;
  VolatilityType arg12 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  double val11 ;
  int ecode11 = 0 ;
  int val12 ;
  int ecode12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  SwaptionHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionHelper",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SwaptionHelper" "', argument " "9"" of type '" "CalibrationHelper::CalibrationErrorType""'");
  } 
  arg9 = static_cast< CalibrationHelper::CalibrationErrorType >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_SwaptionHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_double(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwaptionHelper" "', argument " "11"" of type '" "Real""'");
  } 
  arg11 = static_cast< Real >(val11);
  ecode12 = SWIG_AsVal_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_SwaptionHelper" "', argument " "12"" of type '" "VolatilityType""'");
  } 
  arg12 = static_cast< VolatilityType >(val12);
  {
    try {
      result = (SwaptionHelperPtr *)new_SwaptionHelperPtr__SWIG_6((Date const &)*arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(IborIndexPtr const &)*arg4,(Period const &)*arg5,(DayCounter const &)*arg6,(DayCounter const &)*arg7,(Handle< YieldTermStructure > const &)*arg8,arg9,arg10,arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionHelper__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  Period *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  CalibrationHelper::CalibrationErrorType arg9 ;
  Real arg10 ;
  Real arg11 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  double val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  SwaptionHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionHelper",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SwaptionHelper" "', argument " "9"" of type '" "CalibrationHelper::CalibrationErrorType""'");
  } 
  arg9 = static_cast< CalibrationHelper::CalibrationErrorType >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_SwaptionHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_double(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwaptionHelper" "', argument " "11"" of type '" "Real""'");
  } 
  arg11 = static_cast< Real >(val11);
  {
    try {
      result = (SwaptionHelperPtr *)new_SwaptionHelperPtr__SWIG_6((Date const &)*arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(IborIndexPtr const &)*arg4,(Period const &)*arg5,(DayCounter const &)*arg6,(DayCounter const &)*arg7,(Handle< YieldTermStructure > const &)*arg8,arg9,arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionHelper__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  Period *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  CalibrationHelper::CalibrationErrorType arg9 ;
  Real arg10 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  SwaptionHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionHelper",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SwaptionHelper" "', argument " "9"" of type '" "CalibrationHelper::CalibrationErrorType""'");
  } 
  arg9 = static_cast< CalibrationHelper::CalibrationErrorType >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_SwaptionHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  {
    try {
      result = (SwaptionHelperPtr *)new_SwaptionHelperPtr__SWIG_6((Date const &)*arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(IborIndexPtr const &)*arg4,(Period const &)*arg5,(DayCounter const &)*arg6,(DayCounter const &)*arg7,(Handle< YieldTermStructure > const &)*arg8,arg9,arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionHelper__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  Period *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  CalibrationHelper::CalibrationErrorType arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  SwaptionHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionHelper",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SwaptionHelper" "', argument " "9"" of type '" "CalibrationHelper::CalibrationErrorType""'");
  } 
  arg9 = static_cast< CalibrationHelper::CalibrationErrorType >(val9);
  {
    try {
      result = (SwaptionHelperPtr *)new_SwaptionHelperPtr__SWIG_6((Date const &)*arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(IborIndexPtr const &)*arg4,(Period const &)*arg5,(DayCounter const &)*arg6,(DayCounter const &)*arg7,(Handle< YieldTermStructure > const &)*arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionHelper__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  Period *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  SwaptionHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionHelper",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  {
    try {
      result = (SwaptionHelperPtr *)new_SwaptionHelperPtr__SWIG_6((Date const &)*arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(IborIndexPtr const &)*arg4,(Period const &)*arg5,(DayCounter const &)*arg6,(DayCounter const &)*arg7,(Handle< YieldTermStructure > const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionHelper__SWIG_12(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Date *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  Period *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  CalibrationHelper::CalibrationErrorType arg9 ;
  Real arg10 ;
  Real arg11 ;
  VolatilityType arg12 ;
  Real arg13 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  double val11 ;
  int ecode11 = 0 ;
  int val12 ;
  int ecode12 = 0 ;
  double val13 ;
  int ecode13 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  SwaptionHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionHelper",13,13,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SwaptionHelper" "', argument " "9"" of type '" "CalibrationHelper::CalibrationErrorType""'");
  } 
  arg9 = static_cast< CalibrationHelper::CalibrationErrorType >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_SwaptionHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_double(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwaptionHelper" "', argument " "11"" of type '" "Real""'");
  } 
  arg11 = static_cast< Real >(val11);
  ecode12 = SWIG_AsVal_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_SwaptionHelper" "', argument " "12"" of type '" "VolatilityType""'");
  } 
  arg12 = static_cast< VolatilityType >(val12);
  ecode13 = SWIG_AsVal_double(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_SwaptionHelper" "', argument " "13"" of type '" "Real""'");
  } 
  arg13 = static_cast< Real >(val13);
  {
    try {
      result = (SwaptionHelperPtr *)new_SwaptionHelperPtr__SWIG_12((Date const &)*arg1,(Date const &)*arg2,(Handle< Quote > const &)*arg3,(IborIndexPtr const &)*arg4,(Period const &)*arg5,(DayCounter const &)*arg6,(DayCounter const &)*arg7,(Handle< YieldTermStructure > const &)*arg8,arg9,arg10,arg11,arg12,arg13);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionHelper__SWIG_13(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Date *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  Period *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  CalibrationHelper::CalibrationErrorType arg9 ;
  Real arg10 ;
  Real arg11 ;
  VolatilityType arg12 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  double val11 ;
  int ecode11 = 0 ;
  int val12 ;
  int ecode12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  SwaptionHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionHelper",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SwaptionHelper" "', argument " "9"" of type '" "CalibrationHelper::CalibrationErrorType""'");
  } 
  arg9 = static_cast< CalibrationHelper::CalibrationErrorType >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_SwaptionHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_double(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwaptionHelper" "', argument " "11"" of type '" "Real""'");
  } 
  arg11 = static_cast< Real >(val11);
  ecode12 = SWIG_AsVal_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_SwaptionHelper" "', argument " "12"" of type '" "VolatilityType""'");
  } 
  arg12 = static_cast< VolatilityType >(val12);
  {
    try {
      result = (SwaptionHelperPtr *)new_SwaptionHelperPtr__SWIG_12((Date const &)*arg1,(Date const &)*arg2,(Handle< Quote > const &)*arg3,(IborIndexPtr const &)*arg4,(Period const &)*arg5,(DayCounter const &)*arg6,(DayCounter const &)*arg7,(Handle< YieldTermStructure > const &)*arg8,arg9,arg10,arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionHelper__SWIG_14(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Date *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  Period *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  CalibrationHelper::CalibrationErrorType arg9 ;
  Real arg10 ;
  Real arg11 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  double val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  SwaptionHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionHelper",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SwaptionHelper" "', argument " "9"" of type '" "CalibrationHelper::CalibrationErrorType""'");
  } 
  arg9 = static_cast< CalibrationHelper::CalibrationErrorType >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_SwaptionHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_double(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwaptionHelper" "', argument " "11"" of type '" "Real""'");
  } 
  arg11 = static_cast< Real >(val11);
  {
    try {
      result = (SwaptionHelperPtr *)new_SwaptionHelperPtr__SWIG_12((Date const &)*arg1,(Date const &)*arg2,(Handle< Quote > const &)*arg3,(IborIndexPtr const &)*arg4,(Period const &)*arg5,(DayCounter const &)*arg6,(DayCounter const &)*arg7,(Handle< YieldTermStructure > const &)*arg8,arg9,arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionHelper__SWIG_15(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Date *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  Period *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  CalibrationHelper::CalibrationErrorType arg9 ;
  Real arg10 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  SwaptionHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionHelper",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SwaptionHelper" "', argument " "9"" of type '" "CalibrationHelper::CalibrationErrorType""'");
  } 
  arg9 = static_cast< CalibrationHelper::CalibrationErrorType >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_SwaptionHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  {
    try {
      result = (SwaptionHelperPtr *)new_SwaptionHelperPtr__SWIG_12((Date const &)*arg1,(Date const &)*arg2,(Handle< Quote > const &)*arg3,(IborIndexPtr const &)*arg4,(Period const &)*arg5,(DayCounter const &)*arg6,(DayCounter const &)*arg7,(Handle< YieldTermStructure > const &)*arg8,arg9,arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionHelper__SWIG_16(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Date *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  Period *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  CalibrationHelper::CalibrationErrorType arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  SwaptionHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionHelper",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SwaptionHelper" "', argument " "9"" of type '" "CalibrationHelper::CalibrationErrorType""'");
  } 
  arg9 = static_cast< CalibrationHelper::CalibrationErrorType >(val9);
  {
    try {
      result = (SwaptionHelperPtr *)new_SwaptionHelperPtr__SWIG_12((Date const &)*arg1,(Date const &)*arg2,(Handle< Quote > const &)*arg3,(IborIndexPtr const &)*arg4,(Period const &)*arg5,(DayCounter const &)*arg6,(DayCounter const &)*arg7,(Handle< YieldTermStructure > const &)*arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionHelper__SWIG_17(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Date *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  Period *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  SwaptionHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwaptionHelper",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwaptionHelper" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  {
    try {
      result = (SwaptionHelperPtr *)new_SwaptionHelperPtr__SWIG_12((Date const &)*arg1,(Date const &)*arg2,(Handle< Quote > const &)*arg3,(IborIndexPtr const &)*arg4,(Period const &)*arg5,(DayCounter const &)*arg6,(DayCounter const &)*arg7,(Handle< YieldTermStructure > const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwaptionHelper(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[14] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 13) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_IborIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Period, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_SwaptionHelper__SWIG_5(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_IborIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Period, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_SwaptionHelper__SWIG_11(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_IborIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Period, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_SwaptionHelper__SWIG_17(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_IborIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Period, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_new_SwaptionHelper__SWIG_4(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_IborIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Period, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_new_SwaptionHelper__SWIG_16(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_IborIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Period, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_new_SwaptionHelper__SWIG_10(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_IborIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Period, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        return _wrap_new_SwaptionHelper__SWIG_15(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_IborIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Period, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        return _wrap_new_SwaptionHelper__SWIG_3(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_IborIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Period, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        return _wrap_new_SwaptionHelper__SWIG_9(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_IborIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Period, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_double(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          return _wrap_new_SwaptionHelper__SWIG_8(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_IborIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Period, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_double(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          return _wrap_new_SwaptionHelper__SWIG_2(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_IborIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Period, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_double(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          return _wrap_new_SwaptionHelper__SWIG_14(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_IborIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Period, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_double(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            return _wrap_new_SwaptionHelper__SWIG_7(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_IborIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Period, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_double(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            return _wrap_new_SwaptionHelper__SWIG_13(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_IborIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Period, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_double(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            return _wrap_new_SwaptionHelper__SWIG_1(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 13) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_IborIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Period, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_double(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            {
                              int res = SWIG_AsVal_double(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              return _wrap_new_SwaptionHelper__SWIG_12(self, args);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 13) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_IborIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Period, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_double(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            {
                              int res = SWIG_AsVal_double(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              return _wrap_new_SwaptionHelper__SWIG_6(self, args);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 13) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_IborIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Period, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_double(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            {
                              int res = SWIG_AsVal_double(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              return _wrap_new_SwaptionHelper__SWIG_0(self, args);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SwaptionHelper'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SwaptionHelperPtr::SwaptionHelperPtr(Period const &,Period const &,Handle< Quote > const &,IborIndexPtr const &,Period const &,DayCounter const &,DayCounter const &,Handle< YieldTermStructure > const &,CalibrationHelper::CalibrationErrorType,Real const,Real const,VolatilityType const,Real const)\n"
    "    SwaptionHelperPtr::SwaptionHelperPtr(Period const &,Period const &,Handle< Quote > const &,IborIndexPtr const &,Period const &,DayCounter const &,DayCounter const &,Handle< YieldTermStructure > const &,CalibrationHelper::CalibrationErrorType,Real const,Real const,VolatilityType const)\n"
    "    SwaptionHelperPtr::SwaptionHelperPtr(Period const &,Period const &,Handle< Quote > const &,IborIndexPtr const &,Period const &,DayCounter const &,DayCounter const &,Handle< YieldTermStructure > const &,CalibrationHelper::CalibrationErrorType,Real const,Real const)\n"
    "    SwaptionHelperPtr::SwaptionHelperPtr(Period const &,Period const &,Handle< Quote > const &,IborIndexPtr const &,Period const &,DayCounter const &,DayCounter const &,Handle< YieldTermStructure > const &,CalibrationHelper::CalibrationErrorType,Real const)\n"
    "    SwaptionHelperPtr::SwaptionHelperPtr(Period const &,Period const &,Handle< Quote > const &,IborIndexPtr const &,Period const &,DayCounter const &,DayCounter const &,Handle< YieldTermStructure > const &,CalibrationHelper::CalibrationErrorType)\n"
    "    SwaptionHelperPtr::SwaptionHelperPtr(Period const &,Period const &,Handle< Quote > const &,IborIndexPtr const &,Period const &,DayCounter const &,DayCounter const &,Handle< YieldTermStructure > const &)\n"
    "    SwaptionHelperPtr::SwaptionHelperPtr(Date const &,Period const &,Handle< Quote > const &,IborIndexPtr const &,Period const &,DayCounter const &,DayCounter const &,Handle< YieldTermStructure > const &,CalibrationHelper::CalibrationErrorType,Real const,Real const,VolatilityType const,Real const)\n"
    "    SwaptionHelperPtr::SwaptionHelperPtr(Date const &,Period const &,Handle< Quote > const &,IborIndexPtr const &,Period const &,DayCounter const &,DayCounter const &,Handle< YieldTermStructure > const &,CalibrationHelper::CalibrationErrorType,Real const,Real const,VolatilityType const)\n"
    "    SwaptionHelperPtr::SwaptionHelperPtr(Date const &,Period const &,Handle< Quote > const &,IborIndexPtr const &,Period const &,DayCounter const &,DayCounter const &,Handle< YieldTermStructure > const &,CalibrationHelper::CalibrationErrorType,Real const,Real const)\n"
    "    SwaptionHelperPtr::SwaptionHelperPtr(Date const &,Period const &,Handle< Quote > const &,IborIndexPtr const &,Period const &,DayCounter const &,DayCounter const &,Handle< YieldTermStructure > const &,CalibrationHelper::CalibrationErrorType,Real const)\n"
    "    SwaptionHelperPtr::SwaptionHelperPtr(Date const &,Period const &,Handle< Quote > const &,IborIndexPtr const &,Period const &,DayCounter const &,DayCounter const &,Handle< YieldTermStructure > const &,CalibrationHelper::CalibrationErrorType)\n"
    "    SwaptionHelperPtr::SwaptionHelperPtr(Date const &,Period const &,Handle< Quote > const &,IborIndexPtr const &,Period const &,DayCounter const &,DayCounter const &,Handle< YieldTermStructure > const &)\n"
    "    SwaptionHelperPtr::SwaptionHelperPtr(Date const &,Date const &,Handle< Quote > const &,IborIndexPtr const &,Period const &,DayCounter const &,DayCounter const &,Handle< YieldTermStructure > const &,CalibrationHelper::CalibrationErrorType,Real const,Real const,VolatilityType const,Real const)\n"
    "    SwaptionHelperPtr::SwaptionHelperPtr(Date const &,Date const &,Handle< Quote > const &,IborIndexPtr const &,Period const &,DayCounter const &,DayCounter const &,Handle< YieldTermStructure > const &,CalibrationHelper::CalibrationErrorType,Real const,Real const,VolatilityType const)\n"
    "    SwaptionHelperPtr::SwaptionHelperPtr(Date const &,Date const &,Handle< Quote > const &,IborIndexPtr const &,Period const &,DayCounter const &,DayCounter const &,Handle< YieldTermStructure > const &,CalibrationHelper::CalibrationErrorType,Real const,Real const)\n"
    "    SwaptionHelperPtr::SwaptionHelperPtr(Date const &,Date const &,Handle< Quote > const &,IborIndexPtr const &,Period const &,DayCounter const &,DayCounter const &,Handle< YieldTermStructure > const &,CalibrationHelper::CalibrationErrorType,Real const)\n"
    "    SwaptionHelperPtr::SwaptionHelperPtr(Date const &,Date const &,Handle< Quote > const &,IborIndexPtr const &,Period const &,DayCounter const &,DayCounter const &,Handle< YieldTermStructure > const &,CalibrationHelper::CalibrationErrorType)\n"
    "    SwaptionHelperPtr::SwaptionHelperPtr(Date const &,Date const &,Handle< Quote > const &,IborIndexPtr const &,Period const &,DayCounter const &,DayCounter const &,Handle< YieldTermStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_SwaptionHelper_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwaptionHelperPtr *arg1 = (SwaptionHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwaptionHelper_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwaptionHelperPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwaptionHelper_times" "', argument " "1"" of type '" "SwaptionHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< SwaptionHelperPtr * >(argp1);
  {
    try {
      result = SwaptionHelperPtr_times(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SwaptionHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwaptionHelperPtr *arg1 = (SwaptionHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SwaptionHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwaptionHelperPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwaptionHelper" "', argument " "1"" of type '" "SwaptionHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< SwaptionHelperPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SwaptionHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SwaptionHelperPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CapHelper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  IborIndexPtr *arg3 = 0 ;
  Frequency arg4 ;
  DayCounter *arg5 = 0 ;
  bool arg6 ;
  Handle< YieldTermStructure > *arg7 = 0 ;
  CalibrationHelper::CalibrationErrorType arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  CapHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CapHelper",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CapHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CapHelper" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapHelper" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CapHelper" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapHelper" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  arg3 = reinterpret_cast< IborIndexPtr * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_CapHelper" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CapHelper" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapHelper" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CapHelper" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CapHelper" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapHelper" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg7 = reinterpret_cast< Handle< YieldTermStructure > * >(argp7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_CapHelper" "', argument " "8"" of type '" "CalibrationHelper::CalibrationErrorType""'");
  } 
  arg8 = static_cast< CalibrationHelper::CalibrationErrorType >(val8);
  {
    try {
      result = (CapHelperPtr *)new_CapHelperPtr__SWIG_0((Period const &)*arg1,(Handle< Quote > const &)*arg2,(IborIndexPtr const &)*arg3,arg4,(DayCounter const &)*arg5,arg6,(Handle< YieldTermStructure > const &)*arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CapHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapHelper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  IborIndexPtr *arg3 = 0 ;
  Frequency arg4 ;
  DayCounter *arg5 = 0 ;
  bool arg6 ;
  Handle< YieldTermStructure > *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  CapHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CapHelper",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CapHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CapHelper" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapHelper" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CapHelper" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapHelper" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  arg3 = reinterpret_cast< IborIndexPtr * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_CapHelper" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CapHelper" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapHelper" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CapHelper" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CapHelper" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapHelper" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg7 = reinterpret_cast< Handle< YieldTermStructure > * >(argp7);
  {
    try {
      result = (CapHelperPtr *)new_CapHelperPtr__SWIG_0((Period const &)*arg1,(Handle< Quote > const &)*arg2,(IborIndexPtr const &)*arg3,arg4,(DayCounter const &)*arg5,arg6,(Handle< YieldTermStructure > const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CapHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapHelper(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[9] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 8) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_IborIndexPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_CapHelper__SWIG_1(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_IborIndexPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_CapHelper__SWIG_0(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CapHelper'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CapHelperPtr::CapHelperPtr(Period const &,Handle< Quote > const &,IborIndexPtr const &,Frequency,DayCounter const &,bool,Handle< YieldTermStructure > const &,CalibrationHelper::CalibrationErrorType)\n"
    "    CapHelperPtr::CapHelperPtr(Period const &,Handle< Quote > const &,IborIndexPtr const &,Frequency,DayCounter const &,bool,Handle< YieldTermStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CapHelper_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapHelperPtr *arg1 = (CapHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapHelper_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapHelperPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapHelper_times" "', argument " "1"" of type '" "CapHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< CapHelperPtr * >(argp1);
  {
    try {
      result = CapHelperPtr_times(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CapHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapHelperPtr *arg1 = (CapHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CapHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapHelperPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CapHelper" "', argument " "1"" of type '" "CapHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< CapHelperPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CapHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CapHelperPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_HestonModelHelper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  Real arg3 ;
  Real arg4 ;
  Handle< Quote > *arg5 = 0 ;
  Handle< YieldTermStructure > *arg6 = 0 ;
  Handle< YieldTermStructure > *arg7 = 0 ;
  CalibrationHelper::CalibrationErrorType arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  HestonModelHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HestonModelHelper",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HestonModelHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HestonModelHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_HestonModelHelper" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HestonModelHelper" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_HestonModelHelper" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HestonModelHelper" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_HestonModelHelper" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HestonModelHelper" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< Quote > * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_HestonModelHelper" "', argument " "6"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HestonModelHelper" "', argument " "6"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg6 = reinterpret_cast< Handle< YieldTermStructure > * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_HestonModelHelper" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HestonModelHelper" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg7 = reinterpret_cast< Handle< YieldTermStructure > * >(argp7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_HestonModelHelper" "', argument " "8"" of type '" "CalibrationHelper::CalibrationErrorType""'");
  } 
  arg8 = static_cast< CalibrationHelper::CalibrationErrorType >(val8);
  {
    try {
      result = (HestonModelHelperPtr *)new_HestonModelHelperPtr__SWIG_0((Period const &)*arg1,(Calendar const &)*arg2,arg3,arg4,(Handle< Quote > const &)*arg5,(Handle< YieldTermStructure > const &)*arg6,(Handle< YieldTermStructure > const &)*arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HestonModelHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_HestonModelHelper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  Real arg3 ;
  Real arg4 ;
  Handle< Quote > *arg5 = 0 ;
  Handle< YieldTermStructure > *arg6 = 0 ;
  Handle< YieldTermStructure > *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  HestonModelHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HestonModelHelper",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HestonModelHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HestonModelHelper" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_HestonModelHelper" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HestonModelHelper" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_HestonModelHelper" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HestonModelHelper" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_HestonModelHelper" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HestonModelHelper" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< Quote > * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_HestonModelHelper" "', argument " "6"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HestonModelHelper" "', argument " "6"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg6 = reinterpret_cast< Handle< YieldTermStructure > * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_HestonModelHelper" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HestonModelHelper" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg7 = reinterpret_cast< Handle< YieldTermStructure > * >(argp7);
  {
    try {
      result = (HestonModelHelperPtr *)new_HestonModelHelperPtr__SWIG_0((Period const &)*arg1,(Calendar const &)*arg2,arg3,arg4,(Handle< Quote > const &)*arg5,(Handle< YieldTermStructure > const &)*arg6,(Handle< YieldTermStructure > const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HestonModelHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_HestonModelHelper(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[9] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 8) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_HestonModelHelper__SWIG_1(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_HestonModelHelper__SWIG_0(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_HestonModelHelper'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    HestonModelHelperPtr::HestonModelHelperPtr(Period const &,Calendar const &,Real const,Real const,Handle< Quote > const &,Handle< YieldTermStructure > const &,Handle< YieldTermStructure > const &,CalibrationHelper::CalibrationErrorType)\n"
    "    HestonModelHelperPtr::HestonModelHelperPtr(Period const &,Calendar const &,Real const,Real const,Handle< Quote > const &,Handle< YieldTermStructure > const &,Handle< YieldTermStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_HestonModelHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HestonModelHelperPtr *arg1 = (HestonModelHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_HestonModelHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HestonModelHelperPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HestonModelHelper" "', argument " "1"" of type '" "HestonModelHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< HestonModelHelperPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *HestonModelHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HestonModelHelperPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_CalibrationHelperVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_iterator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector___nonzero__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____nonzero__((std::vector< boost::shared_ptr< CalibrationHelper > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector___bool__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____bool__((std::vector< boost::shared_ptr< CalibrationHelper > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector___len__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____len__((std::vector< boost::shared_ptr< CalibrationHelper > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector___getslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalibrationHelperVector___getslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CalibrationHelperVector___getslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalibrationHelperVector___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CalibrationHelperVector___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type arg3 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalibrationHelperVector___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CalibrationHelperVector___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type >(val3);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CalibrationHelperVector___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibrationHelperVector___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(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_CalibrationHelperVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(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< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_CalibrationHelperVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CalibrationHelperVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::__setslice__(std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type,std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::__setslice__(std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type,std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type,std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector___delslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalibrationHelperVector___delslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CalibrationHelperVector___delslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalibrationHelperVector___delitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CalibrationHelperVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CalibrationHelperVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CalibrationHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibrationHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CalibrationHelperVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CalibrationHelperVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_CalibrationHelperVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_CalibrationHelperVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CalibrationHelperVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::__delitem__(std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalibrationHelperVector___getitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< CalibrationHelper > >::value_type *) &std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____getitem____SWIG_1((std::vector< boost::shared_ptr< CalibrationHelper > > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_CalibrationHelperVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_CalibrationHelperVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CalibrationHelperVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::__getitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::__getitem__(std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalibrationHelperVector___setitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CalibrationHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibrationHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::value_type * >(argp3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg____setitem____SWIG_2(arg1,arg2,(boost::shared_ptr< CalibrationHelper > const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_CalibrationHelperVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_CalibrationHelperVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(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_boost__shared_ptrT_CalibrationHelper_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_CalibrationHelperVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CalibrationHelperVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::__setitem__(PySliceObject *,std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::__setitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::__setitem__(std::vector< boost::shared_ptr< CalibrationHelper > >::difference_type,std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_pop" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< CalibrationHelper > >::value_type(static_cast< const std::vector< boost::shared_ptr< CalibrationHelper > >::value_type& >(result))), SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_append" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CalibrationHelperVector_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibrationHelperVector_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::value_type * >(argp2);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg__append(arg1,(boost::shared_ptr< CalibrationHelper > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CalibrationHelperVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CalibrationHelperVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< boost::shared_ptr< CalibrationHelper > > *)new std::vector< boost::shared_ptr< CalibrationHelper > >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CalibrationHelperVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CalibrationHelperVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CalibrationHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CalibrationHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< boost::shared_ptr< CalibrationHelper > > *)new std::vector< boost::shared_ptr< CalibrationHelper > >((std::vector< boost::shared_ptr< CalibrationHelper > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_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_CalibrationHelperVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_empty" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    try {
      result = (bool)((std::vector< boost::shared_ptr< CalibrationHelper > > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_size" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< CalibrationHelper > > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_swap" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CalibrationHelperVector_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibrationHelperVector_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_begin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< CalibrationHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_end" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< CalibrationHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_rbegin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< CalibrationHelper > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_rend" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< CalibrationHelper > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_clear" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< boost::shared_ptr< CalibrationHelper > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_get_allocator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< CalibrationHelper > > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< CalibrationHelper > >::allocator_type(static_cast< const std::vector< boost::shared_ptr< CalibrationHelper > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CalibrationHelperVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CalibrationHelperVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CalibrationHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::size_type >(val1);
  {
    try {
      result = (std::vector< boost::shared_ptr< CalibrationHelper > > *)new std::vector< boost::shared_ptr< CalibrationHelper > >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_pop_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalibrationHelperVector_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CalibrationHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CalibrationHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CalibrationHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CalibrationHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< CalibrationHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::iterator arg2 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CalibrationHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CalibrationHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CalibrationHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CalibrationHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CalibrationHelperVector_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CalibrationHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CalibrationHelper > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CalibrationHelperVector_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< CalibrationHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(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< boost::shared_ptr< CalibrationHelper > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_CalibrationHelperVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(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< boost::shared_ptr< CalibrationHelper > >::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< boost::shared_ptr< CalibrationHelper > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_CalibrationHelperVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CalibrationHelperVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::erase(std::vector< boost::shared_ptr< CalibrationHelper > >::iterator)\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::erase(std::vector< boost::shared_ptr< CalibrationHelper > >::iterator,std::vector< boost::shared_ptr< CalibrationHelper > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_CalibrationHelperVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > >::size_type arg1 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CalibrationHelperVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CalibrationHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CalibrationHelperVector" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CalibrationHelperVector" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::value_type * >(argp2);
  {
    try {
      result = (std::vector< boost::shared_ptr< CalibrationHelper > > *)new std::vector< boost::shared_ptr< CalibrationHelper > >(arg1,(std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CalibrationHelperVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_CalibrationHelperVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_CalibrationHelperVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_CalibrationHelperVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_CalibrationHelperVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CalibrationHelperVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::vector()\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::vector(std::vector< boost::shared_ptr< CalibrationHelper > > const &)\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::vector(std::vector< boost::shared_ptr< CalibrationHelper > >::size_type)\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::vector(std::vector< boost::shared_ptr< CalibrationHelper > >::size_type,std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_push_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CalibrationHelperVector_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibrationHelperVector_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::value_type * >(argp2);
  {
    try {
      (arg1)->push_back((std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_front" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< CalibrationHelper > >::value_type *) &((std::vector< boost::shared_ptr< CalibrationHelper > > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< CalibrationHelper > >::value_type *) &((std::vector< boost::shared_ptr< CalibrationHelper > > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::size_type arg2 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_assign" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalibrationHelperVector_assign" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CalibrationHelperVector_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibrationHelperVector_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::value_type * >(argp3);
  {
    try {
      (arg1)->assign(arg2,(std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::size_type arg2 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalibrationHelperVector_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CalibrationHelperVector_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibrationHelperVector_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::value_type * >(argp3);
  {
    try {
      (arg1)->resize(arg2,(std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_CalibrationHelperVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(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_boost__shared_ptrT_CalibrationHelper_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_CalibrationHelperVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CalibrationHelperVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::resize(std::vector< boost::shared_ptr< CalibrationHelper > >::size_type)\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::resize(std::vector< boost::shared_ptr< CalibrationHelper > >::size_type,std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::iterator arg2 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CalibrationHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CalibrationHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CalibrationHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CalibrationHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CalibrationHelperVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibrationHelperVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::value_type * >(argp3);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg__insert__SWIG_0(arg1,arg2,(boost::shared_ptr< CalibrationHelper > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< CalibrationHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::iterator arg2 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::size_type arg3 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::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 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CalibrationHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CalibrationHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< CalibrationHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CalibrationHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CalibrationHelperVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CalibrationHelperVector_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibrationHelperVector_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::value_type * >(argp4);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_CalibrationHelper_Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(boost::shared_ptr< CalibrationHelper > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(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< boost::shared_ptr< CalibrationHelper > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_CalibrationHelper_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_CalibrationHelperVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(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< boost::shared_ptr< CalibrationHelper > >::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_boost__shared_ptrT_CalibrationHelper_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_CalibrationHelperVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CalibrationHelperVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::insert(std::vector< boost::shared_ptr< CalibrationHelper > >::iterator,std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &)\n"
    "    std::vector< boost::shared_ptr< CalibrationHelper > >::insert(std::vector< boost::shared_ptr< CalibrationHelper > >::iterator,std::vector< boost::shared_ptr< CalibrationHelper > >::size_type,std::vector< boost::shared_ptr< CalibrationHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_reserve" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalibrationHelperVector_reserve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< CalibrationHelper > >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibrationHelperVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibrationHelperVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibrationHelperVector_capacity" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< CalibrationHelper > > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CalibrationHelperVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CalibrationHelper > > *arg1 = (std::vector< boost::shared_ptr< CalibrationHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CalibrationHelperVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CalibrationHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< CalibrationHelper > > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CalibrationHelperVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_CalibratedModel___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibratedModel > *arg1 = (boost::shared_ptr< CalibratedModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  CalibratedModel *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModel___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModel___deref__" "', argument " "1"" of type '" "boost::shared_ptr< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibratedModel > * >(argp1);
  {
    try {
      result = (CalibratedModel *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CalibratedModel, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibratedModel___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibratedModel > *arg1 = (boost::shared_ptr< CalibratedModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModel___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModel___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibratedModel > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_CalibratedModel_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibratedModel___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibratedModel > *arg1 = (boost::shared_ptr< CalibratedModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModel___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModel___bool__" "', argument " "1"" of type '" "boost::shared_ptr< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibratedModel > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_CalibratedModel_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibratedModel_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibratedModel > *arg1 = (boost::shared_ptr< CalibratedModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModel_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModel_asObservable" "', argument " "1"" of type '" "boost::shared_ptr< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibratedModel > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_CalibratedModel_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CalibratedModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibratedModel > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CalibratedModel",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< CalibratedModel > *)new boost::shared_ptr< CalibratedModel >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CalibratedModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibratedModel > *arg1 = (boost::shared_ptr< CalibratedModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CalibratedModel",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CalibratedModel" "', argument " "1"" of type '" "boost::shared_ptr< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibratedModel > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibratedModel_params(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibratedModel > *arg1 = (boost::shared_ptr< CalibratedModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModel_params",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModel_params" "', argument " "1"" of type '" "boost::shared_ptr< CalibratedModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibratedModel > * >(argp1);
  {
    try {
      result = (*arg1)->params();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibratedModel_calibrate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibratedModel > *arg1 = (boost::shared_ptr< CalibratedModel > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  Constraint *arg5 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModel_calibrate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModel_calibrate" "', argument " "1"" of type '" "boost::shared_ptr< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibratedModel > * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CalibratedModel_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModel_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CalibratedModel_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModel_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CalibratedModel_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModel_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CalibratedModel_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModel_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  arg5 = reinterpret_cast< Constraint * >(argp5);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CalibratedModel_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModel_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    try {
      (*arg1)->calibrate((std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4,(Constraint const &)*arg5,(std::vector< Real,std::allocator< Real > > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibratedModel_calibrate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibratedModel > *arg1 = (boost::shared_ptr< CalibratedModel > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  Constraint *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModel_calibrate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModel_calibrate" "', argument " "1"" of type '" "boost::shared_ptr< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibratedModel > * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CalibratedModel_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModel_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CalibratedModel_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModel_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CalibratedModel_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModel_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CalibratedModel_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModel_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  arg5 = reinterpret_cast< Constraint * >(argp5);
  {
    try {
      (*arg1)->calibrate((std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4,(Constraint const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibratedModel_calibrate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibratedModel > *arg1 = (boost::shared_ptr< CalibratedModel > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModel_calibrate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModel_calibrate" "', argument " "1"" of type '" "boost::shared_ptr< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibratedModel > * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CalibratedModel_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModel_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CalibratedModel_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModel_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CalibratedModel_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModel_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  {
    try {
      (*arg1)->calibrate((std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibratedModel_calibrate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_CalibratedModel_calibrate__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Constraint, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_CalibratedModel_calibrate__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Constraint, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< double,std::allocator< double > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_CalibratedModel_calibrate__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CalibratedModel_calibrate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CalibratedModel::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &,Constraint const &,std::vector< Real,std::allocator< Real > > const &)\n"
    "    CalibratedModel::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &,Constraint const &)\n"
    "    CalibratedModel::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CalibratedModel_setParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibratedModel > *arg1 = (boost::shared_ptr< CalibratedModel > *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModel_setParams",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModel_setParams" "', argument " "1"" of type '" "boost::shared_ptr< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibratedModel > * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      (*arg1)->setParams((Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibratedModel_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibratedModel > *arg1 = (boost::shared_ptr< CalibratedModel > *) 0 ;
  Array *arg2 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModel_value",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModel_value" "', argument " "1"" of type '" "boost::shared_ptr< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibratedModel > * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CalibratedModel_value" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModel_value" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      result = (Real)(*arg1)->value((Array const &)*arg2,(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *CalibratedModel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CalibratedModelHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibratedModel > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< CalibratedModel > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CalibratedModelHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CalibratedModelHandle" "', argument " "1"" of type '" "boost::shared_ptr< CalibratedModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CalibratedModelHandle" "', argument " "1"" of type '" "boost::shared_ptr< CalibratedModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibratedModel > * >(argp1);
  {
    try {
      result = (Handle< CalibratedModel > *)new Handle< CalibratedModel >((boost::shared_ptr< CalibratedModel > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_CalibratedModel_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CalibratedModelHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CalibratedModel > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CalibratedModelHandle",0,0)) SWIG_fail;
  {
    try {
      result = (Handle< CalibratedModel > *)new Handle< CalibratedModel >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_CalibratedModel_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CalibratedModelHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_CalibratedModelHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_CalibratedModelHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CalibratedModelHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Handle< CalibratedModel >::Handle(boost::shared_ptr< CalibratedModel > const &)\n"
    "    Handle< CalibratedModel >::Handle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CalibratedModelHandle___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CalibratedModel > *arg1 = (Handle< CalibratedModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< CalibratedModel > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModelHandle___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModelHandle___deref__" "', argument " "1"" of type '" "Handle< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CalibratedModel > * >(argp1);
  {
    try {
      result = (arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< CalibratedModel >(static_cast< const boost::shared_ptr< CalibratedModel >& >(result))), SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibratedModelHandle___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CalibratedModel > *arg1 = (Handle< CalibratedModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModelHandle___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModelHandle___nonzero__" "', argument " "1"" of type '" "Handle< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CalibratedModel > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_CalibratedModel_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibratedModelHandle___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CalibratedModel > *arg1 = (Handle< CalibratedModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModelHandle___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModelHandle___bool__" "', argument " "1"" of type '" "Handle< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CalibratedModel > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_CalibratedModel_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibratedModelHandle_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CalibratedModel > *arg1 = (Handle< CalibratedModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModelHandle_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModelHandle_asObservable" "', argument " "1"" of type '" "Handle< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CalibratedModel > * >(argp1);
  {
    try {
      result = Handle_Sl_CalibratedModel_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CalibratedModelHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CalibratedModel > *arg1 = (Handle< CalibratedModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CalibratedModelHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CalibratedModel_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CalibratedModelHandle" "', argument " "1"" of type '" "Handle< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CalibratedModel > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibratedModelHandle_params(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CalibratedModel > *arg1 = (Handle< CalibratedModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModelHandle_params",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModelHandle_params" "', argument " "1"" of type '" "Handle< CalibratedModel > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CalibratedModel > * >(argp1);
  {
    try {
      result = (*arg1)->params();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibratedModelHandle_calibrate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CalibratedModel > *arg1 = (Handle< CalibratedModel > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  Constraint *arg5 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModelHandle_calibrate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModelHandle_calibrate" "', argument " "1"" of type '" "Handle< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CalibratedModel > * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CalibratedModelHandle_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModelHandle_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CalibratedModelHandle_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModelHandle_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CalibratedModelHandle_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModelHandle_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CalibratedModelHandle_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModelHandle_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  arg5 = reinterpret_cast< Constraint * >(argp5);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CalibratedModelHandle_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModelHandle_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    try {
      (*arg1)->calibrate((std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4,(Constraint const &)*arg5,(std::vector< Real,std::allocator< Real > > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibratedModelHandle_calibrate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CalibratedModel > *arg1 = (Handle< CalibratedModel > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  Constraint *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModelHandle_calibrate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModelHandle_calibrate" "', argument " "1"" of type '" "Handle< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CalibratedModel > * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CalibratedModelHandle_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModelHandle_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CalibratedModelHandle_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModelHandle_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CalibratedModelHandle_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModelHandle_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CalibratedModelHandle_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModelHandle_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  arg5 = reinterpret_cast< Constraint * >(argp5);
  {
    try {
      (*arg1)->calibrate((std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4,(Constraint const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibratedModelHandle_calibrate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CalibratedModel > *arg1 = (Handle< CalibratedModel > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModelHandle_calibrate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModelHandle_calibrate" "', argument " "1"" of type '" "Handle< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CalibratedModel > * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CalibratedModelHandle_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModelHandle_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CalibratedModelHandle_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModelHandle_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CalibratedModelHandle_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModelHandle_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  {
    try {
      (*arg1)->calibrate((std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibratedModelHandle_calibrate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_CalibratedModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_CalibratedModelHandle_calibrate__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_CalibratedModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Constraint, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_CalibratedModelHandle_calibrate__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_CalibratedModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Constraint, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< double,std::allocator< double > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_CalibratedModelHandle_calibrate__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CalibratedModelHandle_calibrate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CalibratedModel::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &,Constraint const &,std::vector< Real,std::allocator< Real > > const &)\n"
    "    CalibratedModel::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &,Constraint const &)\n"
    "    CalibratedModel::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CalibratedModelHandle_setParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CalibratedModel > *arg1 = (Handle< CalibratedModel > *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModelHandle_setParams",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModelHandle_setParams" "', argument " "1"" of type '" "Handle< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CalibratedModel > * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      (*arg1)->setParams((Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CalibratedModelHandle_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CalibratedModel > *arg1 = (Handle< CalibratedModel > *) 0 ;
  Array *arg2 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CalibratedModelHandle_value",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalibratedModelHandle_value" "', argument " "1"" of type '" "Handle< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CalibratedModel > * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CalibratedModelHandle_value" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CalibratedModelHandle_value" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      result = (Real)(*arg1)->value((Array const &)*arg2,(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *CalibratedModelHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HandleT_CalibratedModel_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_RelinkableCalibratedModelHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CalibratedModel > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  RelinkableHandle< CalibratedModel > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableCalibratedModelHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RelinkableCalibratedModelHandle" "', argument " "1"" of type '" "boost::shared_ptr< CalibratedModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RelinkableCalibratedModelHandle" "', argument " "1"" of type '" "boost::shared_ptr< CalibratedModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CalibratedModel > * >(argp1);
  {
    try {
      result = (RelinkableHandle< CalibratedModel > *)new RelinkableHandle< CalibratedModel >((boost::shared_ptr< CalibratedModel > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_CalibratedModel_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableCalibratedModelHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< CalibratedModel > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableCalibratedModelHandle",0,0)) SWIG_fail;
  {
    try {
      result = (RelinkableHandle< CalibratedModel > *)new RelinkableHandle< CalibratedModel >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_CalibratedModel_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableCalibratedModelHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_RelinkableCalibratedModelHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_RelinkableCalibratedModelHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RelinkableCalibratedModelHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    RelinkableHandle< CalibratedModel >::RelinkableHandle(boost::shared_ptr< CalibratedModel > const &)\n"
    "    RelinkableHandle< CalibratedModel >::RelinkableHandle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableCalibratedModelHandle_linkTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< CalibratedModel > *arg1 = (RelinkableHandle< CalibratedModel > *) 0 ;
  boost::shared_ptr< CalibratedModel > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableCalibratedModelHandle_linkTo",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_CalibratedModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableCalibratedModelHandle_linkTo" "', argument " "1"" of type '" "RelinkableHandle< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< CalibratedModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_CalibratedModel_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableCalibratedModelHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< CalibratedModel > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableCalibratedModelHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< CalibratedModel > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< CalibratedModel > * >(argp2);
  {
    try {
      (arg1)->linkTo((boost::shared_ptr< CalibratedModel > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RelinkableCalibratedModelHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< CalibratedModel > *arg1 = (RelinkableHandle< CalibratedModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RelinkableCalibratedModelHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_CalibratedModel_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RelinkableCalibratedModelHandle" "', argument " "1"" of type '" "RelinkableHandle< CalibratedModel > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< CalibratedModel > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RelinkableCalibratedModelHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RelinkableHandleT_CalibratedModel_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_TimeGrid__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeGrid *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TimeGrid",0,0)) SWIG_fail;
  {
    try {
      result = (TimeGrid *)new TimeGrid();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TimeGrid, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TimeGrid__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Time arg1 ;
  Size arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TimeGrid *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TimeGrid",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TimeGrid" "', argument " "1"" of type '" "Time""'");
  } 
  arg1 = static_cast< Time >(val1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TimeGrid" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (TimeGrid *)new TimeGrid(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TimeGrid, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TimeGrid__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Time,std::allocator< Time > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  TimeGrid *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TimeGrid",1,1,&obj0)) SWIG_fail;
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TimeGrid" "', argument " "1"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TimeGrid" "', argument " "1"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (TimeGrid *)new_TimeGrid__SWIG_2((std::vector< double,std::allocator< double > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TimeGrid, 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_TimeGrid__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Time,std::allocator< Time > > *arg1 = 0 ;
  Size arg2 ;
  int res1 = SWIG_OLDOBJ ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TimeGrid *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TimeGrid",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TimeGrid" "', argument " "1"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TimeGrid" "', argument " "1"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TimeGrid" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (TimeGrid *)new_TimeGrid__SWIG_3((std::vector< double,std::allocator< double > > const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TimeGrid, 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_TimeGrid(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_TimeGrid__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_TimeGrid__SWIG_2(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_TimeGrid__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_TimeGrid__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_TimeGrid'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    TimeGrid::TimeGrid()\n"
    "    TimeGrid::TimeGrid(Time,Size)\n"
    "    TimeGrid::TimeGrid(std::vector< Time,std::allocator< Time > > const &)\n"
    "    TimeGrid::TimeGrid(std::vector< Time,std::allocator< Time > > const &,Size)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_TimeGrid___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeGrid *arg1 = (TimeGrid *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TimeGrid___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeGrid, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeGrid___len__" "', argument " "1"" of type '" "TimeGrid const *""'"); 
  }
  arg1 = reinterpret_cast< TimeGrid * >(argp1);
  {
    try {
      result = ((TimeGrid const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TimeGrid___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeGrid *arg1 = (TimeGrid *) 0 ;
  Integer arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TimeGrid___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeGrid, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeGrid___getitem__" "', argument " "1"" of type '" "TimeGrid *""'"); 
  }
  arg1 = reinterpret_cast< TimeGrid * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeGrid___getitem__" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  {
    try {
      result = (Time)TimeGrid___getitem__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TimeGrid_dt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeGrid *arg1 = (TimeGrid *) 0 ;
  Integer arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TimeGrid_dt",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeGrid, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeGrid_dt" "', argument " "1"" of type '" "TimeGrid const *""'"); 
  }
  arg1 = reinterpret_cast< TimeGrid * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TimeGrid_dt" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  {
    try {
      result = (Time)TimeGrid_dt((TimeGrid const *)arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_TimeGrid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeGrid *arg1 = (TimeGrid *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_TimeGrid",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeGrid, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TimeGrid" "', argument " "1"" of type '" "TimeGrid *""'"); 
  }
  arg1 = reinterpret_cast< TimeGrid * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TimeGrid_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_TimeGrid, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Parameter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Parameter *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Parameter",0,0)) SWIG_fail;
  {
    try {
      result = (Parameter *)new Parameter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Parameter, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Parameter_params(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Parameter *arg1 = (Parameter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Array *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Parameter_params",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Parameter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Parameter_params" "', argument " "1"" of type '" "Parameter const *""'"); 
  }
  arg1 = reinterpret_cast< Parameter * >(argp1);
  {
    try {
      result = (Array *) &((Parameter const *)arg1)->params();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Array, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Parameter_setParam(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Parameter *arg1 = (Parameter *) 0 ;
  Size arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Parameter_setParam",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Parameter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Parameter_setParam" "', argument " "1"" of type '" "Parameter *""'"); 
  }
  arg1 = reinterpret_cast< Parameter * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Parameter_setParam" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Parameter_setParam" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      (arg1)->setParam(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Parameter_testParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Parameter *arg1 = (Parameter *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Parameter_testParams",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Parameter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Parameter_testParams" "', argument " "1"" of type '" "Parameter const *""'"); 
  }
  arg1 = reinterpret_cast< Parameter * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (bool)((Parameter const *)arg1)->testParams((Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Parameter_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Parameter *arg1 = (Parameter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Parameter_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Parameter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Parameter_size" "', argument " "1"" of type '" "Parameter const *""'"); 
  }
  arg1 = reinterpret_cast< Parameter * >(argp1);
  {
    try {
      result = ((Parameter const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Parameter___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Parameter *arg1 = (Parameter *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Parameter___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Parameter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Parameter___call__" "', argument " "1"" of type '" "Parameter const *""'"); 
  }
  arg1 = reinterpret_cast< Parameter * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Parameter___call__" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)((Parameter const *)arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Parameter_constraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Parameter *arg1 = (Parameter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Constraint *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Parameter_constraint",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Parameter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Parameter_constraint" "', argument " "1"" of type '" "Parameter const *""'"); 
  }
  arg1 = reinterpret_cast< Parameter * >(argp1);
  {
    try {
      result = (Constraint *) &((Parameter const *)arg1)->constraint();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Constraint, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Parameter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Parameter *arg1 = (Parameter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Parameter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Parameter, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Parameter" "', argument " "1"" of type '" "Parameter *""'"); 
  }
  arg1 = reinterpret_cast< Parameter * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Parameter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Parameter, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ConstantParameter__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Constraint *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  ConstantParameter *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantParameter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConstantParameter" "', argument " "1"" of type '" "Constraint const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantParameter" "', argument " "1"" of type '" "Constraint const &""'"); 
  }
  arg1 = reinterpret_cast< Constraint * >(argp1);
  {
    try {
      result = (ConstantParameter *)new ConstantParameter((Constraint const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantParameter, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantParameter__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Constraint *arg2 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  ConstantParameter *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantParameter",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ConstantParameter" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConstantParameter" "', argument " "2"" of type '" "Constraint const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConstantParameter" "', argument " "2"" of type '" "Constraint const &""'"); 
  }
  arg2 = reinterpret_cast< Constraint * >(argp2);
  {
    try {
      result = (ConstantParameter *)new ConstantParameter(arg1,(Constraint const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantParameter, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantParameter(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Constraint, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_ConstantParameter__SWIG_0(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Constraint, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_ConstantParameter__SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ConstantParameter'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ConstantParameter::ConstantParameter(Constraint const &)\n"
    "    ConstantParameter::ConstantParameter(Real,Constraint const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_ConstantParameter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ConstantParameter *arg1 = (ConstantParameter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ConstantParameter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ConstantParameter, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ConstantParameter" "', argument " "1"" of type '" "ConstantParameter *""'"); 
  }
  arg1 = reinterpret_cast< ConstantParameter * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ConstantParameter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ConstantParameter, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_NullParameter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NullParameter *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NullParameter",0,0)) SWIG_fail;
  {
    try {
      result = (NullParameter *)new NullParameter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NullParameter, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_NullParameter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NullParameter *arg1 = (NullParameter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NullParameter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NullParameter, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NullParameter" "', argument " "1"" of type '" "NullParameter *""'"); 
  }
  arg1 = reinterpret_cast< NullParameter * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NullParameter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_NullParameter, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PiecewiseConstantParameter__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Time,std::allocator< Time > > *arg1 = 0 ;
  Constraint *arg2 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PiecewiseConstantParameter *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseConstantParameter",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseConstantParameter" "', argument " "1"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseConstantParameter" "', argument " "1"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseConstantParameter" "', argument " "2"" of type '" "Constraint const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseConstantParameter" "', argument " "2"" of type '" "Constraint const &""'"); 
  }
  arg2 = reinterpret_cast< Constraint * >(argp2);
  {
    try {
      result = (PiecewiseConstantParameter *)new PiecewiseConstantParameter((std::vector< Time,std::allocator< Time > > const &)*arg1,(Constraint const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseConstantParameter, 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_PiecewiseConstantParameter__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Time,std::allocator< Time > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PiecewiseConstantParameter *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseConstantParameter",1,1,&obj0)) SWIG_fail;
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseConstantParameter" "', argument " "1"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseConstantParameter" "', argument " "1"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (PiecewiseConstantParameter *)new PiecewiseConstantParameter((std::vector< Time,std::allocator< Time > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseConstantParameter, 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_PiecewiseConstantParameter(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_PiecewiseConstantParameter__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Constraint, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_PiecewiseConstantParameter__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_PiecewiseConstantParameter'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    PiecewiseConstantParameter::PiecewiseConstantParameter(std::vector< Time,std::allocator< Time > > const &,Constraint const &)\n"
    "    PiecewiseConstantParameter::PiecewiseConstantParameter(std::vector< Time,std::allocator< Time > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_PiecewiseConstantParameter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseConstantParameter *arg1 = (PiecewiseConstantParameter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PiecewiseConstantParameter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseConstantParameter, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PiecewiseConstantParameter" "', argument " "1"" of type '" "PiecewiseConstantParameter *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseConstantParameter * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PiecewiseConstantParameter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_PiecewiseConstantParameter, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_delete_Option(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option *arg1 = (Option *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Option",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Option, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Option" "', argument " "1"" of type '" "Option *""'"); 
  }
  arg1 = reinterpret_cast< Option * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Option_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Option, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Barrier(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Barrier *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Barrier",0,0)) SWIG_fail;
  {
    try {
      result = (Barrier *)new Barrier();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Barrier, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Barrier(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Barrier *arg1 = (Barrier *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Barrier",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Barrier, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Barrier" "', argument " "1"" of type '" "Barrier *""'"); 
  }
  arg1 = reinterpret_cast< Barrier * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Barrier_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Barrier, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DoubleBarrier(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DoubleBarrier *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DoubleBarrier",0,0)) SWIG_fail;
  {
    try {
      result = (DoubleBarrier *)new DoubleBarrier();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DoubleBarrier, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DoubleBarrier(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DoubleBarrier *arg1 = (DoubleBarrier *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DoubleBarrier",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DoubleBarrier, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DoubleBarrier" "', argument " "1"" of type '" "DoubleBarrier *""'"); 
  }
  arg1 = reinterpret_cast< DoubleBarrier * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DoubleBarrier_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DoubleBarrier, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Payoff___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Payoff > *arg1 = (boost::shared_ptr< Payoff > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Payoff *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Payoff___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Payoff_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Payoff___deref__" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp1);
  {
    try {
      result = (Payoff *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Payoff, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Payoff___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Payoff > *arg1 = (boost::shared_ptr< Payoff > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Payoff___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Payoff_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Payoff___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Payoff_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Payoff___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Payoff > *arg1 = (boost::shared_ptr< Payoff > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Payoff___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Payoff_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Payoff___bool__" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Payoff_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Payoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Payoff > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Payoff",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< Payoff > *)new boost::shared_ptr< Payoff >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Payoff_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Payoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Payoff > *arg1 = (boost::shared_ptr< Payoff > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Payoff",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Payoff_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Payoff" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Payoff___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Payoff > *arg1 = (boost::shared_ptr< Payoff > *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Payoff___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Payoff_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Payoff___call__" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Payoff___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(*arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Payoff_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_Payoff_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_VanillaOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Payoff > *arg1 = 0 ;
  boost::shared_ptr< Exercise > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  VanillaOptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_VanillaOption",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Payoff_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VanillaOption" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VanillaOption" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VanillaOption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VanillaOption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp2);
  {
    try {
      result = (VanillaOptionPtr *)new_VanillaOptionPtr((boost::shared_ptr< Payoff > const &)*arg1,(boost::shared_ptr< Exercise > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VanillaOptionPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaOption_priceCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaOptionPtr *arg1 = (VanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SampledCurve result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaOption_priceCurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaOption_priceCurve" "', argument " "1"" of type '" "VanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaOptionPtr * >(argp1);
  {
    try {
      result = VanillaOptionPtr_priceCurve(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new SampledCurve(static_cast< const SampledCurve& >(result))), SWIGTYPE_p_SampledCurve, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaOption_impliedVolatility__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaOptionPtr *arg1 = (VanillaOptionPtr *) 0 ;
  Real arg2 ;
  GeneralizedBlackScholesProcessPtr *arg3 = 0 ;
  Real arg4 ;
  Size arg5 ;
  Volatility arg6 ;
  Volatility arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  size_t val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaOption_impliedVolatility",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaOption_impliedVolatility" "', argument " "1"" of type '" "VanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaOptionPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VanillaOption_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg3 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VanillaOption_impliedVolatility" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_size_t(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "VanillaOption_impliedVolatility" "', argument " "5"" of type '" "Size""'");
  } 
  arg5 = static_cast< Size >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "VanillaOption_impliedVolatility" "', argument " "6"" of type '" "Volatility""'");
  } 
  arg6 = static_cast< Volatility >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "VanillaOption_impliedVolatility" "', argument " "7"" of type '" "Volatility""'");
  } 
  arg7 = static_cast< Volatility >(val7);
  {
    try {
      result = (Volatility)VanillaOptionPtr_impliedVolatility__SWIG_0(arg1,arg2,(GeneralizedBlackScholesProcessPtr const &)*arg3,arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaOption_impliedVolatility__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaOptionPtr *arg1 = (VanillaOptionPtr *) 0 ;
  Real arg2 ;
  GeneralizedBlackScholesProcessPtr *arg3 = 0 ;
  Real arg4 ;
  Size arg5 ;
  Volatility arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  size_t val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaOption_impliedVolatility",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaOption_impliedVolatility" "', argument " "1"" of type '" "VanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaOptionPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VanillaOption_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg3 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VanillaOption_impliedVolatility" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_size_t(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "VanillaOption_impliedVolatility" "', argument " "5"" of type '" "Size""'");
  } 
  arg5 = static_cast< Size >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "VanillaOption_impliedVolatility" "', argument " "6"" of type '" "Volatility""'");
  } 
  arg6 = static_cast< Volatility >(val6);
  {
    try {
      result = (Volatility)VanillaOptionPtr_impliedVolatility__SWIG_0(arg1,arg2,(GeneralizedBlackScholesProcessPtr const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaOption_impliedVolatility__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaOptionPtr *arg1 = (VanillaOptionPtr *) 0 ;
  Real arg2 ;
  GeneralizedBlackScholesProcessPtr *arg3 = 0 ;
  Real arg4 ;
  Size arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  size_t val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaOption_impliedVolatility",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaOption_impliedVolatility" "', argument " "1"" of type '" "VanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaOptionPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VanillaOption_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg3 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VanillaOption_impliedVolatility" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_size_t(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "VanillaOption_impliedVolatility" "', argument " "5"" of type '" "Size""'");
  } 
  arg5 = static_cast< Size >(val5);
  {
    try {
      result = (Volatility)VanillaOptionPtr_impliedVolatility__SWIG_0(arg1,arg2,(GeneralizedBlackScholesProcessPtr const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaOption_impliedVolatility__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaOptionPtr *arg1 = (VanillaOptionPtr *) 0 ;
  Real arg2 ;
  GeneralizedBlackScholesProcessPtr *arg3 = 0 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaOption_impliedVolatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaOption_impliedVolatility" "', argument " "1"" of type '" "VanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaOptionPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VanillaOption_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg3 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VanillaOption_impliedVolatility" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Volatility)VanillaOptionPtr_impliedVolatility__SWIG_0(arg1,arg2,(GeneralizedBlackScholesProcessPtr const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaOption_impliedVolatility__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaOptionPtr *arg1 = (VanillaOptionPtr *) 0 ;
  Real arg2 ;
  GeneralizedBlackScholesProcessPtr *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaOption_impliedVolatility",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaOption_impliedVolatility" "', argument " "1"" of type '" "VanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaOptionPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VanillaOption_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg3 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp3);
  {
    try {
      result = (Volatility)VanillaOptionPtr_impliedVolatility__SWIG_0(arg1,arg2,(GeneralizedBlackScholesProcessPtr const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaOption_impliedVolatility(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_VanillaOptionPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_VanillaOption_impliedVolatility__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_VanillaOptionPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_VanillaOption_impliedVolatility__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_VanillaOptionPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
            }
            if (_v) {
              return _wrap_VanillaOption_impliedVolatility__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_VanillaOptionPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_VanillaOption_impliedVolatility__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_VanillaOptionPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_VanillaOption_impliedVolatility__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VanillaOption_impliedVolatility'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    VanillaOptionPtr::impliedVolatility(Real,GeneralizedBlackScholesProcessPtr const &,Real,Size,Volatility,Volatility)\n"
    "    VanillaOptionPtr::impliedVolatility(Real,GeneralizedBlackScholesProcessPtr const &,Real,Size,Volatility)\n"
    "    VanillaOptionPtr::impliedVolatility(Real,GeneralizedBlackScholesProcessPtr const &,Real,Size)\n"
    "    VanillaOptionPtr::impliedVolatility(Real,GeneralizedBlackScholesProcessPtr const &,Real)\n"
    "    VanillaOptionPtr::impliedVolatility(Real,GeneralizedBlackScholesProcessPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_VanillaOption_delta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaOptionPtr *arg1 = (VanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaOption_delta",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaOption_delta" "', argument " "1"" of type '" "VanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)VanillaOptionPtr_delta(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaOption_gamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaOptionPtr *arg1 = (VanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaOption_gamma",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaOption_gamma" "', argument " "1"" of type '" "VanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)VanillaOptionPtr_gamma(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaOption_theta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaOptionPtr *arg1 = (VanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaOption_theta",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaOption_theta" "', argument " "1"" of type '" "VanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)VanillaOptionPtr_theta(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaOption_thetaPerDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaOptionPtr *arg1 = (VanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaOption_thetaPerDay",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaOption_thetaPerDay" "', argument " "1"" of type '" "VanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)VanillaOptionPtr_thetaPerDay(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaOption_vega(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaOptionPtr *arg1 = (VanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaOption_vega",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaOption_vega" "', argument " "1"" of type '" "VanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)VanillaOptionPtr_vega(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaOption_rho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaOptionPtr *arg1 = (VanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaOption_rho",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaOption_rho" "', argument " "1"" of type '" "VanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)VanillaOptionPtr_rho(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaOption_dividendRho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaOptionPtr *arg1 = (VanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaOption_dividendRho",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaOption_dividendRho" "', argument " "1"" of type '" "VanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)VanillaOptionPtr_dividendRho(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaOption_strikeSensitivity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaOptionPtr *arg1 = (VanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaOption_strikeSensitivity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaOption_strikeSensitivity" "', argument " "1"" of type '" "VanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)VanillaOptionPtr_strikeSensitivity(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_VanillaOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaOptionPtr *arg1 = (VanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_VanillaOption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaOptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VanillaOption" "', argument " "1"" of type '" "VanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaOptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *VanillaOption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_VanillaOptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EuropeanOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Payoff > *arg1 = 0 ;
  boost::shared_ptr< Exercise > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  EuropeanOptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EuropeanOption",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Payoff_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EuropeanOption" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuropeanOption" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EuropeanOption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EuropeanOption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp2);
  {
    try {
      result = (EuropeanOptionPtr *)new_EuropeanOptionPtr((boost::shared_ptr< Payoff > const &)*arg1,(boost::shared_ptr< Exercise > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EuropeanOptionPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_EuropeanOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EuropeanOptionPtr *arg1 = (EuropeanOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EuropeanOption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EuropeanOptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EuropeanOption" "', argument " "1"" of type '" "EuropeanOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< EuropeanOptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EuropeanOption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EuropeanOptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ForwardVanillaOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Date arg2 ;
  boost::shared_ptr< Payoff > *arg3 = 0 ;
  boost::shared_ptr< Exercise > *arg4 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  ForwardVanillaOptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ForwardVanillaOption",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ForwardVanillaOption" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ForwardVanillaOption" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardVanillaOption" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Payoff_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ForwardVanillaOption" "', argument " "3"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardVanillaOption" "', argument " "3"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  arg3 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ForwardVanillaOption" "', argument " "4"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardVanillaOption" "', argument " "4"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg4 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp4);
  {
    try {
      result = (ForwardVanillaOptionPtr *)new_ForwardVanillaOptionPtr(arg1,arg2,(boost::shared_ptr< Payoff > const &)*arg3,(boost::shared_ptr< Exercise > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ForwardVanillaOptionPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ForwardVanillaOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardVanillaOptionPtr *arg1 = (ForwardVanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ForwardVanillaOption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardVanillaOptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ForwardVanillaOption" "', argument " "1"" of type '" "ForwardVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< ForwardVanillaOptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ForwardVanillaOption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ForwardVanillaOptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_QuantoVanillaOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Payoff > *arg1 = 0 ;
  boost::shared_ptr< Exercise > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  QuantoVanillaOptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuantoVanillaOption",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Payoff_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QuantoVanillaOption" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuantoVanillaOption" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_QuantoVanillaOption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuantoVanillaOption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp2);
  {
    try {
      result = (QuantoVanillaOptionPtr *)new_QuantoVanillaOptionPtr((boost::shared_ptr< Payoff > const &)*arg1,(boost::shared_ptr< Exercise > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantoVanillaOptionPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantoVanillaOption_qvega(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantoVanillaOptionPtr *arg1 = (QuantoVanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuantoVanillaOption_qvega",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantoVanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantoVanillaOption_qvega" "', argument " "1"" of type '" "QuantoVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< QuantoVanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)QuantoVanillaOptionPtr_qvega(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantoVanillaOption_qrho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantoVanillaOptionPtr *arg1 = (QuantoVanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuantoVanillaOption_qrho",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantoVanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantoVanillaOption_qrho" "', argument " "1"" of type '" "QuantoVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< QuantoVanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)QuantoVanillaOptionPtr_qrho(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantoVanillaOption_qlambda(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantoVanillaOptionPtr *arg1 = (QuantoVanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuantoVanillaOption_qlambda",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantoVanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantoVanillaOption_qlambda" "', argument " "1"" of type '" "QuantoVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< QuantoVanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)QuantoVanillaOptionPtr_qlambda(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_QuantoVanillaOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantoVanillaOptionPtr *arg1 = (QuantoVanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_QuantoVanillaOption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantoVanillaOptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_QuantoVanillaOption" "', argument " "1"" of type '" "QuantoVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< QuantoVanillaOptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *QuantoVanillaOption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantoVanillaOptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_QuantoForwardVanillaOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Date arg2 ;
  boost::shared_ptr< Payoff > *arg3 = 0 ;
  boost::shared_ptr< Exercise > *arg4 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  QuantoForwardVanillaOptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuantoForwardVanillaOption",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QuantoForwardVanillaOption" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_QuantoForwardVanillaOption" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuantoForwardVanillaOption" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Payoff_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_QuantoForwardVanillaOption" "', argument " "3"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuantoForwardVanillaOption" "', argument " "3"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  arg3 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_QuantoForwardVanillaOption" "', argument " "4"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuantoForwardVanillaOption" "', argument " "4"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg4 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp4);
  {
    try {
      result = (QuantoForwardVanillaOptionPtr *)new_QuantoForwardVanillaOptionPtr(arg1,arg2,(boost::shared_ptr< Payoff > const &)*arg3,(boost::shared_ptr< Exercise > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantoForwardVanillaOptionPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_QuantoForwardVanillaOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantoForwardVanillaOptionPtr *arg1 = (QuantoForwardVanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_QuantoForwardVanillaOption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantoForwardVanillaOptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_QuantoForwardVanillaOption" "', argument " "1"" of type '" "QuantoForwardVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< QuantoForwardVanillaOptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *QuantoForwardVanillaOption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantoForwardVanillaOptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_MultiAssetOption_delta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MultiAssetOptionPtr *arg1 = (MultiAssetOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultiAssetOption_delta",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MultiAssetOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiAssetOption_delta" "', argument " "1"" of type '" "MultiAssetOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< MultiAssetOptionPtr * >(argp1);
  {
    try {
      result = (Real)MultiAssetOptionPtr_delta(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultiAssetOption_gamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MultiAssetOptionPtr *arg1 = (MultiAssetOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultiAssetOption_gamma",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MultiAssetOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiAssetOption_gamma" "', argument " "1"" of type '" "MultiAssetOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< MultiAssetOptionPtr * >(argp1);
  {
    try {
      result = (Real)MultiAssetOptionPtr_gamma(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultiAssetOption_theta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MultiAssetOptionPtr *arg1 = (MultiAssetOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultiAssetOption_theta",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MultiAssetOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiAssetOption_theta" "', argument " "1"" of type '" "MultiAssetOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< MultiAssetOptionPtr * >(argp1);
  {
    try {
      result = (Real)MultiAssetOptionPtr_theta(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultiAssetOption_vega(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MultiAssetOptionPtr *arg1 = (MultiAssetOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultiAssetOption_vega",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MultiAssetOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiAssetOption_vega" "', argument " "1"" of type '" "MultiAssetOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< MultiAssetOptionPtr * >(argp1);
  {
    try {
      result = (Real)MultiAssetOptionPtr_vega(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultiAssetOption_rho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MultiAssetOptionPtr *arg1 = (MultiAssetOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultiAssetOption_rho",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MultiAssetOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiAssetOption_rho" "', argument " "1"" of type '" "MultiAssetOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< MultiAssetOptionPtr * >(argp1);
  {
    try {
      result = (Real)MultiAssetOptionPtr_rho(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultiAssetOption_dividendRho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MultiAssetOptionPtr *arg1 = (MultiAssetOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultiAssetOption_dividendRho",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MultiAssetOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiAssetOption_dividendRho" "', argument " "1"" of type '" "MultiAssetOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< MultiAssetOptionPtr * >(argp1);
  {
    try {
      result = (Real)MultiAssetOptionPtr_dividendRho(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MultiAssetOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MultiAssetOptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MultiAssetOption",0,0)) SWIG_fail;
  {
    try {
      result = (MultiAssetOptionPtr *)new MultiAssetOptionPtr();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MultiAssetOptionPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MultiAssetOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MultiAssetOptionPtr *arg1 = (MultiAssetOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MultiAssetOption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MultiAssetOptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MultiAssetOption" "', argument " "1"" of type '" "MultiAssetOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< MultiAssetOptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MultiAssetOption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MultiAssetOptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AnalyticEuropeanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  AnalyticEuropeanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticEuropeanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (AnalyticEuropeanEnginePtr *)new_AnalyticEuropeanEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticEuropeanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_AnalyticEuropeanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AnalyticEuropeanEnginePtr *arg1 = (AnalyticEuropeanEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AnalyticEuropeanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AnalyticEuropeanEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AnalyticEuropeanEngine" "', argument " "1"" of type '" "AnalyticEuropeanEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< AnalyticEuropeanEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AnalyticEuropeanEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AnalyticEuropeanEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_HestonModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HestonProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  HestonModelPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HestonModel",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HestonProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HestonModel" "', argument " "1"" of type '" "HestonProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HestonModel" "', argument " "1"" of type '" "HestonProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< HestonProcessPtr * >(argp1);
  {
    try {
      result = (HestonModelPtr *)new_HestonModelPtr((HestonProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HestonModelPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HestonModel_theta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HestonModelPtr *arg1 = (HestonModelPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"HestonModel_theta",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HestonModelPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HestonModel_theta" "', argument " "1"" of type '" "HestonModelPtr const *""'"); 
  }
  arg1 = reinterpret_cast< HestonModelPtr * >(argp1);
  {
    try {
      result = (Real)HestonModelPtr_theta((HestonModelPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HestonModel_kappa(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HestonModelPtr *arg1 = (HestonModelPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"HestonModel_kappa",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HestonModelPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HestonModel_kappa" "', argument " "1"" of type '" "HestonModelPtr const *""'"); 
  }
  arg1 = reinterpret_cast< HestonModelPtr * >(argp1);
  {
    try {
      result = (Real)HestonModelPtr_kappa((HestonModelPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HestonModel_sigma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HestonModelPtr *arg1 = (HestonModelPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"HestonModel_sigma",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HestonModelPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HestonModel_sigma" "', argument " "1"" of type '" "HestonModelPtr const *""'"); 
  }
  arg1 = reinterpret_cast< HestonModelPtr * >(argp1);
  {
    try {
      result = (Real)HestonModelPtr_sigma((HestonModelPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HestonModel_rho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HestonModelPtr *arg1 = (HestonModelPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"HestonModel_rho",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HestonModelPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HestonModel_rho" "', argument " "1"" of type '" "HestonModelPtr const *""'"); 
  }
  arg1 = reinterpret_cast< HestonModelPtr * >(argp1);
  {
    try {
      result = (Real)HestonModelPtr_rho((HestonModelPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HestonModel_v0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HestonModelPtr *arg1 = (HestonModelPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"HestonModel_v0",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HestonModelPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HestonModel_v0" "', argument " "1"" of type '" "HestonModelPtr const *""'"); 
  }
  arg1 = reinterpret_cast< HestonModelPtr * >(argp1);
  {
    try {
      result = (Real)HestonModelPtr_v0((HestonModelPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_HestonModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HestonModelPtr *arg1 = (HestonModelPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_HestonModel",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HestonModelPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HestonModel" "', argument " "1"" of type '" "HestonModelPtr *""'"); 
  }
  arg1 = reinterpret_cast< HestonModelPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *HestonModel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HestonModelPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PiecewiseTimeDependentHestonModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  Real arg4 ;
  Parameter *arg5 = 0 ;
  Parameter *arg6 = 0 ;
  Parameter *arg7 = 0 ;
  Parameter *arg8 = 0 ;
  TimeGrid *arg9 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PiecewiseTimeDependentHestonModelPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseTimeDependentHestonModel",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseTimeDependentHestonModel" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseTimeDependentHestonModel" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseTimeDependentHestonModel" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseTimeDependentHestonModel" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseTimeDependentHestonModel" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseTimeDependentHestonModel" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_PiecewiseTimeDependentHestonModel" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Parameter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseTimeDependentHestonModel" "', argument " "5"" of type '" "Parameter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseTimeDependentHestonModel" "', argument " "5"" of type '" "Parameter const &""'"); 
  }
  arg5 = reinterpret_cast< Parameter * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Parameter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PiecewiseTimeDependentHestonModel" "', argument " "6"" of type '" "Parameter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseTimeDependentHestonModel" "', argument " "6"" of type '" "Parameter const &""'"); 
  }
  arg6 = reinterpret_cast< Parameter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Parameter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_PiecewiseTimeDependentHestonModel" "', argument " "7"" of type '" "Parameter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseTimeDependentHestonModel" "', argument " "7"" of type '" "Parameter const &""'"); 
  }
  arg7 = reinterpret_cast< Parameter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Parameter,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_PiecewiseTimeDependentHestonModel" "', argument " "8"" of type '" "Parameter const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseTimeDependentHestonModel" "', argument " "8"" of type '" "Parameter const &""'"); 
  }
  arg8 = reinterpret_cast< Parameter * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_TimeGrid,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_PiecewiseTimeDependentHestonModel" "', argument " "9"" of type '" "TimeGrid const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseTimeDependentHestonModel" "', argument " "9"" of type '" "TimeGrid const &""'"); 
  }
  arg9 = reinterpret_cast< TimeGrid * >(argp9);
  {
    try {
      result = (PiecewiseTimeDependentHestonModelPtr *)new_PiecewiseTimeDependentHestonModelPtr((Handle< YieldTermStructure > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< Quote > const &)*arg3,arg4,(Parameter const &)*arg5,(Parameter const &)*arg6,(Parameter const &)*arg7,(Parameter const &)*arg8,(TimeGrid const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseTimeDependentHestonModel_theta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseTimeDependentHestonModelPtr *arg1 = (PiecewiseTimeDependentHestonModelPtr *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseTimeDependentHestonModel_theta",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseTimeDependentHestonModel_theta" "', argument " "1"" of type '" "PiecewiseTimeDependentHestonModelPtr const *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseTimeDependentHestonModelPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PiecewiseTimeDependentHestonModel_theta" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)PiecewiseTimeDependentHestonModelPtr_theta((PiecewiseTimeDependentHestonModelPtr const *)arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseTimeDependentHestonModel_kappa(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseTimeDependentHestonModelPtr *arg1 = (PiecewiseTimeDependentHestonModelPtr *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseTimeDependentHestonModel_kappa",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseTimeDependentHestonModel_kappa" "', argument " "1"" of type '" "PiecewiseTimeDependentHestonModelPtr const *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseTimeDependentHestonModelPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PiecewiseTimeDependentHestonModel_kappa" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)PiecewiseTimeDependentHestonModelPtr_kappa((PiecewiseTimeDependentHestonModelPtr const *)arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseTimeDependentHestonModel_sigma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseTimeDependentHestonModelPtr *arg1 = (PiecewiseTimeDependentHestonModelPtr *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseTimeDependentHestonModel_sigma",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseTimeDependentHestonModel_sigma" "', argument " "1"" of type '" "PiecewiseTimeDependentHestonModelPtr const *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseTimeDependentHestonModelPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PiecewiseTimeDependentHestonModel_sigma" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)PiecewiseTimeDependentHestonModelPtr_sigma((PiecewiseTimeDependentHestonModelPtr const *)arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseTimeDependentHestonModel_rho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseTimeDependentHestonModelPtr *arg1 = (PiecewiseTimeDependentHestonModelPtr *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseTimeDependentHestonModel_rho",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseTimeDependentHestonModel_rho" "', argument " "1"" of type '" "PiecewiseTimeDependentHestonModelPtr const *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseTimeDependentHestonModelPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PiecewiseTimeDependentHestonModel_rho" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)PiecewiseTimeDependentHestonModelPtr_rho((PiecewiseTimeDependentHestonModelPtr const *)arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseTimeDependentHestonModel_v0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseTimeDependentHestonModelPtr *arg1 = (PiecewiseTimeDependentHestonModelPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseTimeDependentHestonModel_v0",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseTimeDependentHestonModel_v0" "', argument " "1"" of type '" "PiecewiseTimeDependentHestonModelPtr const *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseTimeDependentHestonModelPtr * >(argp1);
  {
    try {
      result = (Real)PiecewiseTimeDependentHestonModelPtr_v0((PiecewiseTimeDependentHestonModelPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseTimeDependentHestonModel_s0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseTimeDependentHestonModelPtr *arg1 = (PiecewiseTimeDependentHestonModelPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseTimeDependentHestonModel_s0",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseTimeDependentHestonModel_s0" "', argument " "1"" of type '" "PiecewiseTimeDependentHestonModelPtr const *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseTimeDependentHestonModelPtr * >(argp1);
  {
    try {
      result = (Real)PiecewiseTimeDependentHestonModelPtr_s0((PiecewiseTimeDependentHestonModelPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseTimeDependentHestonModel_timeGrid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseTimeDependentHestonModelPtr *arg1 = (PiecewiseTimeDependentHestonModelPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  TimeGrid *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseTimeDependentHestonModel_timeGrid",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseTimeDependentHestonModel_timeGrid" "', argument " "1"" of type '" "PiecewiseTimeDependentHestonModelPtr const *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseTimeDependentHestonModelPtr * >(argp1);
  {
    try {
      result = (TimeGrid *) &PiecewiseTimeDependentHestonModelPtr_timeGrid((PiecewiseTimeDependentHestonModelPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TimeGrid, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseTimeDependentHestonModel_dividendYield(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseTimeDependentHestonModelPtr *arg1 = (PiecewiseTimeDependentHestonModelPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< YieldTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseTimeDependentHestonModel_dividendYield",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseTimeDependentHestonModel_dividendYield" "', argument " "1"" of type '" "PiecewiseTimeDependentHestonModelPtr const *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseTimeDependentHestonModelPtr * >(argp1);
  {
    try {
      result = (Handle< YieldTermStructure > *) &PiecewiseTimeDependentHestonModelPtr_dividendYield((PiecewiseTimeDependentHestonModelPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseTimeDependentHestonModel_riskFreeRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseTimeDependentHestonModelPtr *arg1 = (PiecewiseTimeDependentHestonModelPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< YieldTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseTimeDependentHestonModel_riskFreeRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseTimeDependentHestonModel_riskFreeRate" "', argument " "1"" of type '" "PiecewiseTimeDependentHestonModelPtr const *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseTimeDependentHestonModelPtr * >(argp1);
  {
    try {
      result = (Handle< YieldTermStructure > *) &PiecewiseTimeDependentHestonModelPtr_riskFreeRate((PiecewiseTimeDependentHestonModelPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_YieldTermStructure_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PiecewiseTimeDependentHestonModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseTimeDependentHestonModelPtr *arg1 = (PiecewiseTimeDependentHestonModelPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PiecewiseTimeDependentHestonModel",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PiecewiseTimeDependentHestonModel" "', argument " "1"" of type '" "PiecewiseTimeDependentHestonModelPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseTimeDependentHestonModelPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PiecewiseTimeDependentHestonModel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AnalyticHestonEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HestonModelPtr *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  AnalyticHestonEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticHestonEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HestonModelPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticHestonEngine" "', argument " "1"" of type '" "HestonModelPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticHestonEngine" "', argument " "1"" of type '" "HestonModelPtr const &""'"); 
  }
  arg1 = reinterpret_cast< HestonModelPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AnalyticHestonEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (AnalyticHestonEnginePtr *)new_AnalyticHestonEnginePtr__SWIG_0((HestonModelPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticHestonEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_AnalyticHestonEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HestonModelPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  AnalyticHestonEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticHestonEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HestonModelPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticHestonEngine" "', argument " "1"" of type '" "HestonModelPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticHestonEngine" "', argument " "1"" of type '" "HestonModelPtr const &""'"); 
  }
  arg1 = reinterpret_cast< HestonModelPtr * >(argp1);
  {
    try {
      result = (AnalyticHestonEnginePtr *)new_AnalyticHestonEnginePtr__SWIG_0((HestonModelPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticHestonEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_AnalyticHestonEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HestonModelPtr *arg1 = 0 ;
  Real arg2 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  AnalyticHestonEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticHestonEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HestonModelPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticHestonEngine" "', argument " "1"" of type '" "HestonModelPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticHestonEngine" "', argument " "1"" of type '" "HestonModelPtr const &""'"); 
  }
  arg1 = reinterpret_cast< HestonModelPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AnalyticHestonEngine" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_AnalyticHestonEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (AnalyticHestonEnginePtr *)new_AnalyticHestonEnginePtr__SWIG_2((HestonModelPtr const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticHestonEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_AnalyticHestonEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HestonModelPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_AnalyticHestonEngine__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HestonModelPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_AnalyticHestonEngine__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HestonModelPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          return _wrap_new_AnalyticHestonEngine__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_AnalyticHestonEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    AnalyticHestonEnginePtr::AnalyticHestonEnginePtr(HestonModelPtr const &,Size)\n"
    "    AnalyticHestonEnginePtr::AnalyticHestonEnginePtr(HestonModelPtr const &)\n"
    "    AnalyticHestonEnginePtr::AnalyticHestonEnginePtr(HestonModelPtr const &,Real,Size)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_AnalyticHestonEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AnalyticHestonEnginePtr *arg1 = (AnalyticHestonEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AnalyticHestonEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AnalyticHestonEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AnalyticHestonEngine" "', argument " "1"" of type '" "AnalyticHestonEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< AnalyticHestonEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AnalyticHestonEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AnalyticHestonEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AnalyticPTDHestonEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseTimeDependentHestonModelPtr *arg1 = 0 ;
  Real arg2 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  AnalyticPTDHestonEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticPTDHestonEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticPTDHestonEngine" "', argument " "1"" of type '" "PiecewiseTimeDependentHestonModelPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticPTDHestonEngine" "', argument " "1"" of type '" "PiecewiseTimeDependentHestonModelPtr const &""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseTimeDependentHestonModelPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AnalyticPTDHestonEngine" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_AnalyticPTDHestonEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (AnalyticPTDHestonEnginePtr *)new_AnalyticPTDHestonEnginePtr__SWIG_0((PiecewiseTimeDependentHestonModelPtr const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticPTDHestonEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_AnalyticPTDHestonEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseTimeDependentHestonModelPtr *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  AnalyticPTDHestonEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticPTDHestonEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticPTDHestonEngine" "', argument " "1"" of type '" "PiecewiseTimeDependentHestonModelPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticPTDHestonEngine" "', argument " "1"" of type '" "PiecewiseTimeDependentHestonModelPtr const &""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseTimeDependentHestonModelPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AnalyticPTDHestonEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (AnalyticPTDHestonEnginePtr *)new_AnalyticPTDHestonEnginePtr__SWIG_1((PiecewiseTimeDependentHestonModelPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticPTDHestonEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_AnalyticPTDHestonEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseTimeDependentHestonModelPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  AnalyticPTDHestonEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticPTDHestonEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticPTDHestonEngine" "', argument " "1"" of type '" "PiecewiseTimeDependentHestonModelPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticPTDHestonEngine" "', argument " "1"" of type '" "PiecewiseTimeDependentHestonModelPtr const &""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseTimeDependentHestonModelPtr * >(argp1);
  {
    try {
      result = (AnalyticPTDHestonEnginePtr *)new_AnalyticPTDHestonEnginePtr__SWIG_1((PiecewiseTimeDependentHestonModelPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticPTDHestonEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_AnalyticPTDHestonEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_AnalyticPTDHestonEngine__SWIG_2(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_AnalyticPTDHestonEngine__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_PiecewiseTimeDependentHestonModelPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          return _wrap_new_AnalyticPTDHestonEngine__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_AnalyticPTDHestonEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    AnalyticPTDHestonEnginePtr::AnalyticPTDHestonEnginePtr(PiecewiseTimeDependentHestonModelPtr const &,Real,Size)\n"
    "    AnalyticPTDHestonEnginePtr::AnalyticPTDHestonEnginePtr(PiecewiseTimeDependentHestonModelPtr const &,Size)\n"
    "    AnalyticPTDHestonEnginePtr::AnalyticPTDHestonEnginePtr(PiecewiseTimeDependentHestonModelPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_AnalyticPTDHestonEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AnalyticPTDHestonEnginePtr *arg1 = (AnalyticPTDHestonEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AnalyticPTDHestonEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AnalyticPTDHestonEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AnalyticPTDHestonEngine" "', argument " "1"" of type '" "AnalyticPTDHestonEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< AnalyticPTDHestonEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AnalyticPTDHestonEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AnalyticPTDHestonEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BatesModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BatesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BatesModelPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BatesModel",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BatesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BatesModel" "', argument " "1"" of type '" "BatesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BatesModel" "', argument " "1"" of type '" "BatesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BatesProcessPtr * >(argp1);
  {
    try {
      result = (BatesModelPtr *)new_BatesModelPtr((BatesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BatesModelPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BatesModel_nu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BatesModelPtr *arg1 = (BatesModelPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BatesModel_nu",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BatesModelPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BatesModel_nu" "', argument " "1"" of type '" "BatesModelPtr const *""'"); 
  }
  arg1 = reinterpret_cast< BatesModelPtr * >(argp1);
  {
    try {
      result = (Real)BatesModelPtr_nu((BatesModelPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BatesModel_delta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BatesModelPtr *arg1 = (BatesModelPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BatesModel_delta",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BatesModelPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BatesModel_delta" "', argument " "1"" of type '" "BatesModelPtr const *""'"); 
  }
  arg1 = reinterpret_cast< BatesModelPtr * >(argp1);
  {
    try {
      result = (Real)BatesModelPtr_delta((BatesModelPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BatesModel_lambda_parameter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BatesModelPtr *arg1 = (BatesModelPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BatesModel_lambda_parameter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BatesModelPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BatesModel_lambda_parameter" "', argument " "1"" of type '" "BatesModelPtr const *""'"); 
  }
  arg1 = reinterpret_cast< BatesModelPtr * >(argp1);
  {
    try {
      result = (Real)BatesModelPtr_lambda((BatesModelPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BatesModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BatesModelPtr *arg1 = (BatesModelPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BatesModel",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BatesModelPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BatesModel" "', argument " "1"" of type '" "BatesModelPtr *""'"); 
  }
  arg1 = reinterpret_cast< BatesModelPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BatesModel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BatesModelPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BatesEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BatesModelPtr *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BatesEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BatesEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BatesModelPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BatesEngine" "', argument " "1"" of type '" "BatesModelPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BatesEngine" "', argument " "1"" of type '" "BatesModelPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BatesModelPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BatesEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (BatesEnginePtr *)new_BatesEnginePtr__SWIG_0((BatesModelPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BatesEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BatesEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BatesModelPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BatesEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BatesEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BatesModelPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BatesEngine" "', argument " "1"" of type '" "BatesModelPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BatesEngine" "', argument " "1"" of type '" "BatesModelPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BatesModelPtr * >(argp1);
  {
    try {
      result = (BatesEnginePtr *)new_BatesEnginePtr__SWIG_0((BatesModelPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BatesEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BatesEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BatesModelPtr *arg1 = 0 ;
  Real arg2 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  BatesEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BatesEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BatesModelPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BatesEngine" "', argument " "1"" of type '" "BatesModelPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BatesEngine" "', argument " "1"" of type '" "BatesModelPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BatesModelPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BatesEngine" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BatesEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (BatesEnginePtr *)new_BatesEnginePtr__SWIG_2((BatesModelPtr const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BatesEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BatesEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BatesModelPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_BatesEngine__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BatesModelPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_BatesEngine__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BatesModelPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          return _wrap_new_BatesEngine__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BatesEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BatesEnginePtr::BatesEnginePtr(BatesModelPtr const &,Size)\n"
    "    BatesEnginePtr::BatesEnginePtr(BatesModelPtr const &)\n"
    "    BatesEnginePtr::BatesEnginePtr(BatesModelPtr const &,Real,Size)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_BatesEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BatesEnginePtr *arg1 = (BatesEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BatesEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BatesEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BatesEngine" "', argument " "1"" of type '" "BatesEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< BatesEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BatesEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BatesEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_IntegralEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  IntegralEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IntegralEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IntegralEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntegralEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (IntegralEnginePtr *)new_IntegralEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IntegralEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_IntegralEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IntegralEnginePtr *arg1 = (IntegralEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_IntegralEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegralEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntegralEngine" "', argument " "1"" of type '" "IntegralEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< IntegralEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *IntegralEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_IntegralEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FDBermudanEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FDBermudanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDBermudanEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDBermudanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDBermudanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FDBermudanEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FDBermudanEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FDBermudanEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (FDBermudanEnginePtr *)new_FDBermudanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDBermudanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDBermudanEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  FDBermudanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDBermudanEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDBermudanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDBermudanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FDBermudanEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FDBermudanEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (FDBermudanEnginePtr *)new_FDBermudanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDBermudanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDBermudanEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  FDBermudanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDBermudanEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDBermudanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDBermudanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FDBermudanEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (FDBermudanEnginePtr *)new_FDBermudanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDBermudanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDBermudanEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  FDBermudanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDBermudanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDBermudanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDBermudanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (FDBermudanEnginePtr *)new_FDBermudanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDBermudanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDBermudanEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_FDBermudanEngine__SWIG_3(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_FDBermudanEngine__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          return _wrap_new_FDBermudanEngine__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_FDBermudanEngine__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FDBermudanEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FDBermudanEnginePtr::FDBermudanEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size,bool)\n"
    "    FDBermudanEnginePtr::FDBermudanEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size)\n"
    "    FDBermudanEnginePtr::FDBermudanEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size)\n"
    "    FDBermudanEnginePtr::FDBermudanEnginePtr(GeneralizedBlackScholesProcessPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FDBermudanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FDBermudanEnginePtr *arg1 = (FDBermudanEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FDBermudanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FDBermudanEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FDBermudanEngine" "', argument " "1"" of type '" "FDBermudanEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< FDBermudanEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FDBermudanEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FDBermudanEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FDEuropeanEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FDEuropeanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDEuropeanEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FDEuropeanEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FDEuropeanEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FDEuropeanEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (FDEuropeanEnginePtr *)new_FDEuropeanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDEuropeanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDEuropeanEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  FDEuropeanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDEuropeanEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FDEuropeanEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FDEuropeanEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (FDEuropeanEnginePtr *)new_FDEuropeanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDEuropeanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDEuropeanEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  FDEuropeanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDEuropeanEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FDEuropeanEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (FDEuropeanEnginePtr *)new_FDEuropeanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDEuropeanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDEuropeanEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  FDEuropeanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDEuropeanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (FDEuropeanEnginePtr *)new_FDEuropeanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDEuropeanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDEuropeanEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_FDEuropeanEngine__SWIG_3(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_FDEuropeanEngine__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          return _wrap_new_FDEuropeanEngine__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_FDEuropeanEngine__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FDEuropeanEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FDEuropeanEnginePtr::FDEuropeanEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size,bool)\n"
    "    FDEuropeanEnginePtr::FDEuropeanEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size)\n"
    "    FDEuropeanEnginePtr::FDEuropeanEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size)\n"
    "    FDEuropeanEnginePtr::FDEuropeanEnginePtr(GeneralizedBlackScholesProcessPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FDEuropeanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FDEuropeanEnginePtr *arg1 = (FDEuropeanEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FDEuropeanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FDEuropeanEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FDEuropeanEngine" "', argument " "1"" of type '" "FDEuropeanEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< FDEuropeanEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FDEuropeanEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FDEuropeanEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BinomialVanillaEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  std::string *arg2 = 0 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  BinomialVanillaEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BinomialVanillaEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BinomialVanillaEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BinomialVanillaEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BinomialVanillaEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BinomialVanillaEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BinomialVanillaEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (BinomialVanillaEnginePtr *)new_BinomialVanillaEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1,(std::string const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BinomialVanillaEnginePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BinomialVanillaEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BinomialVanillaEnginePtr *arg1 = (BinomialVanillaEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BinomialVanillaEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BinomialVanillaEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BinomialVanillaEngine" "', argument " "1"" of type '" "BinomialVanillaEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< BinomialVanillaEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BinomialVanillaEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BinomialVanillaEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MCEuropeanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  std::string *arg2 = 0 ;
  intOrNull arg3 = (intOrNull) Null< Size >() ;
  intOrNull arg4 = (intOrNull) Null< Size >() ;
  bool arg5 = (bool) false ;
  bool arg6 = (bool) false ;
  intOrNull arg7 = (intOrNull) Null< Size >() ;
  doubleOrNull arg8 = (doubleOrNull) Null< Real >() ;
  intOrNull arg9 = (intOrNull) Null< Size >() ;
  BigInteger arg10 = (BigInteger) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  bool val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  long val10 ;
  int ecode10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  char *  kwnames[] = {
    (char *) "process",(char *) "traits",(char *) "timeSteps",(char *) "timeStepsPerYear",(char *) "brownianBridge",(char *) "antitheticVariate",(char *) "requiredSamples",(char *) "requiredTolerance",(char *) "maxSamples",(char *) "seed", NULL 
  };
  MCEuropeanEnginePtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:new_MCEuropeanEngine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MCEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MCEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MCEuropeanEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MCEuropeanEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  if (obj2) {
    {
      if (obj2 == Py_None)
      arg3 = Null<int>();
      else if (PyInt_Check(obj2))
      arg3 = int(PyInt_AsLong(obj2));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj3) {
    {
      if (obj3 == Py_None)
      arg4 = Null<int>();
      else if (PyInt_Check(obj3))
      arg4 = int(PyInt_AsLong(obj3));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj4) {
    ecode5 = SWIG_AsVal_bool(obj4, &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_MCEuropeanEngine" "', argument " "5"" of type '" "bool""'");
    } 
    arg5 = static_cast< bool >(val5);
  }
  if (obj5) {
    ecode6 = SWIG_AsVal_bool(obj5, &val6);
    if (!SWIG_IsOK(ecode6)) {
      SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MCEuropeanEngine" "', argument " "6"" of type '" "bool""'");
    } 
    arg6 = static_cast< bool >(val6);
  }
  if (obj6) {
    {
      if (obj6 == Py_None)
      arg7 = Null<int>();
      else if (PyInt_Check(obj6))
      arg7 = int(PyInt_AsLong(obj6));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj7) {
    {
      if (obj7 == Py_None)
      arg8 = Null<double>();
      else if (PyFloat_Check(obj7))
      arg8 = PyFloat_AsDouble(obj7);
      else
      SWIG_exception(SWIG_TypeError,"double expected");
    }
  }
  if (obj8) {
    {
      if (obj8 == Py_None)
      arg9 = Null<int>();
      else if (PyInt_Check(obj8))
      arg9 = int(PyInt_AsLong(obj8));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj9) {
    ecode10 = SWIG_AsVal_long(obj9, &val10);
    if (!SWIG_IsOK(ecode10)) {
      SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_MCEuropeanEngine" "', argument " "10"" of type '" "BigInteger""'");
    } 
    arg10 = static_cast< BigInteger >(val10);
  }
  {
    try {
      result = (MCEuropeanEnginePtr *)new_MCEuropeanEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1,(std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MCEuropeanEnginePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MCEuropeanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MCEuropeanEnginePtr *arg1 = (MCEuropeanEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MCEuropeanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MCEuropeanEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MCEuropeanEngine" "', argument " "1"" of type '" "MCEuropeanEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< MCEuropeanEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MCEuropeanEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MCEuropeanEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FDAmericanEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FDAmericanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDAmericanEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDAmericanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDAmericanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FDAmericanEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FDAmericanEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FDAmericanEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (FDAmericanEnginePtr *)new_FDAmericanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDAmericanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDAmericanEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  FDAmericanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDAmericanEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDAmericanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDAmericanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FDAmericanEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FDAmericanEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (FDAmericanEnginePtr *)new_FDAmericanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDAmericanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDAmericanEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  FDAmericanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDAmericanEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDAmericanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDAmericanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FDAmericanEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (FDAmericanEnginePtr *)new_FDAmericanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDAmericanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDAmericanEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  FDAmericanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDAmericanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDAmericanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDAmericanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (FDAmericanEnginePtr *)new_FDAmericanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDAmericanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDAmericanEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_FDAmericanEngine__SWIG_3(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_FDAmericanEngine__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          return _wrap_new_FDAmericanEngine__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_FDAmericanEngine__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FDAmericanEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FDAmericanEnginePtr::FDAmericanEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size,bool)\n"
    "    FDAmericanEnginePtr::FDAmericanEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size)\n"
    "    FDAmericanEnginePtr::FDAmericanEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size)\n"
    "    FDAmericanEnginePtr::FDAmericanEnginePtr(GeneralizedBlackScholesProcessPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FDAmericanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FDAmericanEnginePtr *arg1 = (FDAmericanEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FDAmericanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FDAmericanEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FDAmericanEngine" "', argument " "1"" of type '" "FDAmericanEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< FDAmericanEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FDAmericanEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FDAmericanEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FdBlackScholesVanillaEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  Size arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FdBlackScholesVanillaEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdBlackScholesVanillaEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdBlackScholesVanillaEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBlackScholesVanillaEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdBlackScholesVanillaEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdBlackScholesVanillaEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FdBlackScholesVanillaEngine" "', argument " "4"" of type '" "Size""'");
  } 
  arg4 = static_cast< Size >(val4);
  {
    try {
      result = (FdBlackScholesVanillaEnginePtr *)new_FdBlackScholesVanillaEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdBlackScholesVanillaEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdBlackScholesVanillaEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  FdBlackScholesVanillaEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdBlackScholesVanillaEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdBlackScholesVanillaEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBlackScholesVanillaEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdBlackScholesVanillaEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdBlackScholesVanillaEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (FdBlackScholesVanillaEnginePtr *)new_FdBlackScholesVanillaEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdBlackScholesVanillaEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdBlackScholesVanillaEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  FdBlackScholesVanillaEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdBlackScholesVanillaEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdBlackScholesVanillaEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBlackScholesVanillaEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdBlackScholesVanillaEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (FdBlackScholesVanillaEnginePtr *)new_FdBlackScholesVanillaEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdBlackScholesVanillaEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdBlackScholesVanillaEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  FdBlackScholesVanillaEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdBlackScholesVanillaEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdBlackScholesVanillaEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBlackScholesVanillaEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (FdBlackScholesVanillaEnginePtr *)new_FdBlackScholesVanillaEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdBlackScholesVanillaEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdBlackScholesVanillaEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_FdBlackScholesVanillaEngine__SWIG_3(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_FdBlackScholesVanillaEngine__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          return _wrap_new_FdBlackScholesVanillaEngine__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
          }
          if (_v) {
            return _wrap_new_FdBlackScholesVanillaEngine__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FdBlackScholesVanillaEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FdBlackScholesVanillaEnginePtr::FdBlackScholesVanillaEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size,Size)\n"
    "    FdBlackScholesVanillaEnginePtr::FdBlackScholesVanillaEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size)\n"
    "    FdBlackScholesVanillaEnginePtr::FdBlackScholesVanillaEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size)\n"
    "    FdBlackScholesVanillaEnginePtr::FdBlackScholesVanillaEnginePtr(GeneralizedBlackScholesProcessPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FdBlackScholesVanillaEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FdBlackScholesVanillaEnginePtr *arg1 = (FdBlackScholesVanillaEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FdBlackScholesVanillaEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FdBlackScholesVanillaEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FdBlackScholesVanillaEngine" "', argument " "1"" of type '" "FdBlackScholesVanillaEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< FdBlackScholesVanillaEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FdBlackScholesVanillaEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FdBlackScholesVanillaEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FdBatesVanillaEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BatesModelPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  Size arg4 ;
  Size arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  size_t val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  FdBatesVanillaEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdBatesVanillaEngine",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BatesModelPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdBatesVanillaEngine" "', argument " "1"" of type '" "BatesModelPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBatesVanillaEngine" "', argument " "1"" of type '" "BatesModelPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BatesModelPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdBatesVanillaEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdBatesVanillaEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FdBatesVanillaEngine" "', argument " "4"" of type '" "Size""'");
  } 
  arg4 = static_cast< Size >(val4);
  ecode5 = SWIG_AsVal_size_t(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FdBatesVanillaEngine" "', argument " "5"" of type '" "Size""'");
  } 
  arg5 = static_cast< Size >(val5);
  {
    try {
      result = (FdBatesVanillaEnginePtr *)new_FdBatesVanillaEnginePtr__SWIG_0((BatesModelPtr const &)*arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdBatesVanillaEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdBatesVanillaEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BatesModelPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  Size arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FdBatesVanillaEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdBatesVanillaEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BatesModelPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdBatesVanillaEngine" "', argument " "1"" of type '" "BatesModelPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBatesVanillaEngine" "', argument " "1"" of type '" "BatesModelPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BatesModelPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdBatesVanillaEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdBatesVanillaEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FdBatesVanillaEngine" "', argument " "4"" of type '" "Size""'");
  } 
  arg4 = static_cast< Size >(val4);
  {
    try {
      result = (FdBatesVanillaEnginePtr *)new_FdBatesVanillaEnginePtr__SWIG_0((BatesModelPtr const &)*arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdBatesVanillaEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdBatesVanillaEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BatesModelPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  FdBatesVanillaEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdBatesVanillaEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BatesModelPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdBatesVanillaEngine" "', argument " "1"" of type '" "BatesModelPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBatesVanillaEngine" "', argument " "1"" of type '" "BatesModelPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BatesModelPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdBatesVanillaEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdBatesVanillaEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (FdBatesVanillaEnginePtr *)new_FdBatesVanillaEnginePtr__SWIG_0((BatesModelPtr const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdBatesVanillaEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdBatesVanillaEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BatesModelPtr *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  FdBatesVanillaEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdBatesVanillaEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BatesModelPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdBatesVanillaEngine" "', argument " "1"" of type '" "BatesModelPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBatesVanillaEngine" "', argument " "1"" of type '" "BatesModelPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BatesModelPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdBatesVanillaEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (FdBatesVanillaEnginePtr *)new_FdBatesVanillaEnginePtr__SWIG_0((BatesModelPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdBatesVanillaEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdBatesVanillaEngine__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BatesModelPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  FdBatesVanillaEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdBatesVanillaEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BatesModelPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdBatesVanillaEngine" "', argument " "1"" of type '" "BatesModelPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBatesVanillaEngine" "', argument " "1"" of type '" "BatesModelPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BatesModelPtr * >(argp1);
  {
    try {
      result = (FdBatesVanillaEnginePtr *)new_FdBatesVanillaEnginePtr__SWIG_0((BatesModelPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdBatesVanillaEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdBatesVanillaEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BatesModelPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_FdBatesVanillaEngine__SWIG_4(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BatesModelPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_FdBatesVanillaEngine__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BatesModelPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          return _wrap_new_FdBatesVanillaEngine__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BatesModelPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
          }
          if (_v) {
            return _wrap_new_FdBatesVanillaEngine__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BatesModelPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
          }
          if (_v) {
            {
              _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
            }
            if (_v) {
              return _wrap_new_FdBatesVanillaEngine__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FdBatesVanillaEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FdBatesVanillaEnginePtr::FdBatesVanillaEnginePtr(BatesModelPtr const &,Size,Size,Size,Size)\n"
    "    FdBatesVanillaEnginePtr::FdBatesVanillaEnginePtr(BatesModelPtr const &,Size,Size,Size)\n"
    "    FdBatesVanillaEnginePtr::FdBatesVanillaEnginePtr(BatesModelPtr const &,Size,Size)\n"
    "    FdBatesVanillaEnginePtr::FdBatesVanillaEnginePtr(BatesModelPtr const &,Size)\n"
    "    FdBatesVanillaEnginePtr::FdBatesVanillaEnginePtr(BatesModelPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FdBatesVanillaEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FdBatesVanillaEnginePtr *arg1 = (FdBatesVanillaEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FdBatesVanillaEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FdBatesVanillaEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FdBatesVanillaEngine" "', argument " "1"" of type '" "FdBatesVanillaEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< FdBatesVanillaEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FdBatesVanillaEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FdBatesVanillaEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ContinuousArithmeticAsianLevyEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  Date *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  ContinuousArithmeticAsianLevyEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ContinuousArithmeticAsianLevyEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContinuousArithmeticAsianLevyEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ContinuousArithmeticAsianLevyEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ContinuousArithmeticAsianLevyEngine" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ContinuousArithmeticAsianLevyEngine" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ContinuousArithmeticAsianLevyEngine" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ContinuousArithmeticAsianLevyEngine" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  {
    try {
      result = (ContinuousArithmeticAsianLevyEnginePtr *)new_ContinuousArithmeticAsianLevyEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1,(Handle< Quote > const &)*arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ContinuousArithmeticAsianLevyEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ContinuousArithmeticAsianLevyEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ContinuousArithmeticAsianLevyEnginePtr *arg1 = (ContinuousArithmeticAsianLevyEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ContinuousArithmeticAsianLevyEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ContinuousArithmeticAsianLevyEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContinuousArithmeticAsianLevyEngine" "', argument " "1"" of type '" "ContinuousArithmeticAsianLevyEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< ContinuousArithmeticAsianLevyEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ContinuousArithmeticAsianLevyEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ContinuousArithmeticAsianLevyEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FdBlackScholesAsianEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  Size arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FdBlackScholesAsianEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdBlackScholesAsianEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdBlackScholesAsianEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBlackScholesAsianEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdBlackScholesAsianEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdBlackScholesAsianEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FdBlackScholesAsianEngine" "', argument " "4"" of type '" "Size""'");
  } 
  arg4 = static_cast< Size >(val4);
  {
    try {
      result = (FdBlackScholesAsianEnginePtr *)new_FdBlackScholesAsianEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdBlackScholesAsianEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_FdBlackScholesAsianEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FdBlackScholesAsianEnginePtr *arg1 = (FdBlackScholesAsianEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FdBlackScholesAsianEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FdBlackScholesAsianEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FdBlackScholesAsianEngine" "', argument " "1"" of type '" "FdBlackScholesAsianEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< FdBlackScholesAsianEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FdBlackScholesAsianEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FdBlackScholesAsianEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FDShoutEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FDShoutEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDShoutEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDShoutEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDShoutEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FDShoutEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FDShoutEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FDShoutEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (FDShoutEnginePtr *)new_FDShoutEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDShoutEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDShoutEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  FDShoutEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDShoutEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDShoutEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDShoutEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FDShoutEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FDShoutEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (FDShoutEnginePtr *)new_FDShoutEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDShoutEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDShoutEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  FDShoutEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDShoutEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDShoutEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDShoutEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FDShoutEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (FDShoutEnginePtr *)new_FDShoutEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDShoutEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDShoutEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  FDShoutEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDShoutEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDShoutEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDShoutEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (FDShoutEnginePtr *)new_FDShoutEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDShoutEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDShoutEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_FDShoutEngine__SWIG_3(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_FDShoutEngine__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          return _wrap_new_FDShoutEngine__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_FDShoutEngine__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FDShoutEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FDShoutEnginePtr::FDShoutEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size,bool)\n"
    "    FDShoutEnginePtr::FDShoutEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size)\n"
    "    FDShoutEnginePtr::FDShoutEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size)\n"
    "    FDShoutEnginePtr::FDShoutEnginePtr(GeneralizedBlackScholesProcessPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FDShoutEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FDShoutEnginePtr *arg1 = (FDShoutEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FDShoutEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FDShoutEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FDShoutEngine" "', argument " "1"" of type '" "FDShoutEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< FDShoutEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FDShoutEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FDShoutEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BaroneAdesiWhaleyEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BaroneAdesiWhaleyApproximationEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BaroneAdesiWhaleyEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BaroneAdesiWhaleyEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BaroneAdesiWhaleyEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (BaroneAdesiWhaleyApproximationEnginePtr *)new_BaroneAdesiWhaleyApproximationEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BaroneAdesiWhaleyApproximationEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BaroneAdesiWhaleyEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BaroneAdesiWhaleyApproximationEnginePtr *arg1 = (BaroneAdesiWhaleyApproximationEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BaroneAdesiWhaleyEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BaroneAdesiWhaleyApproximationEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BaroneAdesiWhaleyEngine" "', argument " "1"" of type '" "BaroneAdesiWhaleyApproximationEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< BaroneAdesiWhaleyApproximationEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BaroneAdesiWhaleyEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BaroneAdesiWhaleyApproximationEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BjerksundStenslandEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BjerksundStenslandApproximationEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BjerksundStenslandEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BjerksundStenslandEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BjerksundStenslandEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (BjerksundStenslandApproximationEnginePtr *)new_BjerksundStenslandApproximationEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BjerksundStenslandApproximationEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BjerksundStenslandEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BjerksundStenslandApproximationEnginePtr *arg1 = (BjerksundStenslandApproximationEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BjerksundStenslandEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BjerksundStenslandApproximationEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BjerksundStenslandEngine" "', argument " "1"" of type '" "BjerksundStenslandApproximationEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< BjerksundStenslandApproximationEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BjerksundStenslandEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BjerksundStenslandApproximationEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AnalyticDigitalAmericanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  AnalyticDigitalAmericanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticDigitalAmericanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticDigitalAmericanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticDigitalAmericanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (AnalyticDigitalAmericanEnginePtr *)new_AnalyticDigitalAmericanEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticDigitalAmericanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_AnalyticDigitalAmericanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AnalyticDigitalAmericanEnginePtr *arg1 = (AnalyticDigitalAmericanEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AnalyticDigitalAmericanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AnalyticDigitalAmericanEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AnalyticDigitalAmericanEngine" "', argument " "1"" of type '" "AnalyticDigitalAmericanEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< AnalyticDigitalAmericanEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AnalyticDigitalAmericanEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AnalyticDigitalAmericanEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AnalyticDigitalAmericanKOEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  AnalyticDigitalAmericanKOEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticDigitalAmericanKOEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticDigitalAmericanKOEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticDigitalAmericanKOEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (AnalyticDigitalAmericanKOEnginePtr *)new_AnalyticDigitalAmericanKOEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticDigitalAmericanKOEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_AnalyticDigitalAmericanKOEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AnalyticDigitalAmericanKOEnginePtr *arg1 = (AnalyticDigitalAmericanKOEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AnalyticDigitalAmericanKOEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AnalyticDigitalAmericanKOEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AnalyticDigitalAmericanKOEngine" "', argument " "1"" of type '" "AnalyticDigitalAmericanKOEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< AnalyticDigitalAmericanKOEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AnalyticDigitalAmericanKOEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AnalyticDigitalAmericanKOEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DividendVanillaOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Payoff > *arg1 = 0 ;
  boost::shared_ptr< Exercise > *arg2 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg3 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  DividendVanillaOptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DividendVanillaOption",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Payoff_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DividendVanillaOption" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DividendVanillaOption" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DividendVanillaOption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DividendVanillaOption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp2);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DividendVanillaOption" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DividendVanillaOption" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_DividendVanillaOption" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DividendVanillaOption" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      result = (DividendVanillaOptionPtr *)new_DividendVanillaOptionPtr((boost::shared_ptr< Payoff > const &)*arg1,(boost::shared_ptr< Exercise > const &)*arg2,(std::vector< Date,std::allocator< Date > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DividendVanillaOptionPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendVanillaOption_priceCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DividendVanillaOptionPtr *arg1 = (DividendVanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SampledCurve result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendVanillaOption_priceCurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DividendVanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendVanillaOption_priceCurve" "', argument " "1"" of type '" "DividendVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DividendVanillaOptionPtr * >(argp1);
  {
    try {
      result = DividendVanillaOptionPtr_priceCurve(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new SampledCurve(static_cast< const SampledCurve& >(result))), SWIGTYPE_p_SampledCurve, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendVanillaOption_impliedVolatility__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DividendVanillaOptionPtr *arg1 = (DividendVanillaOptionPtr *) 0 ;
  Real arg2 ;
  GeneralizedBlackScholesProcessPtr *arg3 = 0 ;
  Real arg4 ;
  Size arg5 ;
  Volatility arg6 ;
  Volatility arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  size_t val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendVanillaOption_impliedVolatility",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DividendVanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "1"" of type '" "DividendVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DividendVanillaOptionPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg3 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_size_t(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "5"" of type '" "Size""'");
  } 
  arg5 = static_cast< Size >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "6"" of type '" "Volatility""'");
  } 
  arg6 = static_cast< Volatility >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "7"" of type '" "Volatility""'");
  } 
  arg7 = static_cast< Volatility >(val7);
  {
    try {
      result = (Volatility)DividendVanillaOptionPtr_impliedVolatility__SWIG_0(arg1,arg2,(GeneralizedBlackScholesProcessPtr const &)*arg3,arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendVanillaOption_impliedVolatility__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DividendVanillaOptionPtr *arg1 = (DividendVanillaOptionPtr *) 0 ;
  Real arg2 ;
  GeneralizedBlackScholesProcessPtr *arg3 = 0 ;
  Real arg4 ;
  Size arg5 ;
  Volatility arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  size_t val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendVanillaOption_impliedVolatility",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DividendVanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "1"" of type '" "DividendVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DividendVanillaOptionPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg3 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_size_t(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "5"" of type '" "Size""'");
  } 
  arg5 = static_cast< Size >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "6"" of type '" "Volatility""'");
  } 
  arg6 = static_cast< Volatility >(val6);
  {
    try {
      result = (Volatility)DividendVanillaOptionPtr_impliedVolatility__SWIG_0(arg1,arg2,(GeneralizedBlackScholesProcessPtr const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendVanillaOption_impliedVolatility__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DividendVanillaOptionPtr *arg1 = (DividendVanillaOptionPtr *) 0 ;
  Real arg2 ;
  GeneralizedBlackScholesProcessPtr *arg3 = 0 ;
  Real arg4 ;
  Size arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  size_t val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendVanillaOption_impliedVolatility",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DividendVanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "1"" of type '" "DividendVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DividendVanillaOptionPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg3 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_size_t(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "5"" of type '" "Size""'");
  } 
  arg5 = static_cast< Size >(val5);
  {
    try {
      result = (Volatility)DividendVanillaOptionPtr_impliedVolatility__SWIG_0(arg1,arg2,(GeneralizedBlackScholesProcessPtr const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendVanillaOption_impliedVolatility__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DividendVanillaOptionPtr *arg1 = (DividendVanillaOptionPtr *) 0 ;
  Real arg2 ;
  GeneralizedBlackScholesProcessPtr *arg3 = 0 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendVanillaOption_impliedVolatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DividendVanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "1"" of type '" "DividendVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DividendVanillaOptionPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg3 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Volatility)DividendVanillaOptionPtr_impliedVolatility__SWIG_0(arg1,arg2,(GeneralizedBlackScholesProcessPtr const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendVanillaOption_impliedVolatility__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DividendVanillaOptionPtr *arg1 = (DividendVanillaOptionPtr *) 0 ;
  Real arg2 ;
  GeneralizedBlackScholesProcessPtr *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendVanillaOption_impliedVolatility",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DividendVanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "1"" of type '" "DividendVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DividendVanillaOptionPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DividendVanillaOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg3 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp3);
  {
    try {
      result = (Volatility)DividendVanillaOptionPtr_impliedVolatility__SWIG_0(arg1,arg2,(GeneralizedBlackScholesProcessPtr const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendVanillaOption_impliedVolatility(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_DividendVanillaOptionPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DividendVanillaOption_impliedVolatility__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_DividendVanillaOptionPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_DividendVanillaOption_impliedVolatility__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_DividendVanillaOptionPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
            }
            if (_v) {
              return _wrap_DividendVanillaOption_impliedVolatility__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_DividendVanillaOptionPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_DividendVanillaOption_impliedVolatility__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_DividendVanillaOptionPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_DividendVanillaOption_impliedVolatility__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DividendVanillaOption_impliedVolatility'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    DividendVanillaOptionPtr::impliedVolatility(Real,GeneralizedBlackScholesProcessPtr const &,Real,Size,Volatility,Volatility)\n"
    "    DividendVanillaOptionPtr::impliedVolatility(Real,GeneralizedBlackScholesProcessPtr const &,Real,Size,Volatility)\n"
    "    DividendVanillaOptionPtr::impliedVolatility(Real,GeneralizedBlackScholesProcessPtr const &,Real,Size)\n"
    "    DividendVanillaOptionPtr::impliedVolatility(Real,GeneralizedBlackScholesProcessPtr const &,Real)\n"
    "    DividendVanillaOptionPtr::impliedVolatility(Real,GeneralizedBlackScholesProcessPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DividendVanillaOption_delta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DividendVanillaOptionPtr *arg1 = (DividendVanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendVanillaOption_delta",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DividendVanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendVanillaOption_delta" "', argument " "1"" of type '" "DividendVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DividendVanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)DividendVanillaOptionPtr_delta(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendVanillaOption_gamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DividendVanillaOptionPtr *arg1 = (DividendVanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendVanillaOption_gamma",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DividendVanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendVanillaOption_gamma" "', argument " "1"" of type '" "DividendVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DividendVanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)DividendVanillaOptionPtr_gamma(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendVanillaOption_theta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DividendVanillaOptionPtr *arg1 = (DividendVanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendVanillaOption_theta",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DividendVanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendVanillaOption_theta" "', argument " "1"" of type '" "DividendVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DividendVanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)DividendVanillaOptionPtr_theta(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendVanillaOption_thetaPerDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DividendVanillaOptionPtr *arg1 = (DividendVanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendVanillaOption_thetaPerDay",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DividendVanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendVanillaOption_thetaPerDay" "', argument " "1"" of type '" "DividendVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DividendVanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)DividendVanillaOptionPtr_thetaPerDay(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendVanillaOption_vega(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DividendVanillaOptionPtr *arg1 = (DividendVanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendVanillaOption_vega",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DividendVanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendVanillaOption_vega" "', argument " "1"" of type '" "DividendVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DividendVanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)DividendVanillaOptionPtr_vega(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendVanillaOption_rho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DividendVanillaOptionPtr *arg1 = (DividendVanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendVanillaOption_rho",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DividendVanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendVanillaOption_rho" "', argument " "1"" of type '" "DividendVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DividendVanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)DividendVanillaOptionPtr_rho(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendVanillaOption_dividendRho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DividendVanillaOptionPtr *arg1 = (DividendVanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendVanillaOption_dividendRho",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DividendVanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendVanillaOption_dividendRho" "', argument " "1"" of type '" "DividendVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DividendVanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)DividendVanillaOptionPtr_dividendRho(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendVanillaOption_strikeSensitivity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DividendVanillaOptionPtr *arg1 = (DividendVanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendVanillaOption_strikeSensitivity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DividendVanillaOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendVanillaOption_strikeSensitivity" "', argument " "1"" of type '" "DividendVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DividendVanillaOptionPtr * >(argp1);
  {
    try {
      result = (Real)DividendVanillaOptionPtr_strikeSensitivity(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DividendVanillaOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DividendVanillaOptionPtr *arg1 = (DividendVanillaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DividendVanillaOption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DividendVanillaOptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DividendVanillaOption" "', argument " "1"" of type '" "DividendVanillaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DividendVanillaOptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DividendVanillaOption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DividendVanillaOptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AnalyticDividendEuropeanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  AnalyticDividendEuropeanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticDividendEuropeanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticDividendEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticDividendEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (AnalyticDividendEuropeanEnginePtr *)new_AnalyticDividendEuropeanEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticDividendEuropeanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_AnalyticDividendEuropeanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AnalyticDividendEuropeanEnginePtr *arg1 = (AnalyticDividendEuropeanEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AnalyticDividendEuropeanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AnalyticDividendEuropeanEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AnalyticDividendEuropeanEngine" "', argument " "1"" of type '" "AnalyticDividendEuropeanEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< AnalyticDividendEuropeanEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AnalyticDividendEuropeanEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AnalyticDividendEuropeanEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FDDividendEuropeanEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FDDividendEuropeanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDDividendEuropeanEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDDividendEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDDividendEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FDDividendEuropeanEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FDDividendEuropeanEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FDDividendEuropeanEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (FDDividendEuropeanEnginePtr *)new_FDDividendEuropeanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDDividendEuropeanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDDividendEuropeanEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  FDDividendEuropeanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDDividendEuropeanEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDDividendEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDDividendEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FDDividendEuropeanEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FDDividendEuropeanEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (FDDividendEuropeanEnginePtr *)new_FDDividendEuropeanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDDividendEuropeanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDDividendEuropeanEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  FDDividendEuropeanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDDividendEuropeanEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDDividendEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDDividendEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FDDividendEuropeanEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (FDDividendEuropeanEnginePtr *)new_FDDividendEuropeanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDDividendEuropeanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDDividendEuropeanEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  FDDividendEuropeanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDDividendEuropeanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDDividendEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDDividendEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (FDDividendEuropeanEnginePtr *)new_FDDividendEuropeanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDDividendEuropeanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDDividendEuropeanEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_FDDividendEuropeanEngine__SWIG_3(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_FDDividendEuropeanEngine__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          return _wrap_new_FDDividendEuropeanEngine__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_FDDividendEuropeanEngine__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FDDividendEuropeanEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FDDividendEuropeanEnginePtr::FDDividendEuropeanEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size,bool)\n"
    "    FDDividendEuropeanEnginePtr::FDDividendEuropeanEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size)\n"
    "    FDDividendEuropeanEnginePtr::FDDividendEuropeanEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size)\n"
    "    FDDividendEuropeanEnginePtr::FDDividendEuropeanEnginePtr(GeneralizedBlackScholesProcessPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FDDividendEuropeanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FDDividendEuropeanEnginePtr *arg1 = (FDDividendEuropeanEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FDDividendEuropeanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FDDividendEuropeanEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FDDividendEuropeanEngine" "', argument " "1"" of type '" "FDDividendEuropeanEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< FDDividendEuropeanEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FDDividendEuropeanEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FDDividendEuropeanEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FDDividendAmericanEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FDDividendAmericanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDDividendAmericanEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDDividendAmericanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDDividendAmericanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FDDividendAmericanEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FDDividendAmericanEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FDDividendAmericanEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (FDDividendAmericanEnginePtr *)new_FDDividendAmericanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDDividendAmericanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDDividendAmericanEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  FDDividendAmericanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDDividendAmericanEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDDividendAmericanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDDividendAmericanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FDDividendAmericanEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FDDividendAmericanEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (FDDividendAmericanEnginePtr *)new_FDDividendAmericanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDDividendAmericanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDDividendAmericanEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  FDDividendAmericanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDDividendAmericanEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDDividendAmericanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDDividendAmericanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FDDividendAmericanEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (FDDividendAmericanEnginePtr *)new_FDDividendAmericanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDDividendAmericanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDDividendAmericanEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  FDDividendAmericanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FDDividendAmericanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FDDividendAmericanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FDDividendAmericanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (FDDividendAmericanEnginePtr *)new_FDDividendAmericanEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FDDividendAmericanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FDDividendAmericanEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_FDDividendAmericanEngine__SWIG_3(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_FDDividendAmericanEngine__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          return _wrap_new_FDDividendAmericanEngine__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_FDDividendAmericanEngine__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FDDividendAmericanEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FDDividendAmericanEnginePtr::FDDividendAmericanEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size,bool)\n"
    "    FDDividendAmericanEnginePtr::FDDividendAmericanEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size)\n"
    "    FDDividendAmericanEnginePtr::FDDividendAmericanEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size)\n"
    "    FDDividendAmericanEnginePtr::FDDividendAmericanEnginePtr(GeneralizedBlackScholesProcessPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FDDividendAmericanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FDDividendAmericanEnginePtr *arg1 = (FDDividendAmericanEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FDDividendAmericanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FDDividendAmericanEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FDDividendAmericanEngine" "', argument " "1"" of type '" "FDDividendAmericanEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< FDDividendAmericanEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FDDividendAmericanEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FDDividendAmericanEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BarrierOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Barrier::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  boost::shared_ptr< Payoff > *arg4 = 0 ;
  boost::shared_ptr< Exercise > *arg5 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  BarrierOptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BarrierOption",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BarrierOption" "', argument " "1"" of type '" "Barrier::Type""'");
  } 
  arg1 = static_cast< Barrier::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BarrierOption" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BarrierOption" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_boost__shared_ptrT_Payoff_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_BarrierOption" "', argument " "4"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BarrierOption" "', argument " "4"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  arg4 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_BarrierOption" "', argument " "5"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BarrierOption" "', argument " "5"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg5 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp5);
  {
    try {
      result = (BarrierOptionPtr *)new_BarrierOptionPtr(arg1,arg2,arg3,(boost::shared_ptr< Payoff > const &)*arg4,(boost::shared_ptr< Exercise > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BarrierOptionPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BarrierOption_priceCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BarrierOptionPtr *arg1 = (BarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SampledCurve result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BarrierOption_priceCurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BarrierOption_priceCurve" "', argument " "1"" of type '" "BarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< BarrierOptionPtr * >(argp1);
  {
    try {
      result = BarrierOptionPtr_priceCurve(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new SampledCurve(static_cast< const SampledCurve& >(result))), SWIGTYPE_p_SampledCurve, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BarrierOption_impliedVolatility__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BarrierOptionPtr *arg1 = (BarrierOptionPtr *) 0 ;
  Real arg2 ;
  GeneralizedBlackScholesProcessPtr *arg3 = 0 ;
  Real arg4 ;
  Size arg5 ;
  Volatility arg6 ;
  Volatility arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  size_t val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BarrierOption_impliedVolatility",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BarrierOption_impliedVolatility" "', argument " "1"" of type '" "BarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< BarrierOptionPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BarrierOption_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BarrierOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BarrierOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg3 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BarrierOption_impliedVolatility" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_size_t(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BarrierOption_impliedVolatility" "', argument " "5"" of type '" "Size""'");
  } 
  arg5 = static_cast< Size >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BarrierOption_impliedVolatility" "', argument " "6"" of type '" "Volatility""'");
  } 
  arg6 = static_cast< Volatility >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BarrierOption_impliedVolatility" "', argument " "7"" of type '" "Volatility""'");
  } 
  arg7 = static_cast< Volatility >(val7);
  {
    try {
      result = (Volatility)BarrierOptionPtr_impliedVolatility__SWIG_0(arg1,arg2,(GeneralizedBlackScholesProcessPtr const &)*arg3,arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BarrierOption_impliedVolatility__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BarrierOptionPtr *arg1 = (BarrierOptionPtr *) 0 ;
  Real arg2 ;
  GeneralizedBlackScholesProcessPtr *arg3 = 0 ;
  Real arg4 ;
  Size arg5 ;
  Volatility arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  size_t val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BarrierOption_impliedVolatility",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BarrierOption_impliedVolatility" "', argument " "1"" of type '" "BarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< BarrierOptionPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BarrierOption_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BarrierOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BarrierOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg3 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BarrierOption_impliedVolatility" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_size_t(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BarrierOption_impliedVolatility" "', argument " "5"" of type '" "Size""'");
  } 
  arg5 = static_cast< Size >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BarrierOption_impliedVolatility" "', argument " "6"" of type '" "Volatility""'");
  } 
  arg6 = static_cast< Volatility >(val6);
  {
    try {
      result = (Volatility)BarrierOptionPtr_impliedVolatility__SWIG_0(arg1,arg2,(GeneralizedBlackScholesProcessPtr const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BarrierOption_impliedVolatility__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BarrierOptionPtr *arg1 = (BarrierOptionPtr *) 0 ;
  Real arg2 ;
  GeneralizedBlackScholesProcessPtr *arg3 = 0 ;
  Real arg4 ;
  Size arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  size_t val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BarrierOption_impliedVolatility",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BarrierOption_impliedVolatility" "', argument " "1"" of type '" "BarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< BarrierOptionPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BarrierOption_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BarrierOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BarrierOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg3 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BarrierOption_impliedVolatility" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_size_t(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BarrierOption_impliedVolatility" "', argument " "5"" of type '" "Size""'");
  } 
  arg5 = static_cast< Size >(val5);
  {
    try {
      result = (Volatility)BarrierOptionPtr_impliedVolatility__SWIG_0(arg1,arg2,(GeneralizedBlackScholesProcessPtr const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BarrierOption_impliedVolatility__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BarrierOptionPtr *arg1 = (BarrierOptionPtr *) 0 ;
  Real arg2 ;
  GeneralizedBlackScholesProcessPtr *arg3 = 0 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BarrierOption_impliedVolatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BarrierOption_impliedVolatility" "', argument " "1"" of type '" "BarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< BarrierOptionPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BarrierOption_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BarrierOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BarrierOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg3 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BarrierOption_impliedVolatility" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Volatility)BarrierOptionPtr_impliedVolatility__SWIG_0(arg1,arg2,(GeneralizedBlackScholesProcessPtr const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BarrierOption_impliedVolatility__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BarrierOptionPtr *arg1 = (BarrierOptionPtr *) 0 ;
  Real arg2 ;
  GeneralizedBlackScholesProcessPtr *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BarrierOption_impliedVolatility",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BarrierOption_impliedVolatility" "', argument " "1"" of type '" "BarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< BarrierOptionPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BarrierOption_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BarrierOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BarrierOption_impliedVolatility" "', argument " "3"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg3 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp3);
  {
    try {
      result = (Volatility)BarrierOptionPtr_impliedVolatility__SWIG_0(arg1,arg2,(GeneralizedBlackScholesProcessPtr const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BarrierOption_impliedVolatility(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BarrierOptionPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_BarrierOption_impliedVolatility__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BarrierOptionPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BarrierOption_impliedVolatility__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BarrierOptionPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
            }
            if (_v) {
              return _wrap_BarrierOption_impliedVolatility__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BarrierOptionPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_BarrierOption_impliedVolatility__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BarrierOptionPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_BarrierOption_impliedVolatility__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BarrierOption_impliedVolatility'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BarrierOptionPtr::impliedVolatility(Real,GeneralizedBlackScholesProcessPtr const &,Real,Size,Volatility,Volatility)\n"
    "    BarrierOptionPtr::impliedVolatility(Real,GeneralizedBlackScholesProcessPtr const &,Real,Size,Volatility)\n"
    "    BarrierOptionPtr::impliedVolatility(Real,GeneralizedBlackScholesProcessPtr const &,Real,Size)\n"
    "    BarrierOptionPtr::impliedVolatility(Real,GeneralizedBlackScholesProcessPtr const &,Real)\n"
    "    BarrierOptionPtr::impliedVolatility(Real,GeneralizedBlackScholesProcessPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BarrierOption_delta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BarrierOptionPtr *arg1 = (BarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BarrierOption_delta",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BarrierOption_delta" "', argument " "1"" of type '" "BarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< BarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)BarrierOptionPtr_delta(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BarrierOption_gamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BarrierOptionPtr *arg1 = (BarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BarrierOption_gamma",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BarrierOption_gamma" "', argument " "1"" of type '" "BarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< BarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)BarrierOptionPtr_gamma(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BarrierOption_theta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BarrierOptionPtr *arg1 = (BarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BarrierOption_theta",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BarrierOption_theta" "', argument " "1"" of type '" "BarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< BarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)BarrierOptionPtr_theta(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BarrierOption_thetaPerDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BarrierOptionPtr *arg1 = (BarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BarrierOption_thetaPerDay",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BarrierOption_thetaPerDay" "', argument " "1"" of type '" "BarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< BarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)BarrierOptionPtr_thetaPerDay(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BarrierOption_vega(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BarrierOptionPtr *arg1 = (BarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BarrierOption_vega",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BarrierOption_vega" "', argument " "1"" of type '" "BarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< BarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)BarrierOptionPtr_vega(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BarrierOption_rho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BarrierOptionPtr *arg1 = (BarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BarrierOption_rho",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BarrierOption_rho" "', argument " "1"" of type '" "BarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< BarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)BarrierOptionPtr_rho(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BarrierOption_dividendRho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BarrierOptionPtr *arg1 = (BarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BarrierOption_dividendRho",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BarrierOption_dividendRho" "', argument " "1"" of type '" "BarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< BarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)BarrierOptionPtr_dividendRho(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BarrierOption_strikeSensitivity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BarrierOptionPtr *arg1 = (BarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BarrierOption_strikeSensitivity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BarrierOption_strikeSensitivity" "', argument " "1"" of type '" "BarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< BarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)BarrierOptionPtr_strikeSensitivity(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BarrierOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BarrierOptionPtr *arg1 = (BarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BarrierOption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BarrierOptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BarrierOption" "', argument " "1"" of type '" "BarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< BarrierOptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BarrierOption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BarrierOptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AnalyticBarrierEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  AnalyticBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticBarrierEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (AnalyticBarrierEnginePtr *)new_AnalyticBarrierEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_AnalyticBarrierEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AnalyticBarrierEnginePtr *arg1 = (AnalyticBarrierEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AnalyticBarrierEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AnalyticBarrierEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AnalyticBarrierEngine" "', argument " "1"" of type '" "AnalyticBarrierEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< AnalyticBarrierEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AnalyticBarrierEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AnalyticBarrierEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MCBarrierEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  std::string *arg2 = 0 ;
  Size arg3 = (Size) Null< Size >() ;
  Size arg4 = (Size) Null< Size >() ;
  bool arg5 = (bool) false ;
  bool arg6 = (bool) false ;
  intOrNull arg7 = (intOrNull) Null< Size >() ;
  doubleOrNull arg8 = (doubleOrNull) Null< Real >() ;
  intOrNull arg9 = (intOrNull) Null< Size >() ;
  bool arg10 = (bool) false ;
  BigInteger arg11 = (BigInteger) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  bool val10 ;
  int ecode10 = 0 ;
  long val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  char *  kwnames[] = {
    (char *) "process",(char *) "traits",(char *) "timeSteps",(char *) "timeStepsPerYear",(char *) "brownianBridge",(char *) "antitheticVariate",(char *) "requiredSamples",(char *) "requiredTolerance",(char *) "maxSamples",(char *) "isBiased",(char *) "seed", NULL 
  };
  MCBarrierEnginePtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:new_MCBarrierEngine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MCBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MCBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MCBarrierEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MCBarrierEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  if (obj2) {
    ecode3 = SWIG_AsVal_size_t(obj2, &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MCBarrierEngine" "', argument " "3"" of type '" "Size""'");
    } 
    arg3 = static_cast< Size >(val3);
  }
  if (obj3) {
    ecode4 = SWIG_AsVal_size_t(obj3, &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_MCBarrierEngine" "', argument " "4"" of type '" "Size""'");
    } 
    arg4 = static_cast< Size >(val4);
  }
  if (obj4) {
    ecode5 = SWIG_AsVal_bool(obj4, &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_MCBarrierEngine" "', argument " "5"" of type '" "bool""'");
    } 
    arg5 = static_cast< bool >(val5);
  }
  if (obj5) {
    ecode6 = SWIG_AsVal_bool(obj5, &val6);
    if (!SWIG_IsOK(ecode6)) {
      SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MCBarrierEngine" "', argument " "6"" of type '" "bool""'");
    } 
    arg6 = static_cast< bool >(val6);
  }
  if (obj6) {
    {
      if (obj6 == Py_None)
      arg7 = Null<int>();
      else if (PyInt_Check(obj6))
      arg7 = int(PyInt_AsLong(obj6));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj7) {
    {
      if (obj7 == Py_None)
      arg8 = Null<double>();
      else if (PyFloat_Check(obj7))
      arg8 = PyFloat_AsDouble(obj7);
      else
      SWIG_exception(SWIG_TypeError,"double expected");
    }
  }
  if (obj8) {
    {
      if (obj8 == Py_None)
      arg9 = Null<int>();
      else if (PyInt_Check(obj8))
      arg9 = int(PyInt_AsLong(obj8));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj9) {
    ecode10 = SWIG_AsVal_bool(obj9, &val10);
    if (!SWIG_IsOK(ecode10)) {
      SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_MCBarrierEngine" "', argument " "10"" of type '" "bool""'");
    } 
    arg10 = static_cast< bool >(val10);
  }
  if (obj10) {
    ecode11 = SWIG_AsVal_long(obj10, &val11);
    if (!SWIG_IsOK(ecode11)) {
      SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_MCBarrierEngine" "', argument " "11"" of type '" "BigInteger""'");
    } 
    arg11 = static_cast< BigInteger >(val11);
  }
  {
    try {
      result = (MCBarrierEnginePtr *)new_MCBarrierEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1,(std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MCBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MCBarrierEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MCBarrierEnginePtr *arg1 = (MCBarrierEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MCBarrierEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MCBarrierEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MCBarrierEngine" "', argument " "1"" of type '" "MCBarrierEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< MCBarrierEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MCBarrierEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MCBarrierEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FdmSchemeDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FdmSchemeDesc::FdmSchemeType arg1 ;
  Real arg2 ;
  Real arg3 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  FdmSchemeDesc *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdmSchemeDesc",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FdmSchemeDesc" "', argument " "1"" of type '" "FdmSchemeDesc::FdmSchemeType""'");
  } 
  arg1 = static_cast< FdmSchemeDesc::FdmSchemeType >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdmSchemeDesc" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdmSchemeDesc" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (FdmSchemeDesc *)new FdmSchemeDesc(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdmSchemeDesc, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FdmSchemeDesc_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FdmSchemeDesc *arg1 = (FdmSchemeDesc *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  FdmSchemeDesc::FdmSchemeType result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FdmSchemeDesc_type_get",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FdmSchemeDesc, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FdmSchemeDesc_type_get" "', argument " "1"" of type '" "FdmSchemeDesc *""'"); 
  }
  arg1 = reinterpret_cast< FdmSchemeDesc * >(argp1);
  result = (FdmSchemeDesc::FdmSchemeType)(FdmSchemeDesc::FdmSchemeType) ((arg1)->type);
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FdmSchemeDesc_theta_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FdmSchemeDesc *arg1 = (FdmSchemeDesc *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FdmSchemeDesc_theta_get",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FdmSchemeDesc, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FdmSchemeDesc_theta_get" "', argument " "1"" of type '" "FdmSchemeDesc *""'"); 
  }
  arg1 = reinterpret_cast< FdmSchemeDesc * >(argp1);
  result = (Real)(Real) ((arg1)->theta);
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FdmSchemeDesc_mu_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FdmSchemeDesc *arg1 = (FdmSchemeDesc *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FdmSchemeDesc_mu_get",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FdmSchemeDesc, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FdmSchemeDesc_mu_get" "', argument " "1"" of type '" "FdmSchemeDesc *""'"); 
  }
  arg1 = reinterpret_cast< FdmSchemeDesc * >(argp1);
  result = (Real)(Real) ((arg1)->mu);
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FdmSchemeDesc_Douglas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwigValueWrapper< FdmSchemeDesc > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FdmSchemeDesc_Douglas",0,0)) SWIG_fail;
  {
    try {
      result = FdmSchemeDesc::Douglas();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new FdmSchemeDesc(static_cast< const FdmSchemeDesc& >(result))), SWIGTYPE_p_FdmSchemeDesc, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FdmSchemeDesc_ImplicitEuler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwigValueWrapper< FdmSchemeDesc > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FdmSchemeDesc_ImplicitEuler",0,0)) SWIG_fail;
  {
    try {
      result = FdmSchemeDesc::ImplicitEuler();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new FdmSchemeDesc(static_cast< const FdmSchemeDesc& >(result))), SWIGTYPE_p_FdmSchemeDesc, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FdmSchemeDesc_ExplicitEuler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwigValueWrapper< FdmSchemeDesc > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FdmSchemeDesc_ExplicitEuler",0,0)) SWIG_fail;
  {
    try {
      result = FdmSchemeDesc::ExplicitEuler();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new FdmSchemeDesc(static_cast< const FdmSchemeDesc& >(result))), SWIGTYPE_p_FdmSchemeDesc, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FdmSchemeDesc_CraigSneyd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwigValueWrapper< FdmSchemeDesc > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FdmSchemeDesc_CraigSneyd",0,0)) SWIG_fail;
  {
    try {
      result = FdmSchemeDesc::CraigSneyd();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new FdmSchemeDesc(static_cast< const FdmSchemeDesc& >(result))), SWIGTYPE_p_FdmSchemeDesc, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FdmSchemeDesc_ModifiedCraigSneyd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwigValueWrapper< FdmSchemeDesc > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FdmSchemeDesc_ModifiedCraigSneyd",0,0)) SWIG_fail;
  {
    try {
      result = FdmSchemeDesc::ModifiedCraigSneyd();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new FdmSchemeDesc(static_cast< const FdmSchemeDesc& >(result))), SWIGTYPE_p_FdmSchemeDesc, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FdmSchemeDesc_Hundsdorfer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwigValueWrapper< FdmSchemeDesc > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FdmSchemeDesc_Hundsdorfer",0,0)) SWIG_fail;
  {
    try {
      result = FdmSchemeDesc::Hundsdorfer();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new FdmSchemeDesc(static_cast< const FdmSchemeDesc& >(result))), SWIGTYPE_p_FdmSchemeDesc, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FdmSchemeDesc_ModifiedHundsdorfer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwigValueWrapper< FdmSchemeDesc > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FdmSchemeDesc_ModifiedHundsdorfer",0,0)) SWIG_fail;
  {
    try {
      result = FdmSchemeDesc::ModifiedHundsdorfer();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new FdmSchemeDesc(static_cast< const FdmSchemeDesc& >(result))), SWIGTYPE_p_FdmSchemeDesc, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_FdmSchemeDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FdmSchemeDesc *arg1 = (FdmSchemeDesc *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FdmSchemeDesc",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FdmSchemeDesc, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FdmSchemeDesc" "', argument " "1"" of type '" "FdmSchemeDesc *""'"); 
  }
  arg1 = reinterpret_cast< FdmSchemeDesc * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FdmSchemeDesc_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FdmSchemeDesc, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FdBlackScholesBarrierEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  Size arg4 ;
  FdmSchemeDesc *arg5 = 0 ;
  bool arg6 ;
  Real arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  FdBlackScholesBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdBlackScholesBarrierEngine",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "4"" of type '" "Size""'");
  } 
  arg4 = static_cast< Size >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_FdmSchemeDesc,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "5"" of type '" "FdmSchemeDesc const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "5"" of type '" "FdmSchemeDesc const &""'"); 
  }
  arg5 = reinterpret_cast< FdmSchemeDesc * >(argp5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (FdBlackScholesBarrierEnginePtr *)new_FdBlackScholesBarrierEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3,arg4,(FdmSchemeDesc const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdBlackScholesBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdBlackScholesBarrierEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  Size arg4 ;
  FdmSchemeDesc *arg5 = 0 ;
  bool arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  FdBlackScholesBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdBlackScholesBarrierEngine",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "4"" of type '" "Size""'");
  } 
  arg4 = static_cast< Size >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_FdmSchemeDesc,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "5"" of type '" "FdmSchemeDesc const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "5"" of type '" "FdmSchemeDesc const &""'"); 
  }
  arg5 = reinterpret_cast< FdmSchemeDesc * >(argp5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    try {
      result = (FdBlackScholesBarrierEnginePtr *)new_FdBlackScholesBarrierEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3,arg4,(FdmSchemeDesc const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdBlackScholesBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdBlackScholesBarrierEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  Size arg4 ;
  FdmSchemeDesc *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  FdBlackScholesBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdBlackScholesBarrierEngine",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "4"" of type '" "Size""'");
  } 
  arg4 = static_cast< Size >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_FdmSchemeDesc,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "5"" of type '" "FdmSchemeDesc const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "5"" of type '" "FdmSchemeDesc const &""'"); 
  }
  arg5 = reinterpret_cast< FdmSchemeDesc * >(argp5);
  {
    try {
      result = (FdBlackScholesBarrierEnginePtr *)new_FdBlackScholesBarrierEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3,arg4,(FdmSchemeDesc const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdBlackScholesBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdBlackScholesBarrierEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  Size arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FdBlackScholesBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdBlackScholesBarrierEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "4"" of type '" "Size""'");
  } 
  arg4 = static_cast< Size >(val4);
  {
    try {
      result = (FdBlackScholesBarrierEnginePtr *)new_FdBlackScholesBarrierEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdBlackScholesBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdBlackScholesBarrierEngine__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  FdBlackScholesBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdBlackScholesBarrierEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (FdBlackScholesBarrierEnginePtr *)new_FdBlackScholesBarrierEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdBlackScholesBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdBlackScholesBarrierEngine__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  FdBlackScholesBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdBlackScholesBarrierEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (FdBlackScholesBarrierEnginePtr *)new_FdBlackScholesBarrierEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdBlackScholesBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdBlackScholesBarrierEngine__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  FdBlackScholesBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdBlackScholesBarrierEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdBlackScholesBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (FdBlackScholesBarrierEnginePtr *)new_FdBlackScholesBarrierEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdBlackScholesBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdBlackScholesBarrierEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_FdBlackScholesBarrierEngine__SWIG_6(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_FdBlackScholesBarrierEngine__SWIG_5(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          return _wrap_new_FdBlackScholesBarrierEngine__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
          }
          if (_v) {
            return _wrap_new_FdBlackScholesBarrierEngine__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_FdmSchemeDesc, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_FdBlackScholesBarrierEngine__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_FdmSchemeDesc, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_FdBlackScholesBarrierEngine__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_FdmSchemeDesc, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_FdBlackScholesBarrierEngine__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FdBlackScholesBarrierEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FdBlackScholesBarrierEnginePtr::FdBlackScholesBarrierEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size,Size,FdmSchemeDesc const &,bool,Real)\n"
    "    FdBlackScholesBarrierEnginePtr::FdBlackScholesBarrierEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size,Size,FdmSchemeDesc const &,bool)\n"
    "    FdBlackScholesBarrierEnginePtr::FdBlackScholesBarrierEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size,Size,FdmSchemeDesc const &)\n"
    "    FdBlackScholesBarrierEnginePtr::FdBlackScholesBarrierEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size,Size)\n"
    "    FdBlackScholesBarrierEnginePtr::FdBlackScholesBarrierEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size,Size)\n"
    "    FdBlackScholesBarrierEnginePtr::FdBlackScholesBarrierEnginePtr(GeneralizedBlackScholesProcessPtr const &,Size)\n"
    "    FdBlackScholesBarrierEnginePtr::FdBlackScholesBarrierEnginePtr(GeneralizedBlackScholesProcessPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FdBlackScholesBarrierEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FdBlackScholesBarrierEnginePtr *arg1 = (FdBlackScholesBarrierEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FdBlackScholesBarrierEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FdBlackScholesBarrierEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FdBlackScholesBarrierEngine" "', argument " "1"" of type '" "FdBlackScholesBarrierEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< FdBlackScholesBarrierEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FdBlackScholesBarrierEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FdBlackScholesBarrierEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AnalyticBinaryBarrierEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  AnalyticBinaryBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticBinaryBarrierEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticBinaryBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticBinaryBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (AnalyticBinaryBarrierEnginePtr *)new_AnalyticBinaryBarrierEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticBinaryBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_AnalyticBinaryBarrierEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AnalyticBinaryBarrierEnginePtr *arg1 = (AnalyticBinaryBarrierEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AnalyticBinaryBarrierEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AnalyticBinaryBarrierEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AnalyticBinaryBarrierEngine" "', argument " "1"" of type '" "AnalyticBinaryBarrierEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< AnalyticBinaryBarrierEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AnalyticBinaryBarrierEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AnalyticBinaryBarrierEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BinomialBarrierEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  std::string *arg2 = 0 ;
  Size arg3 ;
  Size arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  BinomialBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BinomialBarrierEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BinomialBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BinomialBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BinomialBarrierEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BinomialBarrierEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BinomialBarrierEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BinomialBarrierEngine" "', argument " "4"" of type '" "Size""'");
  } 
  arg4 = static_cast< Size >(val4);
  {
    try {
      result = (BinomialBarrierEnginePtr *)new_BinomialBarrierEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,(std::string const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BinomialBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BinomialBarrierEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  std::string *arg2 = 0 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  BinomialBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BinomialBarrierEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BinomialBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BinomialBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BinomialBarrierEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BinomialBarrierEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BinomialBarrierEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (BinomialBarrierEnginePtr *)new_BinomialBarrierEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,(std::string const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BinomialBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BinomialBarrierEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          return _wrap_new_BinomialBarrierEngine__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
          }
          if (_v) {
            return _wrap_new_BinomialBarrierEngine__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BinomialBarrierEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BinomialBarrierEnginePtr::BinomialBarrierEnginePtr(GeneralizedBlackScholesProcessPtr const &,std::string const &,Size,Size)\n"
    "    BinomialBarrierEnginePtr::BinomialBarrierEnginePtr(GeneralizedBlackScholesProcessPtr const &,std::string const &,Size)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_BinomialBarrierEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BinomialBarrierEnginePtr *arg1 = (BinomialBarrierEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BinomialBarrierEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BinomialBarrierEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BinomialBarrierEngine" "', argument " "1"" of type '" "BinomialBarrierEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< BinomialBarrierEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BinomialBarrierEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BinomialBarrierEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ForwardEuropeanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  ForwardEuropeanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ForwardEuropeanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ForwardEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (ForwardEuropeanEnginePtr *)new_ForwardEuropeanEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ForwardEuropeanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ForwardEuropeanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardEuropeanEnginePtr *arg1 = (ForwardEuropeanEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ForwardEuropeanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardEuropeanEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ForwardEuropeanEngine" "', argument " "1"" of type '" "ForwardEuropeanEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< ForwardEuropeanEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ForwardEuropeanEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ForwardEuropeanEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_QuantoEuropeanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< BlackVolTermStructure > *arg3 = 0 ;
  Handle< Quote > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  QuantoEuropeanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuantoEuropeanEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QuantoEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuantoEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_QuantoEuropeanEngine" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuantoEuropeanEngine" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_BlackVolTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_QuantoEuropeanEngine" "', argument " "3"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuantoEuropeanEngine" "', argument " "3"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_QuantoEuropeanEngine" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuantoEuropeanEngine" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< Quote > * >(argp4);
  {
    try {
      result = (QuantoEuropeanEnginePtr *)new_QuantoEuropeanEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< BlackVolTermStructure > const &)*arg3,(Handle< Quote > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantoEuropeanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_QuantoEuropeanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantoEuropeanEnginePtr *arg1 = (QuantoEuropeanEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_QuantoEuropeanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantoEuropeanEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_QuantoEuropeanEngine" "', argument " "1"" of type '" "QuantoEuropeanEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< QuantoEuropeanEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *QuantoEuropeanEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantoEuropeanEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_QuantoForwardEuropeanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  Handle< BlackVolTermStructure > *arg3 = 0 ;
  Handle< Quote > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  QuantoForwardEuropeanEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuantoForwardEuropeanEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QuantoForwardEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuantoForwardEuropeanEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_QuantoForwardEuropeanEngine" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuantoForwardEuropeanEngine" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_BlackVolTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_QuantoForwardEuropeanEngine" "', argument " "3"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuantoForwardEuropeanEngine" "', argument " "3"" of type '" "Handle< BlackVolTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< BlackVolTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_QuantoForwardEuropeanEngine" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuantoForwardEuropeanEngine" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< Quote > * >(argp4);
  {
    try {
      result = (QuantoForwardEuropeanEnginePtr *)new_QuantoForwardEuropeanEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1,(Handle< YieldTermStructure > const &)*arg2,(Handle< BlackVolTermStructure > const &)*arg3,(Handle< Quote > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantoForwardEuropeanEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_QuantoForwardEuropeanEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantoForwardEuropeanEnginePtr *arg1 = (QuantoForwardEuropeanEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_QuantoForwardEuropeanEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantoForwardEuropeanEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_QuantoForwardEuropeanEngine" "', argument " "1"" of type '" "QuantoForwardEuropeanEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< QuantoForwardEuropeanEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *QuantoForwardEuropeanEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantoForwardEuropeanEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BlackCalculator__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Payoff > *arg1 = 0 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  BlackCalculator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackCalculator",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Payoff_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackCalculator" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackCalculator" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BlackCalculator" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BlackCalculator" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BlackCalculator" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (BlackCalculator *)new_BlackCalculator__SWIG_0((boost::shared_ptr< Payoff > const &)*arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackCalculator, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackCalculator__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Payoff > *arg1 = 0 ;
  Real arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  BlackCalculator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackCalculator",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Payoff_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackCalculator" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackCalculator" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BlackCalculator" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BlackCalculator" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (BlackCalculator *)new_BlackCalculator__SWIG_0((boost::shared_ptr< Payoff > const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackCalculator, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackCalculator(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Payoff_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_BlackCalculator__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Payoff_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_BlackCalculator__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BlackCalculator'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BlackCalculator::BlackCalculator(boost::shared_ptr< Payoff > const &,Real,Real,Real)\n"
    "    BlackCalculator::BlackCalculator(boost::shared_ptr< Payoff > const &,Real,Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BlackCalculator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCalculator *arg1 = (BlackCalculator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackCalculator_value",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackCalculator_value" "', argument " "1"" of type '" "BlackCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackCalculator * >(argp1);
  {
    try {
      result = (Real)((BlackCalculator const *)arg1)->value();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackCalculator_deltaForward(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCalculator *arg1 = (BlackCalculator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackCalculator_deltaForward",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackCalculator_deltaForward" "', argument " "1"" of type '" "BlackCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackCalculator * >(argp1);
  {
    try {
      result = (Real)((BlackCalculator const *)arg1)->deltaForward();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackCalculator_delta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCalculator *arg1 = (BlackCalculator *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackCalculator_delta",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackCalculator_delta" "', argument " "1"" of type '" "BlackCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackCalculator * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackCalculator_delta" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)((BlackCalculator const *)arg1)->delta(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackCalculator_elasticityForward(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCalculator *arg1 = (BlackCalculator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackCalculator_elasticityForward",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackCalculator_elasticityForward" "', argument " "1"" of type '" "BlackCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackCalculator * >(argp1);
  {
    try {
      result = (Real)((BlackCalculator const *)arg1)->elasticityForward();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackCalculator_elasticity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCalculator *arg1 = (BlackCalculator *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackCalculator_elasticity",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackCalculator_elasticity" "', argument " "1"" of type '" "BlackCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackCalculator * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackCalculator_elasticity" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)((BlackCalculator const *)arg1)->elasticity(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackCalculator_gammaForward(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCalculator *arg1 = (BlackCalculator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackCalculator_gammaForward",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackCalculator_gammaForward" "', argument " "1"" of type '" "BlackCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackCalculator * >(argp1);
  {
    try {
      result = (Real)((BlackCalculator const *)arg1)->gammaForward();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackCalculator_gamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCalculator *arg1 = (BlackCalculator *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackCalculator_gamma",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackCalculator_gamma" "', argument " "1"" of type '" "BlackCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackCalculator * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackCalculator_gamma" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)((BlackCalculator const *)arg1)->gamma(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackCalculator_theta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCalculator *arg1 = (BlackCalculator *) 0 ;
  Real arg2 ;
  Time arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackCalculator_theta",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackCalculator_theta" "', argument " "1"" of type '" "BlackCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackCalculator * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackCalculator_theta" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackCalculator_theta" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  {
    try {
      result = (Real)((BlackCalculator const *)arg1)->theta(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackCalculator_thetaPerDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCalculator *arg1 = (BlackCalculator *) 0 ;
  Real arg2 ;
  Time arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackCalculator_thetaPerDay",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackCalculator_thetaPerDay" "', argument " "1"" of type '" "BlackCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackCalculator * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackCalculator_thetaPerDay" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlackCalculator_thetaPerDay" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  {
    try {
      result = (Real)((BlackCalculator const *)arg1)->thetaPerDay(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackCalculator_vega(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCalculator *arg1 = (BlackCalculator *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackCalculator_vega",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackCalculator_vega" "', argument " "1"" of type '" "BlackCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackCalculator * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackCalculator_vega" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)((BlackCalculator const *)arg1)->vega(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackCalculator_rho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCalculator *arg1 = (BlackCalculator *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackCalculator_rho",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackCalculator_rho" "', argument " "1"" of type '" "BlackCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackCalculator * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackCalculator_rho" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)((BlackCalculator const *)arg1)->rho(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackCalculator_dividendRho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCalculator *arg1 = (BlackCalculator *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackCalculator_dividendRho",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackCalculator_dividendRho" "', argument " "1"" of type '" "BlackCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackCalculator * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackCalculator_dividendRho" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)((BlackCalculator const *)arg1)->dividendRho(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackCalculator_itmCashProbability(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCalculator *arg1 = (BlackCalculator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackCalculator_itmCashProbability",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackCalculator_itmCashProbability" "', argument " "1"" of type '" "BlackCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackCalculator * >(argp1);
  {
    try {
      result = (Real)((BlackCalculator const *)arg1)->itmCashProbability();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackCalculator_itmAssetProbability(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCalculator *arg1 = (BlackCalculator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackCalculator_itmAssetProbability",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackCalculator_itmAssetProbability" "', argument " "1"" of type '" "BlackCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackCalculator * >(argp1);
  {
    try {
      result = (Real)((BlackCalculator const *)arg1)->itmAssetProbability();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackCalculator_strikeSensitivity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCalculator *arg1 = (BlackCalculator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackCalculator_strikeSensitivity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackCalculator_strikeSensitivity" "', argument " "1"" of type '" "BlackCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackCalculator * >(argp1);
  {
    try {
      result = (Real)((BlackCalculator const *)arg1)->strikeSensitivity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackCalculator_alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCalculator *arg1 = (BlackCalculator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackCalculator_alpha",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackCalculator_alpha" "', argument " "1"" of type '" "BlackCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackCalculator * >(argp1);
  {
    try {
      result = (Real)((BlackCalculator const *)arg1)->alpha();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackCalculator_beta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCalculator *arg1 = (BlackCalculator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackCalculator_beta",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackCalculator_beta" "', argument " "1"" of type '" "BlackCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackCalculator * >(argp1);
  {
    try {
      result = (Real)((BlackCalculator const *)arg1)->beta();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BlackCalculator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCalculator *arg1 = (BlackCalculator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BlackCalculator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCalculator, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlackCalculator" "', argument " "1"" of type '" "BlackCalculator *""'"); 
  }
  arg1 = reinterpret_cast< BlackCalculator * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BlackCalculator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BlackCalculator, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Average(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Average *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Average",0,0)) SWIG_fail;
  {
    try {
      result = (Average *)new Average();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Average, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Average(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Average *arg1 = (Average *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Average",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Average, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Average" "', argument " "1"" of type '" "Average *""'"); 
  }
  arg1 = reinterpret_cast< Average * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Average_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Average, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ContinuousAveragingAsianOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Average::Type arg1 ;
  boost::shared_ptr< Payoff > *arg2 = 0 ;
  boost::shared_ptr< Exercise > *arg3 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  ContinuousAveragingAsianOptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ContinuousAveragingAsianOption",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ContinuousAveragingAsianOption" "', argument " "1"" of type '" "Average::Type""'");
  } 
  arg1 = static_cast< Average::Type >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Payoff_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ContinuousAveragingAsianOption" "', argument " "2"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ContinuousAveragingAsianOption" "', argument " "2"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ContinuousAveragingAsianOption" "', argument " "3"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ContinuousAveragingAsianOption" "', argument " "3"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg3 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp3);
  {
    try {
      result = (ContinuousAveragingAsianOptionPtr *)new_ContinuousAveragingAsianOptionPtr(arg1,(boost::shared_ptr< Payoff > const &)*arg2,(boost::shared_ptr< Exercise > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ContinuousAveragingAsianOptionPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ContinuousAveragingAsianOption_delta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ContinuousAveragingAsianOptionPtr *arg1 = (ContinuousAveragingAsianOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ContinuousAveragingAsianOption_delta",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ContinuousAveragingAsianOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContinuousAveragingAsianOption_delta" "', argument " "1"" of type '" "ContinuousAveragingAsianOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< ContinuousAveragingAsianOptionPtr * >(argp1);
  {
    try {
      result = (Real)ContinuousAveragingAsianOptionPtr_delta(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ContinuousAveragingAsianOption_gamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ContinuousAveragingAsianOptionPtr *arg1 = (ContinuousAveragingAsianOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ContinuousAveragingAsianOption_gamma",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ContinuousAveragingAsianOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContinuousAveragingAsianOption_gamma" "', argument " "1"" of type '" "ContinuousAveragingAsianOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< ContinuousAveragingAsianOptionPtr * >(argp1);
  {
    try {
      result = (Real)ContinuousAveragingAsianOptionPtr_gamma(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ContinuousAveragingAsianOption_theta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ContinuousAveragingAsianOptionPtr *arg1 = (ContinuousAveragingAsianOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ContinuousAveragingAsianOption_theta",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ContinuousAveragingAsianOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContinuousAveragingAsianOption_theta" "', argument " "1"" of type '" "ContinuousAveragingAsianOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< ContinuousAveragingAsianOptionPtr * >(argp1);
  {
    try {
      result = (Real)ContinuousAveragingAsianOptionPtr_theta(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ContinuousAveragingAsianOption_thetaPerDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ContinuousAveragingAsianOptionPtr *arg1 = (ContinuousAveragingAsianOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ContinuousAveragingAsianOption_thetaPerDay",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ContinuousAveragingAsianOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContinuousAveragingAsianOption_thetaPerDay" "', argument " "1"" of type '" "ContinuousAveragingAsianOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< ContinuousAveragingAsianOptionPtr * >(argp1);
  {
    try {
      result = (Real)ContinuousAveragingAsianOptionPtr_thetaPerDay(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ContinuousAveragingAsianOption_vega(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ContinuousAveragingAsianOptionPtr *arg1 = (ContinuousAveragingAsianOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ContinuousAveragingAsianOption_vega",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ContinuousAveragingAsianOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContinuousAveragingAsianOption_vega" "', argument " "1"" of type '" "ContinuousAveragingAsianOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< ContinuousAveragingAsianOptionPtr * >(argp1);
  {
    try {
      result = (Real)ContinuousAveragingAsianOptionPtr_vega(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ContinuousAveragingAsianOption_rho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ContinuousAveragingAsianOptionPtr *arg1 = (ContinuousAveragingAsianOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ContinuousAveragingAsianOption_rho",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ContinuousAveragingAsianOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContinuousAveragingAsianOption_rho" "', argument " "1"" of type '" "ContinuousAveragingAsianOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< ContinuousAveragingAsianOptionPtr * >(argp1);
  {
    try {
      result = (Real)ContinuousAveragingAsianOptionPtr_rho(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ContinuousAveragingAsianOption_dividendRho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ContinuousAveragingAsianOptionPtr *arg1 = (ContinuousAveragingAsianOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ContinuousAveragingAsianOption_dividendRho",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ContinuousAveragingAsianOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContinuousAveragingAsianOption_dividendRho" "', argument " "1"" of type '" "ContinuousAveragingAsianOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< ContinuousAveragingAsianOptionPtr * >(argp1);
  {
    try {
      result = (Real)ContinuousAveragingAsianOptionPtr_dividendRho(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ContinuousAveragingAsianOption_strikeSensitivity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ContinuousAveragingAsianOptionPtr *arg1 = (ContinuousAveragingAsianOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ContinuousAveragingAsianOption_strikeSensitivity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ContinuousAveragingAsianOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContinuousAveragingAsianOption_strikeSensitivity" "', argument " "1"" of type '" "ContinuousAveragingAsianOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< ContinuousAveragingAsianOptionPtr * >(argp1);
  {
    try {
      result = (Real)ContinuousAveragingAsianOptionPtr_strikeSensitivity(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ContinuousAveragingAsianOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ContinuousAveragingAsianOptionPtr *arg1 = (ContinuousAveragingAsianOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ContinuousAveragingAsianOption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ContinuousAveragingAsianOptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContinuousAveragingAsianOption" "', argument " "1"" of type '" "ContinuousAveragingAsianOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< ContinuousAveragingAsianOptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ContinuousAveragingAsianOption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ContinuousAveragingAsianOptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DiscreteAveragingAsianOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Average::Type arg1 ;
  Real arg2 ;
  Size arg3 ;
  std::vector< Date,std::allocator< Date > > *arg4 = 0 ;
  boost::shared_ptr< Payoff > *arg5 = 0 ;
  boost::shared_ptr< Exercise > *arg6 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  DiscreteAveragingAsianOptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DiscreteAveragingAsianOption",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DiscreteAveragingAsianOption" "', argument " "1"" of type '" "Average::Type""'");
  } 
  arg1 = static_cast< Average::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DiscreteAveragingAsianOption" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DiscreteAveragingAsianOption" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_DiscreteAveragingAsianOption" "', argument " "4"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscreteAveragingAsianOption" "', argument " "4"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_boost__shared_ptrT_Payoff_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_DiscreteAveragingAsianOption" "', argument " "5"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscreteAveragingAsianOption" "', argument " "5"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  arg5 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_DiscreteAveragingAsianOption" "', argument " "6"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscreteAveragingAsianOption" "', argument " "6"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg6 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp6);
  {
    try {
      result = (DiscreteAveragingAsianOptionPtr *)new_DiscreteAveragingAsianOptionPtr(arg1,arg2,arg3,(std::vector< Date,std::allocator< Date > > const &)*arg4,(boost::shared_ptr< Payoff > const &)*arg5,(boost::shared_ptr< Exercise > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DiscreteAveragingAsianOptionPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DiscreteAveragingAsianOption_delta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DiscreteAveragingAsianOptionPtr *arg1 = (DiscreteAveragingAsianOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DiscreteAveragingAsianOption_delta",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DiscreteAveragingAsianOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DiscreteAveragingAsianOption_delta" "', argument " "1"" of type '" "DiscreteAveragingAsianOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DiscreteAveragingAsianOptionPtr * >(argp1);
  {
    try {
      result = (Real)DiscreteAveragingAsianOptionPtr_delta(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DiscreteAveragingAsianOption_gamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DiscreteAveragingAsianOptionPtr *arg1 = (DiscreteAveragingAsianOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DiscreteAveragingAsianOption_gamma",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DiscreteAveragingAsianOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DiscreteAveragingAsianOption_gamma" "', argument " "1"" of type '" "DiscreteAveragingAsianOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DiscreteAveragingAsianOptionPtr * >(argp1);
  {
    try {
      result = (Real)DiscreteAveragingAsianOptionPtr_gamma(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DiscreteAveragingAsianOption_theta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DiscreteAveragingAsianOptionPtr *arg1 = (DiscreteAveragingAsianOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DiscreteAveragingAsianOption_theta",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DiscreteAveragingAsianOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DiscreteAveragingAsianOption_theta" "', argument " "1"" of type '" "DiscreteAveragingAsianOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DiscreteAveragingAsianOptionPtr * >(argp1);
  {
    try {
      result = (Real)DiscreteAveragingAsianOptionPtr_theta(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DiscreteAveragingAsianOption_thetaPerDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DiscreteAveragingAsianOptionPtr *arg1 = (DiscreteAveragingAsianOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DiscreteAveragingAsianOption_thetaPerDay",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DiscreteAveragingAsianOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DiscreteAveragingAsianOption_thetaPerDay" "', argument " "1"" of type '" "DiscreteAveragingAsianOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DiscreteAveragingAsianOptionPtr * >(argp1);
  {
    try {
      result = (Real)DiscreteAveragingAsianOptionPtr_thetaPerDay(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DiscreteAveragingAsianOption_vega(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DiscreteAveragingAsianOptionPtr *arg1 = (DiscreteAveragingAsianOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DiscreteAveragingAsianOption_vega",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DiscreteAveragingAsianOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DiscreteAveragingAsianOption_vega" "', argument " "1"" of type '" "DiscreteAveragingAsianOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DiscreteAveragingAsianOptionPtr * >(argp1);
  {
    try {
      result = (Real)DiscreteAveragingAsianOptionPtr_vega(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DiscreteAveragingAsianOption_rho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DiscreteAveragingAsianOptionPtr *arg1 = (DiscreteAveragingAsianOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DiscreteAveragingAsianOption_rho",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DiscreteAveragingAsianOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DiscreteAveragingAsianOption_rho" "', argument " "1"" of type '" "DiscreteAveragingAsianOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DiscreteAveragingAsianOptionPtr * >(argp1);
  {
    try {
      result = (Real)DiscreteAveragingAsianOptionPtr_rho(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DiscreteAveragingAsianOption_dividendRho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DiscreteAveragingAsianOptionPtr *arg1 = (DiscreteAveragingAsianOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DiscreteAveragingAsianOption_dividendRho",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DiscreteAveragingAsianOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DiscreteAveragingAsianOption_dividendRho" "', argument " "1"" of type '" "DiscreteAveragingAsianOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DiscreteAveragingAsianOptionPtr * >(argp1);
  {
    try {
      result = (Real)DiscreteAveragingAsianOptionPtr_dividendRho(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DiscreteAveragingAsianOption_strikeSensitivity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DiscreteAveragingAsianOptionPtr *arg1 = (DiscreteAveragingAsianOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DiscreteAveragingAsianOption_strikeSensitivity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DiscreteAveragingAsianOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DiscreteAveragingAsianOption_strikeSensitivity" "', argument " "1"" of type '" "DiscreteAveragingAsianOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DiscreteAveragingAsianOptionPtr * >(argp1);
  {
    try {
      result = (Real)DiscreteAveragingAsianOptionPtr_strikeSensitivity(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DiscreteAveragingAsianOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DiscreteAveragingAsianOptionPtr *arg1 = (DiscreteAveragingAsianOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DiscreteAveragingAsianOption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DiscreteAveragingAsianOptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DiscreteAveragingAsianOption" "', argument " "1"" of type '" "DiscreteAveragingAsianOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DiscreteAveragingAsianOptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DiscreteAveragingAsianOption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DiscreteAveragingAsianOptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AnalyticContinuousGeometricAveragePriceAsianEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  AnalyticContinuousGeometricAveragePriceAsianEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticContinuousGeometricAveragePriceAsianEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticContinuousGeometricAveragePriceAsianEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticContinuousGeometricAveragePriceAsianEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (AnalyticContinuousGeometricAveragePriceAsianEnginePtr *)new_AnalyticContinuousGeometricAveragePriceAsianEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticContinuousGeometricAveragePriceAsianEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_AnalyticContinuousGeometricAveragePriceAsianEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AnalyticContinuousGeometricAveragePriceAsianEnginePtr *arg1 = (AnalyticContinuousGeometricAveragePriceAsianEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AnalyticContinuousGeometricAveragePriceAsianEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AnalyticContinuousGeometricAveragePriceAsianEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AnalyticContinuousGeometricAveragePriceAsianEngine" "', argument " "1"" of type '" "AnalyticContinuousGeometricAveragePriceAsianEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< AnalyticContinuousGeometricAveragePriceAsianEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AnalyticContinuousGeometricAveragePriceAsianEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AnalyticContinuousGeometricAveragePriceAsianEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AnalyticDiscreteGeometricAveragePriceAsianEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  AnalyticDiscreteGeometricAveragePriceAsianEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticDiscreteGeometricAveragePriceAsianEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticDiscreteGeometricAveragePriceAsianEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticDiscreteGeometricAveragePriceAsianEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (AnalyticDiscreteGeometricAveragePriceAsianEnginePtr *)new_AnalyticDiscreteGeometricAveragePriceAsianEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticDiscreteGeometricAveragePriceAsianEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_AnalyticDiscreteGeometricAveragePriceAsianEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AnalyticDiscreteGeometricAveragePriceAsianEnginePtr *arg1 = (AnalyticDiscreteGeometricAveragePriceAsianEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AnalyticDiscreteGeometricAveragePriceAsianEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AnalyticDiscreteGeometricAveragePriceAsianEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AnalyticDiscreteGeometricAveragePriceAsianEngine" "', argument " "1"" of type '" "AnalyticDiscreteGeometricAveragePriceAsianEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< AnalyticDiscreteGeometricAveragePriceAsianEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AnalyticDiscreteGeometricAveragePriceAsianEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AnalyticDiscreteGeometricAveragePriceAsianEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AnalyticDiscreteGeometricAverageStrikeAsianEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticDiscreteGeometricAverageStrikeAsianEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticDiscreteGeometricAverageStrikeAsianEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticDiscreteGeometricAverageStrikeAsianEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr *)new_AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_AnalyticDiscreteGeometricAverageStrikeAsianEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr *arg1 = (AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AnalyticDiscreteGeometricAverageStrikeAsianEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AnalyticDiscreteGeometricAverageStrikeAsianEngine" "', argument " "1"" of type '" "AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AnalyticDiscreteGeometricAverageStrikeAsianEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MCDiscreteArithmeticAPEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  std::string *arg2 = 0 ;
  bool arg3 = (bool) false ;
  bool arg4 = (bool) false ;
  bool arg5 = (bool) false ;
  intOrNull arg6 = (intOrNull) Null< Size >() ;
  doubleOrNull arg7 = (doubleOrNull) Null< Real >() ;
  intOrNull arg8 = (intOrNull) Null< Size >() ;
  BigInteger arg9 = (BigInteger) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  bool val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  long val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  char *  kwnames[] = {
    (char *) "process",(char *) "traits",(char *) "brownianBridge",(char *) "antitheticVariate",(char *) "controlVariate",(char *) "requiredSamples",(char *) "requiredTolerance",(char *) "maxSamples",(char *) "seed", NULL 
  };
  MCDiscreteArithmeticAPEnginePtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:new_MCDiscreteArithmeticAPEngine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MCDiscreteArithmeticAPEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MCDiscreteArithmeticAPEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MCDiscreteArithmeticAPEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MCDiscreteArithmeticAPEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  if (obj2) {
    ecode3 = SWIG_AsVal_bool(obj2, &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MCDiscreteArithmeticAPEngine" "', argument " "3"" of type '" "bool""'");
    } 
    arg3 = static_cast< bool >(val3);
  }
  if (obj3) {
    ecode4 = SWIG_AsVal_bool(obj3, &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_MCDiscreteArithmeticAPEngine" "', argument " "4"" of type '" "bool""'");
    } 
    arg4 = static_cast< bool >(val4);
  }
  if (obj4) {
    ecode5 = SWIG_AsVal_bool(obj4, &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_MCDiscreteArithmeticAPEngine" "', argument " "5"" of type '" "bool""'");
    } 
    arg5 = static_cast< bool >(val5);
  }
  if (obj5) {
    {
      if (obj5 == Py_None)
      arg6 = Null<int>();
      else if (PyInt_Check(obj5))
      arg6 = int(PyInt_AsLong(obj5));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj6) {
    {
      if (obj6 == Py_None)
      arg7 = Null<double>();
      else if (PyFloat_Check(obj6))
      arg7 = PyFloat_AsDouble(obj6);
      else
      SWIG_exception(SWIG_TypeError,"double expected");
    }
  }
  if (obj7) {
    {
      if (obj7 == Py_None)
      arg8 = Null<int>();
      else if (PyInt_Check(obj7))
      arg8 = int(PyInt_AsLong(obj7));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj8) {
    ecode9 = SWIG_AsVal_long(obj8, &val9);
    if (!SWIG_IsOK(ecode9)) {
      SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_MCDiscreteArithmeticAPEngine" "', argument " "9"" of type '" "BigInteger""'");
    } 
    arg9 = static_cast< BigInteger >(val9);
  }
  {
    try {
      result = (MCDiscreteArithmeticAPEnginePtr *)new_MCDiscreteArithmeticAPEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1,(std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MCDiscreteArithmeticAPEnginePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MCDiscreteArithmeticAPEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MCDiscreteArithmeticAPEnginePtr *arg1 = (MCDiscreteArithmeticAPEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MCDiscreteArithmeticAPEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MCDiscreteArithmeticAPEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MCDiscreteArithmeticAPEngine" "', argument " "1"" of type '" "MCDiscreteArithmeticAPEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< MCDiscreteArithmeticAPEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MCDiscreteArithmeticAPEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MCDiscreteArithmeticAPEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MCDiscreteArithmeticASEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  std::string *arg2 = 0 ;
  bool arg3 = (bool) false ;
  bool arg4 = (bool) false ;
  intOrNull arg5 = (intOrNull) Null< Size >() ;
  doubleOrNull arg6 = (doubleOrNull) Null< Real >() ;
  intOrNull arg7 = (intOrNull) Null< Size >() ;
  BigInteger arg8 = (BigInteger) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  bool val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  long val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  char *  kwnames[] = {
    (char *) "process",(char *) "traits",(char *) "brownianBridge",(char *) "antitheticVariate",(char *) "requiredSamples",(char *) "requiredTolerance",(char *) "maxSamples",(char *) "seed", NULL 
  };
  MCDiscreteArithmeticASEnginePtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_MCDiscreteArithmeticASEngine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MCDiscreteArithmeticASEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MCDiscreteArithmeticASEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MCDiscreteArithmeticASEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MCDiscreteArithmeticASEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  if (obj2) {
    ecode3 = SWIG_AsVal_bool(obj2, &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MCDiscreteArithmeticASEngine" "', argument " "3"" of type '" "bool""'");
    } 
    arg3 = static_cast< bool >(val3);
  }
  if (obj3) {
    ecode4 = SWIG_AsVal_bool(obj3, &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_MCDiscreteArithmeticASEngine" "', argument " "4"" of type '" "bool""'");
    } 
    arg4 = static_cast< bool >(val4);
  }
  if (obj4) {
    {
      if (obj4 == Py_None)
      arg5 = Null<int>();
      else if (PyInt_Check(obj4))
      arg5 = int(PyInt_AsLong(obj4));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj5) {
    {
      if (obj5 == Py_None)
      arg6 = Null<double>();
      else if (PyFloat_Check(obj5))
      arg6 = PyFloat_AsDouble(obj5);
      else
      SWIG_exception(SWIG_TypeError,"double expected");
    }
  }
  if (obj6) {
    {
      if (obj6 == Py_None)
      arg7 = Null<int>();
      else if (PyInt_Check(obj6))
      arg7 = int(PyInt_AsLong(obj6));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj7) {
    ecode8 = SWIG_AsVal_long(obj7, &val8);
    if (!SWIG_IsOK(ecode8)) {
      SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_MCDiscreteArithmeticASEngine" "', argument " "8"" of type '" "BigInteger""'");
    } 
    arg8 = static_cast< BigInteger >(val8);
  }
  {
    try {
      result = (MCDiscreteArithmeticASEnginePtr *)new_MCDiscreteArithmeticASEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1,(std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MCDiscreteArithmeticASEnginePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MCDiscreteArithmeticASEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MCDiscreteArithmeticASEnginePtr *arg1 = (MCDiscreteArithmeticASEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MCDiscreteArithmeticASEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MCDiscreteArithmeticASEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MCDiscreteArithmeticASEngine" "', argument " "1"" of type '" "MCDiscreteArithmeticASEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< MCDiscreteArithmeticASEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MCDiscreteArithmeticASEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MCDiscreteArithmeticASEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MCDiscreteGeometricAPEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  std::string *arg2 = 0 ;
  bool arg3 = (bool) false ;
  bool arg4 = (bool) false ;
  intOrNull arg5 = (intOrNull) Null< Size >() ;
  doubleOrNull arg6 = (doubleOrNull) Null< Real >() ;
  intOrNull arg7 = (intOrNull) Null< Size >() ;
  BigInteger arg8 = (BigInteger) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  bool val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  long val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  char *  kwnames[] = {
    (char *) "process",(char *) "traits",(char *) "brownianBridge",(char *) "antitheticVariate",(char *) "requiredSamples",(char *) "requiredTolerance",(char *) "maxSamples",(char *) "seed", NULL 
  };
  MCDiscreteGeometricAPEnginePtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_MCDiscreteGeometricAPEngine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MCDiscreteGeometricAPEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MCDiscreteGeometricAPEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MCDiscreteGeometricAPEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MCDiscreteGeometricAPEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  if (obj2) {
    ecode3 = SWIG_AsVal_bool(obj2, &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MCDiscreteGeometricAPEngine" "', argument " "3"" of type '" "bool""'");
    } 
    arg3 = static_cast< bool >(val3);
  }
  if (obj3) {
    ecode4 = SWIG_AsVal_bool(obj3, &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_MCDiscreteGeometricAPEngine" "', argument " "4"" of type '" "bool""'");
    } 
    arg4 = static_cast< bool >(val4);
  }
  if (obj4) {
    {
      if (obj4 == Py_None)
      arg5 = Null<int>();
      else if (PyInt_Check(obj4))
      arg5 = int(PyInt_AsLong(obj4));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj5) {
    {
      if (obj5 == Py_None)
      arg6 = Null<double>();
      else if (PyFloat_Check(obj5))
      arg6 = PyFloat_AsDouble(obj5);
      else
      SWIG_exception(SWIG_TypeError,"double expected");
    }
  }
  if (obj6) {
    {
      if (obj6 == Py_None)
      arg7 = Null<int>();
      else if (PyInt_Check(obj6))
      arg7 = int(PyInt_AsLong(obj6));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj7) {
    ecode8 = SWIG_AsVal_long(obj7, &val8);
    if (!SWIG_IsOK(ecode8)) {
      SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_MCDiscreteGeometricAPEngine" "', argument " "8"" of type '" "BigInteger""'");
    } 
    arg8 = static_cast< BigInteger >(val8);
  }
  {
    try {
      result = (MCDiscreteGeometricAPEnginePtr *)new_MCDiscreteGeometricAPEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1,(std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MCDiscreteGeometricAPEnginePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MCDiscreteGeometricAPEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MCDiscreteGeometricAPEnginePtr *arg1 = (MCDiscreteGeometricAPEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MCDiscreteGeometricAPEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MCDiscreteGeometricAPEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MCDiscreteGeometricAPEngine" "', argument " "1"" of type '" "MCDiscreteGeometricAPEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< MCDiscreteGeometricAPEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MCDiscreteGeometricAPEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MCDiscreteGeometricAPEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_VarianceGammaEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VarianceGammaProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  VarianceGammaEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_VarianceGammaEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_VarianceGammaProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VarianceGammaEngine" "', argument " "1"" of type '" "VarianceGammaProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VarianceGammaEngine" "', argument " "1"" of type '" "VarianceGammaProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< VarianceGammaProcessPtr * >(argp1);
  {
    try {
      result = (VarianceGammaEnginePtr *)new_VarianceGammaEnginePtr((VarianceGammaProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VarianceGammaEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_VarianceGammaEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VarianceGammaEnginePtr *arg1 = (VarianceGammaEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_VarianceGammaEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VarianceGammaEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VarianceGammaEngine" "', argument " "1"" of type '" "VarianceGammaEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< VarianceGammaEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *VarianceGammaEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_VarianceGammaEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FFTVarianceGammaEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VarianceGammaProcessPtr *arg1 = 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  FFTVarianceGammaEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FFTVarianceGammaEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_VarianceGammaProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FFTVarianceGammaEngine" "', argument " "1"" of type '" "VarianceGammaProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FFTVarianceGammaEngine" "', argument " "1"" of type '" "VarianceGammaProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< VarianceGammaProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFTVarianceGammaEngine" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (FFTVarianceGammaEnginePtr *)new_FFTVarianceGammaEnginePtr__SWIG_0((VarianceGammaProcessPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FFTVarianceGammaEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FFTVarianceGammaEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VarianceGammaProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  FFTVarianceGammaEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FFTVarianceGammaEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_VarianceGammaProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FFTVarianceGammaEngine" "', argument " "1"" of type '" "VarianceGammaProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FFTVarianceGammaEngine" "', argument " "1"" of type '" "VarianceGammaProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< VarianceGammaProcessPtr * >(argp1);
  {
    try {
      result = (FFTVarianceGammaEnginePtr *)new_FFTVarianceGammaEnginePtr__SWIG_0((VarianceGammaProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FFTVarianceGammaEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FFTVarianceGammaEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_VarianceGammaProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_FFTVarianceGammaEngine__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_VarianceGammaProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_FFTVarianceGammaEngine__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FFTVarianceGammaEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FFTVarianceGammaEnginePtr::FFTVarianceGammaEnginePtr(VarianceGammaProcessPtr const &,Real)\n"
    "    FFTVarianceGammaEnginePtr::FFTVarianceGammaEnginePtr(VarianceGammaProcessPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_FFTVarianceGammaEngine_precalculate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FFTVarianceGammaEnginePtr *arg1 = (FFTVarianceGammaEnginePtr *) 0 ;
  std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"FFTVarianceGammaEngine_precalculate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FFTVarianceGammaEnginePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FFTVarianceGammaEngine_precalculate" "', argument " "1"" of type '" "FFTVarianceGammaEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< FFTVarianceGammaEnginePtr * >(argp1);
  {
    std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > *ptr = (std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FFTVarianceGammaEngine_precalculate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FFTVarianceGammaEngine_precalculate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      FFTVarianceGammaEnginePtr_precalculate(arg1,(std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_FFTVarianceGammaEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FFTVarianceGammaEnginePtr *arg1 = (FFTVarianceGammaEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FFTVarianceGammaEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FFTVarianceGammaEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FFTVarianceGammaEngine" "', argument " "1"" of type '" "FFTVarianceGammaEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< FFTVarianceGammaEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FFTVarianceGammaEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FFTVarianceGammaEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DoubleBarrierOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DoubleBarrier::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  boost::shared_ptr< Payoff > *arg5 = 0 ;
  boost::shared_ptr< Exercise > *arg6 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  DoubleBarrierOptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DoubleBarrierOption",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DoubleBarrierOption" "', argument " "1"" of type '" "DoubleBarrier::Type""'");
  } 
  arg1 = static_cast< DoubleBarrier::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DoubleBarrierOption" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DoubleBarrierOption" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DoubleBarrierOption" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_boost__shared_ptrT_Payoff_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_DoubleBarrierOption" "', argument " "5"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DoubleBarrierOption" "', argument " "5"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  arg5 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_DoubleBarrierOption" "', argument " "6"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DoubleBarrierOption" "', argument " "6"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg6 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp6);
  {
    try {
      result = (DoubleBarrierOptionPtr *)new_DoubleBarrierOptionPtr(arg1,arg2,arg3,arg4,(boost::shared_ptr< Payoff > const &)*arg5,(boost::shared_ptr< Exercise > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DoubleBarrierOptionPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleBarrierOption_delta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DoubleBarrierOptionPtr *arg1 = (DoubleBarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleBarrierOption_delta",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DoubleBarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleBarrierOption_delta" "', argument " "1"" of type '" "DoubleBarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DoubleBarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)DoubleBarrierOptionPtr_delta(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleBarrierOption_gamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DoubleBarrierOptionPtr *arg1 = (DoubleBarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleBarrierOption_gamma",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DoubleBarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleBarrierOption_gamma" "', argument " "1"" of type '" "DoubleBarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DoubleBarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)DoubleBarrierOptionPtr_gamma(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleBarrierOption_theta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DoubleBarrierOptionPtr *arg1 = (DoubleBarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleBarrierOption_theta",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DoubleBarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleBarrierOption_theta" "', argument " "1"" of type '" "DoubleBarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DoubleBarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)DoubleBarrierOptionPtr_theta(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleBarrierOption_thetaPerDay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DoubleBarrierOptionPtr *arg1 = (DoubleBarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleBarrierOption_thetaPerDay",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DoubleBarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleBarrierOption_thetaPerDay" "', argument " "1"" of type '" "DoubleBarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DoubleBarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)DoubleBarrierOptionPtr_thetaPerDay(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleBarrierOption_vega(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DoubleBarrierOptionPtr *arg1 = (DoubleBarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleBarrierOption_vega",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DoubleBarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleBarrierOption_vega" "', argument " "1"" of type '" "DoubleBarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DoubleBarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)DoubleBarrierOptionPtr_vega(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleBarrierOption_rho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DoubleBarrierOptionPtr *arg1 = (DoubleBarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleBarrierOption_rho",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DoubleBarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleBarrierOption_rho" "', argument " "1"" of type '" "DoubleBarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DoubleBarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)DoubleBarrierOptionPtr_rho(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleBarrierOption_dividendRho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DoubleBarrierOptionPtr *arg1 = (DoubleBarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleBarrierOption_dividendRho",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DoubleBarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleBarrierOption_dividendRho" "', argument " "1"" of type '" "DoubleBarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DoubleBarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)DoubleBarrierOptionPtr_dividendRho(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DoubleBarrierOption_strikeSensitivity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DoubleBarrierOptionPtr *arg1 = (DoubleBarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DoubleBarrierOption_strikeSensitivity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DoubleBarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleBarrierOption_strikeSensitivity" "', argument " "1"" of type '" "DoubleBarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DoubleBarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)DoubleBarrierOptionPtr_strikeSensitivity(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DoubleBarrierOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DoubleBarrierOptionPtr *arg1 = (DoubleBarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DoubleBarrierOption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DoubleBarrierOptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DoubleBarrierOption" "', argument " "1"" of type '" "DoubleBarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< DoubleBarrierOptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DoubleBarrierOption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DoubleBarrierOptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_QuantoDoubleBarrierOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DoubleBarrier::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  boost::shared_ptr< Payoff > *arg5 = 0 ;
  boost::shared_ptr< Exercise > *arg6 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  QuantoDoubleBarrierOptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_QuantoDoubleBarrierOption",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QuantoDoubleBarrierOption" "', argument " "1"" of type '" "DoubleBarrier::Type""'");
  } 
  arg1 = static_cast< DoubleBarrier::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_QuantoDoubleBarrierOption" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_QuantoDoubleBarrierOption" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_QuantoDoubleBarrierOption" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_boost__shared_ptrT_Payoff_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_QuantoDoubleBarrierOption" "', argument " "5"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuantoDoubleBarrierOption" "', argument " "5"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  arg5 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_QuantoDoubleBarrierOption" "', argument " "6"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_QuantoDoubleBarrierOption" "', argument " "6"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg6 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp6);
  {
    try {
      result = (QuantoDoubleBarrierOptionPtr *)new_QuantoDoubleBarrierOptionPtr(arg1,arg2,arg3,arg4,(boost::shared_ptr< Payoff > const &)*arg5,(boost::shared_ptr< Exercise > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QuantoDoubleBarrierOptionPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantoDoubleBarrierOption_qvega(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantoDoubleBarrierOptionPtr *arg1 = (QuantoDoubleBarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuantoDoubleBarrierOption_qvega",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantoDoubleBarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantoDoubleBarrierOption_qvega" "', argument " "1"" of type '" "QuantoDoubleBarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< QuantoDoubleBarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)QuantoDoubleBarrierOptionPtr_qvega(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantoDoubleBarrierOption_qrho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantoDoubleBarrierOptionPtr *arg1 = (QuantoDoubleBarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuantoDoubleBarrierOption_qrho",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantoDoubleBarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantoDoubleBarrierOption_qrho" "', argument " "1"" of type '" "QuantoDoubleBarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< QuantoDoubleBarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)QuantoDoubleBarrierOptionPtr_qrho(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantoDoubleBarrierOption_qlambda(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantoDoubleBarrierOptionPtr *arg1 = (QuantoDoubleBarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"QuantoDoubleBarrierOption_qlambda",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantoDoubleBarrierOptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantoDoubleBarrierOption_qlambda" "', argument " "1"" of type '" "QuantoDoubleBarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< QuantoDoubleBarrierOptionPtr * >(argp1);
  {
    try {
      result = (Real)QuantoDoubleBarrierOptionPtr_qlambda(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_QuantoDoubleBarrierOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  QuantoDoubleBarrierOptionPtr *arg1 = (QuantoDoubleBarrierOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_QuantoDoubleBarrierOption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_QuantoDoubleBarrierOptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_QuantoDoubleBarrierOption" "', argument " "1"" of type '" "QuantoDoubleBarrierOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< QuantoDoubleBarrierOptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *QuantoDoubleBarrierOption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_QuantoDoubleBarrierOptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AnalyticDoubleBarrierEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  AnalyticDoubleBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticDoubleBarrierEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticDoubleBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticDoubleBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AnalyticDoubleBarrierEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  {
    try {
      result = (AnalyticDoubleBarrierEnginePtr *)new_AnalyticDoubleBarrierEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticDoubleBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_AnalyticDoubleBarrierEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  AnalyticDoubleBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticDoubleBarrierEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticDoubleBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticDoubleBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (AnalyticDoubleBarrierEnginePtr *)new_AnalyticDoubleBarrierEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticDoubleBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_AnalyticDoubleBarrierEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_AnalyticDoubleBarrierEngine__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_AnalyticDoubleBarrierEngine__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_AnalyticDoubleBarrierEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    AnalyticDoubleBarrierEnginePtr::AnalyticDoubleBarrierEnginePtr(GeneralizedBlackScholesProcessPtr const &,int)\n"
    "    AnalyticDoubleBarrierEnginePtr::AnalyticDoubleBarrierEnginePtr(GeneralizedBlackScholesProcessPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_AnalyticDoubleBarrierEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AnalyticDoubleBarrierEnginePtr *arg1 = (AnalyticDoubleBarrierEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AnalyticDoubleBarrierEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AnalyticDoubleBarrierEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AnalyticDoubleBarrierEngine" "', argument " "1"" of type '" "AnalyticDoubleBarrierEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< AnalyticDoubleBarrierEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AnalyticDoubleBarrierEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AnalyticDoubleBarrierEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_WulinYongDoubleBarrierEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  WulinYongDoubleBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_WulinYongDoubleBarrierEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WulinYongDoubleBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WulinYongDoubleBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_WulinYongDoubleBarrierEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  {
    try {
      result = (WulinYongDoubleBarrierEnginePtr *)new_WulinYongDoubleBarrierEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_WulinYongDoubleBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_WulinYongDoubleBarrierEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  WulinYongDoubleBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_WulinYongDoubleBarrierEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WulinYongDoubleBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WulinYongDoubleBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (WulinYongDoubleBarrierEnginePtr *)new_WulinYongDoubleBarrierEnginePtr__SWIG_0((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_WulinYongDoubleBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_WulinYongDoubleBarrierEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_WulinYongDoubleBarrierEngine__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_WulinYongDoubleBarrierEngine__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_WulinYongDoubleBarrierEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    WulinYongDoubleBarrierEnginePtr::WulinYongDoubleBarrierEnginePtr(GeneralizedBlackScholesProcessPtr const &,int)\n"
    "    WulinYongDoubleBarrierEnginePtr::WulinYongDoubleBarrierEnginePtr(GeneralizedBlackScholesProcessPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_WulinYongDoubleBarrierEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  WulinYongDoubleBarrierEnginePtr *arg1 = (WulinYongDoubleBarrierEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_WulinYongDoubleBarrierEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_WulinYongDoubleBarrierEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_WulinYongDoubleBarrierEngine" "', argument " "1"" of type '" "WulinYongDoubleBarrierEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< WulinYongDoubleBarrierEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *WulinYongDoubleBarrierEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_WulinYongDoubleBarrierEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_DeltaVolQuote___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DeltaVolQuote > *arg1 = (boost::shared_ptr< DeltaVolQuote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  DeltaVolQuote *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DeltaVolQuote___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DeltaVolQuote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeltaVolQuote___deref__" "', argument " "1"" of type '" "boost::shared_ptr< DeltaVolQuote > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DeltaVolQuote > * >(argp1);
  {
    try {
      result = (DeltaVolQuote *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DeltaVolQuote, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeltaVolQuote___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DeltaVolQuote > *arg1 = (boost::shared_ptr< DeltaVolQuote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DeltaVolQuote___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DeltaVolQuote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeltaVolQuote___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< DeltaVolQuote > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DeltaVolQuote > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_DeltaVolQuote_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeltaVolQuote___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DeltaVolQuote > *arg1 = (boost::shared_ptr< DeltaVolQuote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DeltaVolQuote___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DeltaVolQuote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeltaVolQuote___bool__" "', argument " "1"" of type '" "boost::shared_ptr< DeltaVolQuote > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DeltaVolQuote > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_DeltaVolQuote_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeltaVolQuote_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DeltaVolQuote > *arg1 = (boost::shared_ptr< DeltaVolQuote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DeltaVolQuote_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DeltaVolQuote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeltaVolQuote_asObservable" "', argument " "1"" of type '" "boost::shared_ptr< DeltaVolQuote > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DeltaVolQuote > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_DeltaVolQuote_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DeltaVolQuote__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Handle< Quote > *arg2 = 0 ;
  Time arg3 ;
  DeltaVolQuote::DeltaType arg4 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  boost::shared_ptr< DeltaVolQuote > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DeltaVolQuote",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DeltaVolQuote" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DeltaVolQuote" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DeltaVolQuote" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DeltaVolQuote" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DeltaVolQuote" "', argument " "4"" of type '" "DeltaVolQuote::DeltaType""'");
  } 
  arg4 = static_cast< DeltaVolQuote::DeltaType >(val4);
  {
    try {
      result = (boost::shared_ptr< DeltaVolQuote > *)new_boost_shared_ptr_Sl_DeltaVolQuote_Sg___SWIG_0(arg1,(Handle< Quote > const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_DeltaVolQuote_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DeltaVolQuote__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  DeltaVolQuote::DeltaType arg2 ;
  Time arg3 ;
  DeltaVolQuote::AtmType arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  boost::shared_ptr< DeltaVolQuote > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DeltaVolQuote",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DeltaVolQuote" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DeltaVolQuote" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DeltaVolQuote" "', argument " "2"" of type '" "DeltaVolQuote::DeltaType""'");
  } 
  arg2 = static_cast< DeltaVolQuote::DeltaType >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DeltaVolQuote" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DeltaVolQuote" "', argument " "4"" of type '" "DeltaVolQuote::AtmType""'");
  } 
  arg4 = static_cast< DeltaVolQuote::AtmType >(val4);
  {
    try {
      result = (boost::shared_ptr< DeltaVolQuote > *)new_boost_shared_ptr_Sl_DeltaVolQuote_Sg___SWIG_1((Handle< Quote > const &)*arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_DeltaVolQuote_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DeltaVolQuote(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_DeltaVolQuote__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_DeltaVolQuote__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DeltaVolQuote'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    boost::shared_ptr< DeltaVolQuote >::shared_ptr(Real,Handle< Quote > const &,Time,DeltaVolQuote::DeltaType)\n"
    "    boost::shared_ptr< DeltaVolQuote >::shared_ptr(Handle< Quote > const &,DeltaVolQuote::DeltaType,Time,DeltaVolQuote::AtmType)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_DeltaVolQuote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DeltaVolQuote > *arg1 = (boost::shared_ptr< DeltaVolQuote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DeltaVolQuote",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DeltaVolQuote_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DeltaVolQuote" "', argument " "1"" of type '" "boost::shared_ptr< DeltaVolQuote > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DeltaVolQuote > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeltaVolQuote_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DeltaVolQuote > *arg1 = (boost::shared_ptr< DeltaVolQuote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DeltaVolQuote_value",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DeltaVolQuote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeltaVolQuote_value" "', argument " "1"" of type '" "boost::shared_ptr< DeltaVolQuote > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DeltaVolQuote > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->value();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DeltaVolQuote_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_DeltaVolQuote_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DeltaVolQuoteHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DeltaVolQuote > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< DeltaVolQuote > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DeltaVolQuoteHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_DeltaVolQuote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DeltaVolQuoteHandle" "', argument " "1"" of type '" "boost::shared_ptr< DeltaVolQuote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DeltaVolQuoteHandle" "', argument " "1"" of type '" "boost::shared_ptr< DeltaVolQuote > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DeltaVolQuote > * >(argp1);
  {
    try {
      result = (Handle< DeltaVolQuote > *)new Handle< DeltaVolQuote >((boost::shared_ptr< DeltaVolQuote > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_DeltaVolQuote_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DeltaVolQuoteHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DeltaVolQuote > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DeltaVolQuoteHandle",0,0)) SWIG_fail;
  {
    try {
      result = (Handle< DeltaVolQuote > *)new Handle< DeltaVolQuote >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_DeltaVolQuote_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DeltaVolQuoteHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_DeltaVolQuoteHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_DeltaVolQuote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_DeltaVolQuoteHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DeltaVolQuoteHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Handle< DeltaVolQuote >::Handle(boost::shared_ptr< DeltaVolQuote > const &)\n"
    "    Handle< DeltaVolQuote >::Handle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DeltaVolQuoteHandle___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DeltaVolQuote > *arg1 = (Handle< DeltaVolQuote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< boost::shared_ptr< DeltaVolQuote > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DeltaVolQuoteHandle___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeltaVolQuoteHandle___deref__" "', argument " "1"" of type '" "Handle< DeltaVolQuote > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DeltaVolQuote > * >(argp1);
  {
    try {
      result = (arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< DeltaVolQuote >(static_cast< const boost::shared_ptr< DeltaVolQuote >& >(result))), SWIGTYPE_p_boost__shared_ptrT_DeltaVolQuote_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeltaVolQuoteHandle___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DeltaVolQuote > *arg1 = (Handle< DeltaVolQuote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DeltaVolQuoteHandle___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeltaVolQuoteHandle___nonzero__" "', argument " "1"" of type '" "Handle< DeltaVolQuote > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DeltaVolQuote > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_DeltaVolQuote_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeltaVolQuoteHandle___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DeltaVolQuote > *arg1 = (Handle< DeltaVolQuote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DeltaVolQuoteHandle___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeltaVolQuoteHandle___bool__" "', argument " "1"" of type '" "Handle< DeltaVolQuote > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DeltaVolQuote > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_DeltaVolQuote_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeltaVolQuoteHandle_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DeltaVolQuote > *arg1 = (Handle< DeltaVolQuote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DeltaVolQuoteHandle_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeltaVolQuoteHandle_asObservable" "', argument " "1"" of type '" "Handle< DeltaVolQuote > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DeltaVolQuote > * >(argp1);
  {
    try {
      result = Handle_Sl_DeltaVolQuote_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DeltaVolQuoteHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DeltaVolQuote > *arg1 = (Handle< DeltaVolQuote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DeltaVolQuoteHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DeltaVolQuote_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DeltaVolQuoteHandle" "', argument " "1"" of type '" "Handle< DeltaVolQuote > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DeltaVolQuote > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeltaVolQuoteHandle_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DeltaVolQuote > *arg1 = (Handle< DeltaVolQuote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DeltaVolQuoteHandle_value",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeltaVolQuoteHandle_value" "', argument " "1"" of type '" "Handle< DeltaVolQuote > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DeltaVolQuote > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->value();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DeltaVolQuoteHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HandleT_DeltaVolQuote_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_RelinkableDeltaVolQuoteHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DeltaVolQuote > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  RelinkableHandle< DeltaVolQuote > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableDeltaVolQuoteHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_DeltaVolQuote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RelinkableDeltaVolQuoteHandle" "', argument " "1"" of type '" "boost::shared_ptr< DeltaVolQuote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RelinkableDeltaVolQuoteHandle" "', argument " "1"" of type '" "boost::shared_ptr< DeltaVolQuote > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DeltaVolQuote > * >(argp1);
  {
    try {
      result = (RelinkableHandle< DeltaVolQuote > *)new RelinkableHandle< DeltaVolQuote >((boost::shared_ptr< DeltaVolQuote > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_DeltaVolQuote_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableDeltaVolQuoteHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< DeltaVolQuote > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableDeltaVolQuoteHandle",0,0)) SWIG_fail;
  {
    try {
      result = (RelinkableHandle< DeltaVolQuote > *)new RelinkableHandle< DeltaVolQuote >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_DeltaVolQuote_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableDeltaVolQuoteHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_RelinkableDeltaVolQuoteHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_DeltaVolQuote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_RelinkableDeltaVolQuoteHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RelinkableDeltaVolQuoteHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    RelinkableHandle< DeltaVolQuote >::RelinkableHandle(boost::shared_ptr< DeltaVolQuote > const &)\n"
    "    RelinkableHandle< DeltaVolQuote >::RelinkableHandle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableDeltaVolQuoteHandle_linkTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< DeltaVolQuote > *arg1 = (RelinkableHandle< DeltaVolQuote > *) 0 ;
  boost::shared_ptr< DeltaVolQuote > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableDeltaVolQuoteHandle_linkTo",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_DeltaVolQuote_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableDeltaVolQuoteHandle_linkTo" "', argument " "1"" of type '" "RelinkableHandle< DeltaVolQuote > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< DeltaVolQuote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_DeltaVolQuote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableDeltaVolQuoteHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< DeltaVolQuote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableDeltaVolQuoteHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< DeltaVolQuote > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< DeltaVolQuote > * >(argp2);
  {
    try {
      (arg1)->linkTo((boost::shared_ptr< DeltaVolQuote > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RelinkableDeltaVolQuoteHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< DeltaVolQuote > *arg1 = (RelinkableHandle< DeltaVolQuote > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RelinkableDeltaVolQuoteHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_DeltaVolQuote_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RelinkableDeltaVolQuoteHandle" "', argument " "1"" of type '" "RelinkableHandle< DeltaVolQuote > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< DeltaVolQuote > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RelinkableDeltaVolQuoteHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RelinkableHandleT_DeltaVolQuote_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_VannaVolgaDoubleBarrierEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DeltaVolQuote > arg1 ;
  Handle< DeltaVolQuote > arg2 ;
  Handle< DeltaVolQuote > arg3 ;
  Handle< Quote > arg4 ;
  Handle< YieldTermStructure > arg5 ;
  Handle< YieldTermStructure > arg6 ;
  std::string *arg7 = 0 ;
  bool arg8 ;
  Real arg9 ;
  int arg10 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  void *argp5 ;
  int res5 = 0 ;
  void *argp6 ;
  int res6 = 0 ;
  int res7 = SWIG_OLDOBJ ;
  bool val8 ;
  int ecode8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  int val10 ;
  int ecode10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  VannaVolgaDoubleBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_VannaVolgaDoubleBarrierEngine",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_DeltaVolQuote_t,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "1"" of type '" "Handle< DeltaVolQuote > const""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "1"" of type '" "Handle< DeltaVolQuote > const""'");
    } else {
      Handle< DeltaVolQuote > * temp = reinterpret_cast< Handle< DeltaVolQuote > * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_DeltaVolQuote_t,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "2"" of type '" "Handle< DeltaVolQuote > const""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "2"" of type '" "Handle< DeltaVolQuote > const""'");
    } else {
      Handle< DeltaVolQuote > * temp = reinterpret_cast< Handle< DeltaVolQuote > * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_DeltaVolQuote_t,  0  | 0);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "3"" of type '" "Handle< DeltaVolQuote > const""'"); 
    }  
    if (!argp3) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "3"" of type '" "Handle< DeltaVolQuote > const""'");
    } else {
      Handle< DeltaVolQuote > * temp = reinterpret_cast< Handle< DeltaVolQuote > * >(argp3);
      arg3 = *temp;
      if (SWIG_IsNewObj(res3)) delete temp;
    }
  }
  {
    res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "4"" of type '" "Handle< Quote > const""'"); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "4"" of type '" "Handle< Quote > const""'");
    } else {
      Handle< Quote > * temp = reinterpret_cast< Handle< Quote > * >(argp4);
      arg4 = *temp;
      if (SWIG_IsNewObj(res4)) delete temp;
    }
  }
  {
    res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "5"" of type '" "Handle< YieldTermStructure > const""'"); 
    }  
    if (!argp5) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "5"" of type '" "Handle< YieldTermStructure > const""'");
    } else {
      Handle< YieldTermStructure > * temp = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
      arg5 = *temp;
      if (SWIG_IsNewObj(res5)) delete temp;
    }
  }
  {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "6"" of type '" "Handle< YieldTermStructure > const""'"); 
    }  
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "6"" of type '" "Handle< YieldTermStructure > const""'");
    } else {
      Handle< YieldTermStructure > * temp = reinterpret_cast< Handle< YieldTermStructure > * >(argp6);
      arg6 = *temp;
      if (SWIG_IsNewObj(res6)) delete temp;
    }
  }
  {
    std::string *ptr = (std::string *)0;
    res7 = SWIG_AsPtr_std_string(obj6, &ptr);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "7"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "7"" of type '" "std::string const &""'"); 
    }
    arg7 = ptr;
  }
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "9"" of type '" "Real""'");
  } 
  arg9 = static_cast< Real >(val9);
  ecode10 = SWIG_AsVal_int(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "10"" of type '" "int""'");
  } 
  arg10 = static_cast< int >(val10);
  {
    try {
      result = (VannaVolgaDoubleBarrierEnginePtr *)new_VannaVolgaDoubleBarrierEnginePtr__SWIG_0(arg1,arg2,arg3,arg4,arg5,arg6,(std::string const &)*arg7,arg8,arg9,arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VannaVolgaDoubleBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res7)) delete arg7;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res7)) delete arg7;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_VannaVolgaDoubleBarrierEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DeltaVolQuote > arg1 ;
  Handle< DeltaVolQuote > arg2 ;
  Handle< DeltaVolQuote > arg3 ;
  Handle< Quote > arg4 ;
  Handle< YieldTermStructure > arg5 ;
  Handle< YieldTermStructure > arg6 ;
  std::string *arg7 = 0 ;
  bool arg8 ;
  Real arg9 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  void *argp5 ;
  int res5 = 0 ;
  void *argp6 ;
  int res6 = 0 ;
  int res7 = SWIG_OLDOBJ ;
  bool val8 ;
  int ecode8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  VannaVolgaDoubleBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_VannaVolgaDoubleBarrierEngine",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_DeltaVolQuote_t,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "1"" of type '" "Handle< DeltaVolQuote > const""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "1"" of type '" "Handle< DeltaVolQuote > const""'");
    } else {
      Handle< DeltaVolQuote > * temp = reinterpret_cast< Handle< DeltaVolQuote > * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_DeltaVolQuote_t,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "2"" of type '" "Handle< DeltaVolQuote > const""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "2"" of type '" "Handle< DeltaVolQuote > const""'");
    } else {
      Handle< DeltaVolQuote > * temp = reinterpret_cast< Handle< DeltaVolQuote > * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_DeltaVolQuote_t,  0  | 0);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "3"" of type '" "Handle< DeltaVolQuote > const""'"); 
    }  
    if (!argp3) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "3"" of type '" "Handle< DeltaVolQuote > const""'");
    } else {
      Handle< DeltaVolQuote > * temp = reinterpret_cast< Handle< DeltaVolQuote > * >(argp3);
      arg3 = *temp;
      if (SWIG_IsNewObj(res3)) delete temp;
    }
  }
  {
    res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "4"" of type '" "Handle< Quote > const""'"); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "4"" of type '" "Handle< Quote > const""'");
    } else {
      Handle< Quote > * temp = reinterpret_cast< Handle< Quote > * >(argp4);
      arg4 = *temp;
      if (SWIG_IsNewObj(res4)) delete temp;
    }
  }
  {
    res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "5"" of type '" "Handle< YieldTermStructure > const""'"); 
    }  
    if (!argp5) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "5"" of type '" "Handle< YieldTermStructure > const""'");
    } else {
      Handle< YieldTermStructure > * temp = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
      arg5 = *temp;
      if (SWIG_IsNewObj(res5)) delete temp;
    }
  }
  {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "6"" of type '" "Handle< YieldTermStructure > const""'"); 
    }  
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "6"" of type '" "Handle< YieldTermStructure > const""'");
    } else {
      Handle< YieldTermStructure > * temp = reinterpret_cast< Handle< YieldTermStructure > * >(argp6);
      arg6 = *temp;
      if (SWIG_IsNewObj(res6)) delete temp;
    }
  }
  {
    std::string *ptr = (std::string *)0;
    res7 = SWIG_AsPtr_std_string(obj6, &ptr);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "7"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "7"" of type '" "std::string const &""'"); 
    }
    arg7 = ptr;
  }
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "9"" of type '" "Real""'");
  } 
  arg9 = static_cast< Real >(val9);
  {
    try {
      result = (VannaVolgaDoubleBarrierEnginePtr *)new_VannaVolgaDoubleBarrierEnginePtr__SWIG_0(arg1,arg2,arg3,arg4,arg5,arg6,(std::string const &)*arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VannaVolgaDoubleBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res7)) delete arg7;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res7)) delete arg7;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_VannaVolgaDoubleBarrierEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DeltaVolQuote > arg1 ;
  Handle< DeltaVolQuote > arg2 ;
  Handle< DeltaVolQuote > arg3 ;
  Handle< Quote > arg4 ;
  Handle< YieldTermStructure > arg5 ;
  Handle< YieldTermStructure > arg6 ;
  std::string *arg7 = 0 ;
  bool arg8 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  void *argp5 ;
  int res5 = 0 ;
  void *argp6 ;
  int res6 = 0 ;
  int res7 = SWIG_OLDOBJ ;
  bool val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  VannaVolgaDoubleBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_VannaVolgaDoubleBarrierEngine",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_DeltaVolQuote_t,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "1"" of type '" "Handle< DeltaVolQuote > const""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "1"" of type '" "Handle< DeltaVolQuote > const""'");
    } else {
      Handle< DeltaVolQuote > * temp = reinterpret_cast< Handle< DeltaVolQuote > * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_DeltaVolQuote_t,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "2"" of type '" "Handle< DeltaVolQuote > const""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "2"" of type '" "Handle< DeltaVolQuote > const""'");
    } else {
      Handle< DeltaVolQuote > * temp = reinterpret_cast< Handle< DeltaVolQuote > * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_DeltaVolQuote_t,  0  | 0);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "3"" of type '" "Handle< DeltaVolQuote > const""'"); 
    }  
    if (!argp3) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "3"" of type '" "Handle< DeltaVolQuote > const""'");
    } else {
      Handle< DeltaVolQuote > * temp = reinterpret_cast< Handle< DeltaVolQuote > * >(argp3);
      arg3 = *temp;
      if (SWIG_IsNewObj(res3)) delete temp;
    }
  }
  {
    res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "4"" of type '" "Handle< Quote > const""'"); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "4"" of type '" "Handle< Quote > const""'");
    } else {
      Handle< Quote > * temp = reinterpret_cast< Handle< Quote > * >(argp4);
      arg4 = *temp;
      if (SWIG_IsNewObj(res4)) delete temp;
    }
  }
  {
    res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "5"" of type '" "Handle< YieldTermStructure > const""'"); 
    }  
    if (!argp5) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "5"" of type '" "Handle< YieldTermStructure > const""'");
    } else {
      Handle< YieldTermStructure > * temp = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
      arg5 = *temp;
      if (SWIG_IsNewObj(res5)) delete temp;
    }
  }
  {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "6"" of type '" "Handle< YieldTermStructure > const""'"); 
    }  
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "6"" of type '" "Handle< YieldTermStructure > const""'");
    } else {
      Handle< YieldTermStructure > * temp = reinterpret_cast< Handle< YieldTermStructure > * >(argp6);
      arg6 = *temp;
      if (SWIG_IsNewObj(res6)) delete temp;
    }
  }
  {
    std::string *ptr = (std::string *)0;
    res7 = SWIG_AsPtr_std_string(obj6, &ptr);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "7"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "7"" of type '" "std::string const &""'"); 
    }
    arg7 = ptr;
  }
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  {
    try {
      result = (VannaVolgaDoubleBarrierEnginePtr *)new_VannaVolgaDoubleBarrierEnginePtr__SWIG_0(arg1,arg2,arg3,arg4,arg5,arg6,(std::string const &)*arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VannaVolgaDoubleBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res7)) delete arg7;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res7)) delete arg7;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_VannaVolgaDoubleBarrierEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DeltaVolQuote > arg1 ;
  Handle< DeltaVolQuote > arg2 ;
  Handle< DeltaVolQuote > arg3 ;
  Handle< Quote > arg4 ;
  Handle< YieldTermStructure > arg5 ;
  Handle< YieldTermStructure > arg6 ;
  std::string *arg7 = 0 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  void *argp5 ;
  int res5 = 0 ;
  void *argp6 ;
  int res6 = 0 ;
  int res7 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  VannaVolgaDoubleBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_VannaVolgaDoubleBarrierEngine",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_DeltaVolQuote_t,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "1"" of type '" "Handle< DeltaVolQuote > const""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "1"" of type '" "Handle< DeltaVolQuote > const""'");
    } else {
      Handle< DeltaVolQuote > * temp = reinterpret_cast< Handle< DeltaVolQuote > * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_DeltaVolQuote_t,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "2"" of type '" "Handle< DeltaVolQuote > const""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "2"" of type '" "Handle< DeltaVolQuote > const""'");
    } else {
      Handle< DeltaVolQuote > * temp = reinterpret_cast< Handle< DeltaVolQuote > * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_DeltaVolQuote_t,  0  | 0);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "3"" of type '" "Handle< DeltaVolQuote > const""'"); 
    }  
    if (!argp3) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "3"" of type '" "Handle< DeltaVolQuote > const""'");
    } else {
      Handle< DeltaVolQuote > * temp = reinterpret_cast< Handle< DeltaVolQuote > * >(argp3);
      arg3 = *temp;
      if (SWIG_IsNewObj(res3)) delete temp;
    }
  }
  {
    res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "4"" of type '" "Handle< Quote > const""'"); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "4"" of type '" "Handle< Quote > const""'");
    } else {
      Handle< Quote > * temp = reinterpret_cast< Handle< Quote > * >(argp4);
      arg4 = *temp;
      if (SWIG_IsNewObj(res4)) delete temp;
    }
  }
  {
    res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "5"" of type '" "Handle< YieldTermStructure > const""'"); 
    }  
    if (!argp5) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "5"" of type '" "Handle< YieldTermStructure > const""'");
    } else {
      Handle< YieldTermStructure > * temp = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
      arg5 = *temp;
      if (SWIG_IsNewObj(res5)) delete temp;
    }
  }
  {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "6"" of type '" "Handle< YieldTermStructure > const""'"); 
    }  
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "6"" of type '" "Handle< YieldTermStructure > const""'");
    } else {
      Handle< YieldTermStructure > * temp = reinterpret_cast< Handle< YieldTermStructure > * >(argp6);
      arg6 = *temp;
      if (SWIG_IsNewObj(res6)) delete temp;
    }
  }
  {
    std::string *ptr = (std::string *)0;
    res7 = SWIG_AsPtr_std_string(obj6, &ptr);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "7"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "7"" of type '" "std::string const &""'"); 
    }
    arg7 = ptr;
  }
  {
    try {
      result = (VannaVolgaDoubleBarrierEnginePtr *)new_VannaVolgaDoubleBarrierEnginePtr__SWIG_0(arg1,arg2,arg3,arg4,arg5,arg6,(std::string const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VannaVolgaDoubleBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res7)) delete arg7;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res7)) delete arg7;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_VannaVolgaDoubleBarrierEngine__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DeltaVolQuote > arg1 ;
  Handle< DeltaVolQuote > arg2 ;
  Handle< DeltaVolQuote > arg3 ;
  Handle< Quote > arg4 ;
  Handle< YieldTermStructure > arg5 ;
  Handle< YieldTermStructure > arg6 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  void *argp5 ;
  int res5 = 0 ;
  void *argp6 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  VannaVolgaDoubleBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_VannaVolgaDoubleBarrierEngine",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_DeltaVolQuote_t,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "1"" of type '" "Handle< DeltaVolQuote > const""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "1"" of type '" "Handle< DeltaVolQuote > const""'");
    } else {
      Handle< DeltaVolQuote > * temp = reinterpret_cast< Handle< DeltaVolQuote > * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_DeltaVolQuote_t,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "2"" of type '" "Handle< DeltaVolQuote > const""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "2"" of type '" "Handle< DeltaVolQuote > const""'");
    } else {
      Handle< DeltaVolQuote > * temp = reinterpret_cast< Handle< DeltaVolQuote > * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_DeltaVolQuote_t,  0  | 0);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "3"" of type '" "Handle< DeltaVolQuote > const""'"); 
    }  
    if (!argp3) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "3"" of type '" "Handle< DeltaVolQuote > const""'");
    } else {
      Handle< DeltaVolQuote > * temp = reinterpret_cast< Handle< DeltaVolQuote > * >(argp3);
      arg3 = *temp;
      if (SWIG_IsNewObj(res3)) delete temp;
    }
  }
  {
    res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "4"" of type '" "Handle< Quote > const""'"); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "4"" of type '" "Handle< Quote > const""'");
    } else {
      Handle< Quote > * temp = reinterpret_cast< Handle< Quote > * >(argp4);
      arg4 = *temp;
      if (SWIG_IsNewObj(res4)) delete temp;
    }
  }
  {
    res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "5"" of type '" "Handle< YieldTermStructure > const""'"); 
    }  
    if (!argp5) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "5"" of type '" "Handle< YieldTermStructure > const""'");
    } else {
      Handle< YieldTermStructure > * temp = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
      arg5 = *temp;
      if (SWIG_IsNewObj(res5)) delete temp;
    }
  }
  {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "6"" of type '" "Handle< YieldTermStructure > const""'"); 
    }  
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VannaVolgaDoubleBarrierEngine" "', argument " "6"" of type '" "Handle< YieldTermStructure > const""'");
    } else {
      Handle< YieldTermStructure > * temp = reinterpret_cast< Handle< YieldTermStructure > * >(argp6);
      arg6 = *temp;
      if (SWIG_IsNewObj(res6)) delete temp;
    }
  }
  {
    try {
      result = (VannaVolgaDoubleBarrierEnginePtr *)new_VannaVolgaDoubleBarrierEnginePtr__SWIG_0(arg1,arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VannaVolgaDoubleBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_VannaVolgaDoubleBarrierEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[11] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 10) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_VannaVolgaDoubleBarrierEngine__SWIG_4(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_AsPtr_std_string(argv[6], (std::string**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_VannaVolgaDoubleBarrierEngine__SWIG_3(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_AsPtr_std_string(argv[6], (std::string**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_VannaVolgaDoubleBarrierEngine__SWIG_2(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_AsPtr_std_string(argv[6], (std::string**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_new_VannaVolgaDoubleBarrierEngine__SWIG_1(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_DeltaVolQuote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_AsPtr_std_string(argv[6], (std::string**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_int(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        return _wrap_new_VannaVolgaDoubleBarrierEngine__SWIG_0(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_VannaVolgaDoubleBarrierEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    VannaVolgaDoubleBarrierEnginePtr::VannaVolgaDoubleBarrierEnginePtr(Handle< DeltaVolQuote > const,Handle< DeltaVolQuote > const,Handle< DeltaVolQuote > const,Handle< Quote > const,Handle< YieldTermStructure > const,Handle< YieldTermStructure > const,std::string const &,bool const,Real const,int)\n"
    "    VannaVolgaDoubleBarrierEnginePtr::VannaVolgaDoubleBarrierEnginePtr(Handle< DeltaVolQuote > const,Handle< DeltaVolQuote > const,Handle< DeltaVolQuote > const,Handle< Quote > const,Handle< YieldTermStructure > const,Handle< YieldTermStructure > const,std::string const &,bool const,Real const)\n"
    "    VannaVolgaDoubleBarrierEnginePtr::VannaVolgaDoubleBarrierEnginePtr(Handle< DeltaVolQuote > const,Handle< DeltaVolQuote > const,Handle< DeltaVolQuote > const,Handle< Quote > const,Handle< YieldTermStructure > const,Handle< YieldTermStructure > const,std::string const &,bool const)\n"
    "    VannaVolgaDoubleBarrierEnginePtr::VannaVolgaDoubleBarrierEnginePtr(Handle< DeltaVolQuote > const,Handle< DeltaVolQuote > const,Handle< DeltaVolQuote > const,Handle< Quote > const,Handle< YieldTermStructure > const,Handle< YieldTermStructure > const,std::string const &)\n"
    "    VannaVolgaDoubleBarrierEnginePtr::VannaVolgaDoubleBarrierEnginePtr(Handle< DeltaVolQuote > const,Handle< DeltaVolQuote > const,Handle< DeltaVolQuote > const,Handle< Quote > const,Handle< YieldTermStructure > const,Handle< YieldTermStructure > const)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_VannaVolgaDoubleBarrierEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VannaVolgaDoubleBarrierEnginePtr *arg1 = (VannaVolgaDoubleBarrierEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_VannaVolgaDoubleBarrierEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VannaVolgaDoubleBarrierEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VannaVolgaDoubleBarrierEngine" "', argument " "1"" of type '" "VannaVolgaDoubleBarrierEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< VannaVolgaDoubleBarrierEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *VannaVolgaDoubleBarrierEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_VannaVolgaDoubleBarrierEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AnalyticDoubleBarrierBinaryEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  AnalyticDoubleBarrierBinaryEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticDoubleBarrierBinaryEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticDoubleBarrierBinaryEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticDoubleBarrierBinaryEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    try {
      result = (AnalyticDoubleBarrierBinaryEnginePtr *)new_AnalyticDoubleBarrierBinaryEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticDoubleBarrierBinaryEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_AnalyticDoubleBarrierBinaryEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AnalyticDoubleBarrierBinaryEnginePtr *arg1 = (AnalyticDoubleBarrierBinaryEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AnalyticDoubleBarrierBinaryEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AnalyticDoubleBarrierBinaryEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AnalyticDoubleBarrierBinaryEngine" "', argument " "1"" of type '" "AnalyticDoubleBarrierBinaryEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< AnalyticDoubleBarrierBinaryEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AnalyticDoubleBarrierBinaryEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AnalyticDoubleBarrierBinaryEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BinomialDoubleBarrierEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  std::string *arg2 = 0 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  BinomialDoubleBarrierEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BinomialDoubleBarrierEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BinomialDoubleBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BinomialDoubleBarrierEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BinomialDoubleBarrierEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BinomialDoubleBarrierEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BinomialDoubleBarrierEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (BinomialDoubleBarrierEnginePtr *)new_BinomialDoubleBarrierEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1,(std::string const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BinomialDoubleBarrierEnginePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BinomialDoubleBarrierEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BinomialDoubleBarrierEnginePtr *arg1 = (BinomialDoubleBarrierEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BinomialDoubleBarrierEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BinomialDoubleBarrierEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BinomialDoubleBarrierEngine" "', argument " "1"" of type '" "BinomialDoubleBarrierEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< BinomialDoubleBarrierEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BinomialDoubleBarrierEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BinomialDoubleBarrierEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PlainVanillaPayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PlainVanillaPayoffPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PlainVanillaPayoff",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PlainVanillaPayoff" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PlainVanillaPayoff" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (PlainVanillaPayoffPtr *)new_PlainVanillaPayoffPtr(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PlainVanillaPayoffPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PlainVanillaPayoff_optionType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PlainVanillaPayoffPtr *arg1 = (PlainVanillaPayoffPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Option::Type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PlainVanillaPayoff_optionType",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PlainVanillaPayoffPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlainVanillaPayoff_optionType" "', argument " "1"" of type '" "PlainVanillaPayoffPtr *""'"); 
  }
  arg1 = reinterpret_cast< PlainVanillaPayoffPtr * >(argp1);
  {
    try {
      result = (Option::Type)PlainVanillaPayoffPtr_optionType(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PlainVanillaPayoff_strike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PlainVanillaPayoffPtr *arg1 = (PlainVanillaPayoffPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PlainVanillaPayoff_strike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PlainVanillaPayoffPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PlainVanillaPayoff_strike" "', argument " "1"" of type '" "PlainVanillaPayoffPtr *""'"); 
  }
  arg1 = reinterpret_cast< PlainVanillaPayoffPtr * >(argp1);
  {
    try {
      result = (Real)PlainVanillaPayoffPtr_strike(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PlainVanillaPayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PlainVanillaPayoffPtr *arg1 = (PlainVanillaPayoffPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PlainVanillaPayoff",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PlainVanillaPayoffPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PlainVanillaPayoff" "', argument " "1"" of type '" "PlainVanillaPayoffPtr *""'"); 
  }
  arg1 = reinterpret_cast< PlainVanillaPayoffPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PlainVanillaPayoff_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_PlainVanillaPayoffPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PercentageStrikePayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PercentageStrikePayoffPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PercentageStrikePayoff",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PercentageStrikePayoff" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PercentageStrikePayoff" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (PercentageStrikePayoffPtr *)new_PercentageStrikePayoffPtr(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PercentageStrikePayoffPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PercentageStrikePayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PercentageStrikePayoffPtr *arg1 = (PercentageStrikePayoffPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PercentageStrikePayoff",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PercentageStrikePayoffPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PercentageStrikePayoff" "', argument " "1"" of type '" "PercentageStrikePayoffPtr *""'"); 
  }
  arg1 = reinterpret_cast< PercentageStrikePayoffPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PercentageStrikePayoff_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_PercentageStrikePayoffPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CashOrNothingPayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  CashOrNothingPayoffPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CashOrNothingPayoff",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CashOrNothingPayoff" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CashOrNothingPayoff" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CashOrNothingPayoff" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (CashOrNothingPayoffPtr *)new_CashOrNothingPayoffPtr(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CashOrNothingPayoffPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CashOrNothingPayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CashOrNothingPayoffPtr *arg1 = (CashOrNothingPayoffPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CashOrNothingPayoff",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CashOrNothingPayoffPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CashOrNothingPayoff" "', argument " "1"" of type '" "CashOrNothingPayoffPtr *""'"); 
  }
  arg1 = reinterpret_cast< CashOrNothingPayoffPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CashOrNothingPayoff_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CashOrNothingPayoffPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AssetOrNothingPayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  AssetOrNothingPayoffPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AssetOrNothingPayoff",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_AssetOrNothingPayoff" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AssetOrNothingPayoff" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (AssetOrNothingPayoffPtr *)new_AssetOrNothingPayoffPtr(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AssetOrNothingPayoffPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_AssetOrNothingPayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AssetOrNothingPayoffPtr *arg1 = (AssetOrNothingPayoffPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AssetOrNothingPayoff",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AssetOrNothingPayoffPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AssetOrNothingPayoff" "', argument " "1"" of type '" "AssetOrNothingPayoffPtr *""'"); 
  }
  arg1 = reinterpret_cast< AssetOrNothingPayoffPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AssetOrNothingPayoff_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AssetOrNothingPayoffPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SuperSharePayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  SuperSharePayoffPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SuperSharePayoff",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SuperSharePayoff" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SuperSharePayoff" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SuperSharePayoff" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (SuperSharePayoffPtr *)new_SuperSharePayoffPtr(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SuperSharePayoffPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SuperSharePayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SuperSharePayoffPtr *arg1 = (SuperSharePayoffPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SuperSharePayoff",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SuperSharePayoffPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SuperSharePayoff" "', argument " "1"" of type '" "SuperSharePayoffPtr *""'"); 
  }
  arg1 = reinterpret_cast< SuperSharePayoffPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SuperSharePayoff_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SuperSharePayoffPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GapPayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  GapPayoffPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GapPayoff",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GapPayoff" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GapPayoff" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GapPayoff" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (GapPayoffPtr *)new_GapPayoffPtr(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GapPayoffPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GapPayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GapPayoffPtr *arg1 = (GapPayoffPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GapPayoff",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GapPayoffPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GapPayoff" "', argument " "1"" of type '" "GapPayoffPtr *""'"); 
  }
  arg1 = reinterpret_cast< GapPayoffPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GapPayoff_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GapPayoffPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BasketPayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BasketPayoffPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BasketPayoff",0,0)) SWIG_fail;
  {
    try {
      result = (BasketPayoffPtr *)new BasketPayoffPtr();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BasketPayoffPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BasketPayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BasketPayoffPtr *arg1 = (BasketPayoffPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BasketPayoff",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BasketPayoffPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BasketPayoff" "', argument " "1"" of type '" "BasketPayoffPtr *""'"); 
  }
  arg1 = reinterpret_cast< BasketPayoffPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BasketPayoff_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BasketPayoffPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MinBasketPayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Payoff > arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  MinBasketPayoffPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MinBasketPayoff",1,1,&obj0)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Payoff_t,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MinBasketPayoff" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MinBasketPayoff" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const""'");
    } else {
      boost::shared_ptr< Payoff > * temp = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  {
    try {
      result = (MinBasketPayoffPtr *)new_MinBasketPayoffPtr(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MinBasketPayoffPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MinBasketPayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MinBasketPayoffPtr *arg1 = (MinBasketPayoffPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MinBasketPayoff",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MinBasketPayoffPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MinBasketPayoff" "', argument " "1"" of type '" "MinBasketPayoffPtr *""'"); 
  }
  arg1 = reinterpret_cast< MinBasketPayoffPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MinBasketPayoff_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MinBasketPayoffPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MaxBasketPayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Payoff > arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  MaxBasketPayoffPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MaxBasketPayoff",1,1,&obj0)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Payoff_t,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MaxBasketPayoff" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MaxBasketPayoff" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const""'");
    } else {
      boost::shared_ptr< Payoff > * temp = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  {
    try {
      result = (MaxBasketPayoffPtr *)new_MaxBasketPayoffPtr(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MaxBasketPayoffPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MaxBasketPayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MaxBasketPayoffPtr *arg1 = (MaxBasketPayoffPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MaxBasketPayoff",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MaxBasketPayoffPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MaxBasketPayoff" "', argument " "1"" of type '" "MaxBasketPayoffPtr *""'"); 
  }
  arg1 = reinterpret_cast< MaxBasketPayoffPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MaxBasketPayoff_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MaxBasketPayoffPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AverageBasketPayoff__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Payoff > arg1 ;
  Array *arg2 = 0 ;
  void *argp1 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  AverageBasketPayoffPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AverageBasketPayoff",2,2,&obj0,&obj1)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Payoff_t,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AverageBasketPayoff" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AverageBasketPayoff" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const""'");
    } else {
      boost::shared_ptr< Payoff > * temp = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (AverageBasketPayoffPtr *)new_AverageBasketPayoffPtr__SWIG_0(arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AverageBasketPayoffPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_AverageBasketPayoff__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Payoff > arg1 ;
  Size arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  AverageBasketPayoffPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AverageBasketPayoff",2,2,&obj0,&obj1)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Payoff_t,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AverageBasketPayoff" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AverageBasketPayoff" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const""'");
    } else {
      boost::shared_ptr< Payoff > * temp = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AverageBasketPayoff" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (AverageBasketPayoffPtr *)new_AverageBasketPayoffPtr__SWIG_1(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AverageBasketPayoffPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_AverageBasketPayoff(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Payoff_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_AverageBasketPayoff__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Payoff_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        /* native sequence? */
        if (PyTuple_Check(argv[1]) || PyList_Check(argv[1])) {
          Size size = PySequence_Size(argv[1]);
          if (size == 0) {
            _v = 1;
          } else {
            PyObject* o = PySequence_GetItem(argv[1],0);
            if (PyNumber_Check(o))
            _v = 1;
            else
            _v = 0;
            Py_DECREF(o);
          }
        } else {
          /* wrapped Array? */
          Array* v;
          if (SWIG_ConvertPtr(argv[1],(void **) &v,
              SWIGTYPE_p_Array,0) != -1)
          _v = 1;
          else
          _v = 0;
        }
      }
      if (_v) {
        return _wrap_new_AverageBasketPayoff__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_AverageBasketPayoff'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    AverageBasketPayoffPtr::AverageBasketPayoffPtr(boost::shared_ptr< Payoff > const,Array const &)\n"
    "    AverageBasketPayoffPtr::AverageBasketPayoffPtr(boost::shared_ptr< Payoff > const,Size)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_AverageBasketPayoff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AverageBasketPayoffPtr *arg1 = (AverageBasketPayoffPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AverageBasketPayoff",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AverageBasketPayoffPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AverageBasketPayoff" "', argument " "1"" of type '" "AverageBasketPayoffPtr *""'"); 
  }
  arg1 = reinterpret_cast< AverageBasketPayoffPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AverageBasketPayoff_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AverageBasketPayoffPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BasketOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Payoff > *arg1 = 0 ;
  boost::shared_ptr< Exercise > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BasketOptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BasketOption",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Payoff_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BasketOption" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BasketOption" "', argument " "1"" of type '" "boost::shared_ptr< Payoff > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Payoff > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BasketOption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BasketOption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp2);
  {
    try {
      result = (BasketOptionPtr *)new_BasketOptionPtr((boost::shared_ptr< Payoff > const &)*arg1,(boost::shared_ptr< Exercise > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BasketOptionPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BasketOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BasketOptionPtr *arg1 = (BasketOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BasketOption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BasketOptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BasketOption" "', argument " "1"" of type '" "BasketOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< BasketOptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BasketOption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BasketOptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MCEuropeanBasketEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  StochasticProcessArrayPtr *arg1 = 0 ;
  std::string *arg2 = 0 ;
  Size arg3 = (Size) Null< Size >() ;
  Size arg4 = (Size) Null< Size >() ;
  bool arg5 = (bool) false ;
  bool arg6 = (bool) false ;
  intOrNull arg7 = (intOrNull) Null< Size >() ;
  doubleOrNull arg8 = (doubleOrNull) Null< Real >() ;
  intOrNull arg9 = (intOrNull) Null< Size >() ;
  BigInteger arg10 = (BigInteger) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  long val10 ;
  int ecode10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  char *  kwnames[] = {
    (char *) "process",(char *) "traits",(char *) "timeSteps",(char *) "timeStepsPerYear",(char *) "brownianBridge",(char *) "antitheticVariate",(char *) "requiredSamples",(char *) "requiredTolerance",(char *) "maxSamples",(char *) "seed", NULL 
  };
  MCEuropeanBasketEnginePtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:new_MCEuropeanBasketEngine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_StochasticProcessArrayPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MCEuropeanBasketEngine" "', argument " "1"" of type '" "StochasticProcessArrayPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MCEuropeanBasketEngine" "', argument " "1"" of type '" "StochasticProcessArrayPtr const &""'"); 
  }
  arg1 = reinterpret_cast< StochasticProcessArrayPtr * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MCEuropeanBasketEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MCEuropeanBasketEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  if (obj2) {
    ecode3 = SWIG_AsVal_size_t(obj2, &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MCEuropeanBasketEngine" "', argument " "3"" of type '" "Size""'");
    } 
    arg3 = static_cast< Size >(val3);
  }
  if (obj3) {
    ecode4 = SWIG_AsVal_size_t(obj3, &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_MCEuropeanBasketEngine" "', argument " "4"" of type '" "Size""'");
    } 
    arg4 = static_cast< Size >(val4);
  }
  if (obj4) {
    ecode5 = SWIG_AsVal_bool(obj4, &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_MCEuropeanBasketEngine" "', argument " "5"" of type '" "bool""'");
    } 
    arg5 = static_cast< bool >(val5);
  }
  if (obj5) {
    ecode6 = SWIG_AsVal_bool(obj5, &val6);
    if (!SWIG_IsOK(ecode6)) {
      SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MCEuropeanBasketEngine" "', argument " "6"" of type '" "bool""'");
    } 
    arg6 = static_cast< bool >(val6);
  }
  if (obj6) {
    {
      if (obj6 == Py_None)
      arg7 = Null<int>();
      else if (PyInt_Check(obj6))
      arg7 = int(PyInt_AsLong(obj6));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj7) {
    {
      if (obj7 == Py_None)
      arg8 = Null<double>();
      else if (PyFloat_Check(obj7))
      arg8 = PyFloat_AsDouble(obj7);
      else
      SWIG_exception(SWIG_TypeError,"double expected");
    }
  }
  if (obj8) {
    {
      if (obj8 == Py_None)
      arg9 = Null<int>();
      else if (PyInt_Check(obj8))
      arg9 = int(PyInt_AsLong(obj8));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj9) {
    ecode10 = SWIG_AsVal_long(obj9, &val10);
    if (!SWIG_IsOK(ecode10)) {
      SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_MCEuropeanBasketEngine" "', argument " "10"" of type '" "BigInteger""'");
    } 
    arg10 = static_cast< BigInteger >(val10);
  }
  {
    try {
      result = (MCEuropeanBasketEnginePtr *)new_MCEuropeanBasketEnginePtr((StochasticProcessArrayPtr const &)*arg1,(std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MCEuropeanBasketEnginePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MCEuropeanBasketEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MCEuropeanBasketEnginePtr *arg1 = (MCEuropeanBasketEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MCEuropeanBasketEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MCEuropeanBasketEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MCEuropeanBasketEngine" "', argument " "1"" of type '" "MCEuropeanBasketEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< MCEuropeanBasketEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MCEuropeanBasketEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MCEuropeanBasketEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MCAmericanBasketEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  StochasticProcessArrayPtr *arg1 = 0 ;
  std::string *arg2 = 0 ;
  Size arg3 = (Size) Null< Size >() ;
  Size arg4 = (Size) Null< Size >() ;
  bool arg5 = (bool) false ;
  bool arg6 = (bool) false ;
  intOrNull arg7 = (intOrNull) Null< Size >() ;
  doubleOrNull arg8 = (doubleOrNull) Null< Real >() ;
  intOrNull arg9 = (intOrNull) Null< Size >() ;
  BigInteger arg10 = (BigInteger) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  long val10 ;
  int ecode10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  char *  kwnames[] = {
    (char *) "process",(char *) "traits",(char *) "timeSteps",(char *) "timeStepsPerYear",(char *) "brownianBridge",(char *) "antitheticVariate",(char *) "requiredSamples",(char *) "requiredTolerance",(char *) "maxSamples",(char *) "seed", NULL 
  };
  MCAmericanBasketEnginePtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:new_MCAmericanBasketEngine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_StochasticProcessArrayPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MCAmericanBasketEngine" "', argument " "1"" of type '" "StochasticProcessArrayPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MCAmericanBasketEngine" "', argument " "1"" of type '" "StochasticProcessArrayPtr const &""'"); 
  }
  arg1 = reinterpret_cast< StochasticProcessArrayPtr * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MCAmericanBasketEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MCAmericanBasketEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  if (obj2) {
    ecode3 = SWIG_AsVal_size_t(obj2, &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MCAmericanBasketEngine" "', argument " "3"" of type '" "Size""'");
    } 
    arg3 = static_cast< Size >(val3);
  }
  if (obj3) {
    ecode4 = SWIG_AsVal_size_t(obj3, &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_MCAmericanBasketEngine" "', argument " "4"" of type '" "Size""'");
    } 
    arg4 = static_cast< Size >(val4);
  }
  if (obj4) {
    ecode5 = SWIG_AsVal_bool(obj4, &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_MCAmericanBasketEngine" "', argument " "5"" of type '" "bool""'");
    } 
    arg5 = static_cast< bool >(val5);
  }
  if (obj5) {
    ecode6 = SWIG_AsVal_bool(obj5, &val6);
    if (!SWIG_IsOK(ecode6)) {
      SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MCAmericanBasketEngine" "', argument " "6"" of type '" "bool""'");
    } 
    arg6 = static_cast< bool >(val6);
  }
  if (obj6) {
    {
      if (obj6 == Py_None)
      arg7 = Null<int>();
      else if (PyInt_Check(obj6))
      arg7 = int(PyInt_AsLong(obj6));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj7) {
    {
      if (obj7 == Py_None)
      arg8 = Null<double>();
      else if (PyFloat_Check(obj7))
      arg8 = PyFloat_AsDouble(obj7);
      else
      SWIG_exception(SWIG_TypeError,"double expected");
    }
  }
  if (obj8) {
    {
      if (obj8 == Py_None)
      arg9 = Null<int>();
      else if (PyInt_Check(obj8))
      arg9 = int(PyInt_AsLong(obj8));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj9) {
    ecode10 = SWIG_AsVal_long(obj9, &val10);
    if (!SWIG_IsOK(ecode10)) {
      SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_MCAmericanBasketEngine" "', argument " "10"" of type '" "BigInteger""'");
    } 
    arg10 = static_cast< BigInteger >(val10);
  }
  {
    try {
      result = (MCAmericanBasketEnginePtr *)new_MCAmericanBasketEnginePtr((StochasticProcessArrayPtr const &)*arg1,(std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MCAmericanBasketEnginePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MCAmericanBasketEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MCAmericanBasketEnginePtr *arg1 = (MCAmericanBasketEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MCAmericanBasketEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MCAmericanBasketEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MCAmericanBasketEngine" "', argument " "1"" of type '" "MCAmericanBasketEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< MCAmericanBasketEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MCAmericanBasketEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MCAmericanBasketEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_StulzEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  GeneralizedBlackScholesProcessPtr *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  StulzEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_StulzEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StulzEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StulzEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_StulzEngine" "', argument " "2"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StulzEngine" "', argument " "2"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg2 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_StulzEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (StulzEnginePtr *)new_StulzEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1,(GeneralizedBlackScholesProcessPtr const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_StulzEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_StulzEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  StulzEnginePtr *arg1 = (StulzEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_StulzEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_StulzEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StulzEngine" "', argument " "1"" of type '" "StulzEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< StulzEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *StulzEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_StulzEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EverestOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Rate arg2 ;
  boost::shared_ptr< Exercise > *arg3 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  EverestOptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EverestOption",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EverestOption" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EverestOption" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_EverestOption" "', argument " "3"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EverestOption" "', argument " "3"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg3 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp3);
  {
    try {
      result = (EverestOptionPtr *)new_EverestOptionPtr(arg1,arg2,(boost::shared_ptr< Exercise > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EverestOptionPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_EverestOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EverestOptionPtr *arg1 = (EverestOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EverestOption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EverestOptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EverestOption" "', argument " "1"" of type '" "EverestOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< EverestOptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EverestOption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EverestOptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MCEverestEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  StochasticProcessArrayPtr *arg1 = 0 ;
  std::string *arg2 = 0 ;
  Size arg3 = (Size) Null< Size >() ;
  Size arg4 = (Size) Null< Size >() ;
  bool arg5 = (bool) false ;
  bool arg6 = (bool) false ;
  intOrNull arg7 = (intOrNull) Null< Size >() ;
  doubleOrNull arg8 = (doubleOrNull) Null< Real >() ;
  intOrNull arg9 = (intOrNull) Null< Size >() ;
  BigInteger arg10 = (BigInteger) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  long val10 ;
  int ecode10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  char *  kwnames[] = {
    (char *) "process",(char *) "traits",(char *) "timeSteps",(char *) "timeStepsPerYear",(char *) "brownianBridge",(char *) "antitheticVariate",(char *) "requiredSamples",(char *) "requiredTolerance",(char *) "maxSamples",(char *) "seed", NULL 
  };
  MCEverestEnginePtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:new_MCEverestEngine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_StochasticProcessArrayPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MCEverestEngine" "', argument " "1"" of type '" "StochasticProcessArrayPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MCEverestEngine" "', argument " "1"" of type '" "StochasticProcessArrayPtr const &""'"); 
  }
  arg1 = reinterpret_cast< StochasticProcessArrayPtr * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MCEverestEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MCEverestEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  if (obj2) {
    ecode3 = SWIG_AsVal_size_t(obj2, &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MCEverestEngine" "', argument " "3"" of type '" "Size""'");
    } 
    arg3 = static_cast< Size >(val3);
  }
  if (obj3) {
    ecode4 = SWIG_AsVal_size_t(obj3, &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_MCEverestEngine" "', argument " "4"" of type '" "Size""'");
    } 
    arg4 = static_cast< Size >(val4);
  }
  if (obj4) {
    ecode5 = SWIG_AsVal_bool(obj4, &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_MCEverestEngine" "', argument " "5"" of type '" "bool""'");
    } 
    arg5 = static_cast< bool >(val5);
  }
  if (obj5) {
    ecode6 = SWIG_AsVal_bool(obj5, &val6);
    if (!SWIG_IsOK(ecode6)) {
      SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MCEverestEngine" "', argument " "6"" of type '" "bool""'");
    } 
    arg6 = static_cast< bool >(val6);
  }
  if (obj6) {
    {
      if (obj6 == Py_None)
      arg7 = Null<int>();
      else if (PyInt_Check(obj6))
      arg7 = int(PyInt_AsLong(obj6));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj7) {
    {
      if (obj7 == Py_None)
      arg8 = Null<double>();
      else if (PyFloat_Check(obj7))
      arg8 = PyFloat_AsDouble(obj7);
      else
      SWIG_exception(SWIG_TypeError,"double expected");
    }
  }
  if (obj8) {
    {
      if (obj8 == Py_None)
      arg9 = Null<int>();
      else if (PyInt_Check(obj8))
      arg9 = int(PyInt_AsLong(obj8));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj9) {
    ecode10 = SWIG_AsVal_long(obj9, &val10);
    if (!SWIG_IsOK(ecode10)) {
      SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_MCEverestEngine" "', argument " "10"" of type '" "BigInteger""'");
    } 
    arg10 = static_cast< BigInteger >(val10);
  }
  {
    try {
      result = (MCEverestEnginePtr *)new_MCEverestEnginePtr((StochasticProcessArrayPtr const &)*arg1,(std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MCEverestEnginePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MCEverestEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MCEverestEnginePtr *arg1 = (MCEverestEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MCEverestEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MCEverestEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MCEverestEngine" "', argument " "1"" of type '" "MCEverestEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< MCEverestEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MCEverestEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MCEverestEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_HimalayaOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  Real arg2 ;
  int res1 = SWIG_OLDOBJ ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  HimalayaOptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HimalayaOption",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HimalayaOption" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HimalayaOption" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HimalayaOption" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (HimalayaOptionPtr *)new_HimalayaOptionPtr((std::vector< Date,std::allocator< Date > > const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HimalayaOptionPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_HimalayaOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HimalayaOptionPtr *arg1 = (HimalayaOptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_HimalayaOption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HimalayaOptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HimalayaOption" "', argument " "1"" of type '" "HimalayaOptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< HimalayaOptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *HimalayaOption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HimalayaOptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MCHimalayaEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  StochasticProcessArrayPtr *arg1 = 0 ;
  std::string *arg2 = 0 ;
  bool arg3 = (bool) false ;
  bool arg4 = (bool) false ;
  intOrNull arg5 = (intOrNull) Null< Size >() ;
  doubleOrNull arg6 = (doubleOrNull) Null< Real >() ;
  intOrNull arg7 = (intOrNull) Null< Size >() ;
  BigInteger arg8 = (BigInteger) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  bool val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  long val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  char *  kwnames[] = {
    (char *) "process",(char *) "traits",(char *) "brownianBridge",(char *) "antitheticVariate",(char *) "requiredSamples",(char *) "requiredTolerance",(char *) "maxSamples",(char *) "seed", NULL 
  };
  MCHimalayaEnginePtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_MCHimalayaEngine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_StochasticProcessArrayPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MCHimalayaEngine" "', argument " "1"" of type '" "StochasticProcessArrayPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MCHimalayaEngine" "', argument " "1"" of type '" "StochasticProcessArrayPtr const &""'"); 
  }
  arg1 = reinterpret_cast< StochasticProcessArrayPtr * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MCHimalayaEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MCHimalayaEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  if (obj2) {
    ecode3 = SWIG_AsVal_bool(obj2, &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MCHimalayaEngine" "', argument " "3"" of type '" "bool""'");
    } 
    arg3 = static_cast< bool >(val3);
  }
  if (obj3) {
    ecode4 = SWIG_AsVal_bool(obj3, &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_MCHimalayaEngine" "', argument " "4"" of type '" "bool""'");
    } 
    arg4 = static_cast< bool >(val4);
  }
  if (obj4) {
    {
      if (obj4 == Py_None)
      arg5 = Null<int>();
      else if (PyInt_Check(obj4))
      arg5 = int(PyInt_AsLong(obj4));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj5) {
    {
      if (obj5 == Py_None)
      arg6 = Null<double>();
      else if (PyFloat_Check(obj5))
      arg6 = PyFloat_AsDouble(obj5);
      else
      SWIG_exception(SWIG_TypeError,"double expected");
    }
  }
  if (obj6) {
    {
      if (obj6 == Py_None)
      arg7 = Null<int>();
      else if (PyInt_Check(obj6))
      arg7 = int(PyInt_AsLong(obj6));
      else
      SWIG_exception(SWIG_TypeError,"int expected");
    }
  }
  if (obj7) {
    ecode8 = SWIG_AsVal_long(obj7, &val8);
    if (!SWIG_IsOK(ecode8)) {
      SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_MCHimalayaEngine" "', argument " "8"" of type '" "BigInteger""'");
    } 
    arg8 = static_cast< BigInteger >(val8);
  }
  {
    try {
      result = (MCHimalayaEnginePtr *)new_MCHimalayaEnginePtr((StochasticProcessArrayPtr const &)*arg1,(std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MCHimalayaEnginePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MCHimalayaEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MCHimalayaEnginePtr *arg1 = (MCHimalayaEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MCHimalayaEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MCHimalayaEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MCHimalayaEngine" "', argument " "1"" of type '" "MCHimalayaEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< MCHimalayaEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MCHimalayaEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MCHimalayaEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_blackFormula__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  Real arg6 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"blackFormula",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "blackFormula" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "blackFormula" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "blackFormula" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "blackFormula" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "blackFormula" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "blackFormula" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (Real)blackFormula(arg1,arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_blackFormula__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"blackFormula",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "blackFormula" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "blackFormula" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "blackFormula" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "blackFormula" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "blackFormula" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Real)blackFormula(arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_blackFormula__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"blackFormula",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "blackFormula" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "blackFormula" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "blackFormula" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "blackFormula" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)blackFormula(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_blackFormula(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_blackFormula__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_blackFormula__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_blackFormula__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'blackFormula'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    blackFormula(Option::Type,Real,Real,Real,Real,Real)\n"
    "    blackFormula(Option::Type,Real,Real,Real,Real)\n"
    "    blackFormula(Option::Type,Real,Real,Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_blackFormulaImpliedStdDev__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  Real arg6 ;
  Real arg7 ;
  Real arg8 ;
  Natural arg9 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  unsigned int val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"blackFormulaImpliedStdDev",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "blackFormulaImpliedStdDev" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "blackFormulaImpliedStdDev" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "blackFormulaImpliedStdDev" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "blackFormulaImpliedStdDev" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "blackFormulaImpliedStdDev" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "blackFormulaImpliedStdDev" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "blackFormulaImpliedStdDev" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "blackFormulaImpliedStdDev" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  ecode9 = SWIG_AsVal_unsigned_SS_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "blackFormulaImpliedStdDev" "', argument " "9"" of type '" "Natural""'");
  } 
  arg9 = static_cast< Natural >(val9);
  {
    try {
      result = (Real)blackFormulaImpliedStdDev(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_blackFormulaImpliedStdDev__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  Real arg6 ;
  Real arg7 ;
  Real arg8 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"blackFormulaImpliedStdDev",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "blackFormulaImpliedStdDev" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "blackFormulaImpliedStdDev" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "blackFormulaImpliedStdDev" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "blackFormulaImpliedStdDev" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "blackFormulaImpliedStdDev" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "blackFormulaImpliedStdDev" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "blackFormulaImpliedStdDev" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "blackFormulaImpliedStdDev" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  {
    try {
      result = (Real)blackFormulaImpliedStdDev(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_blackFormulaImpliedStdDev__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  Real arg6 ;
  Real arg7 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"blackFormulaImpliedStdDev",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "blackFormulaImpliedStdDev" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "blackFormulaImpliedStdDev" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "blackFormulaImpliedStdDev" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "blackFormulaImpliedStdDev" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "blackFormulaImpliedStdDev" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "blackFormulaImpliedStdDev" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "blackFormulaImpliedStdDev" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (Real)blackFormulaImpliedStdDev(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_blackFormulaImpliedStdDev__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  Real arg6 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"blackFormulaImpliedStdDev",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "blackFormulaImpliedStdDev" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "blackFormulaImpliedStdDev" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "blackFormulaImpliedStdDev" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "blackFormulaImpliedStdDev" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "blackFormulaImpliedStdDev" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "blackFormulaImpliedStdDev" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (Real)blackFormulaImpliedStdDev(arg1,arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_blackFormulaImpliedStdDev__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"blackFormulaImpliedStdDev",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "blackFormulaImpliedStdDev" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "blackFormulaImpliedStdDev" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "blackFormulaImpliedStdDev" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "blackFormulaImpliedStdDev" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "blackFormulaImpliedStdDev" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Real)blackFormulaImpliedStdDev(arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_blackFormulaImpliedStdDev__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"blackFormulaImpliedStdDev",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "blackFormulaImpliedStdDev" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "blackFormulaImpliedStdDev" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "blackFormulaImpliedStdDev" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "blackFormulaImpliedStdDev" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)blackFormulaImpliedStdDev(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_blackFormulaImpliedStdDev(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_blackFormulaImpliedStdDev__SWIG_5(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_blackFormulaImpliedStdDev__SWIG_4(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_blackFormulaImpliedStdDev__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_blackFormulaImpliedStdDev__SWIG_2(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_blackFormulaImpliedStdDev__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_unsigned_SS_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_blackFormulaImpliedStdDev__SWIG_0(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'blackFormulaImpliedStdDev'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    blackFormulaImpliedStdDev(Option::Type,Real,Real,Real,Real,Real,Real,Real,Natural)\n"
    "    blackFormulaImpliedStdDev(Option::Type,Real,Real,Real,Real,Real,Real,Real)\n"
    "    blackFormulaImpliedStdDev(Option::Type,Real,Real,Real,Real,Real,Real)\n"
    "    blackFormulaImpliedStdDev(Option::Type,Real,Real,Real,Real,Real)\n"
    "    blackFormulaImpliedStdDev(Option::Type,Real,Real,Real,Real)\n"
    "    blackFormulaImpliedStdDev(Option::Type,Real,Real,Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_blackFormulaCashItmProbability__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"blackFormulaCashItmProbability",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "blackFormulaCashItmProbability" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "blackFormulaCashItmProbability" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "blackFormulaCashItmProbability" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "blackFormulaCashItmProbability" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "blackFormulaCashItmProbability" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Real)blackFormulaCashItmProbability(arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_blackFormulaCashItmProbability__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"blackFormulaCashItmProbability",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "blackFormulaCashItmProbability" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "blackFormulaCashItmProbability" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "blackFormulaCashItmProbability" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "blackFormulaCashItmProbability" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)blackFormulaCashItmProbability(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_blackFormulaCashItmProbability(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_blackFormulaCashItmProbability__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_blackFormulaCashItmProbability__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'blackFormulaCashItmProbability'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    blackFormulaCashItmProbability(Option::Type,Real,Real,Real,Real)\n"
    "    blackFormulaCashItmProbability(Option::Type,Real,Real,Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_bachelierBlackFormula__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"bachelierBlackFormula",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "bachelierBlackFormula" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bachelierBlackFormula" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "bachelierBlackFormula" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "bachelierBlackFormula" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "bachelierBlackFormula" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Real)bachelierBlackFormula(arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_bachelierBlackFormula__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"bachelierBlackFormula",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "bachelierBlackFormula" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bachelierBlackFormula" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "bachelierBlackFormula" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "bachelierBlackFormula" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)bachelierBlackFormula(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_bachelierBlackFormula(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_bachelierBlackFormula__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_bachelierBlackFormula__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'bachelierBlackFormula'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    bachelierBlackFormula(Option::Type,Real,Real,Real,Real)\n"
    "    bachelierBlackFormula(Option::Type,Real,Real,Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_bachelierBlackFormulaImpliedVol__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  Real arg6 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"bachelierBlackFormulaImpliedVol",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "bachelierBlackFormulaImpliedVol" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bachelierBlackFormulaImpliedVol" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "bachelierBlackFormulaImpliedVol" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "bachelierBlackFormulaImpliedVol" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "bachelierBlackFormulaImpliedVol" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "bachelierBlackFormulaImpliedVol" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (Real)bachelierBlackFormulaImpliedVol(arg1,arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_bachelierBlackFormulaImpliedVol__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"bachelierBlackFormulaImpliedVol",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "bachelierBlackFormulaImpliedVol" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bachelierBlackFormulaImpliedVol" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "bachelierBlackFormulaImpliedVol" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "bachelierBlackFormulaImpliedVol" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "bachelierBlackFormulaImpliedVol" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Real)bachelierBlackFormulaImpliedVol(arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_bachelierBlackFormulaImpliedVol(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_bachelierBlackFormulaImpliedVol__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_bachelierBlackFormulaImpliedVol__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'bachelierBlackFormulaImpliedVol'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    bachelierBlackFormulaImpliedVol(Option::Type,Real,Real,Real,Real,Real)\n"
    "    bachelierBlackFormulaImpliedVol(Option::Type,Real,Real,Real,Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_BlackDeltaCalculator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Option::Type arg1 ;
  DeltaVolQuote::DeltaType arg2 ;
  Real arg3 ;
  DiscountFactor arg4 ;
  DiscountFactor arg5 ;
  Real arg6 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  BlackDeltaCalculator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackDeltaCalculator",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BlackDeltaCalculator" "', argument " "1"" of type '" "Option::Type""'");
  } 
  arg1 = static_cast< Option::Type >(val1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BlackDeltaCalculator" "', argument " "2"" of type '" "DeltaVolQuote::DeltaType""'");
  } 
  arg2 = static_cast< DeltaVolQuote::DeltaType >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BlackDeltaCalculator" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BlackDeltaCalculator" "', argument " "4"" of type '" "DiscountFactor""'");
  } 
  arg4 = static_cast< DiscountFactor >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_BlackDeltaCalculator" "', argument " "5"" of type '" "DiscountFactor""'");
  } 
  arg5 = static_cast< DiscountFactor >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BlackDeltaCalculator" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (BlackDeltaCalculator *)new BlackDeltaCalculator(arg1,arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackDeltaCalculator, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackDeltaCalculator_deltaFromStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackDeltaCalculator *arg1 = (BlackDeltaCalculator *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackDeltaCalculator_deltaFromStrike",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackDeltaCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackDeltaCalculator_deltaFromStrike" "', argument " "1"" of type '" "BlackDeltaCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackDeltaCalculator * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackDeltaCalculator_deltaFromStrike" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)((BlackDeltaCalculator const *)arg1)->deltaFromStrike(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackDeltaCalculator_strikeFromDelta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackDeltaCalculator *arg1 = (BlackDeltaCalculator *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackDeltaCalculator_strikeFromDelta",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackDeltaCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackDeltaCalculator_strikeFromDelta" "', argument " "1"" of type '" "BlackDeltaCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackDeltaCalculator * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackDeltaCalculator_strikeFromDelta" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)((BlackDeltaCalculator const *)arg1)->strikeFromDelta(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BlackDeltaCalculator_atmStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackDeltaCalculator *arg1 = (BlackDeltaCalculator *) 0 ;
  DeltaVolQuote::AtmType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackDeltaCalculator_atmStrike",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackDeltaCalculator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackDeltaCalculator_atmStrike" "', argument " "1"" of type '" "BlackDeltaCalculator const *""'"); 
  }
  arg1 = reinterpret_cast< BlackDeltaCalculator * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlackDeltaCalculator_atmStrike" "', argument " "2"" of type '" "DeltaVolQuote::AtmType""'");
  } 
  arg2 = static_cast< DeltaVolQuote::AtmType >(val2);
  {
    try {
      result = (Real)((BlackDeltaCalculator const *)arg1)->atmStrike(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BlackDeltaCalculator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackDeltaCalculator *arg1 = (BlackDeltaCalculator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BlackDeltaCalculator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackDeltaCalculator, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlackDeltaCalculator" "', argument " "1"" of type '" "BlackDeltaCalculator *""'"); 
  }
  arg1 = reinterpret_cast< BlackDeltaCalculator * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BlackDeltaCalculator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BlackDeltaCalculator, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CallabilityPrice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  CallabilityPrice::Type arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  CallabilityPrice *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CallabilityPrice",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CallabilityPrice" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CallabilityPrice" "', argument " "2"" of type '" "CallabilityPrice::Type""'");
  } 
  arg2 = static_cast< CallabilityPrice::Type >(val2);
  {
    try {
      result = (CallabilityPrice *)new CallabilityPrice(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CallabilityPrice, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilityPrice_amount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CallabilityPrice *arg1 = (CallabilityPrice *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilityPrice_amount",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallabilityPrice, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilityPrice_amount" "', argument " "1"" of type '" "CallabilityPrice const *""'"); 
  }
  arg1 = reinterpret_cast< CallabilityPrice * >(argp1);
  {
    try {
      result = (Real)((CallabilityPrice const *)arg1)->amount();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilityPrice_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CallabilityPrice *arg1 = (CallabilityPrice *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  CallabilityPrice::Type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilityPrice_type",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallabilityPrice, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilityPrice_type" "', argument " "1"" of type '" "CallabilityPrice const *""'"); 
  }
  arg1 = reinterpret_cast< CallabilityPrice * >(argp1);
  {
    try {
      result = (CallabilityPrice::Type)((CallabilityPrice const *)arg1)->type();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CallabilityPrice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CallabilityPrice *arg1 = (CallabilityPrice *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CallabilityPrice",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallabilityPrice, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CallabilityPrice" "', argument " "1"" of type '" "CallabilityPrice *""'"); 
  }
  arg1 = reinterpret_cast< CallabilityPrice * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CallabilityPrice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CallabilityPrice, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Callability___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Callability > *arg1 = (boost::shared_ptr< Callability > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Callability *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Callability___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Callability_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Callability___deref__" "', argument " "1"" of type '" "boost::shared_ptr< Callability > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Callability > * >(argp1);
  {
    try {
      result = (Callability *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Callability, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Callability___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Callability > *arg1 = (boost::shared_ptr< Callability > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Callability___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Callability_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Callability___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< Callability > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Callability > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Callability_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Callability___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Callability > *arg1 = (boost::shared_ptr< Callability > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Callability___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Callability_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Callability___bool__" "', argument " "1"" of type '" "boost::shared_ptr< Callability > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Callability > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Callability_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Callability(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CallabilityPrice *arg1 = 0 ;
  Callability::Type arg2 ;
  Date *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  boost::shared_ptr< Callability > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Callability",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CallabilityPrice,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Callability" "', argument " "1"" of type '" "CallabilityPrice const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Callability" "', argument " "1"" of type '" "CallabilityPrice const &""'"); 
  }
  arg1 = reinterpret_cast< CallabilityPrice * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Callability" "', argument " "2"" of type '" "Callability::Type""'");
  } 
  arg2 = static_cast< Callability::Type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Callability" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Callability" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  {
    try {
      result = (boost::shared_ptr< Callability > *)new_boost_shared_ptr_Sl_Callability_Sg_((CallabilityPrice const &)*arg1,arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Callability_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Callability(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Callability > *arg1 = (boost::shared_ptr< Callability > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Callability",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Callability_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Callability" "', argument " "1"" of type '" "boost::shared_ptr< Callability > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Callability > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Callability_price(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Callability > *arg1 = (boost::shared_ptr< Callability > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  CallabilityPrice *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Callability_price",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Callability_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Callability_price" "', argument " "1"" of type '" "boost::shared_ptr< Callability > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Callability > * >(argp1);
  {
    try {
      result = (CallabilityPrice *) &(*arg1)->price();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CallabilityPrice, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Callability_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Callability > *arg1 = (boost::shared_ptr< Callability > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Callability::Type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Callability_type",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Callability_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Callability_type" "', argument " "1"" of type '" "boost::shared_ptr< Callability > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Callability > * >(argp1);
  {
    try {
      result = (Callability::Type)(*arg1)->type();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Callability_date(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Callability > *arg1 = (boost::shared_ptr< Callability > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Callability_date",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Callability_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Callability_date" "', argument " "1"" of type '" "boost::shared_ptr< Callability > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Callability > * >(argp1);
  {
    try {
      result = (*arg1)->date();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Callability_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_Callability_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SoftCallability(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CallabilityPrice *arg1 = 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  SoftCallabilityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SoftCallability",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CallabilityPrice,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SoftCallability" "', argument " "1"" of type '" "CallabilityPrice const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SoftCallability" "', argument " "1"" of type '" "CallabilityPrice const &""'"); 
  }
  arg1 = reinterpret_cast< CallabilityPrice * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SoftCallability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SoftCallability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SoftCallability" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (SoftCallabilityPtr *)new_SoftCallabilityPtr((CallabilityPrice const &)*arg1,(Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SoftCallabilityPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SoftCallability(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SoftCallabilityPtr *arg1 = (SoftCallabilityPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SoftCallability",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SoftCallabilityPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SoftCallability" "', argument " "1"" of type '" "SoftCallabilityPtr *""'"); 
  }
  arg1 = reinterpret_cast< SoftCallabilityPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SoftCallability_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SoftCallabilityPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_CallabilitySchedule_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_iterator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule___nonzero__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____nonzero__((std::vector< boost::shared_ptr< Callability > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule___bool__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____bool__((std::vector< boost::shared_ptr< Callability > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Callability > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule___len__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____len__((std::vector< boost::shared_ptr< Callability > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  std::vector< boost::shared_ptr< Callability > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Callability > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule___getslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallabilitySchedule___getslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Callability > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CallabilitySchedule___getslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Callability > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Callability > >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *)std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  std::vector< boost::shared_ptr< Callability > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Callability > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallabilitySchedule___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Callability > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CallabilitySchedule___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Callability > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Callability > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  std::vector< boost::shared_ptr< Callability > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Callability > >::difference_type arg3 ;
  std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallabilitySchedule___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Callability > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CallabilitySchedule___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Callability > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Callability > >::difference_type >(val3);
  {
    std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *ptr = (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CallabilitySchedule___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallabilitySchedule___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(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_CallabilitySchedule___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(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< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_CallabilitySchedule___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallabilitySchedule___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Callability > >::__setslice__(std::vector< boost::shared_ptr< Callability > >::difference_type,std::vector< boost::shared_ptr< Callability > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< Callability > >::__setslice__(std::vector< boost::shared_ptr< Callability > >::difference_type,std::vector< boost::shared_ptr< Callability > >::difference_type,std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  std::vector< boost::shared_ptr< Callability > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Callability > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule___delslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallabilitySchedule___delslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Callability > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CallabilitySchedule___delslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Callability > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Callability > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  std::vector< boost::shared_ptr< Callability > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallabilitySchedule___delitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Callability > >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CallabilitySchedule___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *)std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CallabilitySchedule___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *ptr = (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallabilitySchedule___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallabilitySchedule___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CallabilitySchedule___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CallabilitySchedule___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_CallabilitySchedule___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_CallabilitySchedule___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallabilitySchedule___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Callability > >::__delitem__(std::vector< boost::shared_ptr< Callability > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< Callability > >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  std::vector< boost::shared_ptr< Callability > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< Callability > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallabilitySchedule___getitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Callability > >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< Callability > >::value_type *) &std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____getitem____SWIG_1((std::vector< boost::shared_ptr< Callability > > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Callability_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_CallabilitySchedule___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_CallabilitySchedule___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallabilitySchedule___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Callability > >::__getitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< Callability > >::__getitem__(std::vector< boost::shared_ptr< Callability > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  std::vector< boost::shared_ptr< Callability > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Callability > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallabilitySchedule___setitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Callability > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Callability_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallabilitySchedule___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Callability > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallabilitySchedule___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Callability > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > >::value_type * >(argp3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg____setitem____SWIG_2(arg1,arg2,(boost::shared_ptr< Callability > const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_CallabilitySchedule___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_CallabilitySchedule___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(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_boost__shared_ptrT_Callability_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_CallabilitySchedule___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallabilitySchedule___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Callability > >::__setitem__(PySliceObject *,std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &)\n"
    "    std::vector< boost::shared_ptr< Callability > >::__setitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< Callability > >::__setitem__(std::vector< boost::shared_ptr< Callability > >::difference_type,std::vector< boost::shared_ptr< Callability > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< boost::shared_ptr< Callability > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_pop" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< Callability > >::value_type(static_cast< const std::vector< boost::shared_ptr< Callability > >::value_type& >(result))), SWIGTYPE_p_boost__shared_ptrT_Callability_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  std::vector< boost::shared_ptr< Callability > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_append" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Callability_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallabilitySchedule_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallabilitySchedule_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > >::value_type * >(argp2);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg__append(arg1,(boost::shared_ptr< Callability > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CallabilitySchedule__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CallabilitySchedule",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< boost::shared_ptr< Callability > > *)new std::vector< boost::shared_ptr< Callability > >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CallabilitySchedule__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Callability > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CallabilitySchedule",1,1,&obj0)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *ptr = (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CallabilitySchedule" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CallabilitySchedule" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< boost::shared_ptr< Callability > > *)new std::vector< boost::shared_ptr< Callability > >((std::vector< boost::shared_ptr< Callability > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_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_CallabilitySchedule_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_empty" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    try {
      result = (bool)((std::vector< boost::shared_ptr< Callability > > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Callability > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_size" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< Callability > > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  std::vector< boost::shared_ptr< Callability > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_swap" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallabilitySchedule_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallabilitySchedule_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Callability > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_begin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Callability > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Callability > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_end" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Callability > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Callability > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_rbegin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Callability > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Callability > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_rend" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Callability > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_clear" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< boost::shared_ptr< Callability > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_get_allocator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< Callability > > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< Callability > >::allocator_type(static_cast< const std::vector< boost::shared_ptr< Callability > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_Callability_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CallabilitySchedule__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Callability > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CallabilitySchedule",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CallabilitySchedule" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< Callability > >::size_type >(val1);
  {
    try {
      result = (std::vector< boost::shared_ptr< Callability > > *)new std::vector< boost::shared_ptr< Callability > >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_pop_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  std::vector< boost::shared_ptr< Callability > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallabilitySchedule_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Callability > >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  std::vector< boost::shared_ptr< Callability > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< Callability > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CallabilitySchedule_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Callability > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Callability > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CallabilitySchedule_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Callability > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  std::vector< boost::shared_ptr< Callability > >::iterator arg2 ;
  std::vector< boost::shared_ptr< Callability > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< Callability > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CallabilitySchedule_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Callability > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Callability > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CallabilitySchedule_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CallabilitySchedule_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Callability > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Callability > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Callability > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CallabilitySchedule_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Callability > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Callability > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(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< boost::shared_ptr< Callability > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_CallabilitySchedule_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(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< boost::shared_ptr< Callability > >::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< boost::shared_ptr< Callability > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_CallabilitySchedule_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallabilitySchedule_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Callability > >::erase(std::vector< boost::shared_ptr< Callability > >::iterator)\n"
    "    std::vector< boost::shared_ptr< Callability > >::erase(std::vector< boost::shared_ptr< Callability > >::iterator,std::vector< boost::shared_ptr< Callability > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_CallabilitySchedule__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > >::size_type arg1 ;
  std::vector< boost::shared_ptr< Callability > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< Callability > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CallabilitySchedule",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CallabilitySchedule" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< Callability > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Callability_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CallabilitySchedule" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CallabilitySchedule" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > >::value_type * >(argp2);
  {
    try {
      result = (std::vector< boost::shared_ptr< Callability > > *)new std::vector< boost::shared_ptr< Callability > >(arg1,(std::vector< boost::shared_ptr< Callability > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CallabilitySchedule(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_CallabilitySchedule__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_CallabilitySchedule__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_CallabilitySchedule__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_Callability_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_CallabilitySchedule__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CallabilitySchedule'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Callability > >::vector()\n"
    "    std::vector< boost::shared_ptr< Callability > >::vector(std::vector< boost::shared_ptr< Callability > > const &)\n"
    "    std::vector< boost::shared_ptr< Callability > >::vector(std::vector< boost::shared_ptr< Callability > >::size_type)\n"
    "    std::vector< boost::shared_ptr< Callability > >::vector(std::vector< boost::shared_ptr< Callability > >::size_type,std::vector< boost::shared_ptr< Callability > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  std::vector< boost::shared_ptr< Callability > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_push_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Callability_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallabilitySchedule_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallabilitySchedule_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > >::value_type * >(argp2);
  {
    try {
      (arg1)->push_back((std::vector< boost::shared_ptr< Callability > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Callability > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_front" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< Callability > >::value_type *) &((std::vector< boost::shared_ptr< Callability > > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Callability_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Callability > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< Callability > >::value_type *) &((std::vector< boost::shared_ptr< Callability > > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Callability_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  std::vector< boost::shared_ptr< Callability > >::size_type arg2 ;
  std::vector< boost::shared_ptr< Callability > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_assign" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallabilitySchedule_assign" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Callability > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Callability_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallabilitySchedule_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Callability > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallabilitySchedule_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Callability > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > >::value_type * >(argp3);
  {
    try {
      (arg1)->assign(arg2,(std::vector< boost::shared_ptr< Callability > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  std::vector< boost::shared_ptr< Callability > >::size_type arg2 ;
  std::vector< boost::shared_ptr< Callability > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallabilitySchedule_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Callability > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Callability_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallabilitySchedule_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Callability > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallabilitySchedule_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Callability > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > >::value_type * >(argp3);
  {
    try {
      (arg1)->resize(arg2,(std::vector< boost::shared_ptr< Callability > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_CallabilitySchedule_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(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_boost__shared_ptrT_Callability_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_CallabilitySchedule_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallabilitySchedule_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Callability > >::resize(std::vector< boost::shared_ptr< Callability > >::size_type)\n"
    "    std::vector< boost::shared_ptr< Callability > >::resize(std::vector< boost::shared_ptr< Callability > >::size_type,std::vector< boost::shared_ptr< Callability > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  std::vector< boost::shared_ptr< Callability > >::iterator arg2 ;
  std::vector< boost::shared_ptr< Callability > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< Callability > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CallabilitySchedule_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Callability > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Callability > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CallabilitySchedule_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Callability_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallabilitySchedule_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Callability > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallabilitySchedule_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Callability > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > >::value_type * >(argp3);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg__insert__SWIG_0(arg1,arg2,(boost::shared_ptr< Callability > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Callability > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  std::vector< boost::shared_ptr< Callability > >::iterator arg2 ;
  std::vector< boost::shared_ptr< Callability > >::size_type arg3 ;
  std::vector< boost::shared_ptr< Callability > >::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 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CallabilitySchedule_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Callability > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Callability > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CallabilitySchedule_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CallabilitySchedule_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Callability > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Callability > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_boost__shared_ptrT_Callability_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CallabilitySchedule_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Callability > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallabilitySchedule_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Callability > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > >::value_type * >(argp4);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_Callability_Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(boost::shared_ptr< Callability > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(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< boost::shared_ptr< Callability > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_Callability_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_CallabilitySchedule_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(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< boost::shared_ptr< Callability > >::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_boost__shared_ptrT_Callability_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_CallabilitySchedule_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallabilitySchedule_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Callability > >::insert(std::vector< boost::shared_ptr< Callability > >::iterator,std::vector< boost::shared_ptr< Callability > >::value_type const &)\n"
    "    std::vector< boost::shared_ptr< Callability > >::insert(std::vector< boost::shared_ptr< Callability > >::iterator,std::vector< boost::shared_ptr< Callability > >::size_type,std::vector< boost::shared_ptr< Callability > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  std::vector< boost::shared_ptr< Callability > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_reserve" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallabilitySchedule_reserve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Callability > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Callability > >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallabilitySchedule_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Callability > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallabilitySchedule_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallabilitySchedule_capacity" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< Callability > > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CallabilitySchedule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Callability > > *arg1 = (std::vector< boost::shared_ptr< Callability > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CallabilitySchedule",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CallabilitySchedule" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Callability > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Callability > > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CallabilitySchedule_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Seasonality___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Seasonality > *arg1 = (boost::shared_ptr< Seasonality > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Seasonality *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Seasonality___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Seasonality_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Seasonality___deref__" "', argument " "1"" of type '" "boost::shared_ptr< Seasonality > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Seasonality > * >(argp1);
  {
    try {
      result = (Seasonality *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Seasonality, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Seasonality___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Seasonality > *arg1 = (boost::shared_ptr< Seasonality > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Seasonality___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Seasonality_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Seasonality___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< Seasonality > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Seasonality > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Seasonality_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Seasonality___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Seasonality > *arg1 = (boost::shared_ptr< Seasonality > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Seasonality___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Seasonality_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Seasonality___bool__" "', argument " "1"" of type '" "boost::shared_ptr< Seasonality > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Seasonality > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Seasonality_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Seasonality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Seasonality > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Seasonality",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< Seasonality > *)new boost::shared_ptr< Seasonality >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Seasonality_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Seasonality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Seasonality > *arg1 = (boost::shared_ptr< Seasonality > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Seasonality",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Seasonality_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Seasonality" "', argument " "1"" of type '" "boost::shared_ptr< Seasonality > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Seasonality > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Seasonality_correctZeroRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Seasonality > *arg1 = (boost::shared_ptr< Seasonality > *) 0 ;
  Date *arg2 = 0 ;
  Rate arg3 ;
  InflationTermStructure *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Seasonality_correctZeroRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Seasonality_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Seasonality_correctZeroRate" "', argument " "1"" of type '" "boost::shared_ptr< Seasonality > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Seasonality > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Seasonality_correctZeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Seasonality_correctZeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Seasonality_correctZeroRate" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_InflationTermStructure,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Seasonality_correctZeroRate" "', argument " "4"" of type '" "InflationTermStructure const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Seasonality_correctZeroRate" "', argument " "4"" of type '" "InflationTermStructure const &""'"); 
  }
  arg4 = reinterpret_cast< InflationTermStructure * >(argp4);
  {
    try {
      result = (Rate)(*arg1)->correctZeroRate((Date const &)*arg2,arg3,(InflationTermStructure const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Seasonality_correctYoYRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Seasonality > *arg1 = (boost::shared_ptr< Seasonality > *) 0 ;
  Date *arg2 = 0 ;
  Rate arg3 ;
  InflationTermStructure *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Seasonality_correctYoYRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Seasonality_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Seasonality_correctYoYRate" "', argument " "1"" of type '" "boost::shared_ptr< Seasonality > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Seasonality > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Seasonality_correctYoYRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Seasonality_correctYoYRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Seasonality_correctYoYRate" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_InflationTermStructure,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Seasonality_correctYoYRate" "', argument " "4"" of type '" "InflationTermStructure const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Seasonality_correctYoYRate" "', argument " "4"" of type '" "InflationTermStructure const &""'"); 
  }
  arg4 = reinterpret_cast< InflationTermStructure * >(argp4);
  {
    try {
      result = (Rate)(*arg1)->correctYoYRate((Date const &)*arg2,arg3,(InflationTermStructure const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Seasonality_isConsistent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Seasonality > *arg1 = (boost::shared_ptr< Seasonality > *) 0 ;
  InflationTermStructure *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Seasonality_isConsistent",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Seasonality_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Seasonality_isConsistent" "', argument " "1"" of type '" "boost::shared_ptr< Seasonality > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Seasonality > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InflationTermStructure,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Seasonality_isConsistent" "', argument " "2"" of type '" "InflationTermStructure const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Seasonality_isConsistent" "', argument " "2"" of type '" "InflationTermStructure const &""'"); 
  }
  arg2 = reinterpret_cast< InflationTermStructure * >(argp2);
  {
    try {
      result = (bool)(*arg1)->isConsistent((InflationTermStructure const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Seasonality_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_Seasonality_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MultiplicativePriceSeasonalityPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Frequency arg2 ;
  std::vector< Rate,std::allocator< Rate > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  MultiplicativePriceSeasonalityPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MultiplicativePriceSeasonalityPtr",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MultiplicativePriceSeasonalityPtr" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MultiplicativePriceSeasonalityPtr" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MultiplicativePriceSeasonalityPtr" "', argument " "2"" of type '" "Frequency""'");
  } 
  arg2 = static_cast< Frequency >(val2);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MultiplicativePriceSeasonalityPtr" "', argument " "3"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MultiplicativePriceSeasonalityPtr" "', argument " "3"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      result = (MultiplicativePriceSeasonalityPtr *)new_MultiplicativePriceSeasonalityPtr((Date const &)*arg1,arg2,(std::vector< double,std::allocator< double > > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MultiplicativePriceSeasonalityPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MultiplicativePriceSeasonalityPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MultiplicativePriceSeasonalityPtr *arg1 = (MultiplicativePriceSeasonalityPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MultiplicativePriceSeasonalityPtr",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MultiplicativePriceSeasonalityPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MultiplicativePriceSeasonalityPtr" "', argument " "1"" of type '" "MultiplicativePriceSeasonalityPtr *""'"); 
  }
  arg1 = reinterpret_cast< MultiplicativePriceSeasonalityPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MultiplicativePriceSeasonalityPtr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MultiplicativePriceSeasonalityPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_YoYInflationTermStructure___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  YoYInflationTermStructure *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure___deref__" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (YoYInflationTermStructure *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YoYInflationTermStructure, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_YoYInflationTermStructure_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure___bool__" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_YoYInflationTermStructure_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_asObservable" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_YoYInflationTermStructure_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YoYInflationTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YoYInflationTermStructure",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< YoYInflationTermStructure > *)new boost::shared_ptr< YoYInflationTermStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_YoYInflationTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YoYInflationTermStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YoYInflationTermStructure" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_yoyRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  bool arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_yoyRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Rate)(*arg1)->yoyRate((Date const &)*arg2,(Period const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_yoyRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_yoyRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Rate)(*arg1)->yoyRate((Date const &)*arg2,(Period const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_yoyRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_yoyRate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  {
    try {
      result = (Rate)(*arg1)->yoyRate((Date const &)*arg2,(Period const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_yoyRate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_yoyRate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationTermStructure_yoyRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Rate)(*arg1)->yoyRate((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_yoyRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_YoYInflationTermStructure_yoyRate__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_YoYInflationTermStructure_yoyRate__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_YoYInflationTermStructure_yoyRate__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_YoYInflationTermStructure_yoyRate__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'YoYInflationTermStructure_yoyRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    YoYInflationTermStructure::yoyRate(Date const &,Period const &,bool,bool) const\n"
    "    YoYInflationTermStructure::yoyRate(Date const &,Period const &,bool) const\n"
    "    YoYInflationTermStructure::yoyRate(Date const &,Period const &) const\n"
    "    YoYInflationTermStructure::yoyRate(Date const &) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_dayCounter" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->dayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_calendar" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->calendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_referenceDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_referenceDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_referenceDate" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->referenceDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_maxDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_maxDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_maxDate" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->maxDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_maxTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_maxTime",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_maxTime" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (Time)(*arg1)->maxTime();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_observationLag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Period result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_observationLag",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_observationLag" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->observationLag();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Period(static_cast< const Period& >(result))), SWIGTYPE_p_Period, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_frequency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Frequency result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_frequency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_frequency" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (Frequency)(*arg1)->frequency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_indexIsInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_indexIsInterpolated",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_indexIsInterpolated" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->indexIsInterpolated();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_baseRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_baseRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_baseRate" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (Rate)(*arg1)->baseRate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_nominalTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< YieldTermStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_nominalTermStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_nominalTermStructure" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->nominalTermStructure();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Handle< YieldTermStructure >(static_cast< const Handle< YieldTermStructure >& >(result))), SWIGTYPE_p_HandleT_YieldTermStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_baseDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_baseDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_baseDate" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->baseDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_setSeasonality__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  boost::shared_ptr< Seasonality > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_setSeasonality",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_setSeasonality" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Seasonality_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YoYInflationTermStructure_setSeasonality" "', argument " "2"" of type '" "boost::shared_ptr< Seasonality > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationTermStructure_setSeasonality" "', argument " "2"" of type '" "boost::shared_ptr< Seasonality > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Seasonality > * >(argp2);
  {
    try {
      (*arg1)->setSeasonality((boost::shared_ptr< Seasonality > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_setSeasonality__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_setSeasonality",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_setSeasonality" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      (*arg1)->setSeasonality();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_setSeasonality(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_YoYInflationTermStructure_setSeasonality__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_Seasonality_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_YoYInflationTermStructure_setSeasonality__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'YoYInflationTermStructure_setSeasonality'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    InflationTermStructure::setSeasonality(boost::shared_ptr< Seasonality > const &)\n"
    "    InflationTermStructure::setSeasonality()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_seasonality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Seasonality > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_seasonality",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_seasonality" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->seasonality();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Seasonality >(static_cast< const boost::shared_ptr< Seasonality >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Seasonality_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_hasSeasonality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_hasSeasonality",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_hasSeasonality" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->hasSeasonality();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_enableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_enableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_enableExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      (*arg1)->enableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_disableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_disableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_disableExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      (*arg1)->disableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructure_allowsExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = (boost::shared_ptr< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructure_allowsExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructure_allowsExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->allowsExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YoYInflationTermStructure_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_YoYInflationTermStructureHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< YoYInflationTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YoYInflationTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_YoYInflationTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YoYInflationTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (Handle< YoYInflationTermStructure > *)new Handle< YoYInflationTermStructure >((boost::shared_ptr< YoYInflationTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YoYInflationTermStructureHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YoYInflationTermStructureHandle",0,0)) SWIG_fail;
  {
    try {
      result = (Handle< YoYInflationTermStructure > *)new Handle< YoYInflationTermStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YoYInflationTermStructureHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_YoYInflationTermStructureHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_YoYInflationTermStructureHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_YoYInflationTermStructureHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Handle< YoYInflationTermStructure >::Handle(boost::shared_ptr< YoYInflationTermStructure > const &)\n"
    "    Handle< YoYInflationTermStructure >::Handle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< YoYInflationTermStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle___deref__" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< YoYInflationTermStructure >(static_cast< const boost::shared_ptr< YoYInflationTermStructure >& >(result))), SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle___nonzero__" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_YoYInflationTermStructure_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle___bool__" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_YoYInflationTermStructure_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_asObservable" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = Handle_Sl_YoYInflationTermStructure_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_YoYInflationTermStructureHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YoYInflationTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YoYInflationTermStructureHandle" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_yoyRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  bool arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_yoyRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Rate)(*arg1)->yoyRate((Date const &)*arg2,(Period const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_yoyRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_yoyRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Rate)(*arg1)->yoyRate((Date const &)*arg2,(Period const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_yoyRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_yoyRate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  {
    try {
      result = (Rate)(*arg1)->yoyRate((Date const &)*arg2,(Period const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_yoyRate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_yoyRate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationTermStructureHandle_yoyRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Rate)(*arg1)->yoyRate((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_yoyRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_YoYInflationTermStructureHandle_yoyRate__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_YoYInflationTermStructureHandle_yoyRate__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_YoYInflationTermStructureHandle_yoyRate__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_YoYInflationTermStructureHandle_yoyRate__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'YoYInflationTermStructureHandle_yoyRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    YoYInflationTermStructure::yoyRate(Date const &,Period const &,bool,bool) const\n"
    "    YoYInflationTermStructure::yoyRate(Date const &,Period const &,bool) const\n"
    "    YoYInflationTermStructure::yoyRate(Date const &,Period const &) const\n"
    "    YoYInflationTermStructure::yoyRate(Date const &) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_dayCounter" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->dayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_calendar" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->calendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_referenceDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_referenceDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_referenceDate" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->referenceDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_maxDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_maxDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_maxDate" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->maxDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_maxTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_maxTime",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_maxTime" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (Time)(*arg1)->maxTime();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_observationLag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Period result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_observationLag",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_observationLag" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->observationLag();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Period(static_cast< const Period& >(result))), SWIGTYPE_p_Period, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_frequency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Frequency result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_frequency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_frequency" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (Frequency)(*arg1)->frequency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_indexIsInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_indexIsInterpolated",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_indexIsInterpolated" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->indexIsInterpolated();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_baseRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_baseRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_baseRate" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (Rate)(*arg1)->baseRate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_nominalTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< YieldTermStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_nominalTermStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_nominalTermStructure" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->nominalTermStructure();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Handle< YieldTermStructure >(static_cast< const Handle< YieldTermStructure >& >(result))), SWIGTYPE_p_HandleT_YieldTermStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_baseDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_baseDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_baseDate" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->baseDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_setSeasonality__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  boost::shared_ptr< Seasonality > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_setSeasonality",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_setSeasonality" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Seasonality_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YoYInflationTermStructureHandle_setSeasonality" "', argument " "2"" of type '" "boost::shared_ptr< Seasonality > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationTermStructureHandle_setSeasonality" "', argument " "2"" of type '" "boost::shared_ptr< Seasonality > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Seasonality > * >(argp2);
  {
    try {
      (*arg1)->setSeasonality((boost::shared_ptr< Seasonality > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_setSeasonality__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_setSeasonality",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_setSeasonality" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      (*arg1)->setSeasonality();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_setSeasonality(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_YoYInflationTermStructureHandle_setSeasonality__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_Seasonality_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_YoYInflationTermStructureHandle_setSeasonality__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'YoYInflationTermStructureHandle_setSeasonality'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    InflationTermStructure::setSeasonality(boost::shared_ptr< Seasonality > const &)\n"
    "    InflationTermStructure::setSeasonality()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_seasonality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Seasonality > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_seasonality",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_seasonality" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->seasonality();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Seasonality >(static_cast< const boost::shared_ptr< Seasonality >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Seasonality_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_hasSeasonality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_hasSeasonality",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_hasSeasonality" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->hasSeasonality();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_enableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_enableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_enableExtrapolation" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      (*arg1)->enableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_disableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_disableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_disableExtrapolation" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      (*arg1)->disableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationTermStructureHandle_allowsExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YoYInflationTermStructure > *arg1 = (Handle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationTermStructureHandle_allowsExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationTermStructureHandle_allowsExtrapolation" "', argument " "1"" of type '" "Handle< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->allowsExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YoYInflationTermStructureHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_RelinkableYoYInflationTermStructureHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYInflationTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  RelinkableHandle< YoYInflationTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableYoYInflationTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RelinkableYoYInflationTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RelinkableYoYInflationTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp1);
  {
    try {
      result = (RelinkableHandle< YoYInflationTermStructure > *)new RelinkableHandle< YoYInflationTermStructure >((boost::shared_ptr< YoYInflationTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_YoYInflationTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableYoYInflationTermStructureHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< YoYInflationTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableYoYInflationTermStructureHandle",0,0)) SWIG_fail;
  {
    try {
      result = (RelinkableHandle< YoYInflationTermStructure > *)new RelinkableHandle< YoYInflationTermStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_YoYInflationTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableYoYInflationTermStructureHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_RelinkableYoYInflationTermStructureHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_RelinkableYoYInflationTermStructureHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RelinkableYoYInflationTermStructureHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    RelinkableHandle< YoYInflationTermStructure >::RelinkableHandle(boost::shared_ptr< YoYInflationTermStructure > const &)\n"
    "    RelinkableHandle< YoYInflationTermStructure >::RelinkableHandle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableYoYInflationTermStructureHandle_linkTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< YoYInflationTermStructure > *arg1 = (RelinkableHandle< YoYInflationTermStructure > *) 0 ;
  boost::shared_ptr< YoYInflationTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableYoYInflationTermStructureHandle_linkTo",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_YoYInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableYoYInflationTermStructureHandle_linkTo" "', argument " "1"" of type '" "RelinkableHandle< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< YoYInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YoYInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableYoYInflationTermStructureHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableYoYInflationTermStructureHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< YoYInflationTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YoYInflationTermStructure > * >(argp2);
  {
    try {
      (arg1)->linkTo((boost::shared_ptr< YoYInflationTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RelinkableYoYInflationTermStructureHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< YoYInflationTermStructure > *arg1 = (RelinkableHandle< YoYInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RelinkableYoYInflationTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_YoYInflationTermStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RelinkableYoYInflationTermStructureHandle" "', argument " "1"" of type '" "RelinkableHandle< YoYInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< YoYInflationTermStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RelinkableYoYInflationTermStructureHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RelinkableHandleT_YoYInflationTermStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  ZeroInflationTermStructure *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure___deref__" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (ZeroInflationTermStructure *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroInflationTermStructure, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_ZeroInflationTermStructure_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure___bool__" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_ZeroInflationTermStructure_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_asObservable" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_ZeroInflationTermStructure_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroInflationTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroInflationTermStructure",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< ZeroInflationTermStructure > *)new boost::shared_ptr< ZeroInflationTermStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ZeroInflationTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ZeroInflationTermStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ZeroInflationTermStructure" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_zeroRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  bool arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_zeroRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Rate)(*arg1)->zeroRate((Date const &)*arg2,(Period const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_zeroRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_zeroRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Rate)(*arg1)->zeroRate((Date const &)*arg2,(Period const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_zeroRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_zeroRate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  {
    try {
      result = (Rate)(*arg1)->zeroRate((Date const &)*arg2,(Period const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_zeroRate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_zeroRate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroInflationTermStructure_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Rate)(*arg1)->zeroRate((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_zeroRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_ZeroInflationTermStructure_zeroRate__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ZeroInflationTermStructure_zeroRate__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_ZeroInflationTermStructure_zeroRate__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_ZeroInflationTermStructure_zeroRate__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ZeroInflationTermStructure_zeroRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ZeroInflationTermStructure::zeroRate(Date const &,Period const &,bool,bool) const\n"
    "    ZeroInflationTermStructure::zeroRate(Date const &,Period const &,bool) const\n"
    "    ZeroInflationTermStructure::zeroRate(Date const &,Period const &) const\n"
    "    ZeroInflationTermStructure::zeroRate(Date const &) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_dayCounter" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->dayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_calendar" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->calendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_referenceDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_referenceDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_referenceDate" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->referenceDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_maxDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_maxDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_maxDate" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->maxDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_maxTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_maxTime",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_maxTime" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (Time)(*arg1)->maxTime();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_observationLag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Period result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_observationLag",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_observationLag" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->observationLag();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Period(static_cast< const Period& >(result))), SWIGTYPE_p_Period, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_frequency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Frequency result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_frequency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_frequency" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (Frequency)(*arg1)->frequency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_indexIsInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_indexIsInterpolated",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_indexIsInterpolated" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->indexIsInterpolated();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_baseRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_baseRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_baseRate" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (Rate)(*arg1)->baseRate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_nominalTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< YieldTermStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_nominalTermStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_nominalTermStructure" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->nominalTermStructure();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Handle< YieldTermStructure >(static_cast< const Handle< YieldTermStructure >& >(result))), SWIGTYPE_p_HandleT_YieldTermStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_baseDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_baseDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_baseDate" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->baseDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_setSeasonality__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  boost::shared_ptr< Seasonality > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_setSeasonality",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_setSeasonality" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Seasonality_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZeroInflationTermStructure_setSeasonality" "', argument " "2"" of type '" "boost::shared_ptr< Seasonality > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroInflationTermStructure_setSeasonality" "', argument " "2"" of type '" "boost::shared_ptr< Seasonality > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Seasonality > * >(argp2);
  {
    try {
      (*arg1)->setSeasonality((boost::shared_ptr< Seasonality > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_setSeasonality__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_setSeasonality",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_setSeasonality" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      (*arg1)->setSeasonality();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_setSeasonality(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_ZeroInflationTermStructure_setSeasonality__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_Seasonality_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_ZeroInflationTermStructure_setSeasonality__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ZeroInflationTermStructure_setSeasonality'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    InflationTermStructure::setSeasonality(boost::shared_ptr< Seasonality > const &)\n"
    "    InflationTermStructure::setSeasonality()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_seasonality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Seasonality > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_seasonality",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_seasonality" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->seasonality();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Seasonality >(static_cast< const boost::shared_ptr< Seasonality >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Seasonality_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_hasSeasonality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_hasSeasonality",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_hasSeasonality" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->hasSeasonality();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_enableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_enableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_enableExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      (*arg1)->enableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_disableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_disableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_disableExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      (*arg1)->disableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructure_allowsExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = (boost::shared_ptr< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructure_allowsExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructure_allowsExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->allowsExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ZeroInflationTermStructure_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ZeroInflationTermStructureHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< ZeroInflationTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroInflationTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ZeroInflationTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroInflationTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (Handle< ZeroInflationTermStructure > *)new Handle< ZeroInflationTermStructure >((boost::shared_ptr< ZeroInflationTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroInflationTermStructureHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroInflationTermStructureHandle",0,0)) SWIG_fail;
  {
    try {
      result = (Handle< ZeroInflationTermStructure > *)new Handle< ZeroInflationTermStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroInflationTermStructureHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_ZeroInflationTermStructureHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_ZeroInflationTermStructureHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ZeroInflationTermStructureHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Handle< ZeroInflationTermStructure >::Handle(boost::shared_ptr< ZeroInflationTermStructure > const &)\n"
    "    Handle< ZeroInflationTermStructure >::Handle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< ZeroInflationTermStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle___deref__" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< ZeroInflationTermStructure >(static_cast< const boost::shared_ptr< ZeroInflationTermStructure >& >(result))), SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle___nonzero__" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_ZeroInflationTermStructure_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle___bool__" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_ZeroInflationTermStructure_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_asObservable" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = Handle_Sl_ZeroInflationTermStructure_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ZeroInflationTermStructureHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ZeroInflationTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ZeroInflationTermStructureHandle" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_zeroRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  bool arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_zeroRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Rate)(*arg1)->zeroRate((Date const &)*arg2,(Period const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_zeroRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_zeroRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Rate)(*arg1)->zeroRate((Date const &)*arg2,(Period const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_zeroRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_zeroRate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  {
    try {
      result = (Rate)(*arg1)->zeroRate((Date const &)*arg2,(Period const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_zeroRate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_zeroRate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroInflationTermStructureHandle_zeroRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Rate)(*arg1)->zeroRate((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_zeroRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_ZeroInflationTermStructureHandle_zeroRate__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ZeroInflationTermStructureHandle_zeroRate__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_ZeroInflationTermStructureHandle_zeroRate__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_ZeroInflationTermStructureHandle_zeroRate__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ZeroInflationTermStructureHandle_zeroRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ZeroInflationTermStructure::zeroRate(Date const &,Period const &,bool,bool) const\n"
    "    ZeroInflationTermStructure::zeroRate(Date const &,Period const &,bool) const\n"
    "    ZeroInflationTermStructure::zeroRate(Date const &,Period const &) const\n"
    "    ZeroInflationTermStructure::zeroRate(Date const &) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_dayCounter" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->dayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_calendar" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->calendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_referenceDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_referenceDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_referenceDate" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->referenceDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_maxDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_maxDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_maxDate" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->maxDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_maxTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_maxTime",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_maxTime" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (Time)(*arg1)->maxTime();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_observationLag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Period result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_observationLag",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_observationLag" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->observationLag();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Period(static_cast< const Period& >(result))), SWIGTYPE_p_Period, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_frequency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Frequency result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_frequency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_frequency" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (Frequency)(*arg1)->frequency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_indexIsInterpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_indexIsInterpolated",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_indexIsInterpolated" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->indexIsInterpolated();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_baseRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_baseRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_baseRate" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (Rate)(*arg1)->baseRate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_nominalTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< YieldTermStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_nominalTermStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_nominalTermStructure" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->nominalTermStructure();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Handle< YieldTermStructure >(static_cast< const Handle< YieldTermStructure >& >(result))), SWIGTYPE_p_HandleT_YieldTermStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_baseDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_baseDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_baseDate" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->baseDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_setSeasonality__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  boost::shared_ptr< Seasonality > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_setSeasonality",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_setSeasonality" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Seasonality_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZeroInflationTermStructureHandle_setSeasonality" "', argument " "2"" of type '" "boost::shared_ptr< Seasonality > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroInflationTermStructureHandle_setSeasonality" "', argument " "2"" of type '" "boost::shared_ptr< Seasonality > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Seasonality > * >(argp2);
  {
    try {
      (*arg1)->setSeasonality((boost::shared_ptr< Seasonality > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_setSeasonality__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_setSeasonality",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_setSeasonality" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      (*arg1)->setSeasonality();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_setSeasonality(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_ZeroInflationTermStructureHandle_setSeasonality__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_Seasonality_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_ZeroInflationTermStructureHandle_setSeasonality__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ZeroInflationTermStructureHandle_setSeasonality'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    InflationTermStructure::setSeasonality(boost::shared_ptr< Seasonality > const &)\n"
    "    InflationTermStructure::setSeasonality()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_seasonality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Seasonality > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_seasonality",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_seasonality" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->seasonality();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Seasonality >(static_cast< const boost::shared_ptr< Seasonality >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Seasonality_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_hasSeasonality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_hasSeasonality",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_hasSeasonality" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->hasSeasonality();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_enableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_enableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_enableExtrapolation" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      (*arg1)->enableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_disableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_disableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_disableExtrapolation" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      (*arg1)->disableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroInflationTermStructureHandle_allowsExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ZeroInflationTermStructure > *arg1 = (Handle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroInflationTermStructureHandle_allowsExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroInflationTermStructureHandle_allowsExtrapolation" "', argument " "1"" of type '" "Handle< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->allowsExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ZeroInflationTermStructureHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_RelinkableZeroInflationTermStructureHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroInflationTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  RelinkableHandle< ZeroInflationTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableZeroInflationTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RelinkableZeroInflationTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RelinkableZeroInflationTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      result = (RelinkableHandle< ZeroInflationTermStructure > *)new RelinkableHandle< ZeroInflationTermStructure >((boost::shared_ptr< ZeroInflationTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_ZeroInflationTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableZeroInflationTermStructureHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< ZeroInflationTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableZeroInflationTermStructureHandle",0,0)) SWIG_fail;
  {
    try {
      result = (RelinkableHandle< ZeroInflationTermStructure > *)new RelinkableHandle< ZeroInflationTermStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_ZeroInflationTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableZeroInflationTermStructureHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_RelinkableZeroInflationTermStructureHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_RelinkableZeroInflationTermStructureHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RelinkableZeroInflationTermStructureHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    RelinkableHandle< ZeroInflationTermStructure >::RelinkableHandle(boost::shared_ptr< ZeroInflationTermStructure > const &)\n"
    "    RelinkableHandle< ZeroInflationTermStructure >::RelinkableHandle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableZeroInflationTermStructureHandle_linkTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< ZeroInflationTermStructure > *arg1 = (RelinkableHandle< ZeroInflationTermStructure > *) 0 ;
  boost::shared_ptr< ZeroInflationTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableZeroInflationTermStructureHandle_linkTo",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_ZeroInflationTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableZeroInflationTermStructureHandle_linkTo" "', argument " "1"" of type '" "RelinkableHandle< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< ZeroInflationTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_ZeroInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableZeroInflationTermStructureHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableZeroInflationTermStructureHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< ZeroInflationTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< ZeroInflationTermStructure > * >(argp2);
  {
    try {
      (arg1)->linkTo((boost::shared_ptr< ZeroInflationTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RelinkableZeroInflationTermStructureHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< ZeroInflationTermStructure > *arg1 = (RelinkableHandle< ZeroInflationTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RelinkableZeroInflationTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_ZeroInflationTermStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RelinkableZeroInflationTermStructureHandle" "', argument " "1"" of type '" "RelinkableHandle< ZeroInflationTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< ZeroInflationTermStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RelinkableZeroInflationTermStructureHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RelinkableHandleT_ZeroInflationTermStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Region_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Region *arg1 = (Region *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Region_name",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Region, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_name" "', argument " "1"" of type '" "Region const *""'"); 
  }
  arg1 = reinterpret_cast< Region * >(argp1);
  {
    try {
      result = ((Region const *)arg1)->name();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Region_code(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Region *arg1 = (Region *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Region_code",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Region, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_code" "', argument " "1"" of type '" "Region const *""'"); 
  }
  arg1 = reinterpret_cast< Region * >(argp1);
  {
    try {
      result = ((Region const *)arg1)->code();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Region *arg1 = (Region *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Region",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Region, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', argument " "1"" of type '" "Region *""'"); 
  }
  arg1 = reinterpret_cast< Region * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Region, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CustomRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  std::string *arg2 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  CustomRegion *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CustomRegion",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CustomRegion" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CustomRegion" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CustomRegion" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CustomRegion" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      result = (CustomRegion *)new CustomRegion((std::string const &)*arg1,(std::string const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CustomRegion, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CustomRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CustomRegion *arg1 = (CustomRegion *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CustomRegion",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CustomRegion, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CustomRegion" "', argument " "1"" of type '" "CustomRegion *""'"); 
  }
  arg1 = reinterpret_cast< CustomRegion * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CustomRegion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CustomRegion, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_InflationIndex_interpolated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InflationIndexPtr *arg1 = (InflationIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InflationIndex_interpolated",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InflationIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InflationIndex_interpolated" "', argument " "1"" of type '" "InflationIndexPtr const *""'"); 
  }
  arg1 = reinterpret_cast< InflationIndexPtr * >(argp1);
  {
    try {
      result = (bool)InflationIndexPtr_interpolated((InflationIndexPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InflationIndex_frequency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InflationIndexPtr *arg1 = (InflationIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Frequency result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InflationIndex_frequency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InflationIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InflationIndex_frequency" "', argument " "1"" of type '" "InflationIndexPtr const *""'"); 
  }
  arg1 = reinterpret_cast< InflationIndexPtr * >(argp1);
  {
    try {
      result = (Frequency)InflationIndexPtr_frequency((InflationIndexPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InflationIndex_availabilityLag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InflationIndexPtr *arg1 = (InflationIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Period result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InflationIndex_availabilityLag",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InflationIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InflationIndex_availabilityLag" "', argument " "1"" of type '" "InflationIndexPtr const *""'"); 
  }
  arg1 = reinterpret_cast< InflationIndexPtr * >(argp1);
  {
    try {
      result = InflationIndexPtr_availabilityLag((InflationIndexPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Period(static_cast< const Period& >(result))), SWIGTYPE_p_Period, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InflationIndex_currency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InflationIndexPtr *arg1 = (InflationIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Currency result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InflationIndex_currency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InflationIndexPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InflationIndex_currency" "', argument " "1"" of type '" "InflationIndexPtr const *""'"); 
  }
  arg1 = reinterpret_cast< InflationIndexPtr * >(argp1);
  {
    try {
      result = InflationIndexPtr_currency((InflationIndexPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Currency(static_cast< const Currency& >(result))), SWIGTYPE_p_Currency, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InflationIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InflationIndexPtr *arg1 = (InflationIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_InflationIndex",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InflationIndexPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InflationIndex" "', argument " "1"" of type '" "InflationIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< InflationIndexPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InflationIndex_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InflationIndexPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ZeroInflationIndex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  Region *arg2 = 0 ;
  bool arg3 ;
  bool arg4 ;
  Frequency arg5 ;
  Period *arg6 = 0 ;
  Currency *arg7 = 0 ;
  Handle< ZeroInflationTermStructure > *arg8 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  ZeroInflationIndexPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroInflationIndex",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ZeroInflationIndex" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroInflationIndex" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Region,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ZeroInflationIndex" "', argument " "2"" of type '" "Region const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroInflationIndex" "', argument " "2"" of type '" "Region const &""'"); 
  }
  arg2 = reinterpret_cast< Region * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ZeroInflationIndex" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ZeroInflationIndex" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ZeroInflationIndex" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ZeroInflationIndex" "', argument " "6"" of type '" "Period const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroInflationIndex" "', argument " "6"" of type '" "Period const &""'"); 
  }
  arg6 = reinterpret_cast< Period * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ZeroInflationIndex" "', argument " "7"" of type '" "Currency const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroInflationIndex" "', argument " "7"" of type '" "Currency const &""'"); 
  }
  arg7 = reinterpret_cast< Currency * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ZeroInflationIndex" "', argument " "8"" of type '" "Handle< ZeroInflationTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroInflationIndex" "', argument " "8"" of type '" "Handle< ZeroInflationTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp8);
  {
    try {
      result = (ZeroInflationIndexPtr *)new_ZeroInflationIndexPtr__SWIG_0((std::string const &)*arg1,(Region const &)*arg2,arg3,arg4,arg5,(Period const &)*arg6,(Currency const &)*arg7,(Handle< ZeroInflationTermStructure > const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroInflationIndexPtr, 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_ZeroInflationIndex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::string *arg1 = 0 ;
  Region *arg2 = 0 ;
  bool arg3 ;
  bool arg4 ;
  Frequency arg5 ;
  Period *arg6 = 0 ;
  Currency *arg7 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  ZeroInflationIndexPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroInflationIndex",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    res1 = SWIG_AsPtr_std_string(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ZeroInflationIndex" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroInflationIndex" "', argument " "1"" of type '" "std::string const &""'"); 
    }
    arg1 = ptr;
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Region,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ZeroInflationIndex" "', argument " "2"" of type '" "Region const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroInflationIndex" "', argument " "2"" of type '" "Region const &""'"); 
  }
  arg2 = reinterpret_cast< Region * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ZeroInflationIndex" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ZeroInflationIndex" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ZeroInflationIndex" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ZeroInflationIndex" "', argument " "6"" of type '" "Period const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroInflationIndex" "', argument " "6"" of type '" "Period const &""'"); 
  }
  arg6 = reinterpret_cast< Period * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ZeroInflationIndex" "', argument " "7"" of type '" "Currency const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroInflationIndex" "', argument " "7"" of type '" "Currency const &""'"); 
  }
  arg7 = reinterpret_cast< Currency * >(argp7);
  {
    try {
      result = (ZeroInflationIndexPtr *)new_ZeroInflationIndexPtr__SWIG_0((std::string const &)*arg1,(Region const &)*arg2,arg3,arg4,arg5,(Period const &)*arg6,(Currency const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroInflationIndexPtr, 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_ZeroInflationIndex(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[9] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 8) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Region, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Period, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Currency, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_ZeroInflationIndex__SWIG_1(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Region, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Period, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Currency, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_ZeroInflationIndex__SWIG_0(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ZeroInflationIndex'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ZeroInflationIndexPtr::ZeroInflationIndexPtr(std::string const &,Region const &,bool,bool,Frequency,Period const &,Currency const &,Handle< ZeroInflationTermStructure > const &)\n"
    "    ZeroInflationIndexPtr::ZeroInflationIndexPtr(std::string const &,Region const &,bool,bool,Frequency,Period const &,Currency const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_ZeroInflationIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroInflationIndexPtr *arg1 = (ZeroInflationIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ZeroInflationIndex",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroInflationIndexPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ZeroInflationIndex" "', argument " "1"" of type '" "ZeroInflationIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< ZeroInflationIndexPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ZeroInflationIndex_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ZeroInflationIndexPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_delete_YoYInflationIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YoYInflationIndexPtr *arg1 = (YoYInflationIndexPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YoYInflationIndex",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YoYInflationIndexPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YoYInflationIndex" "', argument " "1"" of type '" "YoYInflationIndexPtr *""'"); 
  }
  arg1 = reinterpret_cast< YoYInflationIndexPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YoYInflationIndex_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_YoYInflationIndexPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EUHICP__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  Handle< ZeroInflationTermStructure > *arg2 = 0 ;
  bool val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  EUHICPPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EUHICP",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EUHICP" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EUHICP" "', argument " "2"" of type '" "Handle< ZeroInflationTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EUHICP" "', argument " "2"" of type '" "Handle< ZeroInflationTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp2);
  {
    try {
      result = (EUHICPPtr *)new_EUHICPPtr__SWIG_0(arg1,(Handle< ZeroInflationTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EUHICPPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EUHICP__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  bool val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  EUHICPPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EUHICP",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EUHICP" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  {
    try {
      result = (EUHICPPtr *)new_EUHICPPtr__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EUHICPPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EUHICP(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_EUHICP__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_EUHICP__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EUHICP'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EUHICPPtr::EUHICPPtr(bool,Handle< ZeroInflationTermStructure > const &)\n"
    "    EUHICPPtr::EUHICPPtr(bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EUHICP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EUHICPPtr *arg1 = (EUHICPPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EUHICP",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EUHICPPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EUHICP" "', argument " "1"" of type '" "EUHICPPtr *""'"); 
  }
  arg1 = reinterpret_cast< EUHICPPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EUHICP_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EUHICPPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_EUHICPXT__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  Handle< ZeroInflationTermStructure > *arg2 = 0 ;
  bool val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  EUHICPXTPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EUHICPXT",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EUHICPXT" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EUHICPXT" "', argument " "2"" of type '" "Handle< ZeroInflationTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_EUHICPXT" "', argument " "2"" of type '" "Handle< ZeroInflationTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp2);
  {
    try {
      result = (EUHICPXTPtr *)new_EUHICPXTPtr__SWIG_0(arg1,(Handle< ZeroInflationTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EUHICPXTPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EUHICPXT__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  bool val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  EUHICPXTPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_EUHICPXT",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EUHICPXT" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  {
    try {
      result = (EUHICPXTPtr *)new_EUHICPXTPtr__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EUHICPXTPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_EUHICPXT(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_EUHICPXT__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_EUHICPXT__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_EUHICPXT'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    EUHICPXTPtr::EUHICPXTPtr(bool,Handle< ZeroInflationTermStructure > const &)\n"
    "    EUHICPXTPtr::EUHICPXTPtr(bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_EUHICPXT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  EUHICPXTPtr *arg1 = (EUHICPXTPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_EUHICPXT",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_EUHICPXTPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EUHICPXT" "', argument " "1"" of type '" "EUHICPXTPtr *""'"); 
  }
  arg1 = reinterpret_cast< EUHICPXTPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *EUHICPXT_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_EUHICPXTPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FRHICP__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  Handle< ZeroInflationTermStructure > *arg2 = 0 ;
  bool val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  FRHICPPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FRHICP",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FRHICP" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FRHICP" "', argument " "2"" of type '" "Handle< ZeroInflationTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FRHICP" "', argument " "2"" of type '" "Handle< ZeroInflationTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp2);
  {
    try {
      result = (FRHICPPtr *)new_FRHICPPtr__SWIG_0(arg1,(Handle< ZeroInflationTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FRHICPPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FRHICP__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  bool val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  FRHICPPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FRHICP",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FRHICP" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  {
    try {
      result = (FRHICPPtr *)new_FRHICPPtr__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FRHICPPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FRHICP(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_FRHICP__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_FRHICP__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FRHICP'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FRHICPPtr::FRHICPPtr(bool,Handle< ZeroInflationTermStructure > const &)\n"
    "    FRHICPPtr::FRHICPPtr(bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FRHICP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FRHICPPtr *arg1 = (FRHICPPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FRHICP",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FRHICPPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FRHICP" "', argument " "1"" of type '" "FRHICPPtr *""'"); 
  }
  arg1 = reinterpret_cast< FRHICPPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FRHICP_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FRHICPPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_UKRPI__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  Handle< ZeroInflationTermStructure > *arg2 = 0 ;
  bool val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  UKRPIPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UKRPI",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UKRPI" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_UKRPI" "', argument " "2"" of type '" "Handle< ZeroInflationTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UKRPI" "', argument " "2"" of type '" "Handle< ZeroInflationTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp2);
  {
    try {
      result = (UKRPIPtr *)new_UKRPIPtr__SWIG_0(arg1,(Handle< ZeroInflationTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UKRPIPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UKRPI__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  bool val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  UKRPIPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UKRPI",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UKRPI" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  {
    try {
      result = (UKRPIPtr *)new_UKRPIPtr__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UKRPIPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UKRPI(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_UKRPI__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_UKRPI__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_UKRPI'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    UKRPIPtr::UKRPIPtr(bool,Handle< ZeroInflationTermStructure > const &)\n"
    "    UKRPIPtr::UKRPIPtr(bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_UKRPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  UKRPIPtr *arg1 = (UKRPIPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_UKRPI",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UKRPIPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_UKRPI" "', argument " "1"" of type '" "UKRPIPtr *""'"); 
  }
  arg1 = reinterpret_cast< UKRPIPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *UKRPI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_UKRPIPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_USCPI__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  Handle< ZeroInflationTermStructure > *arg2 = 0 ;
  bool val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  USCPIPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_USCPI",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_USCPI" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_USCPI" "', argument " "2"" of type '" "Handle< ZeroInflationTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_USCPI" "', argument " "2"" of type '" "Handle< ZeroInflationTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp2);
  {
    try {
      result = (USCPIPtr *)new_USCPIPtr__SWIG_0(arg1,(Handle< ZeroInflationTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_USCPIPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_USCPI__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  bool val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  USCPIPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_USCPI",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_USCPI" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  {
    try {
      result = (USCPIPtr *)new_USCPIPtr__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_USCPIPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_USCPI(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_USCPI__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_USCPI__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_USCPI'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    USCPIPtr::USCPIPtr(bool,Handle< ZeroInflationTermStructure > const &)\n"
    "    USCPIPtr::USCPIPtr(bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_USCPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  USCPIPtr *arg1 = (USCPIPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_USCPI",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_USCPIPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_USCPI" "', argument " "1"" of type '" "USCPIPtr *""'"); 
  }
  arg1 = reinterpret_cast< USCPIPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *USCPI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_USCPIPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ZACPI__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  Handle< ZeroInflationTermStructure > *arg2 = 0 ;
  bool val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  ZACPIPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZACPI",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ZACPI" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ZACPI" "', argument " "2"" of type '" "Handle< ZeroInflationTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZACPI" "', argument " "2"" of type '" "Handle< ZeroInflationTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< ZeroInflationTermStructure > * >(argp2);
  {
    try {
      result = (ZACPIPtr *)new_ZACPIPtr__SWIG_0(arg1,(Handle< ZeroInflationTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZACPIPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZACPI__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  bool val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  ZACPIPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZACPI",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ZACPI" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  {
    try {
      result = (ZACPIPtr *)new_ZACPIPtr__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZACPIPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZACPI(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_ZACPI__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_ZeroInflationTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_ZACPI__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ZACPI'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ZACPIPtr::ZACPIPtr(bool,Handle< ZeroInflationTermStructure > const &)\n"
    "    ZACPIPtr::ZACPIPtr(bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_ZACPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZACPIPtr *arg1 = (ZACPIPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ZACPI",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZACPIPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ZACPI" "', argument " "1"" of type '" "ZACPIPtr *""'"); 
  }
  arg1 = reinterpret_cast< ZACPIPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ZACPI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ZACPIPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_YYEUHICP__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  Handle< YoYInflationTermStructure > *arg2 = 0 ;
  bool val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  YYEUHICPPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YYEUHICP",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_YYEUHICP" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_YYEUHICP" "', argument " "2"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YYEUHICP" "', argument " "2"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp2);
  {
    try {
      result = (YYEUHICPPtr *)new_YYEUHICPPtr__SWIG_0(arg1,(Handle< YoYInflationTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YYEUHICPPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YYEUHICP__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  bool val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  YYEUHICPPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YYEUHICP",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_YYEUHICP" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  {
    try {
      result = (YYEUHICPPtr *)new_YYEUHICPPtr__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YYEUHICPPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YYEUHICP(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_YYEUHICP__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_YYEUHICP__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_YYEUHICP'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    YYEUHICPPtr::YYEUHICPPtr(bool,Handle< YoYInflationTermStructure > const &)\n"
    "    YYEUHICPPtr::YYEUHICPPtr(bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_YYEUHICP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YYEUHICPPtr *arg1 = (YYEUHICPPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YYEUHICP",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YYEUHICPPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YYEUHICP" "', argument " "1"" of type '" "YYEUHICPPtr *""'"); 
  }
  arg1 = reinterpret_cast< YYEUHICPPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YYEUHICP_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_YYEUHICPPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_YYEUHICPXT__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  Handle< YoYInflationTermStructure > *arg2 = 0 ;
  bool val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  YYEUHICPXTPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YYEUHICPXT",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_YYEUHICPXT" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_YYEUHICPXT" "', argument " "2"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YYEUHICPXT" "', argument " "2"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp2);
  {
    try {
      result = (YYEUHICPXTPtr *)new_YYEUHICPXTPtr__SWIG_0(arg1,(Handle< YoYInflationTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YYEUHICPXTPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YYEUHICPXT__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  bool val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  YYEUHICPXTPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YYEUHICPXT",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_YYEUHICPXT" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  {
    try {
      result = (YYEUHICPXTPtr *)new_YYEUHICPXTPtr__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YYEUHICPXTPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YYEUHICPXT(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_YYEUHICPXT__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_YYEUHICPXT__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_YYEUHICPXT'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    YYEUHICPXTPtr::YYEUHICPXTPtr(bool,Handle< YoYInflationTermStructure > const &)\n"
    "    YYEUHICPXTPtr::YYEUHICPXTPtr(bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_YYEUHICPXT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YYEUHICPXTPtr *arg1 = (YYEUHICPXTPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YYEUHICPXT",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YYEUHICPXTPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YYEUHICPXT" "', argument " "1"" of type '" "YYEUHICPXTPtr *""'"); 
  }
  arg1 = reinterpret_cast< YYEUHICPXTPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YYEUHICPXT_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_YYEUHICPXTPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_YYFRHICP__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  Handle< YoYInflationTermStructure > *arg2 = 0 ;
  bool val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  YYFRHICPPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YYFRHICP",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_YYFRHICP" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_YYFRHICP" "', argument " "2"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YYFRHICP" "', argument " "2"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp2);
  {
    try {
      result = (YYFRHICPPtr *)new_YYFRHICPPtr__SWIG_0(arg1,(Handle< YoYInflationTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YYFRHICPPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YYFRHICP__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  bool val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  YYFRHICPPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YYFRHICP",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_YYFRHICP" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  {
    try {
      result = (YYFRHICPPtr *)new_YYFRHICPPtr__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YYFRHICPPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YYFRHICP(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_YYFRHICP__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_YYFRHICP__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_YYFRHICP'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    YYFRHICPPtr::YYFRHICPPtr(bool,Handle< YoYInflationTermStructure > const &)\n"
    "    YYFRHICPPtr::YYFRHICPPtr(bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_YYFRHICP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YYFRHICPPtr *arg1 = (YYFRHICPPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YYFRHICP",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YYFRHICPPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YYFRHICP" "', argument " "1"" of type '" "YYFRHICPPtr *""'"); 
  }
  arg1 = reinterpret_cast< YYFRHICPPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YYFRHICP_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_YYFRHICPPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_YYUKRPI__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  Handle< YoYInflationTermStructure > *arg2 = 0 ;
  bool val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  YYUKRPIPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YYUKRPI",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_YYUKRPI" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_YYUKRPI" "', argument " "2"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YYUKRPI" "', argument " "2"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp2);
  {
    try {
      result = (YYUKRPIPtr *)new_YYUKRPIPtr__SWIG_0(arg1,(Handle< YoYInflationTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YYUKRPIPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YYUKRPI__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  bool val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  YYUKRPIPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YYUKRPI",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_YYUKRPI" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  {
    try {
      result = (YYUKRPIPtr *)new_YYUKRPIPtr__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YYUKRPIPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YYUKRPI(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_YYUKRPI__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_YYUKRPI__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_YYUKRPI'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    YYUKRPIPtr::YYUKRPIPtr(bool,Handle< YoYInflationTermStructure > const &)\n"
    "    YYUKRPIPtr::YYUKRPIPtr(bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_YYUKRPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YYUKRPIPtr *arg1 = (YYUKRPIPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YYUKRPI",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YYUKRPIPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YYUKRPI" "', argument " "1"" of type '" "YYUKRPIPtr *""'"); 
  }
  arg1 = reinterpret_cast< YYUKRPIPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YYUKRPI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_YYUKRPIPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_YYUSCPI__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  Handle< YoYInflationTermStructure > *arg2 = 0 ;
  bool val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  YYUSCPIPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YYUSCPI",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_YYUSCPI" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_YYUSCPI" "', argument " "2"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YYUSCPI" "', argument " "2"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp2);
  {
    try {
      result = (YYUSCPIPtr *)new_YYUSCPIPtr__SWIG_0(arg1,(Handle< YoYInflationTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YYUSCPIPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YYUSCPI__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  bool val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  YYUSCPIPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YYUSCPI",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_YYUSCPI" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  {
    try {
      result = (YYUSCPIPtr *)new_YYUSCPIPtr__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YYUSCPIPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YYUSCPI(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_YYUSCPI__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_YYUSCPI__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_YYUSCPI'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    YYUSCPIPtr::YYUSCPIPtr(bool,Handle< YoYInflationTermStructure > const &)\n"
    "    YYUSCPIPtr::YYUSCPIPtr(bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_YYUSCPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YYUSCPIPtr *arg1 = (YYUSCPIPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YYUSCPI",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YYUSCPIPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YYUSCPI" "', argument " "1"" of type '" "YYUSCPIPtr *""'"); 
  }
  arg1 = reinterpret_cast< YYUSCPIPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YYUSCPI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_YYUSCPIPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_YYZACPI__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  Handle< YoYInflationTermStructure > *arg2 = 0 ;
  bool val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  YYZACPIPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YYZACPI",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_YYZACPI" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_YYZACPI" "', argument " "2"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YYZACPI" "', argument " "2"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp2);
  {
    try {
      result = (YYZACPIPtr *)new_YYZACPIPtr__SWIG_0(arg1,(Handle< YoYInflationTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YYZACPIPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YYZACPI__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  bool val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  YYZACPIPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YYZACPI",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_YYZACPI" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  {
    try {
      result = (YYZACPIPtr *)new_YYZACPIPtr__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YYZACPIPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YYZACPI(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_YYZACPI__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_YYZACPI__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_YYZACPI'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    YYZACPIPtr::YYZACPIPtr(bool,Handle< YoYInflationTermStructure > const &)\n"
    "    YYZACPIPtr::YYZACPIPtr(bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_YYZACPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YYZACPIPtr *arg1 = (YYZACPIPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YYZACPI",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YYZACPIPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YYZACPI" "', argument " "1"" of type '" "YYZACPIPtr *""'"); 
  }
  arg1 = reinterpret_cast< YYZACPIPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YYZACPI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_YYZACPIPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CPI *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CPI",0,0)) SWIG_fail;
  {
    try {
      result = (CPI *)new CPI();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CPI, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CPI *arg1 = (CPI *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CPI",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPI, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CPI" "', argument " "1"" of type '" "CPI *""'"); 
  }
  arg1 = reinterpret_cast< CPI * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CPI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CPI, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_ZeroHelper___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroHelper > *arg1 = (boost::shared_ptr< ZeroHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  ZeroHelper *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelper___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelper___deref__" "', argument " "1"" of type '" "boost::shared_ptr< ZeroHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroHelper > * >(argp1);
  {
    try {
      result = (ZeroHelper *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroHelper, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelper___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroHelper > *arg1 = (boost::shared_ptr< ZeroHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelper___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelper___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< ZeroHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroHelper > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_ZeroHelper_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelper___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroHelper > *arg1 = (boost::shared_ptr< ZeroHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelper___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelper___bool__" "', argument " "1"" of type '" "boost::shared_ptr< ZeroHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroHelper > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_ZeroHelper_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroHelper > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroHelper",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< ZeroHelper > *)new boost::shared_ptr< ZeroHelper >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ZeroHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ZeroHelper > *arg1 = (boost::shared_ptr< ZeroHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ZeroHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ZeroHelper" "', argument " "1"" of type '" "boost::shared_ptr< ZeroHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ZeroHelper > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ZeroHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_YoYHelper___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYHelper > *arg1 = (boost::shared_ptr< YoYHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  YoYHelper *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelper___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelper___deref__" "', argument " "1"" of type '" "boost::shared_ptr< YoYHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYHelper > * >(argp1);
  {
    try {
      result = (YoYHelper *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YoYHelper, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelper___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYHelper > *arg1 = (boost::shared_ptr< YoYHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelper___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelper___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< YoYHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYHelper > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_YoYHelper_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelper___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYHelper > *arg1 = (boost::shared_ptr< YoYHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelper___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelper___bool__" "', argument " "1"" of type '" "boost::shared_ptr< YoYHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYHelper > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_YoYHelper_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YoYHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYHelper > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YoYHelper",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< YoYHelper > *)new boost::shared_ptr< YoYHelper >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_YoYHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YoYHelper > *arg1 = (boost::shared_ptr< YoYHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YoYHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YoYHelper" "', argument " "1"" of type '" "boost::shared_ptr< YoYHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YoYHelper > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YoYHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_ZeroHelperVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_iterator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector___nonzero__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____nonzero__((std::vector< boost::shared_ptr< ZeroHelper > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector___bool__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____bool__((std::vector< boost::shared_ptr< ZeroHelper > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector___len__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____len__((std::vector< boost::shared_ptr< ZeroHelper > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector___getslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ZeroHelperVector___getslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< ZeroHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ZeroHelperVector___getslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< ZeroHelper > >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > *)std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ZeroHelperVector___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< ZeroHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ZeroHelperVector___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< ZeroHelper > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::difference_type arg3 ;
  std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ZeroHelperVector___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< ZeroHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ZeroHelperVector___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< ZeroHelper > >::difference_type >(val3);
  {
    std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > *ptr = (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ZeroHelperVector___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroHelperVector___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >**)(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_ZeroHelperVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >**)(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< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_ZeroHelperVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ZeroHelperVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::__setslice__(std::vector< boost::shared_ptr< ZeroHelper > >::difference_type,std::vector< boost::shared_ptr< ZeroHelper > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::__setslice__(std::vector< boost::shared_ptr< ZeroHelper > >::difference_type,std::vector< boost::shared_ptr< ZeroHelper > >::difference_type,std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector___delslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ZeroHelperVector___delslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< ZeroHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ZeroHelperVector___delslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< ZeroHelper > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ZeroHelperVector___delitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< ZeroHelper > >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ZeroHelperVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > *)std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ZeroHelperVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > *ptr = (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ZeroHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ZeroHelperVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ZeroHelperVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_ZeroHelperVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ZeroHelperVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ZeroHelperVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::__delitem__(std::vector< boost::shared_ptr< ZeroHelper > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ZeroHelperVector___getitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< ZeroHelper > >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< ZeroHelper > >::value_type *) &std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____getitem____SWIG_1((std::vector< boost::shared_ptr< ZeroHelper > > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_ZeroHelperVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ZeroHelperVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ZeroHelperVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::__getitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::__getitem__(std::vector< boost::shared_ptr< ZeroHelper > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ZeroHelperVector___setitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< ZeroHelper > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ZeroHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > >::value_type * >(argp3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg____setitem____SWIG_2(arg1,arg2,(boost::shared_ptr< ZeroHelper > const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_ZeroHelperVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ZeroHelperVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >**)(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_boost__shared_ptrT_ZeroHelper_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ZeroHelperVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ZeroHelperVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::__setitem__(PySliceObject *,std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > const &)\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::__setitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::__setitem__(std::vector< boost::shared_ptr< ZeroHelper > >::difference_type,std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_pop" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< ZeroHelper > >::value_type(static_cast< const std::vector< boost::shared_ptr< ZeroHelper > >::value_type& >(result))), SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_append" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZeroHelperVector_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroHelperVector_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > >::value_type * >(argp2);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg__append(arg1,(boost::shared_ptr< ZeroHelper > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroHelperVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroHelperVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< boost::shared_ptr< ZeroHelper > > *)new std::vector< boost::shared_ptr< ZeroHelper > >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroHelperVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroHelperVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > *ptr = (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ZeroHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< boost::shared_ptr< ZeroHelper > > *)new std::vector< boost::shared_ptr< ZeroHelper > >((std::vector< boost::shared_ptr< ZeroHelper > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_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_ZeroHelperVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_empty" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    try {
      result = (bool)((std::vector< boost::shared_ptr< ZeroHelper > > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_size" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< ZeroHelper > > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_swap" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZeroHelperVector_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroHelperVector_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_begin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< ZeroHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_end" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< ZeroHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_rbegin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< ZeroHelper > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_rend" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< ZeroHelper > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_clear" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< boost::shared_ptr< ZeroHelper > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_get_allocator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< ZeroHelper > > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< ZeroHelper > >::allocator_type(static_cast< const std::vector< boost::shared_ptr< ZeroHelper > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroHelperVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroHelperVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ZeroHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< ZeroHelper > >::size_type >(val1);
  {
    try {
      result = (std::vector< boost::shared_ptr< ZeroHelper > > *)new std::vector< boost::shared_ptr< ZeroHelper > >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_pop_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ZeroHelperVector_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< ZeroHelper > >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ZeroHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< ZeroHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< ZeroHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ZeroHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< ZeroHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::iterator arg2 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ZeroHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< ZeroHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< ZeroHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ZeroHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ZeroHelperVector_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< ZeroHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< ZeroHelper > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ZeroHelperVector_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< ZeroHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >**)(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< boost::shared_ptr< ZeroHelper > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_ZeroHelperVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >**)(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< boost::shared_ptr< ZeroHelper > >::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< boost::shared_ptr< ZeroHelper > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_ZeroHelperVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ZeroHelperVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::erase(std::vector< boost::shared_ptr< ZeroHelper > >::iterator)\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::erase(std::vector< boost::shared_ptr< ZeroHelper > >::iterator,std::vector< boost::shared_ptr< ZeroHelper > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_ZeroHelperVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > >::size_type arg1 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroHelperVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ZeroHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< ZeroHelper > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ZeroHelperVector" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroHelperVector" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > >::value_type * >(argp2);
  {
    try {
      result = (std::vector< boost::shared_ptr< ZeroHelper > > *)new std::vector< boost::shared_ptr< ZeroHelper > >(arg1,(std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroHelperVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_ZeroHelperVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_ZeroHelperVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_ZeroHelperVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_ZeroHelperVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ZeroHelperVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::vector()\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::vector(std::vector< boost::shared_ptr< ZeroHelper > > const &)\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::vector(std::vector< boost::shared_ptr< ZeroHelper > >::size_type)\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::vector(std::vector< boost::shared_ptr< ZeroHelper > >::size_type,std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_push_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZeroHelperVector_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroHelperVector_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > >::value_type * >(argp2);
  {
    try {
      (arg1)->push_back((std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_front" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< ZeroHelper > >::value_type *) &((std::vector< boost::shared_ptr< ZeroHelper > > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< ZeroHelper > >::value_type *) &((std::vector< boost::shared_ptr< ZeroHelper > > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::size_type arg2 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_assign" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ZeroHelperVector_assign" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< ZeroHelper > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ZeroHelperVector_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroHelperVector_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > >::value_type * >(argp3);
  {
    try {
      (arg1)->assign(arg2,(std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::size_type arg2 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ZeroHelperVector_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< ZeroHelper > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ZeroHelperVector_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroHelperVector_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > >::value_type * >(argp3);
  {
    try {
      (arg1)->resize(arg2,(std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ZeroHelperVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >**)(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_boost__shared_ptrT_ZeroHelper_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ZeroHelperVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ZeroHelperVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::resize(std::vector< boost::shared_ptr< ZeroHelper > >::size_type)\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::resize(std::vector< boost::shared_ptr< ZeroHelper > >::size_type,std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::iterator arg2 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ZeroHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< ZeroHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< ZeroHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ZeroHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ZeroHelperVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroHelperVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > >::value_type * >(argp3);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg__insert__SWIG_0(arg1,arg2,(boost::shared_ptr< ZeroHelper > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< ZeroHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::iterator arg2 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::size_type arg3 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::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 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ZeroHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< ZeroHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< ZeroHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ZeroHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ZeroHelperVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< ZeroHelper > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ZeroHelperVector_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroHelperVector_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > >::value_type * >(argp4);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_ZeroHelper_Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(boost::shared_ptr< ZeroHelper > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >**)(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< boost::shared_ptr< ZeroHelper > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_ZeroHelper_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ZeroHelperVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > >**)(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< boost::shared_ptr< ZeroHelper > >::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_boost__shared_ptrT_ZeroHelper_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_ZeroHelperVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ZeroHelperVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::insert(std::vector< boost::shared_ptr< ZeroHelper > >::iterator,std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &)\n"
    "    std::vector< boost::shared_ptr< ZeroHelper > >::insert(std::vector< boost::shared_ptr< ZeroHelper > >::iterator,std::vector< boost::shared_ptr< ZeroHelper > >::size_type,std::vector< boost::shared_ptr< ZeroHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_reserve" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ZeroHelperVector_reserve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< ZeroHelper > >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroHelperVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroHelperVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroHelperVector_capacity" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< ZeroHelper > > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ZeroHelperVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< ZeroHelper > > *arg1 = (std::vector< boost::shared_ptr< ZeroHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ZeroHelperVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ZeroHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< ZeroHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< ZeroHelper > > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ZeroHelperVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_YoYHelperVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_iterator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector___nonzero__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____nonzero__((std::vector< boost::shared_ptr< YoYHelper > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector___bool__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____bool__((std::vector< boost::shared_ptr< YoYHelper > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector___len__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____len__((std::vector< boost::shared_ptr< YoYHelper > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< YoYHelper > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector___getslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YoYHelperVector___getslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< YoYHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YoYHelperVector___getslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< YoYHelper > >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > *)std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< YoYHelper > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YoYHelperVector___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< YoYHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YoYHelperVector___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< YoYHelper > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< YoYHelper > >::difference_type arg3 ;
  std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YoYHelperVector___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< YoYHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YoYHelperVector___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< YoYHelper > >::difference_type >(val3);
  {
    std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > *ptr = (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "YoYHelperVector___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYHelperVector___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >**)(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_YoYHelperVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >**)(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< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_YoYHelperVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'YoYHelperVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::__setslice__(std::vector< boost::shared_ptr< YoYHelper > >::difference_type,std::vector< boost::shared_ptr< YoYHelper > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::__setslice__(std::vector< boost::shared_ptr< YoYHelper > >::difference_type,std::vector< boost::shared_ptr< YoYHelper > >::difference_type,std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< YoYHelper > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector___delslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YoYHelperVector___delslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< YoYHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YoYHelperVector___delslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< YoYHelper > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YoYHelperVector___delitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< YoYHelper > >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "YoYHelperVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > *)std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "YoYHelperVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > *ptr = (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YoYHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "YoYHelperVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "YoYHelperVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_YoYHelperVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_YoYHelperVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'YoYHelperVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::__delitem__(std::vector< boost::shared_ptr< YoYHelper > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YoYHelperVector___getitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< YoYHelper > >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< YoYHelper > >::value_type *) &std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____getitem____SWIG_1((std::vector< boost::shared_ptr< YoYHelper > > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_YoYHelperVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_YoYHelperVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'YoYHelperVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::__getitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::__getitem__(std::vector< boost::shared_ptr< YoYHelper > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< YoYHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YoYHelperVector___setitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< YoYHelper > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YoYHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > >::value_type * >(argp3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg____setitem____SWIG_2(arg1,arg2,(boost::shared_ptr< YoYHelper > const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_YoYHelperVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_YoYHelperVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >**)(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_boost__shared_ptrT_YoYHelper_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_YoYHelperVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'YoYHelperVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::__setitem__(PySliceObject *,std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > const &)\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::__setitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::__setitem__(std::vector< boost::shared_ptr< YoYHelper > >::difference_type,std::vector< boost::shared_ptr< YoYHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_pop" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< YoYHelper > >::value_type(static_cast< const std::vector< boost::shared_ptr< YoYHelper > >::value_type& >(result))), SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_append" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YoYHelperVector_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYHelperVector_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > >::value_type * >(argp2);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg__append(arg1,(boost::shared_ptr< YoYHelper > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YoYHelperVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YoYHelperVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< boost::shared_ptr< YoYHelper > > *)new std::vector< boost::shared_ptr< YoYHelper > >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YoYHelperVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YoYHelperVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > *ptr = (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_YoYHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YoYHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< boost::shared_ptr< YoYHelper > > *)new std::vector< boost::shared_ptr< YoYHelper > >((std::vector< boost::shared_ptr< YoYHelper > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_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_YoYHelperVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_empty" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    try {
      result = (bool)((std::vector< boost::shared_ptr< YoYHelper > > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_size" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< YoYHelper > > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_swap" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YoYHelperVector_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYHelperVector_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_begin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< YoYHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_end" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< YoYHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_rbegin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< YoYHelper > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_rend" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< YoYHelper > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_clear" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< boost::shared_ptr< YoYHelper > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_get_allocator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< YoYHelper > > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< YoYHelper > >::allocator_type(static_cast< const std::vector< boost::shared_ptr< YoYHelper > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YoYHelperVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YoYHelperVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_YoYHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< YoYHelper > >::size_type >(val1);
  {
    try {
      result = (std::vector< boost::shared_ptr< YoYHelper > > *)new std::vector< boost::shared_ptr< YoYHelper > >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_pop_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YoYHelperVector_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< YoYHelper > >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "YoYHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< YoYHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< YoYHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "YoYHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< YoYHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::iterator arg2 ;
  std::vector< boost::shared_ptr< YoYHelper > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "YoYHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< YoYHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< YoYHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "YoYHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "YoYHelperVector_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< YoYHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< YoYHelper > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "YoYHelperVector_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< YoYHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >**)(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< boost::shared_ptr< YoYHelper > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_YoYHelperVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >**)(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< boost::shared_ptr< YoYHelper > >::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< boost::shared_ptr< YoYHelper > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_YoYHelperVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'YoYHelperVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::erase(std::vector< boost::shared_ptr< YoYHelper > >::iterator)\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::erase(std::vector< boost::shared_ptr< YoYHelper > >::iterator,std::vector< boost::shared_ptr< YoYHelper > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_YoYHelperVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > >::size_type arg1 ;
  std::vector< boost::shared_ptr< YoYHelper > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YoYHelperVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_YoYHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< YoYHelper > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_YoYHelperVector" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YoYHelperVector" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > >::value_type * >(argp2);
  {
    try {
      result = (std::vector< boost::shared_ptr< YoYHelper > > *)new std::vector< boost::shared_ptr< YoYHelper > >(arg1,(std::vector< boost::shared_ptr< YoYHelper > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YoYHelperVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_YoYHelperVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_YoYHelperVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_YoYHelperVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_YoYHelperVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_YoYHelperVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::vector()\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::vector(std::vector< boost::shared_ptr< YoYHelper > > const &)\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::vector(std::vector< boost::shared_ptr< YoYHelper > >::size_type)\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::vector(std::vector< boost::shared_ptr< YoYHelper > >::size_type,std::vector< boost::shared_ptr< YoYHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_push_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "YoYHelperVector_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYHelperVector_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > >::value_type * >(argp2);
  {
    try {
      (arg1)->push_back((std::vector< boost::shared_ptr< YoYHelper > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_front" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< YoYHelper > >::value_type *) &((std::vector< boost::shared_ptr< YoYHelper > > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< YoYHelper > >::value_type *) &((std::vector< boost::shared_ptr< YoYHelper > > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::size_type arg2 ;
  std::vector< boost::shared_ptr< YoYHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_assign" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YoYHelperVector_assign" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< YoYHelper > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YoYHelperVector_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYHelperVector_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > >::value_type * >(argp3);
  {
    try {
      (arg1)->assign(arg2,(std::vector< boost::shared_ptr< YoYHelper > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::size_type arg2 ;
  std::vector< boost::shared_ptr< YoYHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YoYHelperVector_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< YoYHelper > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YoYHelperVector_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYHelperVector_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > >::value_type * >(argp3);
  {
    try {
      (arg1)->resize(arg2,(std::vector< boost::shared_ptr< YoYHelper > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_YoYHelperVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >**)(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_boost__shared_ptrT_YoYHelper_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_YoYHelperVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'YoYHelperVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::resize(std::vector< boost::shared_ptr< YoYHelper > >::size_type)\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::resize(std::vector< boost::shared_ptr< YoYHelper > >::size_type,std::vector< boost::shared_ptr< YoYHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::iterator arg2 ;
  std::vector< boost::shared_ptr< YoYHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "YoYHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< YoYHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< YoYHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "YoYHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YoYHelperVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYHelperVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > >::value_type * >(argp3);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg__insert__SWIG_0(arg1,arg2,(boost::shared_ptr< YoYHelper > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< YoYHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::iterator arg2 ;
  std::vector< boost::shared_ptr< YoYHelper > >::size_type arg3 ;
  std::vector< boost::shared_ptr< YoYHelper > >::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 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "YoYHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< YoYHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< YoYHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "YoYHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "YoYHelperVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< YoYHelper > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "YoYHelperVector_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYHelperVector_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > >::value_type * >(argp4);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_YoYHelper_Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(boost::shared_ptr< YoYHelper > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >**)(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< boost::shared_ptr< YoYHelper > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_YoYHelper_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_YoYHelperVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > >**)(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< boost::shared_ptr< YoYHelper > >::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_boost__shared_ptrT_YoYHelper_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_YoYHelperVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'YoYHelperVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::insert(std::vector< boost::shared_ptr< YoYHelper > >::iterator,std::vector< boost::shared_ptr< YoYHelper > >::value_type const &)\n"
    "    std::vector< boost::shared_ptr< YoYHelper > >::insert(std::vector< boost::shared_ptr< YoYHelper > >::iterator,std::vector< boost::shared_ptr< YoYHelper > >::size_type,std::vector< boost::shared_ptr< YoYHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_reserve" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YoYHelperVector_reserve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< YoYHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< YoYHelper > >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYHelperVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYHelperVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYHelperVector_capacity" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< YoYHelper > > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_YoYHelperVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< YoYHelper > > *arg1 = (std::vector< boost::shared_ptr< YoYHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YoYHelperVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YoYHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< YoYHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< YoYHelper > > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YoYHelperVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ZeroCouponInflationSwapHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Period *arg2 = 0 ;
  Date *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  ZeroInflationIndexPtr *arg7 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  ZeroCouponInflationSwapHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroCouponInflationSwapHelper",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ZeroCouponInflationSwapHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ZeroCouponInflationSwapHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwapHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ZeroCouponInflationSwapHelper" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwapHelper" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ZeroCouponInflationSwapHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwapHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ZeroCouponInflationSwapHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ZeroCouponInflationSwapHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwapHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_ZeroInflationIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ZeroCouponInflationSwapHelper" "', argument " "7"" of type '" "ZeroInflationIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwapHelper" "', argument " "7"" of type '" "ZeroInflationIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< ZeroInflationIndexPtr * >(argp7);
  {
    try {
      result = (ZeroCouponInflationSwapHelperPtr *)new_ZeroCouponInflationSwapHelperPtr(arg1,(Period const &)*arg2,(Date const &)*arg3,(Calendar const &)*arg4,arg5,(DayCounter const &)*arg6,(ZeroInflationIndexPtr const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroCouponInflationSwapHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ZeroCouponInflationSwapHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroCouponInflationSwapHelperPtr *arg1 = (ZeroCouponInflationSwapHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ZeroCouponInflationSwapHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroCouponInflationSwapHelperPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ZeroCouponInflationSwapHelper" "', argument " "1"" of type '" "ZeroCouponInflationSwapHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< ZeroCouponInflationSwapHelperPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ZeroCouponInflationSwapHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ZeroCouponInflationSwapHelperPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_YearOnYearInflationSwapHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Period *arg2 = 0 ;
  Date *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  YoYInflationIndexPtr *arg7 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  YearOnYearInflationSwapHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YearOnYearInflationSwapHelper",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_YearOnYearInflationSwapHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_YearOnYearInflationSwapHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwapHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_YearOnYearInflationSwapHelper" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwapHelper" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_YearOnYearInflationSwapHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwapHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_YearOnYearInflationSwapHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_YearOnYearInflationSwapHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwapHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_YoYInflationIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_YearOnYearInflationSwapHelper" "', argument " "7"" of type '" "YoYInflationIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwapHelper" "', argument " "7"" of type '" "YoYInflationIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< YoYInflationIndexPtr * >(argp7);
  {
    try {
      result = (YearOnYearInflationSwapHelperPtr *)new_YearOnYearInflationSwapHelperPtr(arg1,(Period const &)*arg2,(Date const &)*arg3,(Calendar const &)*arg4,arg5,(DayCounter const &)*arg6,(YoYInflationIndexPtr const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YearOnYearInflationSwapHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_YearOnYearInflationSwapHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YearOnYearInflationSwapHelperPtr *arg1 = (YearOnYearInflationSwapHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YearOnYearInflationSwapHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YearOnYearInflationSwapHelperPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YearOnYearInflationSwapHelper" "', argument " "1"" of type '" "YearOnYearInflationSwapHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< YearOnYearInflationSwapHelperPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YearOnYearInflationSwapHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_YearOnYearInflationSwapHelperPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PiecewiseZeroInflation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Period *arg4 = 0 ;
  Frequency arg5 ;
  bool arg6 ;
  Rate arg7 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > *arg9 = 0 ;
  Real arg10 = (Real) 1.0e-12 ;
  Linear const &arg11_defvalue = Linear() ;
  Linear *arg11 = (Linear *) &arg11_defvalue ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int res9 = SWIG_OLDOBJ ;
  double val10 ;
  int ecode10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  char *  kwnames[] = {
    (char *) "referenceDate",(char *) "calendar",(char *) "dayCounter",(char *) "lag",(char *) "frequency",(char *) "indexIsInterpolated",(char *) "baseRate",(char *) "nominalTS",(char *) "instruments",(char *) "accuracy",(char *) "i", NULL 
  };
  PiecewiseZeroInflationPtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOOO|OO:new_PiecewiseZeroInflation",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseZeroInflation" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseZeroInflation" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseZeroInflation" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseZeroInflation" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseZeroInflation" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseZeroInflation" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseZeroInflation" "', argument " "4"" of type '" "Period const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseZeroInflation" "', argument " "4"" of type '" "Period const &""'"); 
  }
  arg4 = reinterpret_cast< Period * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PiecewiseZeroInflation" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PiecewiseZeroInflation" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_PiecewiseZeroInflation" "', argument " "7"" of type '" "Rate""'");
  } 
  arg7 = static_cast< Rate >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_PiecewiseZeroInflation" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseZeroInflation" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  {
    std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > *ptr = (std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > *)0;
    res9 = swig::asptr(obj8, &ptr);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_PiecewiseZeroInflation" "', argument " "9"" of type '" "std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseZeroInflation" "', argument " "9"" of type '" "std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > const &""'"); 
    }
    arg9 = ptr;
  }
  if (obj9) {
    ecode10 = SWIG_AsVal_double(obj9, &val10);
    if (!SWIG_IsOK(ecode10)) {
      SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_PiecewiseZeroInflation" "', argument " "10"" of type '" "Real""'");
    } 
    arg10 = static_cast< Real >(val10);
  }
  if (obj10) {
    res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_Linear,  0  | 0);
    if (!SWIG_IsOK(res11)) {
      SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_PiecewiseZeroInflation" "', argument " "11"" of type '" "Linear const &""'"); 
    }
    if (!argp11) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseZeroInflation" "', argument " "11"" of type '" "Linear const &""'"); 
    }
    arg11 = reinterpret_cast< Linear * >(argp11);
  }
  {
    try {
      result = (PiecewiseZeroInflationPtr *)new_PiecewiseZeroInflationPtr((Date const &)*arg1,(Calendar const &)*arg2,(DayCounter const &)*arg3,(Period const &)*arg4,arg5,arg6,arg7,(Handle< YieldTermStructure > const &)*arg8,(std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > const &)*arg9,arg10,(Linear const &)*arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseZeroInflationPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res9)) delete arg9;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res9)) delete arg9;
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseZeroInflation_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseZeroInflationPtr *arg1 = (PiecewiseZeroInflationPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseZeroInflation_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseZeroInflationPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseZeroInflation_dates" "', argument " "1"" of type '" "PiecewiseZeroInflationPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseZeroInflationPtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &PiecewiseZeroInflationPtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseZeroInflation_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseZeroInflationPtr *arg1 = (PiecewiseZeroInflationPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseZeroInflation_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseZeroInflationPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseZeroInflation_times" "', argument " "1"" of type '" "PiecewiseZeroInflationPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseZeroInflationPtr * >(argp1);
  {
    try {
      result = (std::vector< Time,std::allocator< Time > > *) &PiecewiseZeroInflationPtr_times(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseZeroInflation_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseZeroInflationPtr *arg1 = (PiecewiseZeroInflationPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseZeroInflation_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseZeroInflationPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseZeroInflation_nodes" "', argument " "1"" of type '" "PiecewiseZeroInflationPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseZeroInflationPtr * >(argp1);
  {
    try {
      result = PiecewiseZeroInflationPtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PiecewiseZeroInflation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseZeroInflationPtr *arg1 = (PiecewiseZeroInflationPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PiecewiseZeroInflation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseZeroInflationPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PiecewiseZeroInflation" "', argument " "1"" of type '" "PiecewiseZeroInflationPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseZeroInflationPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PiecewiseZeroInflation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_PiecewiseZeroInflationPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PiecewiseYoYInflation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Period *arg4 = 0 ;
  Frequency arg5 ;
  bool arg6 ;
  Rate arg7 ;
  Handle< YieldTermStructure > *arg8 = 0 ;
  std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > *arg9 = 0 ;
  Real arg10 = (Real) 1.0e-12 ;
  Linear const &arg11_defvalue = Linear() ;
  Linear *arg11 = (Linear *) &arg11_defvalue ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int res9 = SWIG_OLDOBJ ;
  double val10 ;
  int ecode10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  char *  kwnames[] = {
    (char *) "referenceDate",(char *) "calendar",(char *) "dayCounter",(char *) "lag",(char *) "frequency",(char *) "indexIsInterpolated",(char *) "baseRate",(char *) "nominalTS",(char *) "instruments",(char *) "accuracy",(char *) "i", NULL 
  };
  PiecewiseYoYInflationPtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOOO|OO:new_PiecewiseYoYInflation",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseYoYInflation" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseYoYInflation" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseYoYInflation" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseYoYInflation" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseYoYInflation" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseYoYInflation" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseYoYInflation" "', argument " "4"" of type '" "Period const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseYoYInflation" "', argument " "4"" of type '" "Period const &""'"); 
  }
  arg4 = reinterpret_cast< Period * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PiecewiseYoYInflation" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PiecewiseYoYInflation" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_PiecewiseYoYInflation" "', argument " "7"" of type '" "Rate""'");
  } 
  arg7 = static_cast< Rate >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_PiecewiseYoYInflation" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseYoYInflation" "', argument " "8"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< YieldTermStructure > * >(argp8);
  {
    std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > *ptr = (std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > *)0;
    res9 = swig::asptr(obj8, &ptr);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_PiecewiseYoYInflation" "', argument " "9"" of type '" "std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseYoYInflation" "', argument " "9"" of type '" "std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > const &""'"); 
    }
    arg9 = ptr;
  }
  if (obj9) {
    ecode10 = SWIG_AsVal_double(obj9, &val10);
    if (!SWIG_IsOK(ecode10)) {
      SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_PiecewiseYoYInflation" "', argument " "10"" of type '" "Real""'");
    } 
    arg10 = static_cast< Real >(val10);
  }
  if (obj10) {
    res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_Linear,  0  | 0);
    if (!SWIG_IsOK(res11)) {
      SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_PiecewiseYoYInflation" "', argument " "11"" of type '" "Linear const &""'"); 
    }
    if (!argp11) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseYoYInflation" "', argument " "11"" of type '" "Linear const &""'"); 
    }
    arg11 = reinterpret_cast< Linear * >(argp11);
  }
  {
    try {
      result = (PiecewiseYoYInflationPtr *)new_PiecewiseYoYInflationPtr((Date const &)*arg1,(Calendar const &)*arg2,(DayCounter const &)*arg3,(Period const &)*arg4,arg5,arg6,arg7,(Handle< YieldTermStructure > const &)*arg8,(std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > const &)*arg9,arg10,(Linear const &)*arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseYoYInflationPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res9)) delete arg9;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res9)) delete arg9;
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseYoYInflation_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseYoYInflationPtr *arg1 = (PiecewiseYoYInflationPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseYoYInflation_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseYoYInflationPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseYoYInflation_dates" "', argument " "1"" of type '" "PiecewiseYoYInflationPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseYoYInflationPtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &PiecewiseYoYInflationPtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseYoYInflation_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseYoYInflationPtr *arg1 = (PiecewiseYoYInflationPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseYoYInflation_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseYoYInflationPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseYoYInflation_times" "', argument " "1"" of type '" "PiecewiseYoYInflationPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseYoYInflationPtr * >(argp1);
  {
    try {
      result = (std::vector< Time,std::allocator< Time > > *) &PiecewiseYoYInflationPtr_times(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseYoYInflation_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseYoYInflationPtr *arg1 = (PiecewiseYoYInflationPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseYoYInflation_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseYoYInflationPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseYoYInflation_nodes" "', argument " "1"" of type '" "PiecewiseYoYInflationPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseYoYInflationPtr * >(argp1);
  {
    try {
      result = PiecewiseYoYInflationPtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PiecewiseYoYInflation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseYoYInflationPtr *arg1 = (PiecewiseYoYInflationPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PiecewiseYoYInflation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseYoYInflationPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PiecewiseYoYInflation" "', argument " "1"" of type '" "PiecewiseYoYInflationPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseYoYInflationPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PiecewiseYoYInflation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_PiecewiseYoYInflationPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_inflationBaseDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Period *arg2 = 0 ;
  Frequency arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"inflationBaseDate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "inflationBaseDate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "inflationBaseDate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "inflationBaseDate" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "inflationBaseDate" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "inflationBaseDate" "', argument " "3"" of type '" "Frequency""'");
  } 
  arg3 = static_cast< Frequency >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "inflationBaseDate" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = inflationBaseDate((Date const &)*arg1,(Period const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroCouponInflationSwap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroCouponInflationSwap::Type arg1 ;
  Real arg2 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Calendar *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  DayCounter *arg7 = 0 ;
  Rate arg8 ;
  ZeroInflationIndexPtr *arg9 = 0 ;
  Period *arg10 = 0 ;
  bool arg11 ;
  SwigValueWrapper< Calendar > arg12 ;
  BusinessDayConvention arg13 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  bool val11 ;
  int ecode11 = 0 ;
  void *argp12 ;
  int res12 = 0 ;
  int val13 ;
  int ecode13 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  ZeroCouponInflationSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroCouponInflationSwap",13,13,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ZeroCouponInflationSwap" "', argument " "1"" of type '" "ZeroCouponInflationSwap::Type""'");
  } 
  arg1 = static_cast< ZeroCouponInflationSwap::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ZeroCouponInflationSwap" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ZeroCouponInflationSwap" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ZeroCouponInflationSwap" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ZeroCouponInflationSwap" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ZeroCouponInflationSwap" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ZeroCouponInflationSwap" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_ZeroCouponInflationSwap" "', argument " "8"" of type '" "Rate""'");
  } 
  arg8 = static_cast< Rate >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_ZeroInflationIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_ZeroCouponInflationSwap" "', argument " "9"" of type '" "ZeroInflationIndexPtr const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "9"" of type '" "ZeroInflationIndexPtr const &""'"); 
  }
  arg9 = reinterpret_cast< ZeroInflationIndexPtr * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_ZeroCouponInflationSwap" "', argument " "10"" of type '" "Period const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "10"" of type '" "Period const &""'"); 
  }
  arg10 = reinterpret_cast< Period * >(argp10);
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_ZeroCouponInflationSwap" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  {
    res12 = SWIG_ConvertPtr(obj11, &argp12, SWIGTYPE_p_Calendar,  0  | 0);
    if (!SWIG_IsOK(res12)) {
      SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_ZeroCouponInflationSwap" "', argument " "12"" of type '" "Calendar""'"); 
    }  
    if (!argp12) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "12"" of type '" "Calendar""'");
    } else {
      Calendar * temp = reinterpret_cast< Calendar * >(argp12);
      arg12 = *temp;
      if (SWIG_IsNewObj(res12)) delete temp;
    }
  }
  ecode13 = SWIG_AsVal_int(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_ZeroCouponInflationSwap" "', argument " "13"" of type '" "BusinessDayConvention""'");
  } 
  arg13 = static_cast< BusinessDayConvention >(val13);
  {
    try {
      result = (ZeroCouponInflationSwapPtr *)new_ZeroCouponInflationSwapPtr__SWIG_0(arg1,arg2,(Date const &)*arg3,(Date const &)*arg4,(Calendar const &)*arg5,arg6,(DayCounter const &)*arg7,arg8,(ZeroInflationIndexPtr const &)*arg9,(Period const &)*arg10,arg11,arg12,arg13);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroCouponInflationSwapPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroCouponInflationSwap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroCouponInflationSwap::Type arg1 ;
  Real arg2 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Calendar *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  DayCounter *arg7 = 0 ;
  Rate arg8 ;
  ZeroInflationIndexPtr *arg9 = 0 ;
  Period *arg10 = 0 ;
  bool arg11 ;
  SwigValueWrapper< Calendar > arg12 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  bool val11 ;
  int ecode11 = 0 ;
  void *argp12 ;
  int res12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  ZeroCouponInflationSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroCouponInflationSwap",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ZeroCouponInflationSwap" "', argument " "1"" of type '" "ZeroCouponInflationSwap::Type""'");
  } 
  arg1 = static_cast< ZeroCouponInflationSwap::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ZeroCouponInflationSwap" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ZeroCouponInflationSwap" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ZeroCouponInflationSwap" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ZeroCouponInflationSwap" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ZeroCouponInflationSwap" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ZeroCouponInflationSwap" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_ZeroCouponInflationSwap" "', argument " "8"" of type '" "Rate""'");
  } 
  arg8 = static_cast< Rate >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_ZeroInflationIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_ZeroCouponInflationSwap" "', argument " "9"" of type '" "ZeroInflationIndexPtr const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "9"" of type '" "ZeroInflationIndexPtr const &""'"); 
  }
  arg9 = reinterpret_cast< ZeroInflationIndexPtr * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_ZeroCouponInflationSwap" "', argument " "10"" of type '" "Period const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "10"" of type '" "Period const &""'"); 
  }
  arg10 = reinterpret_cast< Period * >(argp10);
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_ZeroCouponInflationSwap" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  {
    res12 = SWIG_ConvertPtr(obj11, &argp12, SWIGTYPE_p_Calendar,  0  | 0);
    if (!SWIG_IsOK(res12)) {
      SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_ZeroCouponInflationSwap" "', argument " "12"" of type '" "Calendar""'"); 
    }  
    if (!argp12) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "12"" of type '" "Calendar""'");
    } else {
      Calendar * temp = reinterpret_cast< Calendar * >(argp12);
      arg12 = *temp;
      if (SWIG_IsNewObj(res12)) delete temp;
    }
  }
  {
    try {
      result = (ZeroCouponInflationSwapPtr *)new_ZeroCouponInflationSwapPtr__SWIG_0(arg1,arg2,(Date const &)*arg3,(Date const &)*arg4,(Calendar const &)*arg5,arg6,(DayCounter const &)*arg7,arg8,(ZeroInflationIndexPtr const &)*arg9,(Period const &)*arg10,arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroCouponInflationSwapPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroCouponInflationSwap__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroCouponInflationSwap::Type arg1 ;
  Real arg2 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Calendar *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  DayCounter *arg7 = 0 ;
  Rate arg8 ;
  ZeroInflationIndexPtr *arg9 = 0 ;
  Period *arg10 = 0 ;
  bool arg11 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  bool val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  ZeroCouponInflationSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroCouponInflationSwap",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ZeroCouponInflationSwap" "', argument " "1"" of type '" "ZeroCouponInflationSwap::Type""'");
  } 
  arg1 = static_cast< ZeroCouponInflationSwap::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ZeroCouponInflationSwap" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ZeroCouponInflationSwap" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ZeroCouponInflationSwap" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ZeroCouponInflationSwap" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ZeroCouponInflationSwap" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ZeroCouponInflationSwap" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_ZeroCouponInflationSwap" "', argument " "8"" of type '" "Rate""'");
  } 
  arg8 = static_cast< Rate >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_ZeroInflationIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_ZeroCouponInflationSwap" "', argument " "9"" of type '" "ZeroInflationIndexPtr const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "9"" of type '" "ZeroInflationIndexPtr const &""'"); 
  }
  arg9 = reinterpret_cast< ZeroInflationIndexPtr * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_ZeroCouponInflationSwap" "', argument " "10"" of type '" "Period const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "10"" of type '" "Period const &""'"); 
  }
  arg10 = reinterpret_cast< Period * >(argp10);
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_ZeroCouponInflationSwap" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  {
    try {
      result = (ZeroCouponInflationSwapPtr *)new_ZeroCouponInflationSwapPtr__SWIG_0(arg1,arg2,(Date const &)*arg3,(Date const &)*arg4,(Calendar const &)*arg5,arg6,(DayCounter const &)*arg7,arg8,(ZeroInflationIndexPtr const &)*arg9,(Period const &)*arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroCouponInflationSwapPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroCouponInflationSwap__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroCouponInflationSwap::Type arg1 ;
  Real arg2 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Calendar *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  DayCounter *arg7 = 0 ;
  Rate arg8 ;
  ZeroInflationIndexPtr *arg9 = 0 ;
  Period *arg10 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  ZeroCouponInflationSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroCouponInflationSwap",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ZeroCouponInflationSwap" "', argument " "1"" of type '" "ZeroCouponInflationSwap::Type""'");
  } 
  arg1 = static_cast< ZeroCouponInflationSwap::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ZeroCouponInflationSwap" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ZeroCouponInflationSwap" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ZeroCouponInflationSwap" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ZeroCouponInflationSwap" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ZeroCouponInflationSwap" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ZeroCouponInflationSwap" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_ZeroCouponInflationSwap" "', argument " "8"" of type '" "Rate""'");
  } 
  arg8 = static_cast< Rate >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_ZeroInflationIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_ZeroCouponInflationSwap" "', argument " "9"" of type '" "ZeroInflationIndexPtr const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "9"" of type '" "ZeroInflationIndexPtr const &""'"); 
  }
  arg9 = reinterpret_cast< ZeroInflationIndexPtr * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_ZeroCouponInflationSwap" "', argument " "10"" of type '" "Period const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponInflationSwap" "', argument " "10"" of type '" "Period const &""'"); 
  }
  arg10 = reinterpret_cast< Period * >(argp10);
  {
    try {
      result = (ZeroCouponInflationSwapPtr *)new_ZeroCouponInflationSwapPtr__SWIG_0(arg1,arg2,(Date const &)*arg3,(Date const &)*arg4,(Calendar const &)*arg5,arg6,(DayCounter const &)*arg7,arg8,(ZeroInflationIndexPtr const &)*arg9,(Period const &)*arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroCouponInflationSwapPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroCouponInflationSwap(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[14] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 13) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 10) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_ZeroInflationIndexPtr, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Period, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        return _wrap_new_ZeroCouponInflationSwap__SWIG_3(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_ZeroInflationIndexPtr, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Period, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          return _wrap_new_ZeroCouponInflationSwap__SWIG_2(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_ZeroInflationIndexPtr, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Period, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          int res = SWIG_ConvertPtr(argv[11], 0, SWIGTYPE_p_Calendar, 0);
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            return _wrap_new_ZeroCouponInflationSwap__SWIG_1(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 13) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_ZeroInflationIndexPtr, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Period, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          int res = SWIG_ConvertPtr(argv[11], 0, SWIGTYPE_p_Calendar, 0);
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            {
                              int res = SWIG_AsVal_int(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              return _wrap_new_ZeroCouponInflationSwap__SWIG_0(self, args);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ZeroCouponInflationSwap'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ZeroCouponInflationSwapPtr::ZeroCouponInflationSwapPtr(ZeroCouponInflationSwap::Type,Real,Date const &,Date const &,Calendar const &,BusinessDayConvention,DayCounter const &,Rate,ZeroInflationIndexPtr const &,Period const &,bool,Calendar,BusinessDayConvention)\n"
    "    ZeroCouponInflationSwapPtr::ZeroCouponInflationSwapPtr(ZeroCouponInflationSwap::Type,Real,Date const &,Date const &,Calendar const &,BusinessDayConvention,DayCounter const &,Rate,ZeroInflationIndexPtr const &,Period const &,bool,Calendar)\n"
    "    ZeroCouponInflationSwapPtr::ZeroCouponInflationSwapPtr(ZeroCouponInflationSwap::Type,Real,Date const &,Date const &,Calendar const &,BusinessDayConvention,DayCounter const &,Rate,ZeroInflationIndexPtr const &,Period const &,bool)\n"
    "    ZeroCouponInflationSwapPtr::ZeroCouponInflationSwapPtr(ZeroCouponInflationSwap::Type,Real,Date const &,Date const &,Calendar const &,BusinessDayConvention,DayCounter const &,Rate,ZeroInflationIndexPtr const &,Period const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ZeroCouponInflationSwap_fairRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroCouponInflationSwapPtr *arg1 = (ZeroCouponInflationSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroCouponInflationSwap_fairRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroCouponInflationSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroCouponInflationSwap_fairRate" "', argument " "1"" of type '" "ZeroCouponInflationSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< ZeroCouponInflationSwapPtr * >(argp1);
  {
    try {
      result = (Rate)ZeroCouponInflationSwapPtr_fairRate(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroCouponInflationSwap_fixedLeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroCouponInflationSwapPtr *arg1 = (ZeroCouponInflationSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroCouponInflationSwap_fixedLeg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroCouponInflationSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroCouponInflationSwap_fixedLeg" "', argument " "1"" of type '" "ZeroCouponInflationSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< ZeroCouponInflationSwapPtr * >(argp1);
  {
    try {
      result = ZeroCouponInflationSwapPtr_fixedLeg(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroCouponInflationSwap_inflationLeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroCouponInflationSwapPtr *arg1 = (ZeroCouponInflationSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroCouponInflationSwap_inflationLeg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroCouponInflationSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroCouponInflationSwap_inflationLeg" "', argument " "1"" of type '" "ZeroCouponInflationSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< ZeroCouponInflationSwapPtr * >(argp1);
  {
    try {
      result = ZeroCouponInflationSwapPtr_inflationLeg(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroCouponInflationSwap_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroCouponInflationSwapPtr *arg1 = (ZeroCouponInflationSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  ZeroCouponInflationSwap::Type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroCouponInflationSwap_type",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroCouponInflationSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroCouponInflationSwap_type" "', argument " "1"" of type '" "ZeroCouponInflationSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< ZeroCouponInflationSwapPtr * >(argp1);
  {
    try {
      result = (ZeroCouponInflationSwap::Type)ZeroCouponInflationSwapPtr_type(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ZeroCouponInflationSwap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroCouponInflationSwapPtr *arg1 = (ZeroCouponInflationSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ZeroCouponInflationSwap",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroCouponInflationSwapPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ZeroCouponInflationSwap" "', argument " "1"" of type '" "ZeroCouponInflationSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< ZeroCouponInflationSwapPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ZeroCouponInflationSwap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ZeroCouponInflationSwapPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_YearOnYearInflationSwap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YearOnYearInflationSwap::Type arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  Rate arg4 ;
  DayCounter *arg5 = 0 ;
  Schedule *arg6 = 0 ;
  YoYInflationIndexPtr *arg7 = 0 ;
  Period *arg8 = 0 ;
  Spread arg9 ;
  DayCounter *arg10 = 0 ;
  Calendar *arg11 = 0 ;
  BusinessDayConvention arg12 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  int val12 ;
  int ecode12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  YearOnYearInflationSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YearOnYearInflationSwap",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_YearOnYearInflationSwap" "', argument " "1"" of type '" "YearOnYearInflationSwap::Type""'");
  } 
  arg1 = static_cast< YearOnYearInflationSwap::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_YearOnYearInflationSwap" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_YearOnYearInflationSwap" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwap" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_YearOnYearInflationSwap" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_YearOnYearInflationSwap" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwap" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_YearOnYearInflationSwap" "', argument " "6"" of type '" "Schedule const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwap" "', argument " "6"" of type '" "Schedule const &""'"); 
  }
  arg6 = reinterpret_cast< Schedule * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_YoYInflationIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_YearOnYearInflationSwap" "', argument " "7"" of type '" "YoYInflationIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwap" "', argument " "7"" of type '" "YoYInflationIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< YoYInflationIndexPtr * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_YearOnYearInflationSwap" "', argument " "8"" of type '" "Period const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwap" "', argument " "8"" of type '" "Period const &""'"); 
  }
  arg8 = reinterpret_cast< Period * >(argp8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_YearOnYearInflationSwap" "', argument " "9"" of type '" "Spread""'");
  } 
  arg9 = static_cast< Spread >(val9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_YearOnYearInflationSwap" "', argument " "10"" of type '" "DayCounter const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwap" "', argument " "10"" of type '" "DayCounter const &""'"); 
  }
  arg10 = reinterpret_cast< DayCounter * >(argp10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_YearOnYearInflationSwap" "', argument " "11"" of type '" "Calendar const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwap" "', argument " "11"" of type '" "Calendar const &""'"); 
  }
  arg11 = reinterpret_cast< Calendar * >(argp11);
  ecode12 = SWIG_AsVal_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_YearOnYearInflationSwap" "', argument " "12"" of type '" "BusinessDayConvention""'");
  } 
  arg12 = static_cast< BusinessDayConvention >(val12);
  {
    try {
      result = (YearOnYearInflationSwapPtr *)new_YearOnYearInflationSwapPtr__SWIG_0(arg1,arg2,(Schedule const &)*arg3,arg4,(DayCounter const &)*arg5,(Schedule const &)*arg6,(YoYInflationIndexPtr const &)*arg7,(Period const &)*arg8,arg9,(DayCounter const &)*arg10,(Calendar const &)*arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YearOnYearInflationSwapPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YearOnYearInflationSwap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YearOnYearInflationSwap::Type arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  Rate arg4 ;
  DayCounter *arg5 = 0 ;
  Schedule *arg6 = 0 ;
  YoYInflationIndexPtr *arg7 = 0 ;
  Period *arg8 = 0 ;
  Spread arg9 ;
  DayCounter *arg10 = 0 ;
  Calendar *arg11 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  YearOnYearInflationSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YearOnYearInflationSwap",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_YearOnYearInflationSwap" "', argument " "1"" of type '" "YearOnYearInflationSwap::Type""'");
  } 
  arg1 = static_cast< YearOnYearInflationSwap::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_YearOnYearInflationSwap" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_YearOnYearInflationSwap" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwap" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_YearOnYearInflationSwap" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_YearOnYearInflationSwap" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwap" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_YearOnYearInflationSwap" "', argument " "6"" of type '" "Schedule const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwap" "', argument " "6"" of type '" "Schedule const &""'"); 
  }
  arg6 = reinterpret_cast< Schedule * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_YoYInflationIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_YearOnYearInflationSwap" "', argument " "7"" of type '" "YoYInflationIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwap" "', argument " "7"" of type '" "YoYInflationIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< YoYInflationIndexPtr * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_YearOnYearInflationSwap" "', argument " "8"" of type '" "Period const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwap" "', argument " "8"" of type '" "Period const &""'"); 
  }
  arg8 = reinterpret_cast< Period * >(argp8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_YearOnYearInflationSwap" "', argument " "9"" of type '" "Spread""'");
  } 
  arg9 = static_cast< Spread >(val9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_YearOnYearInflationSwap" "', argument " "10"" of type '" "DayCounter const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwap" "', argument " "10"" of type '" "DayCounter const &""'"); 
  }
  arg10 = reinterpret_cast< DayCounter * >(argp10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_YearOnYearInflationSwap" "', argument " "11"" of type '" "Calendar const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YearOnYearInflationSwap" "', argument " "11"" of type '" "Calendar const &""'"); 
  }
  arg11 = reinterpret_cast< Calendar * >(argp11);
  {
    try {
      result = (YearOnYearInflationSwapPtr *)new_YearOnYearInflationSwapPtr__SWIG_0(arg1,arg2,(Schedule const &)*arg3,arg4,(DayCounter const &)*arg5,(Schedule const &)*arg6,(YoYInflationIndexPtr const &)*arg7,(Period const &)*arg8,arg9,(DayCounter const &)*arg10,(Calendar const &)*arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YearOnYearInflationSwapPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_YearOnYearInflationSwap(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[13] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 12) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 11) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Schedule, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_YoYInflationIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Period, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_DayCounter, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_Calendar, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          return _wrap_new_YearOnYearInflationSwap__SWIG_1(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Schedule, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_YoYInflationIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Period, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_DayCounter, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_Calendar, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          {
                            int res = SWIG_AsVal_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            return _wrap_new_YearOnYearInflationSwap__SWIG_0(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_YearOnYearInflationSwap'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    YearOnYearInflationSwapPtr::YearOnYearInflationSwapPtr(YearOnYearInflationSwap::Type,Real,Schedule const &,Rate,DayCounter const &,Schedule const &,YoYInflationIndexPtr const &,Period const &,Spread,DayCounter const &,Calendar const &,BusinessDayConvention)\n"
    "    YearOnYearInflationSwapPtr::YearOnYearInflationSwapPtr(YearOnYearInflationSwap::Type,Real,Schedule const &,Rate,DayCounter const &,Schedule const &,YoYInflationIndexPtr const &,Period const &,Spread,DayCounter const &,Calendar const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_YearOnYearInflationSwap_fairRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YearOnYearInflationSwapPtr *arg1 = (YearOnYearInflationSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YearOnYearInflationSwap_fairRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YearOnYearInflationSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YearOnYearInflationSwap_fairRate" "', argument " "1"" of type '" "YearOnYearInflationSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< YearOnYearInflationSwapPtr * >(argp1);
  {
    try {
      result = (Rate)YearOnYearInflationSwapPtr_fairRate(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_YearOnYearInflationSwap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YearOnYearInflationSwapPtr *arg1 = (YearOnYearInflationSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YearOnYearInflationSwap",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YearOnYearInflationSwapPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YearOnYearInflationSwap" "', argument " "1"" of type '" "YearOnYearInflationSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< YearOnYearInflationSwapPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YearOnYearInflationSwap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_YearOnYearInflationSwapPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_YoYInflationCapFloor_impliedVolatility__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YoYInflationCapFloorPtr *arg1 = (YoYInflationCapFloorPtr *) 0 ;
  Real arg2 ;
  Handle< YoYInflationTermStructure > *arg3 = 0 ;
  Volatility arg4 ;
  Real arg5 ;
  Size arg6 ;
  Volatility arg7 ;
  Volatility arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  size_t val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationCapFloor_impliedVolatility",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YoYInflationCapFloorPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "1"" of type '" "YoYInflationCapFloorPtr const *""'"); 
  }
  arg1 = reinterpret_cast< YoYInflationCapFloorPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_size_t(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "6"" of type '" "Size""'");
  } 
  arg6 = static_cast< Size >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "7"" of type '" "Volatility""'");
  } 
  arg7 = static_cast< Volatility >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "8"" of type '" "Volatility""'");
  } 
  arg8 = static_cast< Volatility >(val8);
  {
    try {
      result = (Volatility)YoYInflationCapFloorPtr_impliedVolatility__SWIG_0((YoYInflationCapFloorPtr const *)arg1,arg2,(Handle< YoYInflationTermStructure > const &)*arg3,arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationCapFloor_impliedVolatility__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YoYInflationCapFloorPtr *arg1 = (YoYInflationCapFloorPtr *) 0 ;
  Real arg2 ;
  Handle< YoYInflationTermStructure > *arg3 = 0 ;
  Volatility arg4 ;
  Real arg5 ;
  Size arg6 ;
  Volatility arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  size_t val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationCapFloor_impliedVolatility",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YoYInflationCapFloorPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "1"" of type '" "YoYInflationCapFloorPtr const *""'"); 
  }
  arg1 = reinterpret_cast< YoYInflationCapFloorPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_size_t(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "6"" of type '" "Size""'");
  } 
  arg6 = static_cast< Size >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "7"" of type '" "Volatility""'");
  } 
  arg7 = static_cast< Volatility >(val7);
  {
    try {
      result = (Volatility)YoYInflationCapFloorPtr_impliedVolatility__SWIG_0((YoYInflationCapFloorPtr const *)arg1,arg2,(Handle< YoYInflationTermStructure > const &)*arg3,arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationCapFloor_impliedVolatility__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YoYInflationCapFloorPtr *arg1 = (YoYInflationCapFloorPtr *) 0 ;
  Real arg2 ;
  Handle< YoYInflationTermStructure > *arg3 = 0 ;
  Volatility arg4 ;
  Real arg5 ;
  Size arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  size_t val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationCapFloor_impliedVolatility",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YoYInflationCapFloorPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "1"" of type '" "YoYInflationCapFloorPtr const *""'"); 
  }
  arg1 = reinterpret_cast< YoYInflationCapFloorPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_size_t(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "6"" of type '" "Size""'");
  } 
  arg6 = static_cast< Size >(val6);
  {
    try {
      result = (Volatility)YoYInflationCapFloorPtr_impliedVolatility__SWIG_0((YoYInflationCapFloorPtr const *)arg1,arg2,(Handle< YoYInflationTermStructure > const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationCapFloor_impliedVolatility__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YoYInflationCapFloorPtr *arg1 = (YoYInflationCapFloorPtr *) 0 ;
  Real arg2 ;
  Handle< YoYInflationTermStructure > *arg3 = 0 ;
  Volatility arg4 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationCapFloor_impliedVolatility",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YoYInflationCapFloorPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "1"" of type '" "YoYInflationCapFloorPtr const *""'"); 
  }
  arg1 = reinterpret_cast< YoYInflationCapFloorPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Volatility)YoYInflationCapFloorPtr_impliedVolatility__SWIG_0((YoYInflationCapFloorPtr const *)arg1,arg2,(Handle< YoYInflationTermStructure > const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationCapFloor_impliedVolatility__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YoYInflationCapFloorPtr *arg1 = (YoYInflationCapFloorPtr *) 0 ;
  Real arg2 ;
  Handle< YoYInflationTermStructure > *arg3 = 0 ;
  Volatility arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"YoYInflationCapFloor_impliedVolatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YoYInflationCapFloorPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "1"" of type '" "YoYInflationCapFloorPtr const *""'"); 
  }
  arg1 = reinterpret_cast< YoYInflationCapFloorPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YoYInflationTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YoYInflationTermStructure > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "YoYInflationCapFloor_impliedVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  {
    try {
      result = (Volatility)YoYInflationCapFloorPtr_impliedVolatility__SWIG_0((YoYInflationCapFloorPtr const *)arg1,arg2,(Handle< YoYInflationTermStructure > const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_YoYInflationCapFloor_impliedVolatility(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[9] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 8) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_YoYInflationCapFloorPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_YoYInflationCapFloor_impliedVolatility__SWIG_4(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_YoYInflationCapFloorPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_YoYInflationCapFloor_impliedVolatility__SWIG_3(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_YoYInflationCapFloorPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
              }
              if (_v) {
                return _wrap_YoYInflationCapFloor_impliedVolatility__SWIG_2(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_YoYInflationCapFloorPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_YoYInflationCapFloor_impliedVolatility__SWIG_1(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_YoYInflationCapFloorPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YoYInflationTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_YoYInflationCapFloor_impliedVolatility__SWIG_0(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'YoYInflationCapFloor_impliedVolatility'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    YoYInflationCapFloorPtr::impliedVolatility(Real,Handle< YoYInflationTermStructure > const &,Volatility,Real,Size,Volatility,Volatility) const\n"
    "    YoYInflationCapFloorPtr::impliedVolatility(Real,Handle< YoYInflationTermStructure > const &,Volatility,Real,Size,Volatility) const\n"
    "    YoYInflationCapFloorPtr::impliedVolatility(Real,Handle< YoYInflationTermStructure > const &,Volatility,Real,Size) const\n"
    "    YoYInflationCapFloorPtr::impliedVolatility(Real,Handle< YoYInflationTermStructure > const &,Volatility,Real) const\n"
    "    YoYInflationCapFloorPtr::impliedVolatility(Real,Handle< YoYInflationTermStructure > const &,Volatility) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_YoYInflationCapFloor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YoYInflationCapFloorPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YoYInflationCapFloor",0,0)) SWIG_fail;
  {
    try {
      result = (YoYInflationCapFloorPtr *)new YoYInflationCapFloorPtr();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YoYInflationCapFloorPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_YoYInflationCapFloor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YoYInflationCapFloorPtr *arg1 = (YoYInflationCapFloorPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YoYInflationCapFloor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YoYInflationCapFloorPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YoYInflationCapFloor" "', argument " "1"" of type '" "YoYInflationCapFloorPtr *""'"); 
  }
  arg1 = reinterpret_cast< YoYInflationCapFloorPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YoYInflationCapFloor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_YoYInflationCapFloorPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_YoYInflationCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  YoYInflationCapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YoYInflationCap",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_YoYInflationCap" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YoYInflationCap" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_YoYInflationCap" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YoYInflationCap" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      result = (YoYInflationCapPtr *)new_YoYInflationCapPtr((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YoYInflationCapPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_YoYInflationCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YoYInflationCapPtr *arg1 = (YoYInflationCapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YoYInflationCap",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YoYInflationCapPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YoYInflationCap" "', argument " "1"" of type '" "YoYInflationCapPtr *""'"); 
  }
  arg1 = reinterpret_cast< YoYInflationCapPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YoYInflationCap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_YoYInflationCapPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_YoYInflationFloor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  YoYInflationFloorPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YoYInflationFloor",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_YoYInflationFloor" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YoYInflationFloor" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_YoYInflationFloor" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YoYInflationFloor" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      result = (YoYInflationFloorPtr *)new_YoYInflationFloorPtr((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YoYInflationFloorPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_YoYInflationFloor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YoYInflationFloorPtr *arg1 = (YoYInflationFloorPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YoYInflationFloor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YoYInflationFloorPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YoYInflationFloor" "', argument " "1"" of type '" "YoYInflationFloorPtr *""'"); 
  }
  arg1 = reinterpret_cast< YoYInflationFloorPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YoYInflationFloor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_YoYInflationFloorPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_YoYInflationCollar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg3 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  YoYInflationCollarPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_YoYInflationCollar",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_YoYInflationCollar" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YoYInflationCollar" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_YoYInflationCollar" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YoYInflationCollar" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_YoYInflationCollar" "', argument " "3"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_YoYInflationCollar" "', argument " "3"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      result = (YoYInflationCollarPtr *)new_YoYInflationCollarPtr((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_YoYInflationCollarPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_YoYInflationCollar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  YoYInflationCollarPtr *arg1 = (YoYInflationCollarPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_YoYInflationCollar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_YoYInflationCollarPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_YoYInflationCollar" "', argument " "1"" of type '" "YoYInflationCollarPtr *""'"); 
  }
  arg1 = reinterpret_cast< YoYInflationCollarPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *YoYInflationCollar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_YoYInflationCollarPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_ShortRateModel___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = (boost::shared_ptr< ShortRateModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  ShortRateModel *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModel___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModel___deref__" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    try {
      result = (ShortRateModel *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ShortRateModel, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModel___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = (boost::shared_ptr< ShortRateModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModel___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModel___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_ShortRateModel_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModel___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = (boost::shared_ptr< ShortRateModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModel___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModel___bool__" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_ShortRateModel_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModel_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = (boost::shared_ptr< ShortRateModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModel_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModel_asObservable" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_ShortRateModel_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ShortRateModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ShortRateModel",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< ShortRateModel > *)new boost::shared_ptr< ShortRateModel >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ShortRateModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = (boost::shared_ptr< ShortRateModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ShortRateModel",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ShortRateModel" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModel_params(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = (boost::shared_ptr< ShortRateModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModel_params",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModel_params" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    try {
      result = (*arg1)->params();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModel_calibrate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = (boost::shared_ptr< ShortRateModel > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  Constraint *arg5 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg6 = 0 ;
  std::vector< bool,std::allocator< bool > > *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  int res7 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModel_calibrate",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModel_calibrate" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ShortRateModel_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ShortRateModel_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ShortRateModel_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ShortRateModel_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  arg5 = reinterpret_cast< Constraint * >(argp5);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ShortRateModel_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    std::vector<bool,std::allocator< bool > > *ptr = (std::vector<bool,std::allocator< bool > > *)0;
    res7 = swig::asptr(obj6, &ptr);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ShortRateModel_calibrate" "', argument " "7"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_calibrate" "', argument " "7"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    arg7 = ptr;
  }
  {
    try {
      (*arg1)->calibrate((std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4,(Constraint const &)*arg5,(std::vector< Real,std::allocator< Real > > const &)*arg6,(std::vector< bool,std::allocator< bool > > const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModel_calibrate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = (boost::shared_ptr< ShortRateModel > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  Constraint *arg5 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModel_calibrate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModel_calibrate" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ShortRateModel_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ShortRateModel_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ShortRateModel_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ShortRateModel_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  arg5 = reinterpret_cast< Constraint * >(argp5);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ShortRateModel_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    try {
      (*arg1)->calibrate((std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4,(Constraint const &)*arg5,(std::vector< Real,std::allocator< Real > > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModel_calibrate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = (boost::shared_ptr< ShortRateModel > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  Constraint *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModel_calibrate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModel_calibrate" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ShortRateModel_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ShortRateModel_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ShortRateModel_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ShortRateModel_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  arg5 = reinterpret_cast< Constraint * >(argp5);
  {
    try {
      (*arg1)->calibrate((std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4,(Constraint const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModel_calibrate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = (boost::shared_ptr< ShortRateModel > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModel_calibrate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModel_calibrate" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ShortRateModel_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ShortRateModel_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ShortRateModel_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  {
    try {
      (*arg1)->calibrate((std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModel_calibrate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_ShortRateModel_calibrate__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Constraint, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_ShortRateModel_calibrate__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Constraint, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< double,std::allocator< double > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_ShortRateModel_calibrate__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Constraint, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< double,std::allocator< double > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = swig::asptr(argv[6], (std::vector<bool,std::allocator< bool > >**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_ShortRateModel_calibrate__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ShortRateModel_calibrate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ShortRateModel::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &,Constraint const &,std::vector< Real,std::allocator< Real > > const &,std::vector< bool,std::allocator< bool > > const &)\n"
    "    ShortRateModel::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &,Constraint const &,std::vector< Real,std::allocator< Real > > const &)\n"
    "    ShortRateModel::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &,Constraint const &)\n"
    "    ShortRateModel::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ShortRateModel_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = (boost::shared_ptr< ShortRateModel > *) 0 ;
  Array *arg2 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModel_value",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModel_value" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ShortRateModel_value" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModel_value" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      result = (Real)(*arg1)->value((Array const &)*arg2,(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModel_endCriteria(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = (boost::shared_ptr< ShortRateModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EndCriteria::Type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModel_endCriteria",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModel_endCriteria" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    try {
      result = (EndCriteria::Type)(*arg1)->endCriteria();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModel_setParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = (boost::shared_ptr< ShortRateModel > *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModel_setParams",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModel_setParams" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      (*arg1)->setParams((Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ShortRateModel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ShortRateModelHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< ShortRateModel > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ShortRateModelHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ShortRateModelHandle" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ShortRateModelHandle" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    try {
      result = (Handle< ShortRateModel > *)new Handle< ShortRateModel >((boost::shared_ptr< ShortRateModel > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_ShortRateModel_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ShortRateModelHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ShortRateModel > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ShortRateModelHandle",0,0)) SWIG_fail;
  {
    try {
      result = (Handle< ShortRateModel > *)new Handle< ShortRateModel >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_ShortRateModel_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ShortRateModelHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_ShortRateModelHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_ShortRateModelHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ShortRateModelHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Handle< ShortRateModel >::Handle(boost::shared_ptr< ShortRateModel > const &)\n"
    "    Handle< ShortRateModel >::Handle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ShortRateModelHandle___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ShortRateModel > *arg1 = (Handle< ShortRateModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< ShortRateModel > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModelHandle___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModelHandle___deref__" "', argument " "1"" of type '" "Handle< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ShortRateModel > * >(argp1);
  {
    try {
      result = (arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< ShortRateModel >(static_cast< const boost::shared_ptr< ShortRateModel >& >(result))), SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModelHandle___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ShortRateModel > *arg1 = (Handle< ShortRateModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModelHandle___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModelHandle___nonzero__" "', argument " "1"" of type '" "Handle< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ShortRateModel > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_ShortRateModel_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModelHandle___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ShortRateModel > *arg1 = (Handle< ShortRateModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModelHandle___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModelHandle___bool__" "', argument " "1"" of type '" "Handle< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ShortRateModel > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_ShortRateModel_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModelHandle_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ShortRateModel > *arg1 = (Handle< ShortRateModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModelHandle_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModelHandle_asObservable" "', argument " "1"" of type '" "Handle< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ShortRateModel > * >(argp1);
  {
    try {
      result = Handle_Sl_ShortRateModel_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ShortRateModelHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ShortRateModel > *arg1 = (Handle< ShortRateModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ShortRateModelHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ShortRateModel_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ShortRateModelHandle" "', argument " "1"" of type '" "Handle< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ShortRateModel > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModelHandle_params(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ShortRateModel > *arg1 = (Handle< ShortRateModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModelHandle_params",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModelHandle_params" "', argument " "1"" of type '" "Handle< ShortRateModel > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ShortRateModel > * >(argp1);
  {
    try {
      result = (*arg1)->params();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModelHandle_calibrate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ShortRateModel > *arg1 = (Handle< ShortRateModel > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  Constraint *arg5 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg6 = 0 ;
  std::vector< bool,std::allocator< bool > > *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  int res7 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModelHandle_calibrate",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModelHandle_calibrate" "', argument " "1"" of type '" "Handle< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ShortRateModel > * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ShortRateModelHandle_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ShortRateModelHandle_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ShortRateModelHandle_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ShortRateModelHandle_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  arg5 = reinterpret_cast< Constraint * >(argp5);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ShortRateModelHandle_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    std::vector<bool,std::allocator< bool > > *ptr = (std::vector<bool,std::allocator< bool > > *)0;
    res7 = swig::asptr(obj6, &ptr);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ShortRateModelHandle_calibrate" "', argument " "7"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_calibrate" "', argument " "7"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    arg7 = ptr;
  }
  {
    try {
      (*arg1)->calibrate((std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4,(Constraint const &)*arg5,(std::vector< Real,std::allocator< Real > > const &)*arg6,(std::vector< bool,std::allocator< bool > > const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModelHandle_calibrate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ShortRateModel > *arg1 = (Handle< ShortRateModel > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  Constraint *arg5 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModelHandle_calibrate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModelHandle_calibrate" "', argument " "1"" of type '" "Handle< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ShortRateModel > * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ShortRateModelHandle_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ShortRateModelHandle_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ShortRateModelHandle_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ShortRateModelHandle_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  arg5 = reinterpret_cast< Constraint * >(argp5);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ShortRateModelHandle_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    try {
      (*arg1)->calibrate((std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4,(Constraint const &)*arg5,(std::vector< Real,std::allocator< Real > > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModelHandle_calibrate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ShortRateModel > *arg1 = (Handle< ShortRateModel > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  Constraint *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModelHandle_calibrate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModelHandle_calibrate" "', argument " "1"" of type '" "Handle< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ShortRateModel > * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ShortRateModelHandle_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ShortRateModelHandle_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ShortRateModelHandle_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ShortRateModelHandle_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  arg5 = reinterpret_cast< Constraint * >(argp5);
  {
    try {
      (*arg1)->calibrate((std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4,(Constraint const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModelHandle_calibrate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ShortRateModel > *arg1 = (Handle< ShortRateModel > *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModelHandle_calibrate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModelHandle_calibrate" "', argument " "1"" of type '" "Handle< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ShortRateModel > * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ShortRateModelHandle_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ShortRateModelHandle_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ShortRateModelHandle_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  {
    try {
      (*arg1)->calibrate((std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModelHandle_calibrate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_ShortRateModelHandle_calibrate__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Constraint, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_ShortRateModelHandle_calibrate__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Constraint, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< double,std::allocator< double > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_ShortRateModelHandle_calibrate__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Constraint, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< double,std::allocator< double > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = swig::asptr(argv[6], (std::vector<bool,std::allocator< bool > >**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_ShortRateModelHandle_calibrate__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ShortRateModelHandle_calibrate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ShortRateModel::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &,Constraint const &,std::vector< Real,std::allocator< Real > > const &,std::vector< bool,std::allocator< bool > > const &)\n"
    "    ShortRateModel::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &,Constraint const &,std::vector< Real,std::allocator< Real > > const &)\n"
    "    ShortRateModel::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &,Constraint const &)\n"
    "    ShortRateModel::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ShortRateModelHandle_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ShortRateModel > *arg1 = (Handle< ShortRateModel > *) 0 ;
  Array *arg2 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModelHandle_value",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModelHandle_value" "', argument " "1"" of type '" "Handle< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ShortRateModel > * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ShortRateModelHandle_value" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ShortRateModelHandle_value" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      result = (Real)(*arg1)->value((Array const &)*arg2,(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModelHandle_endCriteria(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ShortRateModel > *arg1 = (Handle< ShortRateModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EndCriteria::Type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModelHandle_endCriteria",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModelHandle_endCriteria" "', argument " "1"" of type '" "Handle< ShortRateModel > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ShortRateModel > * >(argp1);
  {
    try {
      result = (EndCriteria::Type)(*arg1)->endCriteria();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ShortRateModelHandle_setParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ShortRateModel > *arg1 = (Handle< ShortRateModel > *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ShortRateModelHandle_setParams",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShortRateModelHandle_setParams" "', argument " "1"" of type '" "Handle< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< ShortRateModel > * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      (*arg1)->setParams((Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ShortRateModelHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HandleT_ShortRateModel_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_RelinkableShortRateModelHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  RelinkableHandle< ShortRateModel > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableShortRateModelHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RelinkableShortRateModelHandle" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RelinkableShortRateModelHandle" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    try {
      result = (RelinkableHandle< ShortRateModel > *)new RelinkableHandle< ShortRateModel >((boost::shared_ptr< ShortRateModel > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_ShortRateModel_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableShortRateModelHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< ShortRateModel > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableShortRateModelHandle",0,0)) SWIG_fail;
  {
    try {
      result = (RelinkableHandle< ShortRateModel > *)new RelinkableHandle< ShortRateModel >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_ShortRateModel_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableShortRateModelHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_RelinkableShortRateModelHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_RelinkableShortRateModelHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RelinkableShortRateModelHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    RelinkableHandle< ShortRateModel >::RelinkableHandle(boost::shared_ptr< ShortRateModel > const &)\n"
    "    RelinkableHandle< ShortRateModel >::RelinkableHandle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableShortRateModelHandle_linkTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< ShortRateModel > *arg1 = (RelinkableHandle< ShortRateModel > *) 0 ;
  boost::shared_ptr< ShortRateModel > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableShortRateModelHandle_linkTo",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_ShortRateModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableShortRateModelHandle_linkTo" "', argument " "1"" of type '" "RelinkableHandle< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< ShortRateModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableShortRateModelHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableShortRateModelHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp2);
  {
    try {
      (arg1)->linkTo((boost::shared_ptr< ShortRateModel > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RelinkableShortRateModelHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< ShortRateModel > *arg1 = (RelinkableHandle< ShortRateModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RelinkableShortRateModelHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_ShortRateModel_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RelinkableShortRateModelHandle" "', argument " "1"" of type '" "RelinkableHandle< ShortRateModel > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< ShortRateModel > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RelinkableShortRateModelHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RelinkableHandleT_ShortRateModel_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Vasicek__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  VasicekPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Vasicek",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Vasicek" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Vasicek" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Vasicek" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Vasicek" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Vasicek" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (VasicekPtr *)new_VasicekPtr__SWIG_0(arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VasicekPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Vasicek__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  VasicekPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Vasicek",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Vasicek" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Vasicek" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Vasicek" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Vasicek" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (VasicekPtr *)new_VasicekPtr__SWIG_0(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VasicekPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Vasicek__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Real arg2 ;
  Real arg3 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  VasicekPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Vasicek",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Vasicek" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Vasicek" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Vasicek" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (VasicekPtr *)new_VasicekPtr__SWIG_0(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VasicekPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Vasicek__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Real arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  VasicekPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Vasicek",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Vasicek" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Vasicek" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (VasicekPtr *)new_VasicekPtr__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VasicekPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Vasicek__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  VasicekPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Vasicek",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Vasicek" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  {
    try {
      result = (VasicekPtr *)new_VasicekPtr__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VasicekPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Vasicek__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VasicekPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Vasicek",0,0)) SWIG_fail;
  {
    try {
      result = (VasicekPtr *)new_VasicekPtr__SWIG_0();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VasicekPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Vasicek(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_Vasicek__SWIG_5(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_Vasicek__SWIG_4(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_Vasicek__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_Vasicek__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_Vasicek__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_Vasicek__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Vasicek'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    VasicekPtr::VasicekPtr(Rate,Real,Real,Real,Real)\n"
    "    VasicekPtr::VasicekPtr(Rate,Real,Real,Real)\n"
    "    VasicekPtr::VasicekPtr(Rate,Real,Real)\n"
    "    VasicekPtr::VasicekPtr(Rate,Real)\n"
    "    VasicekPtr::VasicekPtr(Rate)\n"
    "    VasicekPtr::VasicekPtr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Vasicek_discount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VasicekPtr *arg1 = (VasicekPtr *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DiscountFactor result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Vasicek_discount",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VasicekPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Vasicek_discount" "', argument " "1"" of type '" "VasicekPtr const *""'"); 
  }
  arg1 = reinterpret_cast< VasicekPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Vasicek_discount" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (DiscountFactor)VasicekPtr_discount((VasicekPtr const *)arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Vasicek_discountBond(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VasicekPtr *arg1 = (VasicekPtr *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Rate arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Vasicek_discountBond",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VasicekPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Vasicek_discountBond" "', argument " "1"" of type '" "VasicekPtr const *""'"); 
  }
  arg1 = reinterpret_cast< VasicekPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Vasicek_discountBond" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Vasicek_discountBond" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Vasicek_discountBond" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  {
    try {
      result = (Real)VasicekPtr_discountBond((VasicekPtr const *)arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Vasicek(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VasicekPtr *arg1 = (VasicekPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Vasicek",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VasicekPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Vasicek" "', argument " "1"" of type '" "VasicekPtr *""'"); 
  }
  arg1 = reinterpret_cast< VasicekPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Vasicek_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_VasicekPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_HullWhite__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  HullWhitePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HullWhite",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HullWhite" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HullWhite" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HullWhite" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_HullWhite" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (HullWhitePtr *)new_HullWhitePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HullWhitePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_HullWhite__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  HullWhitePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HullWhite",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HullWhite" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HullWhite" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HullWhite" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (HullWhitePtr *)new_HullWhitePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HullWhitePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_HullWhite__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  HullWhitePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HullWhite",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HullWhite" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HullWhite" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (HullWhitePtr *)new_HullWhitePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HullWhitePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_HullWhite(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_HullWhite__SWIG_2(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_HullWhite__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_HullWhite__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_HullWhite'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    HullWhitePtr::HullWhitePtr(Handle< YieldTermStructure > const &,Real,Real)\n"
    "    HullWhitePtr::HullWhitePtr(Handle< YieldTermStructure > const &,Real)\n"
    "    HullWhitePtr::HullWhitePtr(Handle< YieldTermStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_HullWhite_discount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HullWhitePtr *arg1 = (HullWhitePtr *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DiscountFactor result;
  
  if(!PyArg_UnpackTuple(args,(char *)"HullWhite_discount",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HullWhitePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HullWhite_discount" "', argument " "1"" of type '" "HullWhitePtr const *""'"); 
  }
  arg1 = reinterpret_cast< HullWhitePtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HullWhite_discount" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (DiscountFactor)HullWhitePtr_discount((HullWhitePtr const *)arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HullWhite_discountBond(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HullWhitePtr *arg1 = (HullWhitePtr *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Rate arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"HullWhite_discountBond",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HullWhitePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HullWhite_discountBond" "', argument " "1"" of type '" "HullWhitePtr const *""'"); 
  }
  arg1 = reinterpret_cast< HullWhitePtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HullWhite_discountBond" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HullWhite_discountBond" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HullWhite_discountBond" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  {
    try {
      result = (Real)HullWhitePtr_discountBond((HullWhitePtr const *)arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HullWhite_convexityBias(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Time arg2 ;
  Time arg3 ;
  Real arg4 ;
  Real arg5 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"HullWhite_convexityBias",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "HullWhite_convexityBias" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HullWhite_convexityBias" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HullWhite_convexityBias" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HullWhite_convexityBias" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "HullWhite_convexityBias" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Rate)HullWhitePtr_convexityBias(arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_HullWhite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HullWhitePtr *arg1 = (HullWhitePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_HullWhite",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HullWhitePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HullWhite" "', argument " "1"" of type '" "HullWhitePtr *""'"); 
  }
  arg1 = reinterpret_cast< HullWhitePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *HullWhite_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HullWhitePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BlackKarasinski__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  BlackKarasinskiPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackKarasinski",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackKarasinski" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackKarasinski" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BlackKarasinski" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BlackKarasinski" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (BlackKarasinskiPtr *)new_BlackKarasinskiPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackKarasinskiPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackKarasinski__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BlackKarasinskiPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackKarasinski",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackKarasinski" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackKarasinski" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BlackKarasinski" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (BlackKarasinskiPtr *)new_BlackKarasinskiPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackKarasinskiPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackKarasinski__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BlackKarasinskiPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackKarasinski",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackKarasinski" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackKarasinski" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (BlackKarasinskiPtr *)new_BlackKarasinskiPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackKarasinskiPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackKarasinski(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_BlackKarasinski__SWIG_2(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_BlackKarasinski__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_BlackKarasinski__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BlackKarasinski'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BlackKarasinskiPtr::BlackKarasinskiPtr(Handle< YieldTermStructure > const &,Real,Real)\n"
    "    BlackKarasinskiPtr::BlackKarasinskiPtr(Handle< YieldTermStructure > const &,Real)\n"
    "    BlackKarasinskiPtr::BlackKarasinskiPtr(Handle< YieldTermStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_BlackKarasinski(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackKarasinskiPtr *arg1 = (BlackKarasinskiPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BlackKarasinski",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackKarasinskiPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlackKarasinski" "', argument " "1"" of type '" "BlackKarasinskiPtr *""'"); 
  }
  arg1 = reinterpret_cast< BlackKarasinskiPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BlackKarasinski_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BlackKarasinskiPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_G2__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  G2Ptr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_G2",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_G2" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_G2" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_G2" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_G2" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_G2" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_G2" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_G2" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (G2Ptr *)new_G2Ptr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_G2Ptr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_G2__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  G2Ptr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_G2",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_G2" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_G2" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_G2" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_G2" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_G2" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_G2" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (G2Ptr *)new_G2Ptr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_G2Ptr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_G2__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  G2Ptr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_G2",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_G2" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_G2" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_G2" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_G2" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_G2" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (G2Ptr *)new_G2Ptr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_G2Ptr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_G2__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  G2Ptr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_G2",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_G2" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_G2" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_G2" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_G2" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (G2Ptr *)new_G2Ptr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_G2Ptr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_G2__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  G2Ptr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_G2",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_G2" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_G2" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_G2" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (G2Ptr *)new_G2Ptr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_G2Ptr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_G2__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  G2Ptr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_G2",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_G2" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_G2" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (G2Ptr *)new_G2Ptr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_G2Ptr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_G2(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_G2__SWIG_5(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_G2__SWIG_4(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_G2__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_G2__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_G2__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_G2__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_G2'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    G2Ptr::G2Ptr(Handle< YieldTermStructure > const &,Real,Real,Real,Real,Real)\n"
    "    G2Ptr::G2Ptr(Handle< YieldTermStructure > const &,Real,Real,Real,Real)\n"
    "    G2Ptr::G2Ptr(Handle< YieldTermStructure > const &,Real,Real,Real)\n"
    "    G2Ptr::G2Ptr(Handle< YieldTermStructure > const &,Real,Real)\n"
    "    G2Ptr::G2Ptr(Handle< YieldTermStructure > const &,Real)\n"
    "    G2Ptr::G2Ptr(Handle< YieldTermStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_G2_discount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  G2Ptr *arg1 = (G2Ptr *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DiscountFactor result;
  
  if(!PyArg_UnpackTuple(args,(char *)"G2_discount",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_G2Ptr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "G2_discount" "', argument " "1"" of type '" "G2Ptr const *""'"); 
  }
  arg1 = reinterpret_cast< G2Ptr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "G2_discount" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (DiscountFactor)G2Ptr_discount((G2Ptr const *)arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_G2_discountBond(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  G2Ptr *arg1 = (G2Ptr *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Rate arg4 ;
  Rate arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"G2_discountBond",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_G2Ptr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "G2_discountBond" "', argument " "1"" of type '" "G2Ptr const *""'"); 
  }
  arg1 = reinterpret_cast< G2Ptr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "G2_discountBond" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "G2_discountBond" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "G2_discountBond" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "G2_discountBond" "', argument " "5"" of type '" "Rate""'");
  } 
  arg5 = static_cast< Rate >(val5);
  {
    try {
      result = (Real)G2Ptr_discountBond((G2Ptr const *)arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_G2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  G2Ptr *arg1 = (G2Ptr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_G2",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_G2Ptr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_G2" "', argument " "1"" of type '" "G2Ptr *""'"); 
  }
  arg1 = reinterpret_cast< G2Ptr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *G2_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_G2Ptr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_JamshidianSwaptionEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  JamshidianSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_JamshidianSwaptionEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_JamshidianSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JamshidianSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_JamshidianSwaptionEngine" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JamshidianSwaptionEngine" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (JamshidianSwaptionEnginePtr *)new_JamshidianSwaptionEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_JamshidianSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_JamshidianSwaptionEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  JamshidianSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_JamshidianSwaptionEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_JamshidianSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_JamshidianSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    try {
      result = (JamshidianSwaptionEnginePtr *)new_JamshidianSwaptionEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_JamshidianSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_JamshidianSwaptionEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_JamshidianSwaptionEngine__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_JamshidianSwaptionEngine__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_JamshidianSwaptionEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    JamshidianSwaptionEnginePtr::JamshidianSwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &,Handle< YieldTermStructure > const &)\n"
    "    JamshidianSwaptionEnginePtr::JamshidianSwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_JamshidianSwaptionEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  JamshidianSwaptionEnginePtr *arg1 = (JamshidianSwaptionEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_JamshidianSwaptionEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_JamshidianSwaptionEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_JamshidianSwaptionEngine" "', argument " "1"" of type '" "JamshidianSwaptionEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< JamshidianSwaptionEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *JamshidianSwaptionEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_JamshidianSwaptionEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_TreeSwaptionEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  TreeSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TreeSwaptionEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeSwaptionEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeSwaptionEngine" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeSwaptionEngine" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  {
    try {
      result = (TreeSwaptionEnginePtr *)new_TreeSwaptionEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,arg2,(Handle< YieldTermStructure > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TreeSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TreeSwaptionEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TreeSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TreeSwaptionEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeSwaptionEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (TreeSwaptionEnginePtr *)new_TreeSwaptionEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TreeSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TreeSwaptionEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  TimeGrid *arg2 = 0 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  TreeSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TreeSwaptionEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TimeGrid,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeSwaptionEngine" "', argument " "2"" of type '" "TimeGrid const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeSwaptionEngine" "', argument " "2"" of type '" "TimeGrid const &""'"); 
  }
  arg2 = reinterpret_cast< TimeGrid * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeSwaptionEngine" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeSwaptionEngine" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  {
    try {
      result = (TreeSwaptionEnginePtr *)new_TreeSwaptionEnginePtr__SWIG_2((boost::shared_ptr< ShortRateModel > const &)*arg1,(TimeGrid const &)*arg2,(Handle< YieldTermStructure > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TreeSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TreeSwaptionEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  TimeGrid *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TreeSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TreeSwaptionEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TimeGrid,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeSwaptionEngine" "', argument " "2"" of type '" "TimeGrid const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeSwaptionEngine" "', argument " "2"" of type '" "TimeGrid const &""'"); 
  }
  arg2 = reinterpret_cast< TimeGrid * >(argp2);
  {
    try {
      result = (TreeSwaptionEnginePtr *)new_TreeSwaptionEnginePtr__SWIG_2((boost::shared_ptr< ShortRateModel > const &)*arg1,(TimeGrid const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TreeSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TreeSwaptionEngine__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  TreeSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TreeSwaptionEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeSwaptionEngine" "', argument " "1"" of type '" "Handle< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeSwaptionEngine" "', argument " "1"" of type '" "Handle< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeSwaptionEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeSwaptionEngine" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeSwaptionEngine" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  {
    try {
      result = (TreeSwaptionEnginePtr *)new_TreeSwaptionEnginePtr__SWIG_4((Handle< ShortRateModel > const &)*arg1,arg2,(Handle< YieldTermStructure > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TreeSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TreeSwaptionEngine__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TreeSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TreeSwaptionEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeSwaptionEngine" "', argument " "1"" of type '" "Handle< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeSwaptionEngine" "', argument " "1"" of type '" "Handle< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeSwaptionEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (TreeSwaptionEnginePtr *)new_TreeSwaptionEnginePtr__SWIG_4((Handle< ShortRateModel > const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TreeSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TreeSwaptionEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_TimeGrid, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_TreeSwaptionEngine__SWIG_3(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_TreeSwaptionEngine__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_TreeSwaptionEngine__SWIG_5(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_TimeGrid, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_TreeSwaptionEngine__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_TreeSwaptionEngine__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_TreeSwaptionEngine__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_TreeSwaptionEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    TreeSwaptionEnginePtr::TreeSwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &,Size,Handle< YieldTermStructure > const &)\n"
    "    TreeSwaptionEnginePtr::TreeSwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &,Size)\n"
    "    TreeSwaptionEnginePtr::TreeSwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &,TimeGrid const &,Handle< YieldTermStructure > const &)\n"
    "    TreeSwaptionEnginePtr::TreeSwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &,TimeGrid const &)\n"
    "    TreeSwaptionEnginePtr::TreeSwaptionEnginePtr(Handle< ShortRateModel > const &,Size,Handle< YieldTermStructure > const &)\n"
    "    TreeSwaptionEnginePtr::TreeSwaptionEnginePtr(Handle< ShortRateModel > const &,Size)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_TreeSwaptionEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TreeSwaptionEnginePtr *arg1 = (TreeSwaptionEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_TreeSwaptionEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TreeSwaptionEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeSwaptionEngine" "', argument " "1"" of type '" "TreeSwaptionEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< TreeSwaptionEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TreeSwaptionEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_TreeSwaptionEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AnalyticCapFloorEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  AnalyticCapFloorEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticCapFloorEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticCapFloorEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticCapFloorEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AnalyticCapFloorEngine" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticCapFloorEngine" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (AnalyticCapFloorEnginePtr *)new_AnalyticCapFloorEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticCapFloorEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_AnalyticCapFloorEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  AnalyticCapFloorEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_AnalyticCapFloorEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AnalyticCapFloorEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AnalyticCapFloorEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    try {
      result = (AnalyticCapFloorEnginePtr *)new_AnalyticCapFloorEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AnalyticCapFloorEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_AnalyticCapFloorEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_AnalyticCapFloorEngine__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_AnalyticCapFloorEngine__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_AnalyticCapFloorEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    AnalyticCapFloorEnginePtr::AnalyticCapFloorEnginePtr(boost::shared_ptr< ShortRateModel > const &,Handle< YieldTermStructure > const &)\n"
    "    AnalyticCapFloorEnginePtr::AnalyticCapFloorEnginePtr(boost::shared_ptr< ShortRateModel > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_AnalyticCapFloorEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AnalyticCapFloorEnginePtr *arg1 = (AnalyticCapFloorEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AnalyticCapFloorEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AnalyticCapFloorEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AnalyticCapFloorEngine" "', argument " "1"" of type '" "AnalyticCapFloorEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< AnalyticCapFloorEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AnalyticCapFloorEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AnalyticCapFloorEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_TreeCapFloorEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  TreeCapFloorEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TreeCapFloorEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCapFloorEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCapFloorEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCapFloorEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeCapFloorEngine" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCapFloorEngine" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  {
    try {
      result = (TreeCapFloorEnginePtr *)new_TreeCapFloorEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,arg2,(Handle< YieldTermStructure > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TreeCapFloorEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TreeCapFloorEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TreeCapFloorEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TreeCapFloorEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCapFloorEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCapFloorEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCapFloorEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (TreeCapFloorEnginePtr *)new_TreeCapFloorEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TreeCapFloorEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TreeCapFloorEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  TimeGrid *arg2 = 0 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  TreeCapFloorEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TreeCapFloorEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCapFloorEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCapFloorEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TimeGrid,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeCapFloorEngine" "', argument " "2"" of type '" "TimeGrid const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCapFloorEngine" "', argument " "2"" of type '" "TimeGrid const &""'"); 
  }
  arg2 = reinterpret_cast< TimeGrid * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeCapFloorEngine" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCapFloorEngine" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  {
    try {
      result = (TreeCapFloorEnginePtr *)new_TreeCapFloorEnginePtr__SWIG_2((boost::shared_ptr< ShortRateModel > const &)*arg1,(TimeGrid const &)*arg2,(Handle< YieldTermStructure > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TreeCapFloorEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TreeCapFloorEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  TimeGrid *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TreeCapFloorEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TreeCapFloorEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCapFloorEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCapFloorEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TimeGrid,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeCapFloorEngine" "', argument " "2"" of type '" "TimeGrid const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCapFloorEngine" "', argument " "2"" of type '" "TimeGrid const &""'"); 
  }
  arg2 = reinterpret_cast< TimeGrid * >(argp2);
  {
    try {
      result = (TreeCapFloorEnginePtr *)new_TreeCapFloorEnginePtr__SWIG_2((boost::shared_ptr< ShortRateModel > const &)*arg1,(TimeGrid const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TreeCapFloorEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TreeCapFloorEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_TimeGrid, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_TreeCapFloorEngine__SWIG_3(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_TreeCapFloorEngine__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_TimeGrid, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_TreeCapFloorEngine__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_TreeCapFloorEngine__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_TreeCapFloorEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    TreeCapFloorEnginePtr::TreeCapFloorEnginePtr(boost::shared_ptr< ShortRateModel > const &,Size,Handle< YieldTermStructure > const &)\n"
    "    TreeCapFloorEnginePtr::TreeCapFloorEnginePtr(boost::shared_ptr< ShortRateModel > const &,Size)\n"
    "    TreeCapFloorEnginePtr::TreeCapFloorEnginePtr(boost::shared_ptr< ShortRateModel > const &,TimeGrid const &,Handle< YieldTermStructure > const &)\n"
    "    TreeCapFloorEnginePtr::TreeCapFloorEnginePtr(boost::shared_ptr< ShortRateModel > const &,TimeGrid const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_TreeCapFloorEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TreeCapFloorEnginePtr *arg1 = (TreeCapFloorEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_TreeCapFloorEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TreeCapFloorEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeCapFloorEngine" "', argument " "1"" of type '" "TreeCapFloorEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< TreeCapFloorEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TreeCapFloorEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_TreeCapFloorEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_G2SwaptionEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Real arg2 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  G2SwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_G2SwaptionEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_G2SwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_G2SwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_G2SwaptionEngine" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_G2SwaptionEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (G2SwaptionEnginePtr *)new_G2SwaptionEnginePtr((boost::shared_ptr< ShortRateModel > const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_G2SwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_G2SwaptionEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  G2SwaptionEnginePtr *arg1 = (G2SwaptionEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_G2SwaptionEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_G2SwaptionEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_G2SwaptionEngine" "', argument " "1"" of type '" "G2SwaptionEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< G2SwaptionEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *G2SwaptionEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_G2SwaptionEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FdG2SwaptionEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  Size arg4 ;
  Size arg5 ;
  Real arg6 ;
  FdmSchemeDesc *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  size_t val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  FdG2SwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdG2SwaptionEngine",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdG2SwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdG2SwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdG2SwaptionEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdG2SwaptionEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FdG2SwaptionEngine" "', argument " "4"" of type '" "Size""'");
  } 
  arg4 = static_cast< Size >(val4);
  ecode5 = SWIG_AsVal_size_t(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FdG2SwaptionEngine" "', argument " "5"" of type '" "Size""'");
  } 
  arg5 = static_cast< Size >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FdG2SwaptionEngine" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_FdmSchemeDesc,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FdG2SwaptionEngine" "', argument " "7"" of type '" "FdmSchemeDesc const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdG2SwaptionEngine" "', argument " "7"" of type '" "FdmSchemeDesc const &""'"); 
  }
  arg7 = reinterpret_cast< FdmSchemeDesc * >(argp7);
  {
    try {
      result = (FdG2SwaptionEnginePtr *)new_FdG2SwaptionEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,arg2,arg3,arg4,arg5,arg6,(FdmSchemeDesc const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdG2SwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdG2SwaptionEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  Size arg4 ;
  Size arg5 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  size_t val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  FdG2SwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdG2SwaptionEngine",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdG2SwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdG2SwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdG2SwaptionEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdG2SwaptionEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FdG2SwaptionEngine" "', argument " "4"" of type '" "Size""'");
  } 
  arg4 = static_cast< Size >(val4);
  ecode5 = SWIG_AsVal_size_t(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FdG2SwaptionEngine" "', argument " "5"" of type '" "Size""'");
  } 
  arg5 = static_cast< Size >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FdG2SwaptionEngine" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (FdG2SwaptionEnginePtr *)new_FdG2SwaptionEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdG2SwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdG2SwaptionEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  Size arg4 ;
  Size arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  size_t val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  FdG2SwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdG2SwaptionEngine",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdG2SwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdG2SwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdG2SwaptionEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdG2SwaptionEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FdG2SwaptionEngine" "', argument " "4"" of type '" "Size""'");
  } 
  arg4 = static_cast< Size >(val4);
  ecode5 = SWIG_AsVal_size_t(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FdG2SwaptionEngine" "', argument " "5"" of type '" "Size""'");
  } 
  arg5 = static_cast< Size >(val5);
  {
    try {
      result = (FdG2SwaptionEnginePtr *)new_FdG2SwaptionEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdG2SwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdG2SwaptionEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  Size arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FdG2SwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdG2SwaptionEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdG2SwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdG2SwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdG2SwaptionEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdG2SwaptionEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FdG2SwaptionEngine" "', argument " "4"" of type '" "Size""'");
  } 
  arg4 = static_cast< Size >(val4);
  {
    try {
      result = (FdG2SwaptionEnginePtr *)new_FdG2SwaptionEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdG2SwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdG2SwaptionEngine__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  FdG2SwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdG2SwaptionEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdG2SwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdG2SwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdG2SwaptionEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdG2SwaptionEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (FdG2SwaptionEnginePtr *)new_FdG2SwaptionEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdG2SwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdG2SwaptionEngine__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  FdG2SwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdG2SwaptionEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdG2SwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdG2SwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdG2SwaptionEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (FdG2SwaptionEnginePtr *)new_FdG2SwaptionEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdG2SwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdG2SwaptionEngine__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  FdG2SwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdG2SwaptionEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdG2SwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdG2SwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    try {
      result = (FdG2SwaptionEnginePtr *)new_FdG2SwaptionEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdG2SwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdG2SwaptionEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_FdG2SwaptionEngine__SWIG_6(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_FdG2SwaptionEngine__SWIG_5(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          return _wrap_new_FdG2SwaptionEngine__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
          }
          if (_v) {
            return _wrap_new_FdG2SwaptionEngine__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
          }
          if (_v) {
            {
              _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
            }
            if (_v) {
              return _wrap_new_FdG2SwaptionEngine__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
          }
          if (_v) {
            {
              _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_FdG2SwaptionEngine__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
          }
          if (_v) {
            {
              _v = (PyInt_Check(argv[4]) || PyLong_Check(argv[4])) ? 1 : 0;
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_FdmSchemeDesc, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_FdG2SwaptionEngine__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FdG2SwaptionEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FdG2SwaptionEnginePtr::FdG2SwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &,Size,Size,Size,Size,Real,FdmSchemeDesc const &)\n"
    "    FdG2SwaptionEnginePtr::FdG2SwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &,Size,Size,Size,Size,Real)\n"
    "    FdG2SwaptionEnginePtr::FdG2SwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &,Size,Size,Size,Size)\n"
    "    FdG2SwaptionEnginePtr::FdG2SwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &,Size,Size,Size)\n"
    "    FdG2SwaptionEnginePtr::FdG2SwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &,Size,Size)\n"
    "    FdG2SwaptionEnginePtr::FdG2SwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &,Size)\n"
    "    FdG2SwaptionEnginePtr::FdG2SwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FdG2SwaptionEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FdG2SwaptionEnginePtr *arg1 = (FdG2SwaptionEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FdG2SwaptionEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FdG2SwaptionEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FdG2SwaptionEngine" "', argument " "1"" of type '" "FdG2SwaptionEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< FdG2SwaptionEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FdG2SwaptionEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FdG2SwaptionEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FdHullWhiteSwaptionEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  Size arg4 ;
  Real arg5 ;
  FdmSchemeDesc *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  FdHullWhiteSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdHullWhiteSwaptionEngine",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "4"" of type '" "Size""'");
  } 
  arg4 = static_cast< Size >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_FdmSchemeDesc,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "6"" of type '" "FdmSchemeDesc const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "6"" of type '" "FdmSchemeDesc const &""'"); 
  }
  arg6 = reinterpret_cast< FdmSchemeDesc * >(argp6);
  {
    try {
      result = (FdHullWhiteSwaptionEnginePtr *)new_FdHullWhiteSwaptionEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,arg2,arg3,arg4,arg5,(FdmSchemeDesc const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdHullWhiteSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdHullWhiteSwaptionEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  Size arg4 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  FdHullWhiteSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdHullWhiteSwaptionEngine",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "4"" of type '" "Size""'");
  } 
  arg4 = static_cast< Size >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (FdHullWhiteSwaptionEnginePtr *)new_FdHullWhiteSwaptionEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdHullWhiteSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdHullWhiteSwaptionEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  Size arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FdHullWhiteSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdHullWhiteSwaptionEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_size_t(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "4"" of type '" "Size""'");
  } 
  arg4 = static_cast< Size >(val4);
  {
    try {
      result = (FdHullWhiteSwaptionEnginePtr *)new_FdHullWhiteSwaptionEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdHullWhiteSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdHullWhiteSwaptionEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  FdHullWhiteSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdHullWhiteSwaptionEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (FdHullWhiteSwaptionEnginePtr *)new_FdHullWhiteSwaptionEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdHullWhiteSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdHullWhiteSwaptionEngine__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  FdHullWhiteSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdHullWhiteSwaptionEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (FdHullWhiteSwaptionEnginePtr *)new_FdHullWhiteSwaptionEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdHullWhiteSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdHullWhiteSwaptionEngine__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  FdHullWhiteSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FdHullWhiteSwaptionEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FdHullWhiteSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  {
    try {
      result = (FdHullWhiteSwaptionEnginePtr *)new_FdHullWhiteSwaptionEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FdHullWhiteSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FdHullWhiteSwaptionEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_FdHullWhiteSwaptionEngine__SWIG_5(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_FdHullWhiteSwaptionEngine__SWIG_4(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          return _wrap_new_FdHullWhiteSwaptionEngine__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
          }
          if (_v) {
            return _wrap_new_FdHullWhiteSwaptionEngine__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_FdHullWhiteSwaptionEngine__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0;
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_FdmSchemeDesc, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_FdHullWhiteSwaptionEngine__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FdHullWhiteSwaptionEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FdHullWhiteSwaptionEnginePtr::FdHullWhiteSwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &,Size,Size,Size,Real,FdmSchemeDesc const &)\n"
    "    FdHullWhiteSwaptionEnginePtr::FdHullWhiteSwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &,Size,Size,Size,Real)\n"
    "    FdHullWhiteSwaptionEnginePtr::FdHullWhiteSwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &,Size,Size,Size)\n"
    "    FdHullWhiteSwaptionEnginePtr::FdHullWhiteSwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &,Size,Size)\n"
    "    FdHullWhiteSwaptionEnginePtr::FdHullWhiteSwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &,Size)\n"
    "    FdHullWhiteSwaptionEnginePtr::FdHullWhiteSwaptionEnginePtr(boost::shared_ptr< ShortRateModel > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FdHullWhiteSwaptionEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FdHullWhiteSwaptionEnginePtr *arg1 = (FdHullWhiteSwaptionEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FdHullWhiteSwaptionEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FdHullWhiteSwaptionEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FdHullWhiteSwaptionEngine" "', argument " "1"" of type '" "FdHullWhiteSwaptionEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< FdHullWhiteSwaptionEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FdHullWhiteSwaptionEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FdHullWhiteSwaptionEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Bond__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  Real arg3 ;
  Date *arg4 = 0 ;
  Date *arg5 = 0 ;
  Leg *arg6 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  BondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bond",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Bond" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Bond" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bond" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Bond" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Bond" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bond" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_Bond" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bond" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_Bond" "', argument " "6"" of type '" "Leg const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bond" "', argument " "6"" of type '" "Leg const &""'"); 
    }
    arg6 = ptr;
  }
  {
    try {
      result = (BondPtr *)new_BondPtr__SWIG_0(arg1,(Calendar const &)*arg2,arg3,(Date const &)*arg4,(Date const &)*arg5,(std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bond__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  Real arg3 ;
  Date *arg4 = 0 ;
  Date *arg5 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  BondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bond",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Bond" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Bond" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bond" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Bond" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Bond" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bond" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_Bond" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bond" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  {
    try {
      result = (BondPtr *)new_BondPtr__SWIG_0(arg1,(Calendar const &)*arg2,arg3,(Date const &)*arg4,(Date const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BondPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bond__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  Real arg3 ;
  Date *arg4 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  BondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Bond",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Bond" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Bond" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bond" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Bond" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Bond" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Bond" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  {
    try {
      result = (BondPtr *)new_BondPtr__SWIG_0(arg1,(Calendar const &)*arg2,arg3,(Date const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BondPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Bond(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_Bond__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_Bond__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_Bond__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Bond'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondPtr::BondPtr(Natural,Calendar const &,Real,Date const &,Date const &,Leg const &)\n"
    "    BondPtr::BondPtr(Natural,Calendar const &,Real,Date const &,Date const &)\n"
    "    BondPtr::BondPtr(Natural,Calendar const &,Real,Date const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Bond_nextCouponRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_nextCouponRate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_nextCouponRate" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bond_nextCouponRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_nextCouponRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Rate)BondPtr_nextCouponRate__SWIG_0(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_nextCouponRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_nextCouponRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_nextCouponRate" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = (Rate)BondPtr_nextCouponRate__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_nextCouponRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_Bond_nextCouponRate__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_Bond_nextCouponRate__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Bond_nextCouponRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondPtr::nextCouponRate(Date const &)\n"
    "    BondPtr::nextCouponRate()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Bond_previousCouponRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_previousCouponRate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_previousCouponRate" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bond_previousCouponRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_previousCouponRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Rate)BondPtr_previousCouponRate__SWIG_0(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_previousCouponRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_previousCouponRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_previousCouponRate" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = (Rate)BondPtr_previousCouponRate__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_previousCouponRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_Bond_previousCouponRate__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_Bond_previousCouponRate__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Bond_previousCouponRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondPtr::previousCouponRate(Date const &)\n"
    "    BondPtr::previousCouponRate()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Bond_settlementDays(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Natural result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_settlementDays",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_settlementDays" "', argument " "1"" of type '" "BondPtr const *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = (Natural)BondPtr_settlementDays((BondPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_settlementDate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  Date arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_settlementDate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_settlementDate" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bond_settlementDate" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_settlementDate" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    try {
      result = BondPtr_settlementDate__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_settlementDate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_settlementDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_settlementDate" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = BondPtr_settlementDate__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_settlementDate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_Bond_settlementDate__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_Bond_settlementDate__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Bond_settlementDate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondPtr::settlementDate(Date)\n"
    "    BondPtr::settlementDate()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Bond_startDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_startDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_startDate" "', argument " "1"" of type '" "BondPtr const *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = BondPtr_startDate((BondPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_maturityDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_maturityDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_maturityDate" "', argument " "1"" of type '" "BondPtr const *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = BondPtr_maturityDate((BondPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_issueDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_issueDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_issueDate" "', argument " "1"" of type '" "BondPtr const *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = BondPtr_issueDate((BondPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_cashflows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_cashflows",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_cashflows" "', argument " "1"" of type '" "BondPtr const *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = BondPtr_cashflows((BondPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_redemptions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_redemptions",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_redemptions" "', argument " "1"" of type '" "BondPtr const *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = BondPtr_redemptions((BondPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_redemption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< CashFlow > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_redemption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_redemption" "', argument " "1"" of type '" "BondPtr const *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = BondPtr_redemption((BondPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< CashFlow >(static_cast< const boost::shared_ptr< CashFlow >& >(result))), SWIGTYPE_p_boost__shared_ptrT_CashFlow_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_calendar" "', argument " "1"" of type '" "BondPtr const *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = BondPtr_calendar((BondPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_notionals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_notionals",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_notionals" "', argument " "1"" of type '" "BondPtr const *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = BondPtr_notionals((BondPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_notional__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  Date arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_notional",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_notional" "', argument " "1"" of type '" "BondPtr const *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bond_notional" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_notional" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    try {
      result = (Real)BondPtr_notional__SWIG_0((BondPtr const *)arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_notional__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_notional",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_notional" "', argument " "1"" of type '" "BondPtr const *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = (Real)BondPtr_notional__SWIG_0((BondPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_notional(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_Bond_notional__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_Bond_notional__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Bond_notional'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondPtr::notional(Date) const\n"
    "    BondPtr::notional() const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Bond_cleanPrice__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_cleanPrice",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_cleanPrice" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = (Real)BondPtr_cleanPrice__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_cleanPrice__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Date *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_cleanPrice",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_cleanPrice" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bond_cleanPrice" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Bond_cleanPrice" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_cleanPrice" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Bond_cleanPrice" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Bond_cleanPrice" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Bond_cleanPrice" "', argument " "6"" of type '" "Date const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_cleanPrice" "', argument " "6"" of type '" "Date const &""'"); 
  }
  arg6 = reinterpret_cast< Date * >(argp6);
  {
    try {
      result = (Real)BondPtr_cleanPrice__SWIG_1(arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,(Date const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_cleanPrice__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_cleanPrice",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_cleanPrice" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bond_cleanPrice" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Bond_cleanPrice" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_cleanPrice" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Bond_cleanPrice" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Bond_cleanPrice" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    try {
      result = (Real)BondPtr_cleanPrice__SWIG_1(arg1,arg2,(DayCounter const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_cleanPrice(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_Bond_cleanPrice__SWIG_0(self, args);
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_Bond_cleanPrice__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_Bond_cleanPrice__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Bond_cleanPrice'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondPtr::cleanPrice()\n"
    "    BondPtr::cleanPrice(Rate,DayCounter const &,Compounding,Frequency,Date const &)\n"
    "    BondPtr::cleanPrice(Rate,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Bond_dirtyPrice__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_dirtyPrice",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_dirtyPrice" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = (Real)BondPtr_dirtyPrice__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_dirtyPrice__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Date *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_dirtyPrice",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_dirtyPrice" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bond_dirtyPrice" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Bond_dirtyPrice" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_dirtyPrice" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Bond_dirtyPrice" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Bond_dirtyPrice" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Bond_dirtyPrice" "', argument " "6"" of type '" "Date const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_dirtyPrice" "', argument " "6"" of type '" "Date const &""'"); 
  }
  arg6 = reinterpret_cast< Date * >(argp6);
  {
    try {
      result = (Real)BondPtr_dirtyPrice__SWIG_1(arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,(Date const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_dirtyPrice__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_dirtyPrice",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_dirtyPrice" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bond_dirtyPrice" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Bond_dirtyPrice" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_dirtyPrice" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Bond_dirtyPrice" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Bond_dirtyPrice" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    try {
      result = (Real)BondPtr_dirtyPrice__SWIG_1(arg1,arg2,(DayCounter const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_dirtyPrice(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_Bond_dirtyPrice__SWIG_0(self, args);
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_Bond_dirtyPrice__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_Bond_dirtyPrice__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Bond_dirtyPrice'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondPtr::dirtyPrice()\n"
    "    BondPtr::dirtyPrice(Rate,DayCounter const &,Compounding,Frequency,Date const &)\n"
    "    BondPtr::dirtyPrice(Rate,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Bond_bondYield__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  DayCounter *arg2 = 0 ;
  Compounding arg3 ;
  Frequency arg4 ;
  Real arg5 ;
  Size arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  size_t val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_bondYield",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_bondYield" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bond_bondYield" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_bondYield" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  arg2 = reinterpret_cast< DayCounter * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bond_bondYield" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Bond_bondYield" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Bond_bondYield" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_size_t(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Bond_bondYield" "', argument " "6"" of type '" "Size""'");
  } 
  arg6 = static_cast< Size >(val6);
  {
    try {
      result = (Real)BondPtr_yield__SWIG_0(arg1,(DayCounter const &)*arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_bondYield__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  DayCounter *arg2 = 0 ;
  Compounding arg3 ;
  Frequency arg4 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_bondYield",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_bondYield" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bond_bondYield" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_bondYield" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  arg2 = reinterpret_cast< DayCounter * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bond_bondYield" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Bond_bondYield" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Bond_bondYield" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Real)BondPtr_yield__SWIG_0(arg1,(DayCounter const &)*arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_bondYield__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  DayCounter *arg2 = 0 ;
  Compounding arg3 ;
  Frequency arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_bondYield",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_bondYield" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bond_bondYield" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_bondYield" "', argument " "2"" of type '" "DayCounter const &""'"); 
  }
  arg2 = reinterpret_cast< DayCounter * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bond_bondYield" "', argument " "3"" of type '" "Compounding""'");
  } 
  arg3 = static_cast< Compounding >(val3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Bond_bondYield" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  {
    try {
      result = (Real)BondPtr_yield__SWIG_0(arg1,(DayCounter const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_bondYield__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  Real arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Date *arg6 = 0 ;
  Real arg7 ;
  Size arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  size_t val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_bondYield",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_bondYield" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bond_bondYield" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Bond_bondYield" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_bondYield" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Bond_bondYield" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Bond_bondYield" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Bond_bondYield" "', argument " "6"" of type '" "Date const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_bondYield" "', argument " "6"" of type '" "Date const &""'"); 
  }
  arg6 = reinterpret_cast< Date * >(argp6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Bond_bondYield" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  ecode8 = SWIG_AsVal_size_t(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Bond_bondYield" "', argument " "8"" of type '" "Size""'");
  } 
  arg8 = static_cast< Size >(val8);
  {
    try {
      result = (Real)BondPtr_yield__SWIG_3(arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,(Date const &)*arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_bondYield__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  Real arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Date *arg6 = 0 ;
  Real arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_bondYield",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_bondYield" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bond_bondYield" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Bond_bondYield" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_bondYield" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Bond_bondYield" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Bond_bondYield" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Bond_bondYield" "', argument " "6"" of type '" "Date const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_bondYield" "', argument " "6"" of type '" "Date const &""'"); 
  }
  arg6 = reinterpret_cast< Date * >(argp6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Bond_bondYield" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (Real)BondPtr_yield__SWIG_3(arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,(Date const &)*arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_bondYield__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  Real arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Date *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_bondYield",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_bondYield" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bond_bondYield" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Bond_bondYield" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_bondYield" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Bond_bondYield" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Bond_bondYield" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Bond_bondYield" "', argument " "6"" of type '" "Date const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_bondYield" "', argument " "6"" of type '" "Date const &""'"); 
  }
  arg6 = reinterpret_cast< Date * >(argp6);
  {
    try {
      result = (Real)BondPtr_yield__SWIG_3(arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,(Date const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_bondYield__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  Real arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_bondYield",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_bondYield" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bond_bondYield" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Bond_bondYield" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_bondYield" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Bond_bondYield" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Bond_bondYield" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    try {
      result = (Real)BondPtr_yield__SWIG_3(arg1,arg2,(DayCounter const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_bondYield(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[9] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 8) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_DayCounter, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_Bond_bondYield__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_DayCounter, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_Bond_bondYield__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_Bond_bondYield__SWIG_6(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_DayCounter, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
              }
              if (_v) {
                return _wrap_Bond_bondYield__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_Bond_bondYield__SWIG_5(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_Bond_bondYield__SWIG_4(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    _v = (PyInt_Check(argv[7]) || PyLong_Check(argv[7])) ? 1 : 0;
                  }
                  if (_v) {
                    return _wrap_Bond_bondYield__SWIG_3(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Bond_bondYield'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondPtr::yield(DayCounter const &,Compounding,Frequency,Real,Size)\n"
    "    BondPtr::yield(DayCounter const &,Compounding,Frequency,Real)\n"
    "    BondPtr::yield(DayCounter const &,Compounding,Frequency)\n"
    "    BondPtr::yield(Real,DayCounter const &,Compounding,Frequency,Date const &,Real,Size)\n"
    "    BondPtr::yield(Real,DayCounter const &,Compounding,Frequency,Date const &,Real)\n"
    "    BondPtr::yield(Real,DayCounter const &,Compounding,Frequency,Date const &)\n"
    "    BondPtr::yield(Real,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Bond_accruedAmount__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_accruedAmount",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_accruedAmount" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bond_accruedAmount" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bond_accruedAmount" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Real)BondPtr_accruedAmount__SWIG_0(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_accruedAmount__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_accruedAmount",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_accruedAmount" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = (Real)BondPtr_accruedAmount__SWIG_0(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_accruedAmount(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_Bond_accruedAmount__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_Bond_accruedAmount__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Bond_accruedAmount'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondPtr::accruedAmount(Date const &)\n"
    "    BondPtr::accruedAmount()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Bond_settlementValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_settlementValue",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_settlementValue" "', argument " "1"" of type '" "BondPtr const *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = (Real)BondPtr_settlementValue__SWIG_0((BondPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_settlementValue__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Bond_settlementValue",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bond_settlementValue" "', argument " "1"" of type '" "BondPtr const *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bond_settlementValue" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)BondPtr_settlementValue__SWIG_1((BondPtr const *)arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Bond_settlementValue(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_Bond_settlementValue__SWIG_0(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_Bond_settlementValue__SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Bond_settlementValue'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondPtr::settlementValue() const\n"
    "    BondPtr::settlementValue(Real) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Bond(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = (BondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Bond",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bond" "', argument " "1"" of type '" "BondPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Bond_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BondPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_cleanPriceFromZSpread__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  Spread arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"cleanPriceFromZSpread",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cleanPriceFromZSpread" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cleanPriceFromZSpread" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cleanPriceFromZSpread" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cleanPriceFromZSpread" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cleanPriceFromZSpread" "', argument " "3"" of type '" "Spread""'");
  } 
  arg3 = static_cast< Spread >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cleanPriceFromZSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cleanPriceFromZSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cleanPriceFromZSpread" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cleanPriceFromZSpread" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "cleanPriceFromZSpread" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cleanPriceFromZSpread" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  {
    try {
      result = (Real)cleanPriceFromZSpread((BondPtr const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,(Date const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_cleanPriceFromZSpread__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  Spread arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"cleanPriceFromZSpread",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cleanPriceFromZSpread" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cleanPriceFromZSpread" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cleanPriceFromZSpread" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cleanPriceFromZSpread" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cleanPriceFromZSpread" "', argument " "3"" of type '" "Spread""'");
  } 
  arg3 = static_cast< Spread >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cleanPriceFromZSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cleanPriceFromZSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cleanPriceFromZSpread" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cleanPriceFromZSpread" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    try {
      result = (Real)cleanPriceFromZSpread((BondPtr const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_cleanPriceFromZSpread(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_cleanPriceFromZSpread__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_cleanPriceFromZSpread__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'cleanPriceFromZSpread'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    cleanPriceFromZSpread(BondPtr const &,boost::shared_ptr< YieldTermStructure > const &,Spread,DayCounter const &,Compounding,Frequency,Date const &)\n"
    "    cleanPriceFromZSpread(BondPtr const &,boost::shared_ptr< YieldTermStructure > const &,Spread,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_ZeroCouponBond(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  Real arg3 ;
  Date *arg4 = 0 ;
  BusinessDayConvention arg5 = (BusinessDayConvention) QuantLib::Following ;
  Real arg6 = (Real) 100.0 ;
  Date const &arg7_defvalue = Date() ;
  Date *arg7 = (Date *) &arg7_defvalue ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  char *  kwnames[] = {
    (char *) "settlementDays",(char *) "calendar",(char *) "faceAmount",(char *) "maturityDate",(char *) "paymentConvention",(char *) "redemption",(char *) "issueDate", NULL 
  };
  ZeroCouponBondPtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_ZeroCouponBond",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ZeroCouponBond" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ZeroCouponBond" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponBond" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ZeroCouponBond" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ZeroCouponBond" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponBond" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  if (obj4) {
    ecode5 = SWIG_AsVal_int(obj4, &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ZeroCouponBond" "', argument " "5"" of type '" "BusinessDayConvention""'");
    } 
    arg5 = static_cast< BusinessDayConvention >(val5);
  }
  if (obj5) {
    ecode6 = SWIG_AsVal_double(obj5, &val6);
    if (!SWIG_IsOK(ecode6)) {
      SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ZeroCouponBond" "', argument " "6"" of type '" "Real""'");
    } 
    arg6 = static_cast< Real >(val6);
  }
  if (obj6) {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ZeroCouponBond" "', argument " "7"" of type '" "Date const &""'"); 
    }
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCouponBond" "', argument " "7"" of type '" "Date const &""'"); 
    }
    arg7 = reinterpret_cast< Date * >(argp7);
  }
  {
    try {
      result = (ZeroCouponBondPtr *)new_ZeroCouponBondPtr(arg1,(Calendar const &)*arg2,arg3,(Date const &)*arg4,arg5,arg6,(Date const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroCouponBondPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ZeroCouponBond(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroCouponBondPtr *arg1 = (ZeroCouponBondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ZeroCouponBond",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroCouponBondPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ZeroCouponBond" "', argument " "1"" of type '" "ZeroCouponBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< ZeroCouponBondPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ZeroCouponBond_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ZeroCouponBondPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FixedRateBond__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  Real arg7 ;
  Date arg8 ;
  Calendar *arg9 = 0 ;
  Period *arg10 = 0 ;
  Calendar *arg11 = 0 ;
  BusinessDayConvention arg12 ;
  bool arg13 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  int val12 ;
  int ecode12 = 0 ;
  bool val13 ;
  int ecode13 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  FixedRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBond",13,13,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FixedRateBond" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBond" "', argument " "9"" of type '" "Calendar const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "9"" of type '" "Calendar const &""'"); 
  }
  arg9 = reinterpret_cast< Calendar * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_FixedRateBond" "', argument " "10"" of type '" "Period const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "10"" of type '" "Period const &""'"); 
  }
  arg10 = reinterpret_cast< Period * >(argp10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_FixedRateBond" "', argument " "11"" of type '" "Calendar const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "11"" of type '" "Calendar const &""'"); 
  }
  arg11 = reinterpret_cast< Calendar * >(argp11);
  ecode12 = SWIG_AsVal_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_FixedRateBond" "', argument " "12"" of type '" "BusinessDayConvention""'");
  } 
  arg12 = static_cast< BusinessDayConvention >(val12);
  ecode13 = SWIG_AsVal_bool(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_FixedRateBond" "', argument " "13"" of type '" "bool""'");
  } 
  arg13 = static_cast< bool >(val13);
  {
    try {
      result = (FixedRateBondPtr *)new_FixedRateBondPtr__SWIG_0(arg1,arg2,(Schedule const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(DayCounter const &)*arg5,arg6,arg7,arg8,(Calendar const &)*arg9,(Period const &)*arg10,(Calendar const &)*arg11,arg12,arg13);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBond__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  Real arg7 ;
  Date arg8 ;
  Calendar *arg9 = 0 ;
  Period *arg10 = 0 ;
  Calendar *arg11 = 0 ;
  BusinessDayConvention arg12 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  int val12 ;
  int ecode12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  FixedRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBond",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FixedRateBond" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBond" "', argument " "9"" of type '" "Calendar const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "9"" of type '" "Calendar const &""'"); 
  }
  arg9 = reinterpret_cast< Calendar * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_FixedRateBond" "', argument " "10"" of type '" "Period const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "10"" of type '" "Period const &""'"); 
  }
  arg10 = reinterpret_cast< Period * >(argp10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_FixedRateBond" "', argument " "11"" of type '" "Calendar const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "11"" of type '" "Calendar const &""'"); 
  }
  arg11 = reinterpret_cast< Calendar * >(argp11);
  ecode12 = SWIG_AsVal_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_FixedRateBond" "', argument " "12"" of type '" "BusinessDayConvention""'");
  } 
  arg12 = static_cast< BusinessDayConvention >(val12);
  {
    try {
      result = (FixedRateBondPtr *)new_FixedRateBondPtr__SWIG_0(arg1,arg2,(Schedule const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(DayCounter const &)*arg5,arg6,arg7,arg8,(Calendar const &)*arg9,(Period const &)*arg10,(Calendar const &)*arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBond__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  Real arg7 ;
  Date arg8 ;
  Calendar *arg9 = 0 ;
  Period *arg10 = 0 ;
  Calendar *arg11 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  FixedRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBond",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FixedRateBond" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBond" "', argument " "9"" of type '" "Calendar const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "9"" of type '" "Calendar const &""'"); 
  }
  arg9 = reinterpret_cast< Calendar * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_FixedRateBond" "', argument " "10"" of type '" "Period const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "10"" of type '" "Period const &""'"); 
  }
  arg10 = reinterpret_cast< Period * >(argp10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_FixedRateBond" "', argument " "11"" of type '" "Calendar const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "11"" of type '" "Calendar const &""'"); 
  }
  arg11 = reinterpret_cast< Calendar * >(argp11);
  {
    try {
      result = (FixedRateBondPtr *)new_FixedRateBondPtr__SWIG_0(arg1,arg2,(Schedule const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(DayCounter const &)*arg5,arg6,arg7,arg8,(Calendar const &)*arg9,(Period const &)*arg10,(Calendar const &)*arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBond__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  Real arg7 ;
  Date arg8 ;
  Calendar *arg9 = 0 ;
  Period *arg10 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  FixedRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBond",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FixedRateBond" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBond" "', argument " "9"" of type '" "Calendar const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "9"" of type '" "Calendar const &""'"); 
  }
  arg9 = reinterpret_cast< Calendar * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_FixedRateBond" "', argument " "10"" of type '" "Period const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "10"" of type '" "Period const &""'"); 
  }
  arg10 = reinterpret_cast< Period * >(argp10);
  {
    try {
      result = (FixedRateBondPtr *)new_FixedRateBondPtr__SWIG_0(arg1,arg2,(Schedule const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(DayCounter const &)*arg5,arg6,arg7,arg8,(Calendar const &)*arg9,(Period const &)*arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBond__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  Real arg7 ;
  Date arg8 ;
  Calendar *arg9 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  FixedRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBond",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FixedRateBond" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBond" "', argument " "9"" of type '" "Calendar const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "9"" of type '" "Calendar const &""'"); 
  }
  arg9 = reinterpret_cast< Calendar * >(argp9);
  {
    try {
      result = (FixedRateBondPtr *)new_FixedRateBondPtr__SWIG_0(arg1,arg2,(Schedule const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(DayCounter const &)*arg5,arg6,arg7,arg8,(Calendar const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBond__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  Real arg7 ;
  Date arg8 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  FixedRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBond",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FixedRateBond" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  {
    try {
      result = (FixedRateBondPtr *)new_FixedRateBondPtr__SWIG_0(arg1,arg2,(Schedule const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(DayCounter const &)*arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBond__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  Real arg7 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  FixedRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBond",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FixedRateBond" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (FixedRateBondPtr *)new_FixedRateBondPtr__SWIG_0(arg1,arg2,(Schedule const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(DayCounter const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBond__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  FixedRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBond",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FixedRateBond" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  {
    try {
      result = (FixedRateBondPtr *)new_FixedRateBondPtr__SWIG_0(arg1,arg2,(Schedule const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(DayCounter const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBond__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  FixedRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBond",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  {
    try {
      result = (FixedRateBondPtr *)new_FixedRateBondPtr__SWIG_0(arg1,arg2,(Schedule const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(DayCounter const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBond__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< InterestRate,std::allocator< InterestRate > > *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  Real arg6 ;
  Date *arg7 = 0 ;
  Calendar *arg8 = 0 ;
  Period *arg9 = 0 ;
  Calendar *arg10 = 0 ;
  BusinessDayConvention arg11 ;
  bool arg12 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  int val11 ;
  int ecode11 = 0 ;
  bool val12 ;
  int ecode12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  FixedRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBond",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< InterestRate,std::allocator< InterestRate > > *ptr = (std::vector< InterestRate,std::allocator< InterestRate > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    arg4 = ptr;
  }
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FixedRateBond" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Calendar const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Calendar const &""'"); 
  }
  arg8 = reinterpret_cast< Calendar * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBond" "', argument " "9"" of type '" "Period const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "9"" of type '" "Period const &""'"); 
  }
  arg9 = reinterpret_cast< Period * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_FixedRateBond" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  arg10 = reinterpret_cast< Calendar * >(argp10);
  ecode11 = SWIG_AsVal_int(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_FixedRateBond" "', argument " "11"" of type '" "BusinessDayConvention""'");
  } 
  arg11 = static_cast< BusinessDayConvention >(val11);
  ecode12 = SWIG_AsVal_bool(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_FixedRateBond" "', argument " "12"" of type '" "bool""'");
  } 
  arg12 = static_cast< bool >(val12);
  {
    try {
      result = (FixedRateBondPtr *)new_FixedRateBondPtr__SWIG_9(arg1,arg2,(Schedule const &)*arg3,(std::vector< InterestRate,std::allocator< InterestRate > > const &)*arg4,arg5,arg6,(Date const &)*arg7,(Calendar const &)*arg8,(Period const &)*arg9,(Calendar const &)*arg10,arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBond__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< InterestRate,std::allocator< InterestRate > > *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  Real arg6 ;
  Date *arg7 = 0 ;
  Calendar *arg8 = 0 ;
  Period *arg9 = 0 ;
  Calendar *arg10 = 0 ;
  BusinessDayConvention arg11 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  int val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  FixedRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBond",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< InterestRate,std::allocator< InterestRate > > *ptr = (std::vector< InterestRate,std::allocator< InterestRate > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    arg4 = ptr;
  }
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FixedRateBond" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Calendar const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Calendar const &""'"); 
  }
  arg8 = reinterpret_cast< Calendar * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBond" "', argument " "9"" of type '" "Period const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "9"" of type '" "Period const &""'"); 
  }
  arg9 = reinterpret_cast< Period * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_FixedRateBond" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  arg10 = reinterpret_cast< Calendar * >(argp10);
  ecode11 = SWIG_AsVal_int(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_FixedRateBond" "', argument " "11"" of type '" "BusinessDayConvention""'");
  } 
  arg11 = static_cast< BusinessDayConvention >(val11);
  {
    try {
      result = (FixedRateBondPtr *)new_FixedRateBondPtr__SWIG_9(arg1,arg2,(Schedule const &)*arg3,(std::vector< InterestRate,std::allocator< InterestRate > > const &)*arg4,arg5,arg6,(Date const &)*arg7,(Calendar const &)*arg8,(Period const &)*arg9,(Calendar const &)*arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBond__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< InterestRate,std::allocator< InterestRate > > *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  Real arg6 ;
  Date *arg7 = 0 ;
  Calendar *arg8 = 0 ;
  Period *arg9 = 0 ;
  Calendar *arg10 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  FixedRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBond",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< InterestRate,std::allocator< InterestRate > > *ptr = (std::vector< InterestRate,std::allocator< InterestRate > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    arg4 = ptr;
  }
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FixedRateBond" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Calendar const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Calendar const &""'"); 
  }
  arg8 = reinterpret_cast< Calendar * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBond" "', argument " "9"" of type '" "Period const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "9"" of type '" "Period const &""'"); 
  }
  arg9 = reinterpret_cast< Period * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_FixedRateBond" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  arg10 = reinterpret_cast< Calendar * >(argp10);
  {
    try {
      result = (FixedRateBondPtr *)new_FixedRateBondPtr__SWIG_9(arg1,arg2,(Schedule const &)*arg3,(std::vector< InterestRate,std::allocator< InterestRate > > const &)*arg4,arg5,arg6,(Date const &)*arg7,(Calendar const &)*arg8,(Period const &)*arg9,(Calendar const &)*arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBond__SWIG_12(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< InterestRate,std::allocator< InterestRate > > *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  Real arg6 ;
  Date *arg7 = 0 ;
  Calendar *arg8 = 0 ;
  Period *arg9 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  FixedRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBond",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< InterestRate,std::allocator< InterestRate > > *ptr = (std::vector< InterestRate,std::allocator< InterestRate > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    arg4 = ptr;
  }
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FixedRateBond" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Calendar const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Calendar const &""'"); 
  }
  arg8 = reinterpret_cast< Calendar * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBond" "', argument " "9"" of type '" "Period const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "9"" of type '" "Period const &""'"); 
  }
  arg9 = reinterpret_cast< Period * >(argp9);
  {
    try {
      result = (FixedRateBondPtr *)new_FixedRateBondPtr__SWIG_9(arg1,arg2,(Schedule const &)*arg3,(std::vector< InterestRate,std::allocator< InterestRate > > const &)*arg4,arg5,arg6,(Date const &)*arg7,(Calendar const &)*arg8,(Period const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBond__SWIG_13(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< InterestRate,std::allocator< InterestRate > > *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  Real arg6 ;
  Date *arg7 = 0 ;
  Calendar *arg8 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  FixedRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBond",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< InterestRate,std::allocator< InterestRate > > *ptr = (std::vector< InterestRate,std::allocator< InterestRate > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    arg4 = ptr;
  }
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FixedRateBond" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Calendar const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "8"" of type '" "Calendar const &""'"); 
  }
  arg8 = reinterpret_cast< Calendar * >(argp8);
  {
    try {
      result = (FixedRateBondPtr *)new_FixedRateBondPtr__SWIG_9(arg1,arg2,(Schedule const &)*arg3,(std::vector< InterestRate,std::allocator< InterestRate > > const &)*arg4,arg5,arg6,(Date const &)*arg7,(Calendar const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBond__SWIG_14(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< InterestRate,std::allocator< InterestRate > > *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  Real arg6 ;
  Date *arg7 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  FixedRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBond",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< InterestRate,std::allocator< InterestRate > > *ptr = (std::vector< InterestRate,std::allocator< InterestRate > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    arg4 = ptr;
  }
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FixedRateBond" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  {
    try {
      result = (FixedRateBondPtr *)new_FixedRateBondPtr__SWIG_9(arg1,arg2,(Schedule const &)*arg3,(std::vector< InterestRate,std::allocator< InterestRate > > const &)*arg4,arg5,arg6,(Date const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBond__SWIG_15(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< InterestRate,std::allocator< InterestRate > > *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  Real arg6 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  FixedRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBond",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< InterestRate,std::allocator< InterestRate > > *ptr = (std::vector< InterestRate,std::allocator< InterestRate > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    arg4 = ptr;
  }
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FixedRateBond" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (FixedRateBondPtr *)new_FixedRateBondPtr__SWIG_9(arg1,arg2,(Schedule const &)*arg3,(std::vector< InterestRate,std::allocator< InterestRate > > const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBond__SWIG_16(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< InterestRate,std::allocator< InterestRate > > *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  FixedRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBond",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< InterestRate,std::allocator< InterestRate > > *ptr = (std::vector< InterestRate,std::allocator< InterestRate > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    arg4 = ptr;
  }
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FixedRateBond" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  {
    try {
      result = (FixedRateBondPtr *)new_FixedRateBondPtr__SWIG_9(arg1,arg2,(Schedule const &)*arg3,(std::vector< InterestRate,std::allocator< InterestRate > > const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBond__SWIG_17(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< InterestRate,std::allocator< InterestRate > > *arg4 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FixedRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBond",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< InterestRate,std::allocator< InterestRate > > *ptr = (std::vector< InterestRate,std::allocator< InterestRate > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBond" "', argument " "4"" of type '" "std::vector< InterestRate,std::allocator< InterestRate > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      result = (FixedRateBondPtr *)new_FixedRateBondPtr__SWIG_9(arg1,arg2,(Schedule const &)*arg3,(std::vector< InterestRate,std::allocator< InterestRate > > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBond(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[14] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 13) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< InterestRate,std::allocator< InterestRate > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_FixedRateBond__SWIG_17(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_FixedRateBond__SWIG_8(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< InterestRate,std::allocator< InterestRate > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_FixedRateBond__SWIG_16(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_FixedRateBond__SWIG_7(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< InterestRate,std::allocator< InterestRate > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_FixedRateBond__SWIG_15(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_FixedRateBond__SWIG_6(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< InterestRate,std::allocator< InterestRate > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_FixedRateBond__SWIG_14(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_FixedRateBond__SWIG_5(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< InterestRate,std::allocator< InterestRate > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Calendar, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_FixedRateBond__SWIG_13(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Calendar, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap_new_FixedRateBond__SWIG_4(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< InterestRate,std::allocator< InterestRate > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Calendar, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Period, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap_new_FixedRateBond__SWIG_12(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Calendar, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Period, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        return _wrap_new_FixedRateBond__SWIG_3(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< InterestRate,std::allocator< InterestRate > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Calendar, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Period, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Calendar, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        return _wrap_new_FixedRateBond__SWIG_11(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Calendar, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Period, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_Calendar, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          return _wrap_new_FixedRateBond__SWIG_2(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< InterestRate,std::allocator< InterestRate > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Calendar, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Period, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Calendar, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_int(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          return _wrap_new_FixedRateBond__SWIG_10(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Calendar, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Period, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_Calendar, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          {
                            int res = SWIG_AsVal_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            return _wrap_new_FixedRateBond__SWIG_1(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< InterestRate,std::allocator< InterestRate > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Calendar, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Period, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Calendar, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_int(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_bool(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            return _wrap_new_FixedRateBond__SWIG_9(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 13) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Schedule, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DayCounter, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Date, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Calendar, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Period, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_Calendar, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          {
                            int res = SWIG_AsVal_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            {
                              int res = SWIG_AsVal_bool(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              return _wrap_new_FixedRateBond__SWIG_0(self, args);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FixedRateBond'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FixedRateBondPtr::FixedRateBondPtr(Integer,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,BusinessDayConvention,Real,Date,Calendar const &,Period const &,Calendar const &,BusinessDayConvention,bool)\n"
    "    FixedRateBondPtr::FixedRateBondPtr(Integer,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,BusinessDayConvention,Real,Date,Calendar const &,Period const &,Calendar const &,BusinessDayConvention)\n"
    "    FixedRateBondPtr::FixedRateBondPtr(Integer,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,BusinessDayConvention,Real,Date,Calendar const &,Period const &,Calendar const &)\n"
    "    FixedRateBondPtr::FixedRateBondPtr(Integer,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,BusinessDayConvention,Real,Date,Calendar const &,Period const &)\n"
    "    FixedRateBondPtr::FixedRateBondPtr(Integer,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,BusinessDayConvention,Real,Date,Calendar const &)\n"
    "    FixedRateBondPtr::FixedRateBondPtr(Integer,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,BusinessDayConvention,Real,Date)\n"
    "    FixedRateBondPtr::FixedRateBondPtr(Integer,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,BusinessDayConvention,Real)\n"
    "    FixedRateBondPtr::FixedRateBondPtr(Integer,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,BusinessDayConvention)\n"
    "    FixedRateBondPtr::FixedRateBondPtr(Integer,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &)\n"
    "    FixedRateBondPtr::FixedRateBondPtr(Integer,Real,Schedule const &,std::vector< InterestRate,std::allocator< InterestRate > > const &,BusinessDayConvention,Real,Date const &,Calendar const &,Period const &,Calendar const &,BusinessDayConvention,bool)\n"
    "    FixedRateBondPtr::FixedRateBondPtr(Integer,Real,Schedule const &,std::vector< InterestRate,std::allocator< InterestRate > > const &,BusinessDayConvention,Real,Date const &,Calendar const &,Period const &,Calendar const &,BusinessDayConvention)\n"
    "    FixedRateBondPtr::FixedRateBondPtr(Integer,Real,Schedule const &,std::vector< InterestRate,std::allocator< InterestRate > > const &,BusinessDayConvention,Real,Date const &,Calendar const &,Period const &,Calendar const &)\n"
    "    FixedRateBondPtr::FixedRateBondPtr(Integer,Real,Schedule const &,std::vector< InterestRate,std::allocator< InterestRate > > const &,BusinessDayConvention,Real,Date const &,Calendar const &,Period const &)\n"
    "    FixedRateBondPtr::FixedRateBondPtr(Integer,Real,Schedule const &,std::vector< InterestRate,std::allocator< InterestRate > > const &,BusinessDayConvention,Real,Date const &,Calendar const &)\n"
    "    FixedRateBondPtr::FixedRateBondPtr(Integer,Real,Schedule const &,std::vector< InterestRate,std::allocator< InterestRate > > const &,BusinessDayConvention,Real,Date const &)\n"
    "    FixedRateBondPtr::FixedRateBondPtr(Integer,Real,Schedule const &,std::vector< InterestRate,std::allocator< InterestRate > > const &,BusinessDayConvention,Real)\n"
    "    FixedRateBondPtr::FixedRateBondPtr(Integer,Real,Schedule const &,std::vector< InterestRate,std::allocator< InterestRate > > const &,BusinessDayConvention)\n"
    "    FixedRateBondPtr::FixedRateBondPtr(Integer,Real,Schedule const &,std::vector< InterestRate,std::allocator< InterestRate > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_FixedRateBond_frequency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FixedRateBondPtr *arg1 = (FixedRateBondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Frequency result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FixedRateBond_frequency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FixedRateBondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedRateBond_frequency" "', argument " "1"" of type '" "FixedRateBondPtr const *""'"); 
  }
  arg1 = reinterpret_cast< FixedRateBondPtr * >(argp1);
  {
    try {
      result = (Frequency)FixedRateBondPtr_frequency((FixedRateBondPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FixedRateBond_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FixedRateBondPtr *arg1 = (FixedRateBondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FixedRateBond_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FixedRateBondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedRateBond_dayCounter" "', argument " "1"" of type '" "FixedRateBondPtr const *""'"); 
  }
  arg1 = reinterpret_cast< FixedRateBondPtr * >(argp1);
  {
    try {
      result = FixedRateBondPtr_dayCounter((FixedRateBondPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_FixedRateBond(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FixedRateBondPtr *arg1 = (FixedRateBondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FixedRateBond",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FixedRateBond" "', argument " "1"" of type '" "FixedRateBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< FixedRateBondPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FixedRateBond_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FixedRateBondPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FloatingRateBond(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  IborIndexPtr *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  BusinessDayConvention arg6 = (BusinessDayConvention) Following ;
  Size arg7 = (Size) Null< Size >() ;
  std::vector< Real,std::allocator< Real > > const &arg8_defvalue = std::vector< Real >() ;
  std::vector< Real,std::allocator< Real > > *arg8 = (std::vector< Real,std::allocator< Real > > *) &arg8_defvalue ;
  std::vector< Spread,std::allocator< Spread > > const &arg9_defvalue = std::vector< Spread >() ;
  std::vector< Spread,std::allocator< Spread > > *arg9 = (std::vector< Spread,std::allocator< Spread > > *) &arg9_defvalue ;
  std::vector< Rate,std::allocator< Rate > > const &arg10_defvalue = std::vector< Rate >() ;
  std::vector< Rate,std::allocator< Rate > > *arg10 = (std::vector< Rate,std::allocator< Rate > > *) &arg10_defvalue ;
  std::vector< Rate,std::allocator< Rate > > const &arg11_defvalue = std::vector< Rate >() ;
  std::vector< Rate,std::allocator< Rate > > *arg11 = (std::vector< Rate,std::allocator< Rate > > *) &arg11_defvalue ;
  bool arg12 = (bool) false ;
  Real arg13 = (Real) 100.0 ;
  Date const &arg14_defvalue = Date() ;
  Date *arg14 = (Date *) &arg14_defvalue ;
  size_t val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  size_t val7 ;
  int ecode7 = 0 ;
  int res8 = SWIG_OLDOBJ ;
  int res9 = SWIG_OLDOBJ ;
  int res10 = SWIG_OLDOBJ ;
  int res11 = SWIG_OLDOBJ ;
  bool val12 ;
  int ecode12 = 0 ;
  double val13 ;
  int ecode13 = 0 ;
  void *argp14 = 0 ;
  int res14 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  char *  kwnames[] = {
    (char *) "settlementDays",(char *) "faceAmount",(char *) "schedule",(char *) "index",(char *) "paymentDayCounter",(char *) "paymentConvention",(char *) "fixingDays",(char *) "gearings",(char *) "spreads",(char *) "caps",(char *) "floors",(char *) "inArrears",(char *) "redemption",(char *) "issueDate", NULL 
  };
  FloatingRateBondPtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOOOOOO:new_FloatingRateBond",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloatingRateBond" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FloatingRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FloatingRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatingRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FloatingRateBond" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatingRateBond" "', argument " "4"" of type '" "IborIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< IborIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FloatingRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatingRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  if (obj5) {
    ecode6 = SWIG_AsVal_int(obj5, &val6);
    if (!SWIG_IsOK(ecode6)) {
      SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FloatingRateBond" "', argument " "6"" of type '" "BusinessDayConvention""'");
    } 
    arg6 = static_cast< BusinessDayConvention >(val6);
  }
  if (obj6) {
    ecode7 = SWIG_AsVal_size_t(obj6, &val7);
    if (!SWIG_IsOK(ecode7)) {
      SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FloatingRateBond" "', argument " "7"" of type '" "Size""'");
    } 
    arg7 = static_cast< Size >(val7);
  }
  if (obj7) {
    {
      std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
      res8 = swig::asptr(obj7, &ptr);
      if (!SWIG_IsOK(res8)) {
        SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FloatingRateBond" "', argument " "8"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatingRateBond" "', argument " "8"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
      }
      arg8 = ptr;
    }
  }
  if (obj8) {
    {
      std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
      res9 = swig::asptr(obj8, &ptr);
      if (!SWIG_IsOK(res9)) {
        SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FloatingRateBond" "', argument " "9"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatingRateBond" "', argument " "9"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
      }
      arg9 = ptr;
    }
  }
  if (obj9) {
    {
      std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
      res10 = swig::asptr(obj9, &ptr);
      if (!SWIG_IsOK(res10)) {
        SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_FloatingRateBond" "', argument " "10"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatingRateBond" "', argument " "10"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
      }
      arg10 = ptr;
    }
  }
  if (obj10) {
    {
      std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
      res11 = swig::asptr(obj10, &ptr);
      if (!SWIG_IsOK(res11)) {
        SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_FloatingRateBond" "', argument " "11"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
      }
      if (!ptr) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatingRateBond" "', argument " "11"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
      }
      arg11 = ptr;
    }
  }
  if (obj11) {
    ecode12 = SWIG_AsVal_bool(obj11, &val12);
    if (!SWIG_IsOK(ecode12)) {
      SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_FloatingRateBond" "', argument " "12"" of type '" "bool""'");
    } 
    arg12 = static_cast< bool >(val12);
  }
  if (obj12) {
    ecode13 = SWIG_AsVal_double(obj12, &val13);
    if (!SWIG_IsOK(ecode13)) {
      SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_FloatingRateBond" "', argument " "13"" of type '" "Real""'");
    } 
    arg13 = static_cast< Real >(val13);
  }
  if (obj13) {
    res14 = SWIG_ConvertPtr(obj13, &argp14, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res14)) {
      SWIG_exception_fail(SWIG_ArgError(res14), "in method '" "new_FloatingRateBond" "', argument " "14"" of type '" "Date const &""'"); 
    }
    if (!argp14) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatingRateBond" "', argument " "14"" of type '" "Date const &""'"); 
    }
    arg14 = reinterpret_cast< Date * >(argp14);
  }
  {
    try {
      result = (FloatingRateBondPtr *)new_FloatingRateBondPtr(arg1,arg2,(Schedule const &)*arg3,(IborIndexPtr const &)*arg4,(DayCounter const &)*arg5,arg6,arg7,(std::vector< double,std::allocator< double > > const &)*arg8,(std::vector< double,std::allocator< double > > const &)*arg9,(std::vector< double,std::allocator< double > > const &)*arg10,(std::vector< double,std::allocator< double > > const &)*arg11,arg12,arg13,(Date const &)*arg14);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloatingRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res8)) delete arg8;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  if (SWIG_IsNewObj(res11)) delete arg11;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res8)) delete arg8;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  if (SWIG_IsNewObj(res11)) delete arg11;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_FloatingRateBond(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloatingRateBondPtr *arg1 = (FloatingRateBondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FloatingRateBond",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatingRateBondPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FloatingRateBond" "', argument " "1"" of type '" "FloatingRateBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< FloatingRateBondPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FloatingRateBond_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FloatingRateBondPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CmsRateBond(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  SwapIndexPtr *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  Natural arg7 ;
  std::vector< Real,std::allocator< Real > > *arg8 = 0 ;
  std::vector< Spread,std::allocator< Spread > > *arg9 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg10 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg11 = 0 ;
  bool arg12 = (bool) false ;
  Real arg13 = (Real) 100.0 ;
  Date const &arg14_defvalue = Date() ;
  Date *arg14 = (Date *) &arg14_defvalue ;
  size_t val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  unsigned int val7 ;
  int ecode7 = 0 ;
  int res8 = SWIG_OLDOBJ ;
  int res9 = SWIG_OLDOBJ ;
  int res10 = SWIG_OLDOBJ ;
  int res11 = SWIG_OLDOBJ ;
  bool val12 ;
  int ecode12 = 0 ;
  double val13 ;
  int ecode13 = 0 ;
  void *argp14 = 0 ;
  int res14 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  char *  kwnames[] = {
    (char *) "settlementDays",(char *) "faceAmount",(char *) "schedule",(char *) "index",(char *) "paymentDayCounter",(char *) "paymentConvention",(char *) "fixingDays",(char *) "gearings",(char *) "spreads",(char *) "caps",(char *) "floors",(char *) "inArrears",(char *) "redemption",(char *) "issueDate", NULL 
  };
  CmsRateBondPtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOOOOO|OOO:new_CmsRateBond",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CmsRateBond" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CmsRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CmsRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CmsRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CmsRateBond" "', argument " "4"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CmsRateBond" "', argument " "4"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< SwapIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CmsRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CmsRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CmsRateBond" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_CmsRateBond" "', argument " "7"" of type '" "Natural""'");
  } 
  arg7 = static_cast< Natural >(val7);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res8 = swig::asptr(obj7, &ptr);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_CmsRateBond" "', argument " "8"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CmsRateBond" "', argument " "8"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg8 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res9 = swig::asptr(obj8, &ptr);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_CmsRateBond" "', argument " "9"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CmsRateBond" "', argument " "9"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    arg9 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res10 = swig::asptr(obj9, &ptr);
    if (!SWIG_IsOK(res10)) {
      SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_CmsRateBond" "', argument " "10"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CmsRateBond" "', argument " "10"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg10 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res11 = swig::asptr(obj10, &ptr);
    if (!SWIG_IsOK(res11)) {
      SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_CmsRateBond" "', argument " "11"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CmsRateBond" "', argument " "11"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg11 = ptr;
  }
  if (obj11) {
    ecode12 = SWIG_AsVal_bool(obj11, &val12);
    if (!SWIG_IsOK(ecode12)) {
      SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_CmsRateBond" "', argument " "12"" of type '" "bool""'");
    } 
    arg12 = static_cast< bool >(val12);
  }
  if (obj12) {
    ecode13 = SWIG_AsVal_double(obj12, &val13);
    if (!SWIG_IsOK(ecode13)) {
      SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_CmsRateBond" "', argument " "13"" of type '" "Real""'");
    } 
    arg13 = static_cast< Real >(val13);
  }
  if (obj13) {
    res14 = SWIG_ConvertPtr(obj13, &argp14, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res14)) {
      SWIG_exception_fail(SWIG_ArgError(res14), "in method '" "new_CmsRateBond" "', argument " "14"" of type '" "Date const &""'"); 
    }
    if (!argp14) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CmsRateBond" "', argument " "14"" of type '" "Date const &""'"); 
    }
    arg14 = reinterpret_cast< Date * >(argp14);
  }
  {
    try {
      result = (CmsRateBondPtr *)new_CmsRateBondPtr(arg1,arg2,(Schedule const &)*arg3,(SwapIndexPtr const &)*arg4,(DayCounter const &)*arg5,arg6,arg7,(std::vector< double,std::allocator< double > > const &)*arg8,(std::vector< double,std::allocator< double > > const &)*arg9,(std::vector< double,std::allocator< double > > const &)*arg10,(std::vector< double,std::allocator< double > > const &)*arg11,arg12,arg13,(Date const &)*arg14);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CmsRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res8)) delete arg8;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  if (SWIG_IsNewObj(res11)) delete arg11;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res8)) delete arg8;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  if (SWIG_IsNewObj(res11)) delete arg11;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CmsRateBond(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CmsRateBondPtr *arg1 = (CmsRateBondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CmsRateBond",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CmsRateBondPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CmsRateBond" "', argument " "1"" of type '" "CmsRateBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< CmsRateBondPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CmsRateBond_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CmsRateBondPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DiscountingBondEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  DiscountingBondEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DiscountingBondEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DiscountingBondEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountingBondEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (DiscountingBondEnginePtr *)new_DiscountingBondEnginePtr((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DiscountingBondEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DiscountingBondEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DiscountingBondEnginePtr *arg1 = (DiscountingBondEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DiscountingBondEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DiscountingBondEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DiscountingBondEngine" "', argument " "1"" of type '" "DiscountingBondEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< DiscountingBondEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DiscountingBondEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DiscountingBondEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CallableFixedRateBond(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg4 = 0 ;
  DayCounter *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  Real arg7 ;
  Date arg8 ;
  std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *arg9 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  void *argp8 ;
  int res8 = 0 ;
  int res9 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  char *  kwnames[] = {
    (char *) "settlementDays",(char *) "faceAmount",(char *) "schedule",(char *) "coupons",(char *) "accrualDayCounter",(char *) "paymentConvention",(char *) "redemption",(char *) "issueDate",(char *) "putCallSchedule", NULL 
  };
  CallableFixedRateBondPtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOOO:new_CallableFixedRateBond",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CallableFixedRateBond" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CallableFixedRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CallableFixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CallableFixedRateBond" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CallableFixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CallableFixedRateBond" "', argument " "4"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CallableFixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CallableFixedRateBond" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CallableFixedRateBond" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_CallableFixedRateBond" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_CallableFixedRateBond" "', argument " "8"" of type '" "Date""'"); 
    }  
    if (!argp8) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CallableFixedRateBond" "', argument " "8"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp8);
      arg8 = *temp;
      if (SWIG_IsNewObj(res8)) delete temp;
    }
  }
  {
    std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *ptr = (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *)0;
    res9 = swig::asptr(obj8, &ptr);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_CallableFixedRateBond" "', argument " "9"" of type '" "std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CallableFixedRateBond" "', argument " "9"" of type '" "std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &""'"); 
    }
    arg9 = ptr;
  }
  {
    try {
      result = (CallableFixedRateBondPtr *)new_CallableFixedRateBondPtr(arg1,arg2,(Schedule const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(DayCounter const &)*arg5,arg6,arg7,arg8,(std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CallableFixedRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res9)) delete arg9;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res9)) delete arg9;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallableFixedRateBond_OAS__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CallableFixedRateBondPtr *arg1 = (CallableFixedRateBondPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date *arg7 = 0 ;
  Real arg8 ;
  Size arg9 ;
  Spread arg10 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  size_t val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallableFixedRateBond_OAS",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallableFixedRateBondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallableFixedRateBond_OAS" "', argument " "1"" of type '" "CallableFixedRateBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< CallableFixedRateBondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallableFixedRateBond_OAS" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallableFixedRateBond_OAS" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_OAS" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CallableFixedRateBond_OAS" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_OAS" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CallableFixedRateBond_OAS" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CallableFixedRateBond_OAS" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CallableFixedRateBond_OAS" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_OAS" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "CallableFixedRateBond_OAS" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  ecode9 = SWIG_AsVal_size_t(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "CallableFixedRateBond_OAS" "', argument " "9"" of type '" "Size""'");
  } 
  arg9 = static_cast< Size >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "CallableFixedRateBond_OAS" "', argument " "10"" of type '" "Spread""'");
  } 
  arg10 = static_cast< Spread >(val10);
  {
    try {
      result = (Real)CallableFixedRateBondPtr_OAS__SWIG_0(arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,(Date const &)*arg7,arg8,arg9,arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallableFixedRateBond_OAS__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CallableFixedRateBondPtr *arg1 = (CallableFixedRateBondPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date *arg7 = 0 ;
  Real arg8 ;
  Size arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  size_t val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallableFixedRateBond_OAS",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallableFixedRateBondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallableFixedRateBond_OAS" "', argument " "1"" of type '" "CallableFixedRateBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< CallableFixedRateBondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallableFixedRateBond_OAS" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallableFixedRateBond_OAS" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_OAS" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CallableFixedRateBond_OAS" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_OAS" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CallableFixedRateBond_OAS" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CallableFixedRateBond_OAS" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CallableFixedRateBond_OAS" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_OAS" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "CallableFixedRateBond_OAS" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  ecode9 = SWIG_AsVal_size_t(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "CallableFixedRateBond_OAS" "', argument " "9"" of type '" "Size""'");
  } 
  arg9 = static_cast< Size >(val9);
  {
    try {
      result = (Real)CallableFixedRateBondPtr_OAS__SWIG_0(arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,(Date const &)*arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallableFixedRateBond_OAS__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CallableFixedRateBondPtr *arg1 = (CallableFixedRateBondPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date *arg7 = 0 ;
  Real arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallableFixedRateBond_OAS",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallableFixedRateBondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallableFixedRateBond_OAS" "', argument " "1"" of type '" "CallableFixedRateBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< CallableFixedRateBondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallableFixedRateBond_OAS" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallableFixedRateBond_OAS" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_OAS" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CallableFixedRateBond_OAS" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_OAS" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CallableFixedRateBond_OAS" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CallableFixedRateBond_OAS" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CallableFixedRateBond_OAS" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_OAS" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "CallableFixedRateBond_OAS" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  {
    try {
      result = (Real)CallableFixedRateBondPtr_OAS__SWIG_0(arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,(Date const &)*arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallableFixedRateBond_OAS__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CallableFixedRateBondPtr *arg1 = (CallableFixedRateBondPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallableFixedRateBond_OAS",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallableFixedRateBondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallableFixedRateBond_OAS" "', argument " "1"" of type '" "CallableFixedRateBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< CallableFixedRateBondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallableFixedRateBond_OAS" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallableFixedRateBond_OAS" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_OAS" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CallableFixedRateBond_OAS" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_OAS" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CallableFixedRateBond_OAS" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CallableFixedRateBond_OAS" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CallableFixedRateBond_OAS" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_OAS" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  {
    try {
      result = (Real)CallableFixedRateBondPtr_OAS__SWIG_0(arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,(Date const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallableFixedRateBond_OAS__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CallableFixedRateBondPtr *arg1 = (CallableFixedRateBondPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallableFixedRateBond_OAS",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallableFixedRateBondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallableFixedRateBond_OAS" "', argument " "1"" of type '" "CallableFixedRateBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< CallableFixedRateBondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallableFixedRateBond_OAS" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallableFixedRateBond_OAS" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_OAS" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CallableFixedRateBond_OAS" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_OAS" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CallableFixedRateBond_OAS" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CallableFixedRateBond_OAS" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    try {
      result = (Real)CallableFixedRateBondPtr_OAS__SWIG_0(arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallableFixedRateBond_OAS(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[11] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 10) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallableFixedRateBondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_CallableFixedRateBond_OAS__SWIG_4(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallableFixedRateBondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_CallableFixedRateBond_OAS__SWIG_3(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallableFixedRateBondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_CallableFixedRateBond_OAS__SWIG_2(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallableFixedRateBondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
                    }
                    if (_v) {
                      return _wrap_CallableFixedRateBond_OAS__SWIG_1(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallableFixedRateBondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        return _wrap_CallableFixedRateBond_OAS__SWIG_0(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallableFixedRateBond_OAS'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CallableFixedRateBondPtr::OAS(Real,Handle< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency,Date const &,Real,Size,Spread)\n"
    "    CallableFixedRateBondPtr::OAS(Real,Handle< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency,Date const &,Real,Size)\n"
    "    CallableFixedRateBondPtr::OAS(Real,Handle< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency,Date const &,Real)\n"
    "    CallableFixedRateBondPtr::OAS(Real,Handle< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency,Date const &)\n"
    "    CallableFixedRateBondPtr::OAS(Real,Handle< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CallableFixedRateBond_cleanPriceOAS__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CallableFixedRateBondPtr *arg1 = (CallableFixedRateBondPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallableFixedRateBond_cleanPriceOAS",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallableFixedRateBondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallableFixedRateBond_cleanPriceOAS" "', argument " "1"" of type '" "CallableFixedRateBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< CallableFixedRateBondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallableFixedRateBond_cleanPriceOAS" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallableFixedRateBond_cleanPriceOAS" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_cleanPriceOAS" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CallableFixedRateBond_cleanPriceOAS" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_cleanPriceOAS" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CallableFixedRateBond_cleanPriceOAS" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CallableFixedRateBond_cleanPriceOAS" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CallableFixedRateBond_cleanPriceOAS" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_cleanPriceOAS" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    try {
      result = (Real)CallableFixedRateBondPtr_cleanPriceOAS__SWIG_0(arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallableFixedRateBond_cleanPriceOAS__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CallableFixedRateBondPtr *arg1 = (CallableFixedRateBondPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallableFixedRateBond_cleanPriceOAS",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallableFixedRateBondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallableFixedRateBond_cleanPriceOAS" "', argument " "1"" of type '" "CallableFixedRateBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< CallableFixedRateBondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallableFixedRateBond_cleanPriceOAS" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallableFixedRateBond_cleanPriceOAS" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_cleanPriceOAS" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CallableFixedRateBond_cleanPriceOAS" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_cleanPriceOAS" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CallableFixedRateBond_cleanPriceOAS" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CallableFixedRateBond_cleanPriceOAS" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    try {
      result = (Real)CallableFixedRateBondPtr_cleanPriceOAS__SWIG_0(arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallableFixedRateBond_cleanPriceOAS(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallableFixedRateBondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_CallableFixedRateBond_cleanPriceOAS__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallableFixedRateBondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_CallableFixedRateBond_cleanPriceOAS__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallableFixedRateBond_cleanPriceOAS'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CallableFixedRateBondPtr::cleanPriceOAS(Real,Handle< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency,Date)\n"
    "    CallableFixedRateBondPtr::cleanPriceOAS(Real,Handle< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CallableFixedRateBond_effectiveDuration__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CallableFixedRateBondPtr *arg1 = (CallableFixedRateBondPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Real arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallableFixedRateBond_effectiveDuration",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallableFixedRateBondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallableFixedRateBond_effectiveDuration" "', argument " "1"" of type '" "CallableFixedRateBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< CallableFixedRateBondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallableFixedRateBond_effectiveDuration" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallableFixedRateBond_effectiveDuration" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_effectiveDuration" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CallableFixedRateBond_effectiveDuration" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_effectiveDuration" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CallableFixedRateBond_effectiveDuration" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CallableFixedRateBond_effectiveDuration" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CallableFixedRateBond_effectiveDuration" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (Real)CallableFixedRateBondPtr_effectiveDuration__SWIG_0(arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallableFixedRateBond_effectiveDuration__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CallableFixedRateBondPtr *arg1 = (CallableFixedRateBondPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallableFixedRateBond_effectiveDuration",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallableFixedRateBondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallableFixedRateBond_effectiveDuration" "', argument " "1"" of type '" "CallableFixedRateBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< CallableFixedRateBondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallableFixedRateBond_effectiveDuration" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallableFixedRateBond_effectiveDuration" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_effectiveDuration" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CallableFixedRateBond_effectiveDuration" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_effectiveDuration" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CallableFixedRateBond_effectiveDuration" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CallableFixedRateBond_effectiveDuration" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    try {
      result = (Real)CallableFixedRateBondPtr_effectiveDuration__SWIG_0(arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallableFixedRateBond_effectiveDuration(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallableFixedRateBondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_CallableFixedRateBond_effectiveDuration__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallableFixedRateBondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_CallableFixedRateBond_effectiveDuration__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallableFixedRateBond_effectiveDuration'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CallableFixedRateBondPtr::effectiveDuration(Real,Handle< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency,Real)\n"
    "    CallableFixedRateBondPtr::effectiveDuration(Real,Handle< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CallableFixedRateBond_effectiveConvexity__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CallableFixedRateBondPtr *arg1 = (CallableFixedRateBondPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Real arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallableFixedRateBond_effectiveConvexity",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallableFixedRateBondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallableFixedRateBond_effectiveConvexity" "', argument " "1"" of type '" "CallableFixedRateBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< CallableFixedRateBondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallableFixedRateBond_effectiveConvexity" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallableFixedRateBond_effectiveConvexity" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_effectiveConvexity" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CallableFixedRateBond_effectiveConvexity" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_effectiveConvexity" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CallableFixedRateBond_effectiveConvexity" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CallableFixedRateBond_effectiveConvexity" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CallableFixedRateBond_effectiveConvexity" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (Real)CallableFixedRateBondPtr_effectiveConvexity__SWIG_0(arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallableFixedRateBond_effectiveConvexity__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CallableFixedRateBondPtr *arg1 = (CallableFixedRateBondPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CallableFixedRateBond_effectiveConvexity",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallableFixedRateBondPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallableFixedRateBond_effectiveConvexity" "', argument " "1"" of type '" "CallableFixedRateBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< CallableFixedRateBondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallableFixedRateBond_effectiveConvexity" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallableFixedRateBond_effectiveConvexity" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_effectiveConvexity" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CallableFixedRateBond_effectiveConvexity" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CallableFixedRateBond_effectiveConvexity" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CallableFixedRateBond_effectiveConvexity" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CallableFixedRateBond_effectiveConvexity" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    try {
      result = (Real)CallableFixedRateBondPtr_effectiveConvexity__SWIG_0(arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CallableFixedRateBond_effectiveConvexity(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallableFixedRateBondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_CallableFixedRateBond_effectiveConvexity__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallableFixedRateBondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_CallableFixedRateBond_effectiveConvexity__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallableFixedRateBond_effectiveConvexity'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CallableFixedRateBondPtr::effectiveConvexity(Real,Handle< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency,Real)\n"
    "    CallableFixedRateBondPtr::effectiveConvexity(Real,Handle< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_CallableFixedRateBond(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CallableFixedRateBondPtr *arg1 = (CallableFixedRateBondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CallableFixedRateBond",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallableFixedRateBondPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CallableFixedRateBond" "', argument " "1"" of type '" "CallableFixedRateBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< CallableFixedRateBondPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CallableFixedRateBond_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CallableFixedRateBondPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_TreeCallableFixedRateBondEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  TreeCallableFixedRateBondEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TreeCallableFixedRateBondEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCallableFixedRateBondEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCallableFixedRateBondEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCallableFixedRateBondEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeCallableFixedRateBondEngine" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCallableFixedRateBondEngine" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  {
    try {
      result = (TreeCallableFixedRateBondEnginePtr *)new_TreeCallableFixedRateBondEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,arg2,(Handle< YieldTermStructure > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TreeCallableFixedRateBondEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TreeCallableFixedRateBondEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TreeCallableFixedRateBondEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TreeCallableFixedRateBondEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCallableFixedRateBondEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCallableFixedRateBondEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCallableFixedRateBondEngine" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (TreeCallableFixedRateBondEnginePtr *)new_TreeCallableFixedRateBondEnginePtr__SWIG_0((boost::shared_ptr< ShortRateModel > const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TreeCallableFixedRateBondEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TreeCallableFixedRateBondEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  TimeGrid *arg2 = 0 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  TreeCallableFixedRateBondEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TreeCallableFixedRateBondEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCallableFixedRateBondEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCallableFixedRateBondEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TimeGrid,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeCallableFixedRateBondEngine" "', argument " "2"" of type '" "TimeGrid const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCallableFixedRateBondEngine" "', argument " "2"" of type '" "TimeGrid const &""'"); 
  }
  arg2 = reinterpret_cast< TimeGrid * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeCallableFixedRateBondEngine" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCallableFixedRateBondEngine" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  {
    try {
      result = (TreeCallableFixedRateBondEnginePtr *)new_TreeCallableFixedRateBondEnginePtr__SWIG_2((boost::shared_ptr< ShortRateModel > const &)*arg1,(TimeGrid const &)*arg2,(Handle< YieldTermStructure > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TreeCallableFixedRateBondEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TreeCallableFixedRateBondEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< ShortRateModel > *arg1 = 0 ;
  TimeGrid *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TreeCallableFixedRateBondEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TreeCallableFixedRateBondEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCallableFixedRateBondEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCallableFixedRateBondEngine" "', argument " "1"" of type '" "boost::shared_ptr< ShortRateModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< ShortRateModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TimeGrid,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeCallableFixedRateBondEngine" "', argument " "2"" of type '" "TimeGrid const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCallableFixedRateBondEngine" "', argument " "2"" of type '" "TimeGrid const &""'"); 
  }
  arg2 = reinterpret_cast< TimeGrid * >(argp2);
  {
    try {
      result = (TreeCallableFixedRateBondEnginePtr *)new_TreeCallableFixedRateBondEnginePtr__SWIG_2((boost::shared_ptr< ShortRateModel > const &)*arg1,(TimeGrid const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TreeCallableFixedRateBondEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TreeCallableFixedRateBondEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_TimeGrid, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_TreeCallableFixedRateBondEngine__SWIG_3(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_TreeCallableFixedRateBondEngine__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_TimeGrid, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_TreeCallableFixedRateBondEngine__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_ShortRateModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_TreeCallableFixedRateBondEngine__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_TreeCallableFixedRateBondEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    TreeCallableFixedRateBondEnginePtr::TreeCallableFixedRateBondEnginePtr(boost::shared_ptr< ShortRateModel > const &,Size,Handle< YieldTermStructure > const &)\n"
    "    TreeCallableFixedRateBondEnginePtr::TreeCallableFixedRateBondEnginePtr(boost::shared_ptr< ShortRateModel > const &,Size)\n"
    "    TreeCallableFixedRateBondEnginePtr::TreeCallableFixedRateBondEnginePtr(boost::shared_ptr< ShortRateModel > const &,TimeGrid const &,Handle< YieldTermStructure > const &)\n"
    "    TreeCallableFixedRateBondEnginePtr::TreeCallableFixedRateBondEnginePtr(boost::shared_ptr< ShortRateModel > const &,TimeGrid const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_TreeCallableFixedRateBondEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TreeCallableFixedRateBondEnginePtr *arg1 = (TreeCallableFixedRateBondEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_TreeCallableFixedRateBondEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TreeCallableFixedRateBondEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeCallableFixedRateBondEngine" "', argument " "1"" of type '" "TreeCallableFixedRateBondEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< TreeCallableFixedRateBondEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TreeCallableFixedRateBondEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_TreeCallableFixedRateBondEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BlackCallableFixedRateBondEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BlackCallableFixedRateBondEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackCallableFixedRateBondEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackCallableFixedRateBondEngine" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackCallableFixedRateBondEngine" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlackCallableFixedRateBondEngine" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackCallableFixedRateBondEngine" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (BlackCallableFixedRateBondEnginePtr *)new_BlackCallableFixedRateBondEnginePtr((Handle< Quote > const &)*arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackCallableFixedRateBondEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BlackCallableFixedRateBondEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCallableFixedRateBondEnginePtr *arg1 = (BlackCallableFixedRateBondEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BlackCallableFixedRateBondEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCallableFixedRateBondEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlackCallableFixedRateBondEngine" "', argument " "1"" of type '" "BlackCallableFixedRateBondEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< BlackCallableFixedRateBondEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BlackCallableFixedRateBondEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BlackCallableFixedRateBondEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CPIBond(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Real arg2 ;
  bool arg3 ;
  Real arg4 ;
  Period *arg5 = 0 ;
  ZeroInflationIndexPtr *arg6 = 0 ;
  CPI::InterpolationType arg7 ;
  Schedule *arg8 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg9 = 0 ;
  DayCounter *arg10 = 0 ;
  BusinessDayConvention arg11 = (BusinessDayConvention) ModifiedFollowing ;
  Date const &arg12_defvalue = Date() ;
  Date *arg12 = (Date *) &arg12_defvalue ;
  Calendar const &arg13_defvalue = Calendar() ;
  Calendar *arg13 = (Calendar *) &arg13_defvalue ;
  Period const &arg14_defvalue = Period() ;
  Period *arg14 = (Period *) &arg14_defvalue ;
  Calendar const &arg15_defvalue = Calendar() ;
  Calendar *arg15 = (Calendar *) &arg15_defvalue ;
  BusinessDayConvention arg16 = (BusinessDayConvention) Unadjusted ;
  bool arg17 = (bool) false ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int res9 = SWIG_OLDOBJ ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  int val11 ;
  int ecode11 = 0 ;
  void *argp12 = 0 ;
  int res12 = 0 ;
  void *argp13 = 0 ;
  int res13 = 0 ;
  void *argp14 = 0 ;
  int res14 = 0 ;
  void *argp15 = 0 ;
  int res15 = 0 ;
  int val16 ;
  int ecode16 = 0 ;
  bool val17 ;
  int ecode17 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  PyObject * obj14 = 0 ;
  PyObject * obj15 = 0 ;
  PyObject * obj16 = 0 ;
  char *  kwnames[] = {
    (char *) "settlementDays",(char *) "faceAmount",(char *) "growthOnly",(char *) "baseCPI",(char *) "observationLag",(char *) "cpiIndex",(char *) "observationInterpolation",(char *) "schedule",(char *) "coupons",(char *) "accrualDayCounter",(char *) "paymentConvention",(char *) "issueDate",(char *) "paymentCalendar",(char *) "exCouponPeriod",(char *) "exCouponCalendar",(char *) "exCouponConvention",(char *) "exCouponEndOfMonth", NULL 
  };
  CPIBondPtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOOOO|OOOOOOO:new_CPIBond",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15,&obj16)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CPIBond" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CPIBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CPIBond" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_CPIBond" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CPIBond" "', argument " "5"" of type '" "Period const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CPIBond" "', argument " "5"" of type '" "Period const &""'"); 
  }
  arg5 = reinterpret_cast< Period * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_ZeroInflationIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CPIBond" "', argument " "6"" of type '" "ZeroInflationIndexPtr const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CPIBond" "', argument " "6"" of type '" "ZeroInflationIndexPtr const &""'"); 
  }
  arg6 = reinterpret_cast< ZeroInflationIndexPtr * >(argp6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_CPIBond" "', argument " "7"" of type '" "CPI::InterpolationType""'");
  } 
  arg7 = static_cast< CPI::InterpolationType >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_CPIBond" "', argument " "8"" of type '" "Schedule const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CPIBond" "', argument " "8"" of type '" "Schedule const &""'"); 
  }
  arg8 = reinterpret_cast< Schedule * >(argp8);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res9 = swig::asptr(obj8, &ptr);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_CPIBond" "', argument " "9"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CPIBond" "', argument " "9"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg9 = ptr;
  }
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_CPIBond" "', argument " "10"" of type '" "DayCounter const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CPIBond" "', argument " "10"" of type '" "DayCounter const &""'"); 
  }
  arg10 = reinterpret_cast< DayCounter * >(argp10);
  if (obj10) {
    ecode11 = SWIG_AsVal_int(obj10, &val11);
    if (!SWIG_IsOK(ecode11)) {
      SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_CPIBond" "', argument " "11"" of type '" "BusinessDayConvention""'");
    } 
    arg11 = static_cast< BusinessDayConvention >(val11);
  }
  if (obj11) {
    res12 = SWIG_ConvertPtr(obj11, &argp12, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res12)) {
      SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_CPIBond" "', argument " "12"" of type '" "Date const &""'"); 
    }
    if (!argp12) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CPIBond" "', argument " "12"" of type '" "Date const &""'"); 
    }
    arg12 = reinterpret_cast< Date * >(argp12);
  }
  if (obj12) {
    res13 = SWIG_ConvertPtr(obj12, &argp13, SWIGTYPE_p_Calendar,  0  | 0);
    if (!SWIG_IsOK(res13)) {
      SWIG_exception_fail(SWIG_ArgError(res13), "in method '" "new_CPIBond" "', argument " "13"" of type '" "Calendar const &""'"); 
    }
    if (!argp13) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CPIBond" "', argument " "13"" of type '" "Calendar const &""'"); 
    }
    arg13 = reinterpret_cast< Calendar * >(argp13);
  }
  if (obj13) {
    res14 = SWIG_ConvertPtr(obj13, &argp14, SWIGTYPE_p_Period,  0  | 0);
    if (!SWIG_IsOK(res14)) {
      SWIG_exception_fail(SWIG_ArgError(res14), "in method '" "new_CPIBond" "', argument " "14"" of type '" "Period const &""'"); 
    }
    if (!argp14) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CPIBond" "', argument " "14"" of type '" "Period const &""'"); 
    }
    arg14 = reinterpret_cast< Period * >(argp14);
  }
  if (obj14) {
    res15 = SWIG_ConvertPtr(obj14, &argp15, SWIGTYPE_p_Calendar,  0  | 0);
    if (!SWIG_IsOK(res15)) {
      SWIG_exception_fail(SWIG_ArgError(res15), "in method '" "new_CPIBond" "', argument " "15"" of type '" "Calendar const &""'"); 
    }
    if (!argp15) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CPIBond" "', argument " "15"" of type '" "Calendar const &""'"); 
    }
    arg15 = reinterpret_cast< Calendar * >(argp15);
  }
  if (obj15) {
    ecode16 = SWIG_AsVal_int(obj15, &val16);
    if (!SWIG_IsOK(ecode16)) {
      SWIG_exception_fail(SWIG_ArgError(ecode16), "in method '" "new_CPIBond" "', argument " "16"" of type '" "BusinessDayConvention""'");
    } 
    arg16 = static_cast< BusinessDayConvention >(val16);
  }
  if (obj16) {
    ecode17 = SWIG_AsVal_bool(obj16, &val17);
    if (!SWIG_IsOK(ecode17)) {
      SWIG_exception_fail(SWIG_ArgError(ecode17), "in method '" "new_CPIBond" "', argument " "17"" of type '" "bool""'");
    } 
    arg17 = static_cast< bool >(val17);
  }
  {
    try {
      result = (CPIBondPtr *)new_CPIBondPtr(arg1,arg2,arg3,arg4,(Period const &)*arg5,(ZeroInflationIndexPtr const &)*arg6,arg7,(Schedule const &)*arg8,(std::vector< double,std::allocator< double > > const &)*arg9,(DayCounter const &)*arg10,arg11,(Date const &)*arg12,(Calendar const &)*arg13,(Period const &)*arg14,(Calendar const &)*arg15,arg16,arg17);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CPIBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res9)) delete arg9;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res9)) delete arg9;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CPIBond(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CPIBondPtr *arg1 = (CPIBondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CPIBond",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPIBondPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CPIBond" "', argument " "1"" of type '" "CPIBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< CPIBondPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CPIBond_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CPIBondPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_BondFunctions_startDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_startDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_startDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_startDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = BondFunctions_startDate((BondPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_maturityDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_maturityDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_maturityDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_maturityDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = BondFunctions_maturityDate((BondPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_isTradable__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Date arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_isTradable",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_isTradable" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_isTradable" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_isTradable" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_isTradable" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    try {
      result = (bool)BondFunctions_isTradable__SWIG_0((BondPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_isTradable__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_isTradable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_isTradable" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_isTradable" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = (bool)BondFunctions_isTradable__SWIG_0((BondPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_isTradable(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_BondFunctions_isTradable__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_isTradable__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_isTradable'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::isTradable(BondPtr const &,Date)\n"
    "    BondFunctions::BondFunctions_isTradable__SWIG_0(BondPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_previousCashFlowDate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Date arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_previousCashFlowDate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_previousCashFlowDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_previousCashFlowDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_previousCashFlowDate" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_previousCashFlowDate" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    try {
      result = BondFunctions_previousCashFlowDate__SWIG_0((BondPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_previousCashFlowDate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_previousCashFlowDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_previousCashFlowDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_previousCashFlowDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = BondFunctions_previousCashFlowDate__SWIG_0((BondPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_previousCashFlowDate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_BondFunctions_previousCashFlowDate__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_previousCashFlowDate__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_previousCashFlowDate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::previousCashFlowDate(BondPtr const &,Date)\n"
    "    BondFunctions::BondFunctions_previousCashFlowDate__SWIG_0(BondPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_nextCashFlowDate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Date arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_nextCashFlowDate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_nextCashFlowDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_nextCashFlowDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_nextCashFlowDate" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_nextCashFlowDate" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    try {
      result = BondFunctions_nextCashFlowDate__SWIG_0((BondPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_nextCashFlowDate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_nextCashFlowDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_nextCashFlowDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_nextCashFlowDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = BondFunctions_nextCashFlowDate__SWIG_0((BondPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_nextCashFlowDate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_BondFunctions_nextCashFlowDate__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_nextCashFlowDate__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_nextCashFlowDate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::nextCashFlowDate(BondPtr const &,Date)\n"
    "    BondFunctions::BondFunctions_nextCashFlowDate__SWIG_0(BondPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_previousCashFlowAmount__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Date arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_previousCashFlowAmount",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_previousCashFlowAmount" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_previousCashFlowAmount" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_previousCashFlowAmount" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_previousCashFlowAmount" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    try {
      result = (Real)BondFunctions_previousCashFlowAmount__SWIG_0((BondPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_previousCashFlowAmount__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_previousCashFlowAmount",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_previousCashFlowAmount" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_previousCashFlowAmount" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = (Real)BondFunctions_previousCashFlowAmount__SWIG_0((BondPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_previousCashFlowAmount(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_BondFunctions_previousCashFlowAmount__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_previousCashFlowAmount__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_previousCashFlowAmount'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::previousCashFlowAmount(BondPtr const &,Date)\n"
    "    BondFunctions::BondFunctions_previousCashFlowAmount__SWIG_0(BondPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_nextCashFlowAmount__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Date arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_nextCashFlowAmount",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_nextCashFlowAmount" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_nextCashFlowAmount" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_nextCashFlowAmount" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_nextCashFlowAmount" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    try {
      result = (Real)BondFunctions_nextCashFlowAmount__SWIG_0((BondPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_nextCashFlowAmount__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_nextCashFlowAmount",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_nextCashFlowAmount" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_nextCashFlowAmount" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = (Real)BondFunctions_nextCashFlowAmount__SWIG_0((BondPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_nextCashFlowAmount(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_BondFunctions_nextCashFlowAmount__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_nextCashFlowAmount__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_nextCashFlowAmount'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::nextCashFlowAmount(BondPtr const &,Date)\n"
    "    BondFunctions::BondFunctions_nextCashFlowAmount__SWIG_0(BondPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_previousCouponRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Date arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_previousCouponRate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_previousCouponRate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_previousCouponRate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_previousCouponRate" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_previousCouponRate" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    try {
      result = (Rate)BondFunctions_previousCouponRate__SWIG_0((BondPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_previousCouponRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_previousCouponRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_previousCouponRate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_previousCouponRate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = (Rate)BondFunctions_previousCouponRate__SWIG_0((BondPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_previousCouponRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_BondFunctions_previousCouponRate__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_previousCouponRate__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_previousCouponRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::previousCouponRate(BondPtr const &,Date)\n"
    "    BondFunctions::BondFunctions_previousCouponRate__SWIG_0(BondPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_nextCouponRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Date arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_nextCouponRate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_nextCouponRate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_nextCouponRate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_nextCouponRate" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_nextCouponRate" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    try {
      result = (Rate)BondFunctions_nextCouponRate__SWIG_0((BondPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_nextCouponRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_nextCouponRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_nextCouponRate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_nextCouponRate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = (Rate)BondFunctions_nextCouponRate__SWIG_0((BondPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_nextCouponRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_BondFunctions_nextCouponRate__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_nextCouponRate__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_nextCouponRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::nextCouponRate(BondPtr const &,Date)\n"
    "    BondFunctions::BondFunctions_nextCouponRate__SWIG_0(BondPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accrualStartDate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Date arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_accrualStartDate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_accrualStartDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accrualStartDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_accrualStartDate" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accrualStartDate" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    try {
      result = BondFunctions_accrualStartDate__SWIG_0((BondPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accrualStartDate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_accrualStartDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_accrualStartDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accrualStartDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = BondFunctions_accrualStartDate__SWIG_0((BondPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accrualStartDate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_BondFunctions_accrualStartDate__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_accrualStartDate__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_accrualStartDate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::accrualStartDate(BondPtr const &,Date)\n"
    "    BondFunctions::BondFunctions_accrualStartDate__SWIG_0(BondPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accrualEndDate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Date arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_accrualEndDate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_accrualEndDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accrualEndDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_accrualEndDate" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accrualEndDate" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    try {
      result = BondFunctions_accrualEndDate__SWIG_0((BondPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accrualEndDate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_accrualEndDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_accrualEndDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accrualEndDate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = BondFunctions_accrualEndDate__SWIG_0((BondPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accrualEndDate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_BondFunctions_accrualEndDate__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_accrualEndDate__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_accrualEndDate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::accrualEndDate(BondPtr const &,Date)\n"
    "    BondFunctions::BondFunctions_accrualEndDate__SWIG_0(BondPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accrualPeriod__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Date arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_accrualPeriod",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_accrualPeriod" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accrualPeriod" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_accrualPeriod" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accrualPeriod" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    try {
      result = (Time)BondFunctions_accrualPeriod__SWIG_0((BondPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accrualPeriod__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_accrualPeriod",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_accrualPeriod" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accrualPeriod" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = (Time)BondFunctions_accrualPeriod__SWIG_0((BondPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accrualPeriod(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_BondFunctions_accrualPeriod__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_accrualPeriod__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_accrualPeriod'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::accrualPeriod(BondPtr const &,Date)\n"
    "    BondFunctions::BondFunctions_accrualPeriod__SWIG_0(BondPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accrualDays__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Date arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BigInteger result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_accrualDays",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_accrualDays" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accrualDays" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_accrualDays" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accrualDays" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    try {
      result = (BigInteger)BondFunctions_accrualDays__SWIG_0((BondPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_long(static_cast< long >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accrualDays__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BigInteger result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_accrualDays",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_accrualDays" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accrualDays" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = (BigInteger)BondFunctions_accrualDays__SWIG_0((BondPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_long(static_cast< long >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accrualDays(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_BondFunctions_accrualDays__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_accrualDays__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_accrualDays'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::accrualDays(BondPtr const &,Date)\n"
    "    BondFunctions::BondFunctions_accrualDays__SWIG_0(BondPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accruedPeriod__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Date arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_accruedPeriod",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_accruedPeriod" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accruedPeriod" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_accruedPeriod" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accruedPeriod" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    try {
      result = (Time)BondFunctions_accruedPeriod__SWIG_0((BondPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accruedPeriod__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_accruedPeriod",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_accruedPeriod" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accruedPeriod" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = (Time)BondFunctions_accruedPeriod__SWIG_0((BondPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accruedPeriod(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_BondFunctions_accruedPeriod__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_accruedPeriod__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_accruedPeriod'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::accruedPeriod(BondPtr const &,Date)\n"
    "    BondFunctions::BondFunctions_accruedPeriod__SWIG_0(BondPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accruedDays__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Date arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BigInteger result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_accruedDays",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_accruedDays" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accruedDays" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_accruedDays" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accruedDays" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    try {
      result = (BigInteger)BondFunctions_accruedDays__SWIG_0((BondPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_long(static_cast< long >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accruedDays__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BigInteger result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_accruedDays",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_accruedDays" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accruedDays" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = (BigInteger)BondFunctions_accruedDays__SWIG_0((BondPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_long(static_cast< long >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accruedDays(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_BondFunctions_accruedDays__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_accruedDays__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_accruedDays'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::accruedDays(BondPtr const &,Date)\n"
    "    BondFunctions::BondFunctions_accruedDays__SWIG_0(BondPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accruedAmount__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Date arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_accruedAmount",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_accruedAmount" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accruedAmount" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_accruedAmount" "', argument " "2"" of type '" "Date""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accruedAmount" "', argument " "2"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    try {
      result = (Real)BondFunctions_accruedAmount__SWIG_0((BondPtr const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accruedAmount__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_accruedAmount",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_accruedAmount" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_accruedAmount" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  {
    try {
      result = (Real)BondFunctions_accruedAmount__SWIG_0((BondPtr const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_accruedAmount(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_BondFunctions_accruedAmount__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_accruedAmount__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_accruedAmount'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::accruedAmount(BondPtr const &,Date)\n"
    "    BondFunctions::BondFunctions_accruedAmount__SWIG_0(BondPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_cleanPrice__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  Date arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_cleanPrice",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_cleanPrice" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_cleanPrice" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_cleanPrice" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_cleanPrice" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  {
    res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_cleanPrice" "', argument " "3"" of type '" "Date""'"); 
    }  
    if (!argp3) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_cleanPrice" "', argument " "3"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp3);
      arg3 = *temp;
      if (SWIG_IsNewObj(res3)) delete temp;
    }
  }
  {
    try {
      result = (Real)BondFunctions_cleanPrice__SWIG_0((BondPtr const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_cleanPrice__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_cleanPrice",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_cleanPrice" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_cleanPrice" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_cleanPrice" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_cleanPrice" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  {
    try {
      result = (Real)BondFunctions_cleanPrice__SWIG_0((BondPtr const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_bps__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  Date arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_bps",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_bps" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bps" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_bps" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bps" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  {
    res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_bps" "', argument " "3"" of type '" "Date""'"); 
    }  
    if (!argp3) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bps" "', argument " "3"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp3);
      arg3 = *temp;
      if (SWIG_IsNewObj(res3)) delete temp;
    }
  }
  {
    try {
      result = (Real)BondFunctions_bps__SWIG_0((BondPtr const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_bps__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_bps",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_bps" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bps" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_bps" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bps" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  {
    try {
      result = (Real)BondFunctions_bps__SWIG_0((BondPtr const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_atmRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  Date arg3 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_atmRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_atmRate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_atmRate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_atmRate" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_atmRate" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  {
    res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_atmRate" "', argument " "3"" of type '" "Date""'"); 
    }  
    if (!argp3) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_atmRate" "', argument " "3"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp3);
      arg3 = *temp;
      if (SWIG_IsNewObj(res3)) delete temp;
    }
  }
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_atmRate" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Rate)BondFunctions_atmRate__SWIG_0((BondPtr const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_atmRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  Date arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_atmRate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_atmRate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_atmRate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_atmRate" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_atmRate" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  {
    res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_atmRate" "', argument " "3"" of type '" "Date""'"); 
    }  
    if (!argp3) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_atmRate" "', argument " "3"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp3);
      arg3 = *temp;
      if (SWIG_IsNewObj(res3)) delete temp;
    }
  }
  {
    try {
      result = (Rate)BondFunctions_atmRate__SWIG_0((BondPtr const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_atmRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_atmRate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_atmRate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_atmRate" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_atmRate" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_atmRate" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  {
    try {
      result = (Rate)BondFunctions_atmRate__SWIG_0((BondPtr const &)*arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_atmRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_atmRate__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_BondFunctions_atmRate__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_BondFunctions_atmRate__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_atmRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::atmRate(BondPtr const &,boost::shared_ptr< YieldTermStructure > const &,Date,Real)\n"
    "    BondFunctions::atmRate(BondPtr const &,boost::shared_ptr< YieldTermStructure > const &,Date)\n"
    "    BondFunctions::BondFunctions_atmRate__SWIG_0(BondPtr const &,boost::shared_ptr< YieldTermStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_cleanPrice__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  Date arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_cleanPrice",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_cleanPrice" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_cleanPrice" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_cleanPrice" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_cleanPrice" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  {
    res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_cleanPrice" "', argument " "3"" of type '" "Date""'"); 
    }  
    if (!argp3) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_cleanPrice" "', argument " "3"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp3);
      arg3 = *temp;
      if (SWIG_IsNewObj(res3)) delete temp;
    }
  }
  {
    try {
      result = (Real)BondFunctions_cleanPrice__SWIG_2((BondPtr const &)*arg1,(InterestRate const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_cleanPrice__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_cleanPrice",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_cleanPrice" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_cleanPrice" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_cleanPrice" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_cleanPrice" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  {
    try {
      result = (Real)BondFunctions_cleanPrice__SWIG_2((BondPtr const &)*arg1,(InterestRate const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_cleanPrice__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Date arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_cleanPrice",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_cleanPrice" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_cleanPrice" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_cleanPrice" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_cleanPrice" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_cleanPrice" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_cleanPrice" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_cleanPrice" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "BondFunctions_cleanPrice" "', argument " "6"" of type '" "Date""'"); 
    }  
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_cleanPrice" "', argument " "6"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp6);
      arg6 = *temp;
      if (SWIG_IsNewObj(res6)) delete temp;
    }
  }
  {
    try {
      result = (Real)BondFunctions_cleanPrice__SWIG_4((BondPtr const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_cleanPrice__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_cleanPrice",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_cleanPrice" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_cleanPrice" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_cleanPrice" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_cleanPrice" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_cleanPrice" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_cleanPrice" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_cleanPrice" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    try {
      result = (Real)BondFunctions_cleanPrice__SWIG_4((BondPtr const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_cleanPrice(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_cleanPrice__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_cleanPrice__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_BondFunctions_cleanPrice__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_BondFunctions_cleanPrice__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_BondFunctions_cleanPrice__SWIG_5(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_BondFunctions_cleanPrice__SWIG_4(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_cleanPrice'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::cleanPrice(BondPtr const &,boost::shared_ptr< YieldTermStructure > const &,Date)\n"
    "    BondFunctions::cleanPrice(BondPtr const &,boost::shared_ptr< YieldTermStructure > const &)\n"
    "    BondFunctions::cleanPrice(BondPtr const &,InterestRate const &,Date)\n"
    "    BondFunctions::cleanPrice(BondPtr const &,InterestRate const &)\n"
    "    BondFunctions::cleanPrice(BondPtr const &,Rate,DayCounter const &,Compounding,Frequency,Date)\n"
    "    BondFunctions::BondFunctions_cleanPrice__SWIG_4(BondPtr const &,Rate,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_bps__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  Date arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_bps",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_bps" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bps" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_bps" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bps" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  {
    res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_bps" "', argument " "3"" of type '" "Date""'"); 
    }  
    if (!argp3) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bps" "', argument " "3"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp3);
      arg3 = *temp;
      if (SWIG_IsNewObj(res3)) delete temp;
    }
  }
  {
    try {
      result = (Real)BondFunctions_bps__SWIG_2((BondPtr const &)*arg1,(InterestRate const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_bps__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_bps",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_bps" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bps" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_bps" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bps" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  {
    try {
      result = (Real)BondFunctions_bps__SWIG_2((BondPtr const &)*arg1,(InterestRate const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_bps__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Date arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_bps",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_bps" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bps" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_bps" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_bps" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bps" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_bps" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_bps" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "BondFunctions_bps" "', argument " "6"" of type '" "Date""'"); 
    }  
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bps" "', argument " "6"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp6);
      arg6 = *temp;
      if (SWIG_IsNewObj(res6)) delete temp;
    }
  }
  {
    try {
      result = (Real)BondFunctions_bps__SWIG_4((BondPtr const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_bps__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_bps",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_bps" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bps" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_bps" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_bps" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bps" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_bps" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_bps" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    try {
      result = (Real)BondFunctions_bps__SWIG_4((BondPtr const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_bps(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_bps__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_bps__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_BondFunctions_bps__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_BondFunctions_bps__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_BondFunctions_bps__SWIG_5(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_BondFunctions_bps__SWIG_4(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_bps'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::bps(BondPtr const &,boost::shared_ptr< YieldTermStructure > const &,Date)\n"
    "    BondFunctions::bps(BondPtr const &,boost::shared_ptr< YieldTermStructure > const &)\n"
    "    BondFunctions::bps(BondPtr const &,InterestRate const &,Date)\n"
    "    BondFunctions::bps(BondPtr const &,InterestRate const &)\n"
    "    BondFunctions::bps(BondPtr const &,Rate,DayCounter const &,Compounding,Frequency,Date)\n"
    "    BondFunctions::BondFunctions_bps__SWIG_4(BondPtr const &,Rate,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_bondYield__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Real arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Date arg6 ;
  Real arg7 ;
  Size arg8 ;
  Rate arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 ;
  int res6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  size_t val8 ;
  int ecode8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_bondYield",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_bondYield" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bondYield" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_bondYield" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_bondYield" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bondYield" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_bondYield" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_bondYield" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "BondFunctions_bondYield" "', argument " "6"" of type '" "Date""'"); 
    }  
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bondYield" "', argument " "6"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp6);
      arg6 = *temp;
      if (SWIG_IsNewObj(res6)) delete temp;
    }
  }
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BondFunctions_bondYield" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  ecode8 = SWIG_AsVal_size_t(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_bondYield" "', argument " "8"" of type '" "Size""'");
  } 
  arg8 = static_cast< Size >(val8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "BondFunctions_bondYield" "', argument " "9"" of type '" "Rate""'");
  } 
  arg9 = static_cast< Rate >(val9);
  {
    try {
      result = (Rate)BondFunctions_yield__SWIG_0((BondPtr const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_bondYield__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Real arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Date arg6 ;
  Real arg7 ;
  Size arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 ;
  int res6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  size_t val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_bondYield",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_bondYield" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bondYield" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_bondYield" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_bondYield" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bondYield" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_bondYield" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_bondYield" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "BondFunctions_bondYield" "', argument " "6"" of type '" "Date""'"); 
    }  
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bondYield" "', argument " "6"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp6);
      arg6 = *temp;
      if (SWIG_IsNewObj(res6)) delete temp;
    }
  }
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BondFunctions_bondYield" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  ecode8 = SWIG_AsVal_size_t(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_bondYield" "', argument " "8"" of type '" "Size""'");
  } 
  arg8 = static_cast< Size >(val8);
  {
    try {
      result = (Rate)BondFunctions_yield__SWIG_0((BondPtr const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_bondYield__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Real arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Date arg6 ;
  Real arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 ;
  int res6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_bondYield",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_bondYield" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bondYield" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_bondYield" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_bondYield" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bondYield" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_bondYield" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_bondYield" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "BondFunctions_bondYield" "', argument " "6"" of type '" "Date""'"); 
    }  
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bondYield" "', argument " "6"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp6);
      arg6 = *temp;
      if (SWIG_IsNewObj(res6)) delete temp;
    }
  }
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BondFunctions_bondYield" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (Rate)BondFunctions_yield__SWIG_0((BondPtr const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_bondYield__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Real arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Date arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_bondYield",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_bondYield" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bondYield" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_bondYield" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_bondYield" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bondYield" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_bondYield" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_bondYield" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "BondFunctions_bondYield" "', argument " "6"" of type '" "Date""'"); 
    }  
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bondYield" "', argument " "6"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp6);
      arg6 = *temp;
      if (SWIG_IsNewObj(res6)) delete temp;
    }
  }
  {
    try {
      result = (Rate)BondFunctions_yield__SWIG_0((BondPtr const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_bondYield__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Real arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_bondYield",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_bondYield" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bondYield" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_bondYield" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_bondYield" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_bondYield" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_bondYield" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_bondYield" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    try {
      result = (Rate)BondFunctions_yield__SWIG_0((BondPtr const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_bondYield(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_BondFunctions_bondYield__SWIG_4(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_BondFunctions_bondYield__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_BondFunctions_bondYield__SWIG_2(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    _v = (PyInt_Check(argv[7]) || PyLong_Check(argv[7])) ? 1 : 0;
                  }
                  if (_v) {
                    return _wrap_BondFunctions_bondYield__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    _v = (PyInt_Check(argv[7]) || PyLong_Check(argv[7])) ? 1 : 0;
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_BondFunctions_bondYield__SWIG_0(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_bondYield'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::yield(BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date,Real,Size,Rate)\n"
    "    BondFunctions::yield(BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date,Real,Size)\n"
    "    BondFunctions::yield(BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date,Real)\n"
    "    BondFunctions::yield(BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date)\n"
    "    BondFunctions::BondFunctions_yield__SWIG_0(BondPtr const &,Real,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldBrent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Brent arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  Real arg8 ;
  Rate arg9 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldBrent",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Brent,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldBrent" "', argument " "1"" of type '" "Brent""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBrent" "', argument " "1"" of type '" "Brent""'");
    } else {
      Brent * temp = reinterpret_cast< Brent * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldBrent" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBrent" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldBrent" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldBrent" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBrent" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldBrent" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldBrent" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldBrent" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBrent" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_yieldBrent" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "BondFunctions_yieldBrent" "', argument " "9"" of type '" "Rate""'");
  } 
  arg9 = static_cast< Rate >(val9);
  {
    try {
      result = (Rate)BondFunctions_yieldBrent__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldBrent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Brent arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  Real arg8 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldBrent",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Brent,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldBrent" "', argument " "1"" of type '" "Brent""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBrent" "', argument " "1"" of type '" "Brent""'");
    } else {
      Brent * temp = reinterpret_cast< Brent * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldBrent" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBrent" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldBrent" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldBrent" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBrent" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldBrent" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldBrent" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldBrent" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBrent" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_yieldBrent" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  {
    try {
      result = (Rate)BondFunctions_yieldBrent__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldBrent__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Brent arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldBrent",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Brent,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldBrent" "', argument " "1"" of type '" "Brent""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBrent" "', argument " "1"" of type '" "Brent""'");
    } else {
      Brent * temp = reinterpret_cast< Brent * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldBrent" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBrent" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldBrent" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldBrent" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBrent" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldBrent" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldBrent" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldBrent" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBrent" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    try {
      result = (Rate)BondFunctions_yieldBrent__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldBrent__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Brent arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldBrent",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Brent,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldBrent" "', argument " "1"" of type '" "Brent""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBrent" "', argument " "1"" of type '" "Brent""'");
    } else {
      Brent * temp = reinterpret_cast< Brent * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldBrent" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBrent" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldBrent" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldBrent" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBrent" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldBrent" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldBrent" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    try {
      result = (Rate)BondFunctions_yieldBrent__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldBrent(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Brent, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_BondFunctions_yieldBrent__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Brent, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_BondFunctions_yieldBrent__SWIG_2(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Brent, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_BondFunctions_yieldBrent__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Brent, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_BondFunctions_yieldBrent__SWIG_0(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_yieldBrent'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::yieldBrent(Brent,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date,Real,Rate)\n"
    "    BondFunctions::yieldBrent(Brent,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date,Real)\n"
    "    BondFunctions::yieldBrent(Brent,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date)\n"
    "    BondFunctions::BondFunctions_yieldBrent__SWIG_0(Brent,BondPtr const &,Real,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldBisection__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bisection arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  Real arg8 ;
  Rate arg9 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldBisection",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Bisection,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldBisection" "', argument " "1"" of type '" "Bisection""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBisection" "', argument " "1"" of type '" "Bisection""'");
    } else {
      Bisection * temp = reinterpret_cast< Bisection * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldBisection" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBisection" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldBisection" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldBisection" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBisection" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldBisection" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldBisection" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldBisection" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBisection" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_yieldBisection" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "BondFunctions_yieldBisection" "', argument " "9"" of type '" "Rate""'");
  } 
  arg9 = static_cast< Rate >(val9);
  {
    try {
      result = (Rate)BondFunctions_yieldBisection__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldBisection__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bisection arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  Real arg8 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldBisection",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Bisection,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldBisection" "', argument " "1"" of type '" "Bisection""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBisection" "', argument " "1"" of type '" "Bisection""'");
    } else {
      Bisection * temp = reinterpret_cast< Bisection * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldBisection" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBisection" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldBisection" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldBisection" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBisection" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldBisection" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldBisection" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldBisection" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBisection" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_yieldBisection" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  {
    try {
      result = (Rate)BondFunctions_yieldBisection__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldBisection__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bisection arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldBisection",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Bisection,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldBisection" "', argument " "1"" of type '" "Bisection""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBisection" "', argument " "1"" of type '" "Bisection""'");
    } else {
      Bisection * temp = reinterpret_cast< Bisection * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldBisection" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBisection" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldBisection" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldBisection" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBisection" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldBisection" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldBisection" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldBisection" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBisection" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    try {
      result = (Rate)BondFunctions_yieldBisection__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldBisection__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Bisection arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldBisection",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Bisection,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldBisection" "', argument " "1"" of type '" "Bisection""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBisection" "', argument " "1"" of type '" "Bisection""'");
    } else {
      Bisection * temp = reinterpret_cast< Bisection * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldBisection" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBisection" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldBisection" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldBisection" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldBisection" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldBisection" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldBisection" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    try {
      result = (Rate)BondFunctions_yieldBisection__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldBisection(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Bisection, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_BondFunctions_yieldBisection__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Bisection, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_BondFunctions_yieldBisection__SWIG_2(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Bisection, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_BondFunctions_yieldBisection__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Bisection, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_BondFunctions_yieldBisection__SWIG_0(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_yieldBisection'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::yieldBisection(Bisection,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date,Real,Rate)\n"
    "    BondFunctions::yieldBisection(Bisection,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date,Real)\n"
    "    BondFunctions::yieldBisection(Bisection,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date)\n"
    "    BondFunctions::BondFunctions_yieldBisection__SWIG_0(Bisection,BondPtr const &,Real,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldFalsePosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FalsePosition arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  Real arg8 ;
  Rate arg9 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldFalsePosition",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_FalsePosition,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "1"" of type '" "FalsePosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldFalsePosition" "', argument " "1"" of type '" "FalsePosition""'");
    } else {
      FalsePosition * temp = reinterpret_cast< FalsePosition * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldFalsePosition" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldFalsePosition" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldFalsePosition" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "9"" of type '" "Rate""'");
  } 
  arg9 = static_cast< Rate >(val9);
  {
    try {
      result = (Rate)BondFunctions_yieldFalsePosition__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldFalsePosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FalsePosition arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  Real arg8 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldFalsePosition",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_FalsePosition,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "1"" of type '" "FalsePosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldFalsePosition" "', argument " "1"" of type '" "FalsePosition""'");
    } else {
      FalsePosition * temp = reinterpret_cast< FalsePosition * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldFalsePosition" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldFalsePosition" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldFalsePosition" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  {
    try {
      result = (Rate)BondFunctions_yieldFalsePosition__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldFalsePosition__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FalsePosition arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldFalsePosition",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_FalsePosition,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "1"" of type '" "FalsePosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldFalsePosition" "', argument " "1"" of type '" "FalsePosition""'");
    } else {
      FalsePosition * temp = reinterpret_cast< FalsePosition * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldFalsePosition" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldFalsePosition" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldFalsePosition" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    try {
      result = (Rate)BondFunctions_yieldFalsePosition__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldFalsePosition__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FalsePosition arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldFalsePosition",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_FalsePosition,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "1"" of type '" "FalsePosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldFalsePosition" "', argument " "1"" of type '" "FalsePosition""'");
    } else {
      FalsePosition * temp = reinterpret_cast< FalsePosition * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldFalsePosition" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldFalsePosition" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldFalsePosition" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    try {
      result = (Rate)BondFunctions_yieldFalsePosition__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldFalsePosition(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_FalsePosition, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_BondFunctions_yieldFalsePosition__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_FalsePosition, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_BondFunctions_yieldFalsePosition__SWIG_2(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_FalsePosition, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_BondFunctions_yieldFalsePosition__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_FalsePosition, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_BondFunctions_yieldFalsePosition__SWIG_0(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_yieldFalsePosition'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::yieldFalsePosition(FalsePosition,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date,Real,Rate)\n"
    "    BondFunctions::yieldFalsePosition(FalsePosition,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date,Real)\n"
    "    BondFunctions::yieldFalsePosition(FalsePosition,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date)\n"
    "    BondFunctions::BondFunctions_yieldFalsePosition__SWIG_0(FalsePosition,BondPtr const &,Real,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldRidder__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Ridder arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  Real arg8 ;
  Rate arg9 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldRidder",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Ridder,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldRidder" "', argument " "1"" of type '" "Ridder""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldRidder" "', argument " "1"" of type '" "Ridder""'");
    } else {
      Ridder * temp = reinterpret_cast< Ridder * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldRidder" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldRidder" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldRidder" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldRidder" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldRidder" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldRidder" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldRidder" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldRidder" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldRidder" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_yieldRidder" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "BondFunctions_yieldRidder" "', argument " "9"" of type '" "Rate""'");
  } 
  arg9 = static_cast< Rate >(val9);
  {
    try {
      result = (Rate)BondFunctions_yieldRidder__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldRidder__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Ridder arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  Real arg8 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldRidder",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Ridder,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldRidder" "', argument " "1"" of type '" "Ridder""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldRidder" "', argument " "1"" of type '" "Ridder""'");
    } else {
      Ridder * temp = reinterpret_cast< Ridder * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldRidder" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldRidder" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldRidder" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldRidder" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldRidder" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldRidder" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldRidder" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldRidder" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldRidder" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_yieldRidder" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  {
    try {
      result = (Rate)BondFunctions_yieldRidder__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldRidder__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Ridder arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldRidder",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Ridder,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldRidder" "', argument " "1"" of type '" "Ridder""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldRidder" "', argument " "1"" of type '" "Ridder""'");
    } else {
      Ridder * temp = reinterpret_cast< Ridder * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldRidder" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldRidder" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldRidder" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldRidder" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldRidder" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldRidder" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldRidder" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldRidder" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldRidder" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    try {
      result = (Rate)BondFunctions_yieldRidder__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldRidder__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Ridder arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldRidder",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Ridder,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldRidder" "', argument " "1"" of type '" "Ridder""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldRidder" "', argument " "1"" of type '" "Ridder""'");
    } else {
      Ridder * temp = reinterpret_cast< Ridder * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldRidder" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldRidder" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldRidder" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldRidder" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldRidder" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldRidder" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldRidder" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    try {
      result = (Rate)BondFunctions_yieldRidder__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldRidder(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Ridder, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_BondFunctions_yieldRidder__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Ridder, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_BondFunctions_yieldRidder__SWIG_2(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Ridder, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_BondFunctions_yieldRidder__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Ridder, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_BondFunctions_yieldRidder__SWIG_0(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_yieldRidder'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::yieldRidder(Ridder,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date,Real,Rate)\n"
    "    BondFunctions::yieldRidder(Ridder,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date,Real)\n"
    "    BondFunctions::yieldRidder(Ridder,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date)\n"
    "    BondFunctions::BondFunctions_yieldRidder__SWIG_0(Ridder,BondPtr const &,Real,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldSecant__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Secant arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  Real arg8 ;
  Rate arg9 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldSecant",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Secant,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldSecant" "', argument " "1"" of type '" "Secant""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldSecant" "', argument " "1"" of type '" "Secant""'");
    } else {
      Secant * temp = reinterpret_cast< Secant * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldSecant" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldSecant" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldSecant" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldSecant" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldSecant" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldSecant" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldSecant" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldSecant" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldSecant" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_yieldSecant" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "BondFunctions_yieldSecant" "', argument " "9"" of type '" "Rate""'");
  } 
  arg9 = static_cast< Rate >(val9);
  {
    try {
      result = (Rate)BondFunctions_yieldSecant__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldSecant__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Secant arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  Real arg8 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldSecant",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Secant,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldSecant" "', argument " "1"" of type '" "Secant""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldSecant" "', argument " "1"" of type '" "Secant""'");
    } else {
      Secant * temp = reinterpret_cast< Secant * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldSecant" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldSecant" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldSecant" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldSecant" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldSecant" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldSecant" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldSecant" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldSecant" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldSecant" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_yieldSecant" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  {
    try {
      result = (Rate)BondFunctions_yieldSecant__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldSecant__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Secant arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldSecant",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Secant,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldSecant" "', argument " "1"" of type '" "Secant""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldSecant" "', argument " "1"" of type '" "Secant""'");
    } else {
      Secant * temp = reinterpret_cast< Secant * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldSecant" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldSecant" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldSecant" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldSecant" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldSecant" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldSecant" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldSecant" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldSecant" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldSecant" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    try {
      result = (Rate)BondFunctions_yieldSecant__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldSecant__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Secant arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldSecant",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Secant,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldSecant" "', argument " "1"" of type '" "Secant""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldSecant" "', argument " "1"" of type '" "Secant""'");
    } else {
      Secant * temp = reinterpret_cast< Secant * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldSecant" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldSecant" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldSecant" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldSecant" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldSecant" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldSecant" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldSecant" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    try {
      result = (Rate)BondFunctions_yieldSecant__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldSecant(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Secant, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_BondFunctions_yieldSecant__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Secant, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_BondFunctions_yieldSecant__SWIG_2(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Secant, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_BondFunctions_yieldSecant__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Secant, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_BondFunctions_yieldSecant__SWIG_0(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_yieldSecant'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::yieldSecant(Secant,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date,Real,Rate)\n"
    "    BondFunctions::yieldSecant(Secant,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date,Real)\n"
    "    BondFunctions::yieldSecant(Secant,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date)\n"
    "    BondFunctions::BondFunctions_yieldSecant__SWIG_0(Secant,BondPtr const &,Real,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldNewton__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Newton arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  Real arg8 ;
  Rate arg9 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldNewton",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Newton,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldNewton" "', argument " "1"" of type '" "Newton""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewton" "', argument " "1"" of type '" "Newton""'");
    } else {
      Newton * temp = reinterpret_cast< Newton * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldNewton" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewton" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldNewton" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldNewton" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewton" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldNewton" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldNewton" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldNewton" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewton" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_yieldNewton" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "BondFunctions_yieldNewton" "', argument " "9"" of type '" "Rate""'");
  } 
  arg9 = static_cast< Rate >(val9);
  {
    try {
      result = (Rate)BondFunctions_yieldNewton__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldNewton__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Newton arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  Real arg8 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldNewton",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Newton,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldNewton" "', argument " "1"" of type '" "Newton""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewton" "', argument " "1"" of type '" "Newton""'");
    } else {
      Newton * temp = reinterpret_cast< Newton * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldNewton" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewton" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldNewton" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldNewton" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewton" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldNewton" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldNewton" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldNewton" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewton" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_yieldNewton" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  {
    try {
      result = (Rate)BondFunctions_yieldNewton__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldNewton__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Newton arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldNewton",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Newton,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldNewton" "', argument " "1"" of type '" "Newton""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewton" "', argument " "1"" of type '" "Newton""'");
    } else {
      Newton * temp = reinterpret_cast< Newton * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldNewton" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewton" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldNewton" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldNewton" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewton" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldNewton" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldNewton" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldNewton" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewton" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    try {
      result = (Rate)BondFunctions_yieldNewton__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldNewton__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Newton arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldNewton",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Newton,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldNewton" "', argument " "1"" of type '" "Newton""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewton" "', argument " "1"" of type '" "Newton""'");
    } else {
      Newton * temp = reinterpret_cast< Newton * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldNewton" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewton" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldNewton" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldNewton" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewton" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldNewton" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldNewton" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    try {
      result = (Rate)BondFunctions_yieldNewton__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldNewton(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Newton, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_BondFunctions_yieldNewton__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Newton, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_BondFunctions_yieldNewton__SWIG_2(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Newton, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_BondFunctions_yieldNewton__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Newton, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_BondFunctions_yieldNewton__SWIG_0(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_yieldNewton'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::yieldNewton(Newton,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date,Real,Rate)\n"
    "    BondFunctions::yieldNewton(Newton,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date,Real)\n"
    "    BondFunctions::yieldNewton(Newton,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date)\n"
    "    BondFunctions::BondFunctions_yieldNewton__SWIG_0(Newton,BondPtr const &,Real,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldNewtonSafe__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NewtonSafe arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  Real arg8 ;
  Rate arg9 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldNewtonSafe",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_NewtonSafe,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "1"" of type '" "NewtonSafe""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "1"" of type '" "NewtonSafe""'");
    } else {
      NewtonSafe * temp = reinterpret_cast< NewtonSafe * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "9"" of type '" "Rate""'");
  } 
  arg9 = static_cast< Rate >(val9);
  {
    try {
      result = (Rate)BondFunctions_yieldNewtonSafe__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldNewtonSafe__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NewtonSafe arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  Real arg8 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldNewtonSafe",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_NewtonSafe,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "1"" of type '" "NewtonSafe""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "1"" of type '" "NewtonSafe""'");
    } else {
      NewtonSafe * temp = reinterpret_cast< NewtonSafe * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  {
    try {
      result = (Rate)BondFunctions_yieldNewtonSafe__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldNewtonSafe__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NewtonSafe arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldNewtonSafe",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_NewtonSafe,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "1"" of type '" "NewtonSafe""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "1"" of type '" "NewtonSafe""'");
    } else {
      NewtonSafe * temp = reinterpret_cast< NewtonSafe * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    try {
      result = (Rate)BondFunctions_yieldNewtonSafe__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldNewtonSafe__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NewtonSafe arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldNewtonSafe",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_NewtonSafe,  0  | 0);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "1"" of type '" "NewtonSafe""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "1"" of type '" "NewtonSafe""'");
    } else {
      NewtonSafe * temp = reinterpret_cast< NewtonSafe * >(argp1);
      arg1 = *temp;
      if (SWIG_IsNewObj(res1)) delete temp;
    }
  }
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_yieldNewtonSafe" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    try {
      result = (Rate)BondFunctions_yieldNewtonSafe__SWIG_0(arg1,(BondPtr const &)*arg2,arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldNewtonSafe(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_NewtonSafe, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_BondFunctions_yieldNewtonSafe__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_NewtonSafe, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_BondFunctions_yieldNewtonSafe__SWIG_2(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_NewtonSafe, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_BondFunctions_yieldNewtonSafe__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_NewtonSafe, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_BondFunctions_yieldNewtonSafe__SWIG_0(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_yieldNewtonSafe'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::yieldNewtonSafe(NewtonSafe,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date,Real,Rate)\n"
    "    BondFunctions::yieldNewtonSafe(NewtonSafe,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date,Real)\n"
    "    BondFunctions::yieldNewtonSafe(NewtonSafe,BondPtr const &,Real,DayCounter const &,Compounding,Frequency,Date)\n"
    "    BondFunctions::BondFunctions_yieldNewtonSafe__SWIG_0(NewtonSafe,BondPtr const &,Real,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_duration__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  Duration::Type arg3 ;
  Date arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_duration",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_duration" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_duration" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_duration" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_duration" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_duration" "', argument " "3"" of type '" "Duration::Type""'");
  } 
  arg3 = static_cast< Duration::Type >(val3);
  {
    res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_duration" "', argument " "4"" of type '" "Date""'"); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_duration" "', argument " "4"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp4);
      arg4 = *temp;
      if (SWIG_IsNewObj(res4)) delete temp;
    }
  }
  {
    try {
      result = (Time)BondFunctions_duration__SWIG_0((BondPtr const &)*arg1,(InterestRate const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_duration__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  Duration::Type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_duration",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_duration" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_duration" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_duration" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_duration" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BondFunctions_duration" "', argument " "3"" of type '" "Duration::Type""'");
  } 
  arg3 = static_cast< Duration::Type >(val3);
  {
    try {
      result = (Time)BondFunctions_duration__SWIG_0((BondPtr const &)*arg1,(InterestRate const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_duration__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_duration",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_duration" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_duration" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_duration" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_duration" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  {
    try {
      result = (Time)BondFunctions_duration__SWIG_0((BondPtr const &)*arg1,(InterestRate const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_duration__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Duration::Type arg6 ;
  Date arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_duration",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_duration" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_duration" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_duration" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_duration" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_duration" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_duration" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_duration" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_duration" "', argument " "6"" of type '" "Duration::Type""'");
  } 
  arg6 = static_cast< Duration::Type >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_duration" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_duration" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    try {
      result = (Time)BondFunctions_duration__SWIG_3((BondPtr const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_duration__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Duration::Type arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_duration",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_duration" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_duration" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_duration" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_duration" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_duration" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_duration" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_duration" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_duration" "', argument " "6"" of type '" "Duration::Type""'");
  } 
  arg6 = static_cast< Duration::Type >(val6);
  {
    try {
      result = (Time)BondFunctions_duration__SWIG_3((BondPtr const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_duration__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_duration",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_duration" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_duration" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_duration" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_duration" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_duration" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_duration" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_duration" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    try {
      result = (Time)BondFunctions_duration__SWIG_3((BondPtr const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_duration(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_duration__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_BondFunctions_duration__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_BondFunctions_duration__SWIG_0(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_BondFunctions_duration__SWIG_5(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_BondFunctions_duration__SWIG_4(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_BondFunctions_duration__SWIG_3(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_duration'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::duration(BondPtr const &,InterestRate const &,Duration::Type,Date)\n"
    "    BondFunctions::duration(BondPtr const &,InterestRate const &,Duration::Type)\n"
    "    BondFunctions::duration(BondPtr const &,InterestRate const &)\n"
    "    BondFunctions::duration(BondPtr const &,Rate,DayCounter const &,Compounding,Frequency,Duration::Type,Date)\n"
    "    BondFunctions::duration(BondPtr const &,Rate,DayCounter const &,Compounding,Frequency,Duration::Type)\n"
    "    BondFunctions::BondFunctions_duration__SWIG_3(BondPtr const &,Rate,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_convexity__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  Date arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_convexity",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_convexity" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_convexity" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_convexity" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_convexity" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  {
    res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_convexity" "', argument " "3"" of type '" "Date""'"); 
    }  
    if (!argp3) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_convexity" "', argument " "3"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp3);
      arg3 = *temp;
      if (SWIG_IsNewObj(res3)) delete temp;
    }
  }
  {
    try {
      result = (Real)BondFunctions_convexity__SWIG_0((BondPtr const &)*arg1,(InterestRate const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_convexity__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_convexity",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_convexity" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_convexity" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_convexity" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_convexity" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  {
    try {
      result = (Real)BondFunctions_convexity__SWIG_0((BondPtr const &)*arg1,(InterestRate const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_convexity__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Date arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_convexity",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_convexity" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_convexity" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_convexity" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_convexity" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_convexity" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_convexity" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_convexity" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "BondFunctions_convexity" "', argument " "6"" of type '" "Date""'"); 
    }  
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_convexity" "', argument " "6"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp6);
      arg6 = *temp;
      if (SWIG_IsNewObj(res6)) delete temp;
    }
  }
  {
    try {
      result = (Real)BondFunctions_convexity__SWIG_2((BondPtr const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_convexity__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_convexity",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_convexity" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_convexity" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_convexity" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_convexity" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_convexity" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_convexity" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_convexity" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    try {
      result = (Real)BondFunctions_convexity__SWIG_2((BondPtr const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_convexity(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_convexity__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_BondFunctions_convexity__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_BondFunctions_convexity__SWIG_3(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_BondFunctions_convexity__SWIG_2(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_convexity'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::convexity(BondPtr const &,InterestRate const &,Date)\n"
    "    BondFunctions::convexity(BondPtr const &,InterestRate const &)\n"
    "    BondFunctions::convexity(BondPtr const &,Rate,DayCounter const &,Compounding,Frequency,Date)\n"
    "    BondFunctions::BondFunctions_convexity__SWIG_2(BondPtr const &,Rate,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_basisPointValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  Date arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_basisPointValue",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_basisPointValue" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_basisPointValue" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_basisPointValue" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_basisPointValue" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  {
    res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_basisPointValue" "', argument " "3"" of type '" "Date""'"); 
    }  
    if (!argp3) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_basisPointValue" "', argument " "3"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp3);
      arg3 = *temp;
      if (SWIG_IsNewObj(res3)) delete temp;
    }
  }
  {
    try {
      result = (Real)BondFunctions_basisPointValue__SWIG_0((BondPtr const &)*arg1,(InterestRate const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_basisPointValue__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_basisPointValue",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_basisPointValue" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_basisPointValue" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_basisPointValue" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_basisPointValue" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  {
    try {
      result = (Real)BondFunctions_basisPointValue__SWIG_0((BondPtr const &)*arg1,(InterestRate const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_basisPointValue__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Date arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_basisPointValue",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_basisPointValue" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_basisPointValue" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_basisPointValue" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_basisPointValue" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_basisPointValue" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_basisPointValue" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_basisPointValue" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "BondFunctions_basisPointValue" "', argument " "6"" of type '" "Date""'"); 
    }  
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_basisPointValue" "', argument " "6"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp6);
      arg6 = *temp;
      if (SWIG_IsNewObj(res6)) delete temp;
    }
  }
  {
    try {
      result = (Real)BondFunctions_basisPointValue__SWIG_2((BondPtr const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_basisPointValue__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_basisPointValue",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_basisPointValue" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_basisPointValue" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_basisPointValue" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_basisPointValue" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_basisPointValue" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_basisPointValue" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_basisPointValue" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    try {
      result = (Real)BondFunctions_basisPointValue__SWIG_2((BondPtr const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_basisPointValue(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_basisPointValue__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_BondFunctions_basisPointValue__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_BondFunctions_basisPointValue__SWIG_3(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_BondFunctions_basisPointValue__SWIG_2(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_basisPointValue'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::basisPointValue(BondPtr const &,InterestRate const &,Date)\n"
    "    BondFunctions::basisPointValue(BondPtr const &,InterestRate const &)\n"
    "    BondFunctions::basisPointValue(BondPtr const &,Rate,DayCounter const &,Compounding,Frequency,Date)\n"
    "    BondFunctions::BondFunctions_basisPointValue__SWIG_2(BondPtr const &,Rate,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldValueBasisPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  Date arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldValueBasisPoint",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  {
    res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "3"" of type '" "Date""'"); 
    }  
    if (!argp3) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "3"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp3);
      arg3 = *temp;
      if (SWIG_IsNewObj(res3)) delete temp;
    }
  }
  {
    try {
      result = (Real)BondFunctions_yieldValueBasisPoint__SWIG_0((BondPtr const &)*arg1,(InterestRate const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldValueBasisPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  InterestRate *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldValueBasisPoint",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_InterestRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "2"" of type '" "InterestRate const &""'"); 
  }
  arg2 = reinterpret_cast< InterestRate * >(argp2);
  {
    try {
      result = (Real)BondFunctions_yieldValueBasisPoint__SWIG_0((BondPtr const &)*arg1,(InterestRate const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldValueBasisPoint__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  Date arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldValueBasisPoint",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "6"" of type '" "Date""'"); 
    }  
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "6"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp6);
      arg6 = *temp;
      if (SWIG_IsNewObj(res6)) delete temp;
    }
  }
  {
    try {
      result = (Real)BondFunctions_yieldValueBasisPoint__SWIG_2((BondPtr const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldValueBasisPoint__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Rate arg2 ;
  DayCounter *arg3 = 0 ;
  Compounding arg4 ;
  Frequency arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_yieldValueBasisPoint",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "4"" of type '" "Compounding""'");
  } 
  arg4 = static_cast< Compounding >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_yieldValueBasisPoint" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  {
    try {
      result = (Real)BondFunctions_yieldValueBasisPoint__SWIG_2((BondPtr const &)*arg1,arg2,(DayCounter const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_yieldValueBasisPoint(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_BondFunctions_yieldValueBasisPoint__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_InterestRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_BondFunctions_yieldValueBasisPoint__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_BondFunctions_yieldValueBasisPoint__SWIG_3(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_BondFunctions_yieldValueBasisPoint__SWIG_2(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_yieldValueBasisPoint'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::yieldValueBasisPoint(BondPtr const &,InterestRate const &,Date)\n"
    "    BondFunctions::yieldValueBasisPoint(BondPtr const &,InterestRate const &)\n"
    "    BondFunctions::yieldValueBasisPoint(BondPtr const &,Rate,DayCounter const &,Compounding,Frequency,Date)\n"
    "    BondFunctions::BondFunctions_yieldValueBasisPoint__SWIG_2(BondPtr const &,Rate,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondFunctions_zSpread__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Real arg2 ;
  boost::shared_ptr< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  Real arg8 ;
  Size arg9 ;
  Rate arg10 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  size_t val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  Spread result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_zSpread",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_zSpread" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_zSpread" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_zSpread" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_zSpread" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_zSpread" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_zSpread" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  ecode9 = SWIG_AsVal_size_t(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "BondFunctions_zSpread" "', argument " "9"" of type '" "Size""'");
  } 
  arg9 = static_cast< Size >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "BondFunctions_zSpread" "', argument " "10"" of type '" "Rate""'");
  } 
  arg10 = static_cast< Rate >(val10);
  {
    try {
      result = (Spread)BondFunctions_zSpread__SWIG_0((BondPtr const &)*arg1,arg2,(boost::shared_ptr< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8,arg9,arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_zSpread__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Real arg2 ;
  boost::shared_ptr< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  Real arg8 ;
  Size arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  size_t val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Spread result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_zSpread",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_zSpread" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_zSpread" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_zSpread" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_zSpread" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_zSpread" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_zSpread" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  ecode9 = SWIG_AsVal_size_t(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "BondFunctions_zSpread" "', argument " "9"" of type '" "Size""'");
  } 
  arg9 = static_cast< Size >(val9);
  {
    try {
      result = (Spread)BondFunctions_zSpread__SWIG_0((BondPtr const &)*arg1,arg2,(boost::shared_ptr< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_zSpread__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Real arg2 ;
  boost::shared_ptr< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  Real arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Spread result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_zSpread",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_zSpread" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_zSpread" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_zSpread" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_zSpread" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_zSpread" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "BondFunctions_zSpread" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  {
    try {
      result = (Spread)BondFunctions_zSpread__SWIG_0((BondPtr const &)*arg1,arg2,(boost::shared_ptr< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_zSpread__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Real arg2 ;
  boost::shared_ptr< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  Date arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Spread result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_zSpread",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_zSpread" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_zSpread" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_zSpread" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_zSpread" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "BondFunctions_zSpread" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    try {
      result = (Spread)BondFunctions_zSpread__SWIG_0((BondPtr const &)*arg1,arg2,(boost::shared_ptr< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_zSpread__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondPtr *arg1 = 0 ;
  Real arg2 ;
  boost::shared_ptr< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Compounding arg5 ;
  Frequency arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Spread result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondFunctions_zSpread",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondFunctions_zSpread" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "1"" of type '" "BondPtr const &""'"); 
  }
  arg1 = reinterpret_cast< BondPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BondFunctions_zSpread" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BondFunctions_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "3"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BondFunctions_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BondFunctions_zSpread" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BondFunctions_zSpread" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BondFunctions_zSpread" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  {
    try {
      result = (Spread)BondFunctions_zSpread__SWIG_0((BondPtr const &)*arg1,arg2,(boost::shared_ptr< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BondFunctions_zSpread(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[11] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 10) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_BondFunctions_zSpread__SWIG_4(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_BondFunctions_zSpread__SWIG_3(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_BondFunctions_zSpread__SWIG_2(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
                    }
                    if (_v) {
                      return _wrap_BondFunctions_zSpread__SWIG_1(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BondPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        return _wrap_BondFunctions_zSpread__SWIG_0(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BondFunctions_zSpread'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondFunctions::zSpread(BondPtr const &,Real,boost::shared_ptr< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency,Date,Real,Size,Rate)\n"
    "    BondFunctions::zSpread(BondPtr const &,Real,boost::shared_ptr< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency,Date,Real,Size)\n"
    "    BondFunctions::zSpread(BondPtr const &,Real,boost::shared_ptr< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency,Date,Real)\n"
    "    BondFunctions::zSpread(BondPtr const &,Real,boost::shared_ptr< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency,Date)\n"
    "    BondFunctions::BondFunctions_zSpread__SWIG_0(BondPtr const &,Real,boost::shared_ptr< YieldTermStructure > const &,DayCounter const &,Compounding,Frequency)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_BondFunctions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondFunctions *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BondFunctions",0,0)) SWIG_fail;
  {
    try {
      result = (BondFunctions *)new BondFunctions();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BondFunctions, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BondFunctions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondFunctions *arg1 = (BondFunctions *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BondFunctions",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondFunctions, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BondFunctions" "', argument " "1"" of type '" "BondFunctions *""'"); 
  }
  arg1 = reinterpret_cast< BondFunctions * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BondFunctions_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BondFunctions, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_CapFloor_impliedVolatility__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapFloorPtr *arg1 = (CapFloorPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  Volatility arg4 ;
  Real arg5 ;
  Natural arg6 ;
  Volatility arg7 ;
  Volatility arg8 ;
  VolatilityType arg9 ;
  Real arg10 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloor_impliedVolatility",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapFloorPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloor_impliedVolatility" "', argument " "1"" of type '" "CapFloorPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CapFloorPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapFloor_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CapFloor_impliedVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CapFloor_impliedVolatility" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CapFloor_impliedVolatility" "', argument " "6"" of type '" "Natural""'");
  } 
  arg6 = static_cast< Natural >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CapFloor_impliedVolatility" "', argument " "7"" of type '" "Volatility""'");
  } 
  arg7 = static_cast< Volatility >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "CapFloor_impliedVolatility" "', argument " "8"" of type '" "Volatility""'");
  } 
  arg8 = static_cast< Volatility >(val8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "CapFloor_impliedVolatility" "', argument " "9"" of type '" "VolatilityType""'");
  } 
  arg9 = static_cast< VolatilityType >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "CapFloor_impliedVolatility" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  {
    try {
      result = (Volatility)CapFloorPtr_impliedVolatility__SWIG_0((CapFloorPtr const *)arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloor_impliedVolatility__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapFloorPtr *arg1 = (CapFloorPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  Volatility arg4 ;
  Real arg5 ;
  Natural arg6 ;
  Volatility arg7 ;
  Volatility arg8 ;
  VolatilityType arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloor_impliedVolatility",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapFloorPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloor_impliedVolatility" "', argument " "1"" of type '" "CapFloorPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CapFloorPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapFloor_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CapFloor_impliedVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CapFloor_impliedVolatility" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CapFloor_impliedVolatility" "', argument " "6"" of type '" "Natural""'");
  } 
  arg6 = static_cast< Natural >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CapFloor_impliedVolatility" "', argument " "7"" of type '" "Volatility""'");
  } 
  arg7 = static_cast< Volatility >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "CapFloor_impliedVolatility" "', argument " "8"" of type '" "Volatility""'");
  } 
  arg8 = static_cast< Volatility >(val8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "CapFloor_impliedVolatility" "', argument " "9"" of type '" "VolatilityType""'");
  } 
  arg9 = static_cast< VolatilityType >(val9);
  {
    try {
      result = (Volatility)CapFloorPtr_impliedVolatility__SWIG_0((CapFloorPtr const *)arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,arg4,arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloor_impliedVolatility__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapFloorPtr *arg1 = (CapFloorPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  Volatility arg4 ;
  Real arg5 ;
  Natural arg6 ;
  Volatility arg7 ;
  Volatility arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloor_impliedVolatility",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapFloorPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloor_impliedVolatility" "', argument " "1"" of type '" "CapFloorPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CapFloorPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapFloor_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CapFloor_impliedVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CapFloor_impliedVolatility" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CapFloor_impliedVolatility" "', argument " "6"" of type '" "Natural""'");
  } 
  arg6 = static_cast< Natural >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CapFloor_impliedVolatility" "', argument " "7"" of type '" "Volatility""'");
  } 
  arg7 = static_cast< Volatility >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "CapFloor_impliedVolatility" "', argument " "8"" of type '" "Volatility""'");
  } 
  arg8 = static_cast< Volatility >(val8);
  {
    try {
      result = (Volatility)CapFloorPtr_impliedVolatility__SWIG_0((CapFloorPtr const *)arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,arg4,arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloor_impliedVolatility__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapFloorPtr *arg1 = (CapFloorPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  Volatility arg4 ;
  Real arg5 ;
  Natural arg6 ;
  Volatility arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloor_impliedVolatility",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapFloorPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloor_impliedVolatility" "', argument " "1"" of type '" "CapFloorPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CapFloorPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapFloor_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CapFloor_impliedVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CapFloor_impliedVolatility" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CapFloor_impliedVolatility" "', argument " "6"" of type '" "Natural""'");
  } 
  arg6 = static_cast< Natural >(val6);
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CapFloor_impliedVolatility" "', argument " "7"" of type '" "Volatility""'");
  } 
  arg7 = static_cast< Volatility >(val7);
  {
    try {
      result = (Volatility)CapFloorPtr_impliedVolatility__SWIG_0((CapFloorPtr const *)arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,arg4,arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloor_impliedVolatility__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapFloorPtr *arg1 = (CapFloorPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  Volatility arg4 ;
  Real arg5 ;
  Natural arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloor_impliedVolatility",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapFloorPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloor_impliedVolatility" "', argument " "1"" of type '" "CapFloorPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CapFloorPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapFloor_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CapFloor_impliedVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CapFloor_impliedVolatility" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CapFloor_impliedVolatility" "', argument " "6"" of type '" "Natural""'");
  } 
  arg6 = static_cast< Natural >(val6);
  {
    try {
      result = (Volatility)CapFloorPtr_impliedVolatility__SWIG_0((CapFloorPtr const *)arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloor_impliedVolatility__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapFloorPtr *arg1 = (CapFloorPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  Volatility arg4 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloor_impliedVolatility",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapFloorPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloor_impliedVolatility" "', argument " "1"" of type '" "CapFloorPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CapFloorPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapFloor_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CapFloor_impliedVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CapFloor_impliedVolatility" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Volatility)CapFloorPtr_impliedVolatility__SWIG_0((CapFloorPtr const *)arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloor_impliedVolatility__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapFloorPtr *arg1 = (CapFloorPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  Volatility arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloor_impliedVolatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapFloorPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloor_impliedVolatility" "', argument " "1"" of type '" "CapFloorPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CapFloorPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapFloor_impliedVolatility" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CapFloor_impliedVolatility" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CapFloor_impliedVolatility" "', argument " "4"" of type '" "Volatility""'");
  } 
  arg4 = static_cast< Volatility >(val4);
  {
    try {
      result = (Volatility)CapFloorPtr_impliedVolatility__SWIG_0((CapFloorPtr const *)arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloor_impliedVolatility(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[11] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 10) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CapFloorPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_CapFloor_impliedVolatility__SWIG_6(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CapFloorPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_CapFloor_impliedVolatility__SWIG_5(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CapFloorPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_unsigned_SS_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_CapFloor_impliedVolatility__SWIG_4(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CapFloorPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_unsigned_SS_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_CapFloor_impliedVolatility__SWIG_3(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CapFloorPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_unsigned_SS_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_CapFloor_impliedVolatility__SWIG_2(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CapFloorPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_unsigned_SS_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_CapFloor_impliedVolatility__SWIG_1(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CapFloorPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_unsigned_SS_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        return _wrap_CapFloor_impliedVolatility__SWIG_0(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CapFloor_impliedVolatility'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CapFloorPtr::impliedVolatility(Real,Handle< YieldTermStructure > const &,Volatility,Real,Natural,Volatility,Volatility,VolatilityType,Real) const\n"
    "    CapFloorPtr::impliedVolatility(Real,Handle< YieldTermStructure > const &,Volatility,Real,Natural,Volatility,Volatility,VolatilityType) const\n"
    "    CapFloorPtr::impliedVolatility(Real,Handle< YieldTermStructure > const &,Volatility,Real,Natural,Volatility,Volatility) const\n"
    "    CapFloorPtr::impliedVolatility(Real,Handle< YieldTermStructure > const &,Volatility,Real,Natural,Volatility) const\n"
    "    CapFloorPtr::impliedVolatility(Real,Handle< YieldTermStructure > const &,Volatility,Real,Natural) const\n"
    "    CapFloorPtr::impliedVolatility(Real,Handle< YieldTermStructure > const &,Volatility,Real) const\n"
    "    CapFloorPtr::impliedVolatility(Real,Handle< YieldTermStructure > const &,Volatility) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CapFloor_floatingLeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapFloorPtr *arg1 = (CapFloorPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Leg *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloor_floatingLeg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapFloorPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloor_floatingLeg" "', argument " "1"" of type '" "CapFloorPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CapFloorPtr * >(argp1);
  {
    try {
      result = (Leg *) &CapFloorPtr_floatingLeg((CapFloorPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloor_capRates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapFloorPtr *arg1 = (CapFloorPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloor_capRates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapFloorPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloor_capRates" "', argument " "1"" of type '" "CapFloorPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CapFloorPtr * >(argp1);
  {
    try {
      result = (std::vector< Rate,std::allocator< Rate > > *) &CapFloorPtr_capRates((CapFloorPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloor_floorRates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapFloorPtr *arg1 = (CapFloorPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloor_floorRates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapFloorPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloor_floorRates" "', argument " "1"" of type '" "CapFloorPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CapFloorPtr * >(argp1);
  {
    try {
      result = (std::vector< Rate,std::allocator< Rate > > *) &CapFloorPtr_floorRates((CapFloorPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloor_startDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapFloorPtr *arg1 = (CapFloorPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloor_startDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapFloorPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloor_startDate" "', argument " "1"" of type '" "CapFloorPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CapFloorPtr * >(argp1);
  {
    try {
      result = CapFloorPtr_startDate((CapFloorPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloor_maturityDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapFloorPtr *arg1 = (CapFloorPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloor_maturityDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapFloorPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloor_maturityDate" "', argument " "1"" of type '" "CapFloorPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CapFloorPtr * >(argp1);
  {
    try {
      result = CapFloorPtr_maturityDate((CapFloorPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloor_atmRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapFloorPtr *arg1 = (CapFloorPtr *) 0 ;
  boost::shared_ptr< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloor_atmRate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapFloorPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloor_atmRate" "', argument " "1"" of type '" "CapFloorPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CapFloorPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapFloor_atmRate" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CapFloor_atmRate" "', argument " "2"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp2);
  {
    try {
      result = (Rate)CapFloorPtr_atmRate((CapFloorPtr const *)arg1,(boost::shared_ptr< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapFloor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapFloorPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CapFloor",0,0)) SWIG_fail;
  {
    try {
      result = (CapFloorPtr *)new CapFloorPtr();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CapFloorPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CapFloor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapFloorPtr *arg1 = (CapFloorPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CapFloor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapFloorPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CapFloor" "', argument " "1"" of type '" "CapFloorPtr *""'"); 
  }
  arg1 = reinterpret_cast< CapFloorPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CapFloor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CapFloorPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Cap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  CapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Cap",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Cap" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Cap" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Cap" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Cap" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      result = (CapPtr *)new_CapPtr((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CapPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Cap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapPtr *arg1 = (CapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Cap",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cap" "', argument " "1"" of type '" "CapPtr *""'"); 
  }
  arg1 = reinterpret_cast< CapPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Cap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CapPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Floor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  FloorPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Floor",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Floor" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Floor" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Floor" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Floor" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      result = (FloorPtr *)new_FloorPtr((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloorPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Floor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloorPtr *arg1 = (FloorPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Floor",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloorPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Floor" "', argument " "1"" of type '" "FloorPtr *""'"); 
  }
  arg1 = reinterpret_cast< FloorPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Floor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FloorPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Collar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg3 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  CollarPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Collar",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Collar" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Collar" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Collar" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Collar" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Collar" "', argument " "3"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Collar" "', argument " "3"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      result = (CollarPtr *)new_CollarPtr((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CollarPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Collar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CollarPtr *arg1 = (CollarPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Collar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CollarPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Collar" "', argument " "1"" of type '" "CollarPtr *""'"); 
  }
  arg1 = reinterpret_cast< CollarPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Collar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CollarPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BlackCapFloorEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BlackCapFloorEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackCapFloorEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackCapFloorEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackCapFloorEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlackCapFloorEngine" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackCapFloorEngine" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  {
    try {
      result = (BlackCapFloorEnginePtr *)new_BlackCapFloorEnginePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(Handle< Quote > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackCapFloorEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackCapFloorEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< OptionletVolatilityStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BlackCapFloorEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackCapFloorEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackCapFloorEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackCapFloorEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlackCapFloorEngine" "', argument " "2"" of type '" "Handle< OptionletVolatilityStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackCapFloorEngine" "', argument " "2"" of type '" "Handle< OptionletVolatilityStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp2);
  {
    try {
      result = (BlackCapFloorEnginePtr *)new_BlackCapFloorEnginePtr__SWIG_1((Handle< YieldTermStructure > const &)*arg1,(Handle< OptionletVolatilityStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackCapFloorEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackCapFloorEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_BlackCapFloorEngine__SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_BlackCapFloorEngine__SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BlackCapFloorEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BlackCapFloorEnginePtr::BlackCapFloorEnginePtr(Handle< YieldTermStructure > const &,Handle< Quote > const &)\n"
    "    BlackCapFloorEnginePtr::BlackCapFloorEnginePtr(Handle< YieldTermStructure > const &,Handle< OptionletVolatilityStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_BlackCapFloorEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackCapFloorEnginePtr *arg1 = (BlackCapFloorEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BlackCapFloorEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackCapFloorEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlackCapFloorEngine" "', argument " "1"" of type '" "BlackCapFloorEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< BlackCapFloorEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BlackCapFloorEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BlackCapFloorEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BachelierCapFloorEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BachelierCapFloorEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BachelierCapFloorEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BachelierCapFloorEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BachelierCapFloorEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BachelierCapFloorEngine" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BachelierCapFloorEngine" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  {
    try {
      result = (BachelierCapFloorEnginePtr *)new_BachelierCapFloorEnginePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(Handle< Quote > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BachelierCapFloorEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BachelierCapFloorEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< OptionletVolatilityStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BachelierCapFloorEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BachelierCapFloorEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BachelierCapFloorEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BachelierCapFloorEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BachelierCapFloorEngine" "', argument " "2"" of type '" "Handle< OptionletVolatilityStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BachelierCapFloorEngine" "', argument " "2"" of type '" "Handle< OptionletVolatilityStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< OptionletVolatilityStructure > * >(argp2);
  {
    try {
      result = (BachelierCapFloorEnginePtr *)new_BachelierCapFloorEnginePtr__SWIG_1((Handle< YieldTermStructure > const &)*arg1,(Handle< OptionletVolatilityStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BachelierCapFloorEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BachelierCapFloorEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_BachelierCapFloorEngine__SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_OptionletVolatilityStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_BachelierCapFloorEngine__SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BachelierCapFloorEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BachelierCapFloorEnginePtr::BachelierCapFloorEnginePtr(Handle< YieldTermStructure > const &,Handle< Quote > const &)\n"
    "    BachelierCapFloorEnginePtr::BachelierCapFloorEnginePtr(Handle< YieldTermStructure > const &,Handle< OptionletVolatilityStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_BachelierCapFloorEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BachelierCapFloorEnginePtr *arg1 = (BachelierCapFloorEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BachelierCapFloorEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BachelierCapFloorEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BachelierCapFloorEngine" "', argument " "1"" of type '" "BachelierCapFloorEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< BachelierCapFloorEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BachelierCapFloorEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BachelierCapFloorEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Dividend___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Dividend > *arg1 = (boost::shared_ptr< Dividend > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Dividend *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Dividend___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Dividend_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dividend___deref__" "', argument " "1"" of type '" "boost::shared_ptr< Dividend > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Dividend > * >(argp1);
  {
    try {
      result = (Dividend *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Dividend, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Dividend___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Dividend > *arg1 = (boost::shared_ptr< Dividend > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Dividend___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Dividend_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dividend___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< Dividend > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Dividend > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Dividend_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Dividend___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Dividend > *arg1 = (boost::shared_ptr< Dividend > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Dividend___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Dividend_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dividend___bool__" "', argument " "1"" of type '" "boost::shared_ptr< Dividend > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Dividend > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Dividend_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Dividend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Dividend > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Dividend",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< Dividend > *)new boost::shared_ptr< Dividend >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Dividend_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Dividend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Dividend > *arg1 = (boost::shared_ptr< Dividend > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Dividend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Dividend_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Dividend" "', argument " "1"" of type '" "boost::shared_ptr< Dividend > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Dividend > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Dividend_amount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Dividend > *arg1 = (boost::shared_ptr< Dividend > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Dividend_amount",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Dividend_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dividend_amount" "', argument " "1"" of type '" "boost::shared_ptr< Dividend > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Dividend > * >(argp1);
  {
    try {
      result = (Real)(*arg1)->amount();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Dividend_date(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Dividend > *arg1 = (boost::shared_ptr< Dividend > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Dividend_date",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Dividend_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dividend_date" "', argument " "1"" of type '" "boost::shared_ptr< Dividend > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Dividend > * >(argp1);
  {
    try {
      result = (*arg1)->date();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Dividend_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_Dividend_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FixedDividend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Date *arg2 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  FixedDividendPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedDividend",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FixedDividend" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FixedDividend" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedDividend" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (FixedDividendPtr *)new_FixedDividendPtr(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedDividendPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_FixedDividend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FixedDividendPtr *arg1 = (FixedDividendPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FixedDividend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FixedDividendPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FixedDividend" "', argument " "1"" of type '" "FixedDividendPtr *""'"); 
  }
  arg1 = reinterpret_cast< FixedDividendPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FixedDividend_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FixedDividendPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FractionalDividend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Date *arg2 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  FractionalDividendPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FractionalDividend",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FractionalDividend" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FractionalDividend" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FractionalDividend" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (FractionalDividendPtr *)new_FractionalDividendPtr(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FractionalDividendPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_FractionalDividend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FractionalDividendPtr *arg1 = (FractionalDividendPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FractionalDividend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FractionalDividendPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FractionalDividend" "', argument " "1"" of type '" "FractionalDividendPtr *""'"); 
  }
  arg1 = reinterpret_cast< FractionalDividendPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FractionalDividend_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FractionalDividendPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_DividendSchedule_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_iterator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule___nonzero__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____nonzero__((std::vector< boost::shared_ptr< Dividend > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule___bool__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____bool__((std::vector< boost::shared_ptr< Dividend > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Dividend > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule___len__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____len__((std::vector< boost::shared_ptr< Dividend > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  std::vector< boost::shared_ptr< Dividend > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Dividend > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule___getslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DividendSchedule___getslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Dividend > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DividendSchedule___getslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Dividend > >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *)std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  std::vector< boost::shared_ptr< Dividend > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Dividend > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DividendSchedule___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Dividend > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DividendSchedule___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Dividend > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  std::vector< boost::shared_ptr< Dividend > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Dividend > >::difference_type arg3 ;
  std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DividendSchedule___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Dividend > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DividendSchedule___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Dividend > >::difference_type >(val3);
  {
    std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *ptr = (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DividendSchedule___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DividendSchedule___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(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_DividendSchedule___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(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< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_DividendSchedule___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DividendSchedule___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Dividend > >::__setslice__(std::vector< boost::shared_ptr< Dividend > >::difference_type,std::vector< boost::shared_ptr< Dividend > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< Dividend > >::__setslice__(std::vector< boost::shared_ptr< Dividend > >::difference_type,std::vector< boost::shared_ptr< Dividend > >::difference_type,std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DividendSchedule___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  std::vector< boost::shared_ptr< Dividend > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Dividend > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule___delslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DividendSchedule___delslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Dividend > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DividendSchedule___delslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Dividend > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  std::vector< boost::shared_ptr< Dividend > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DividendSchedule___delitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Dividend > >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DividendSchedule___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *)std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DividendSchedule___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *ptr = (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DividendSchedule___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DividendSchedule___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DividendSchedule___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DividendSchedule___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_DividendSchedule___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DividendSchedule___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DividendSchedule___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Dividend > >::__delitem__(std::vector< boost::shared_ptr< Dividend > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< Dividend > >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DividendSchedule___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  std::vector< boost::shared_ptr< Dividend > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< Dividend > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DividendSchedule___getitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Dividend > >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< Dividend > >::value_type *) &std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____getitem____SWIG_1((std::vector< boost::shared_ptr< Dividend > > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Dividend_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_DividendSchedule___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DividendSchedule___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DividendSchedule___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Dividend > >::__getitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< Dividend > >::__getitem__(std::vector< boost::shared_ptr< Dividend > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DividendSchedule___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  std::vector< boost::shared_ptr< Dividend > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< Dividend > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DividendSchedule___setitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Dividend > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Dividend_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DividendSchedule___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DividendSchedule___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > >::value_type * >(argp3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg____setitem____SWIG_2(arg1,arg2,(boost::shared_ptr< Dividend > const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_DividendSchedule___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DividendSchedule___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(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_boost__shared_ptrT_Dividend_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DividendSchedule___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DividendSchedule___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Dividend > >::__setitem__(PySliceObject *,std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &)\n"
    "    std::vector< boost::shared_ptr< Dividend > >::__setitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< Dividend > >::__setitem__(std::vector< boost::shared_ptr< Dividend > >::difference_type,std::vector< boost::shared_ptr< Dividend > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Dividend > >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_pop" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< Dividend > >::value_type(static_cast< const std::vector< boost::shared_ptr< Dividend > >::value_type& >(result))), SWIGTYPE_p_boost__shared_ptrT_Dividend_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  std::vector< boost::shared_ptr< Dividend > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_append" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Dividend_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DividendSchedule_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DividendSchedule_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > >::value_type * >(argp2);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg__append(arg1,(boost::shared_ptr< Dividend > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DividendSchedule__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DividendSchedule",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< boost::shared_ptr< Dividend > > *)new std::vector< boost::shared_ptr< Dividend > >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DividendSchedule__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Dividend > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DividendSchedule",1,1,&obj0)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *ptr = (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DividendSchedule" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DividendSchedule" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< boost::shared_ptr< Dividend > > *)new std::vector< boost::shared_ptr< Dividend > >((std::vector< boost::shared_ptr< Dividend > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_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_DividendSchedule_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_empty" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    try {
      result = (bool)((std::vector< boost::shared_ptr< Dividend > > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Dividend > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_size" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< Dividend > > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  std::vector< boost::shared_ptr< Dividend > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_swap" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DividendSchedule_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DividendSchedule_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Dividend > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_begin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Dividend > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Dividend > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_end" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Dividend > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Dividend > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_rbegin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Dividend > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Dividend > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_rend" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Dividend > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_clear" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< boost::shared_ptr< Dividend > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_get_allocator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< Dividend > > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< Dividend > >::allocator_type(static_cast< const std::vector< boost::shared_ptr< Dividend > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_Dividend_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DividendSchedule__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Dividend > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DividendSchedule",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DividendSchedule" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< Dividend > >::size_type >(val1);
  {
    try {
      result = (std::vector< boost::shared_ptr< Dividend > > *)new std::vector< boost::shared_ptr< Dividend > >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_pop_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  std::vector< boost::shared_ptr< Dividend > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DividendSchedule_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Dividend > >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  std::vector< boost::shared_ptr< Dividend > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< Dividend > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DividendSchedule_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Dividend > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Dividend > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DividendSchedule_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Dividend > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  std::vector< boost::shared_ptr< Dividend > >::iterator arg2 ;
  std::vector< boost::shared_ptr< Dividend > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< Dividend > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DividendSchedule_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Dividend > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Dividend > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DividendSchedule_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DividendSchedule_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Dividend > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Dividend > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DividendSchedule_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Dividend > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(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< boost::shared_ptr< Dividend > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_DividendSchedule_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(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< boost::shared_ptr< Dividend > >::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< boost::shared_ptr< Dividend > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_DividendSchedule_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DividendSchedule_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Dividend > >::erase(std::vector< boost::shared_ptr< Dividend > >::iterator)\n"
    "    std::vector< boost::shared_ptr< Dividend > >::erase(std::vector< boost::shared_ptr< Dividend > >::iterator,std::vector< boost::shared_ptr< Dividend > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_DividendSchedule__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > >::size_type arg1 ;
  std::vector< boost::shared_ptr< Dividend > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< Dividend > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DividendSchedule",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DividendSchedule" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< Dividend > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Dividend_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DividendSchedule" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DividendSchedule" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > >::value_type * >(argp2);
  {
    try {
      result = (std::vector< boost::shared_ptr< Dividend > > *)new std::vector< boost::shared_ptr< Dividend > >(arg1,(std::vector< boost::shared_ptr< Dividend > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DividendSchedule(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_DividendSchedule__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_DividendSchedule__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_DividendSchedule__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_Dividend_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_DividendSchedule__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DividendSchedule'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Dividend > >::vector()\n"
    "    std::vector< boost::shared_ptr< Dividend > >::vector(std::vector< boost::shared_ptr< Dividend > > const &)\n"
    "    std::vector< boost::shared_ptr< Dividend > >::vector(std::vector< boost::shared_ptr< Dividend > >::size_type)\n"
    "    std::vector< boost::shared_ptr< Dividend > >::vector(std::vector< boost::shared_ptr< Dividend > >::size_type,std::vector< boost::shared_ptr< Dividend > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  std::vector< boost::shared_ptr< Dividend > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_push_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Dividend_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DividendSchedule_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DividendSchedule_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > >::value_type * >(argp2);
  {
    try {
      (arg1)->push_back((std::vector< boost::shared_ptr< Dividend > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Dividend > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_front" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< Dividend > >::value_type *) &((std::vector< boost::shared_ptr< Dividend > > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Dividend_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Dividend > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< Dividend > >::value_type *) &((std::vector< boost::shared_ptr< Dividend > > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Dividend_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  std::vector< boost::shared_ptr< Dividend > >::size_type arg2 ;
  std::vector< boost::shared_ptr< Dividend > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_assign" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DividendSchedule_assign" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Dividend > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Dividend_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DividendSchedule_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DividendSchedule_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > >::value_type * >(argp3);
  {
    try {
      (arg1)->assign(arg2,(std::vector< boost::shared_ptr< Dividend > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  std::vector< boost::shared_ptr< Dividend > >::size_type arg2 ;
  std::vector< boost::shared_ptr< Dividend > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DividendSchedule_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Dividend > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Dividend_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DividendSchedule_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DividendSchedule_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > >::value_type * >(argp3);
  {
    try {
      (arg1)->resize(arg2,(std::vector< boost::shared_ptr< Dividend > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DividendSchedule_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(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_boost__shared_ptrT_Dividend_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DividendSchedule_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DividendSchedule_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Dividend > >::resize(std::vector< boost::shared_ptr< Dividend > >::size_type)\n"
    "    std::vector< boost::shared_ptr< Dividend > >::resize(std::vector< boost::shared_ptr< Dividend > >::size_type,std::vector< boost::shared_ptr< Dividend > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  std::vector< boost::shared_ptr< Dividend > >::iterator arg2 ;
  std::vector< boost::shared_ptr< Dividend > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< Dividend > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DividendSchedule_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Dividend > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Dividend > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DividendSchedule_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_Dividend_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DividendSchedule_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DividendSchedule_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > >::value_type * >(argp3);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg__insert__SWIG_0(arg1,arg2,(boost::shared_ptr< Dividend > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< Dividend > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  std::vector< boost::shared_ptr< Dividend > >::iterator arg2 ;
  std::vector< boost::shared_ptr< Dividend > >::size_type arg3 ;
  std::vector< boost::shared_ptr< Dividend > >::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 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DividendSchedule_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Dividend > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< Dividend > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DividendSchedule_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DividendSchedule_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< Dividend > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_boost__shared_ptrT_Dividend_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DividendSchedule_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Dividend > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DividendSchedule_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Dividend > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > >::value_type * >(argp4);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_Dividend_Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(boost::shared_ptr< Dividend > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(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< boost::shared_ptr< Dividend > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_Dividend_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DividendSchedule_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(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< boost::shared_ptr< Dividend > >::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_boost__shared_ptrT_Dividend_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_DividendSchedule_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DividendSchedule_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< Dividend > >::insert(std::vector< boost::shared_ptr< Dividend > >::iterator,std::vector< boost::shared_ptr< Dividend > >::value_type const &)\n"
    "    std::vector< boost::shared_ptr< Dividend > >::insert(std::vector< boost::shared_ptr< Dividend > >::iterator,std::vector< boost::shared_ptr< Dividend > >::size_type,std::vector< boost::shared_ptr< Dividend > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  std::vector< boost::shared_ptr< Dividend > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_reserve" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DividendSchedule_reserve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< Dividend > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< Dividend > >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DividendSchedule_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< Dividend > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DividendSchedule_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DividendSchedule_capacity" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< Dividend > > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DividendSchedule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< Dividend > > *arg1 = (std::vector< boost::shared_ptr< Dividend > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DividendSchedule",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DividendSchedule" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< Dividend > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< Dividend > > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DividendSchedule_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ConvertibleZeroCouponBond__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > *arg1 = 0 ;
  Real arg2 ;
  std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *arg3 = 0 ;
  std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *arg4 = 0 ;
  Handle< Quote > *arg5 = 0 ;
  Date *arg6 = 0 ;
  Integer arg7 ;
  DayCounter *arg8 = 0 ;
  Schedule *arg9 = 0 ;
  Real arg10 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  ConvertibleZeroCouponBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConvertibleZeroCouponBond",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleZeroCouponBond" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *ptr = (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleZeroCouponBond" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *ptr = (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleZeroCouponBond" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleZeroCouponBond" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< Quote > * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "6"" of type '" "Date const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleZeroCouponBond" "', argument " "6"" of type '" "Date const &""'"); 
  }
  arg6 = reinterpret_cast< Date * >(argp6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "7"" of type '" "Integer""'");
  } 
  arg7 = static_cast< Integer >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleZeroCouponBond" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  arg8 = reinterpret_cast< DayCounter * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "9"" of type '" "Schedule const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleZeroCouponBond" "', argument " "9"" of type '" "Schedule const &""'"); 
  }
  arg9 = reinterpret_cast< Schedule * >(argp9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  {
    try {
      result = (ConvertibleZeroCouponBondPtr *)new_ConvertibleZeroCouponBondPtr__SWIG_0((boost::shared_ptr< Exercise > const &)*arg1,arg2,(std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &)*arg3,(std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &)*arg4,(Handle< Quote > const &)*arg5,(Date const &)*arg6,arg7,(DayCounter const &)*arg8,(Schedule const &)*arg9,arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConvertibleZeroCouponBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConvertibleZeroCouponBond__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > *arg1 = 0 ;
  Real arg2 ;
  std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *arg3 = 0 ;
  std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *arg4 = 0 ;
  Handle< Quote > *arg5 = 0 ;
  Date *arg6 = 0 ;
  Integer arg7 ;
  DayCounter *arg8 = 0 ;
  Schedule *arg9 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  ConvertibleZeroCouponBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConvertibleZeroCouponBond",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleZeroCouponBond" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *ptr = (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleZeroCouponBond" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *ptr = (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleZeroCouponBond" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleZeroCouponBond" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< Quote > * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "6"" of type '" "Date const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleZeroCouponBond" "', argument " "6"" of type '" "Date const &""'"); 
  }
  arg6 = reinterpret_cast< Date * >(argp6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "7"" of type '" "Integer""'");
  } 
  arg7 = static_cast< Integer >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleZeroCouponBond" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  arg8 = reinterpret_cast< DayCounter * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_ConvertibleZeroCouponBond" "', argument " "9"" of type '" "Schedule const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleZeroCouponBond" "', argument " "9"" of type '" "Schedule const &""'"); 
  }
  arg9 = reinterpret_cast< Schedule * >(argp9);
  {
    try {
      result = (ConvertibleZeroCouponBondPtr *)new_ConvertibleZeroCouponBondPtr__SWIG_0((boost::shared_ptr< Exercise > const &)*arg1,arg2,(std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &)*arg3,(std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &)*arg4,(Handle< Quote > const &)*arg5,(Date const &)*arg6,arg7,(DayCounter const &)*arg8,(Schedule const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConvertibleZeroCouponBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConvertibleZeroCouponBond(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[11] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 10) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_DayCounter, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Schedule, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap_new_ConvertibleZeroCouponBond__SWIG_1(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_DayCounter, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Schedule, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        return _wrap_new_ConvertibleZeroCouponBond__SWIG_0(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ConvertibleZeroCouponBond'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ConvertibleZeroCouponBondPtr::ConvertibleZeroCouponBondPtr(boost::shared_ptr< Exercise > const &,Real,std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &,std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &,Handle< Quote > const &,Date const &,Integer,DayCounter const &,Schedule const &,Real)\n"
    "    ConvertibleZeroCouponBondPtr::ConvertibleZeroCouponBondPtr(boost::shared_ptr< Exercise > const &,Real,std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &,std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &,Handle< Quote > const &,Date const &,Integer,DayCounter const &,Schedule const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_ConvertibleZeroCouponBond(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ConvertibleZeroCouponBondPtr *arg1 = (ConvertibleZeroCouponBondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ConvertibleZeroCouponBond",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ConvertibleZeroCouponBondPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ConvertibleZeroCouponBond" "', argument " "1"" of type '" "ConvertibleZeroCouponBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< ConvertibleZeroCouponBondPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ConvertibleZeroCouponBond_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ConvertibleZeroCouponBondPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ConvertibleFixedCouponBond__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > *arg1 = 0 ;
  Real arg2 ;
  std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *arg3 = 0 ;
  std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *arg4 = 0 ;
  Handle< Quote > *arg5 = 0 ;
  Date *arg6 = 0 ;
  Integer arg7 ;
  std::vector< Rate,std::allocator< Rate > > *arg8 = 0 ;
  DayCounter *arg9 = 0 ;
  Schedule *arg10 = 0 ;
  Real arg11 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  int res8 = SWIG_OLDOBJ ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  double val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  ConvertibleFixedCouponBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConvertibleFixedCouponBond",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFixedCouponBond" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *ptr = (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFixedCouponBond" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *ptr = (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFixedCouponBond" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFixedCouponBond" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< Quote > * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "6"" of type '" "Date const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFixedCouponBond" "', argument " "6"" of type '" "Date const &""'"); 
  }
  arg6 = reinterpret_cast< Date * >(argp6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "7"" of type '" "Integer""'");
  } 
  arg7 = static_cast< Integer >(val7);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res8 = swig::asptr(obj7, &ptr);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "8"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFixedCouponBond" "', argument " "8"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg8 = ptr;
  }
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFixedCouponBond" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "10"" of type '" "Schedule const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFixedCouponBond" "', argument " "10"" of type '" "Schedule const &""'"); 
  }
  arg10 = reinterpret_cast< Schedule * >(argp10);
  ecode11 = SWIG_AsVal_double(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "11"" of type '" "Real""'");
  } 
  arg11 = static_cast< Real >(val11);
  {
    try {
      result = (ConvertibleFixedCouponBondPtr *)new_ConvertibleFixedCouponBondPtr__SWIG_0((boost::shared_ptr< Exercise > const &)*arg1,arg2,(std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &)*arg3,(std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &)*arg4,(Handle< Quote > const &)*arg5,(Date const &)*arg6,arg7,(std::vector< double,std::allocator< double > > const &)*arg8,(DayCounter const &)*arg9,(Schedule const &)*arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConvertibleFixedCouponBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res8)) delete arg8;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res8)) delete arg8;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConvertibleFixedCouponBond__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > *arg1 = 0 ;
  Real arg2 ;
  std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *arg3 = 0 ;
  std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *arg4 = 0 ;
  Handle< Quote > *arg5 = 0 ;
  Date *arg6 = 0 ;
  Integer arg7 ;
  std::vector< Rate,std::allocator< Rate > > *arg8 = 0 ;
  DayCounter *arg9 = 0 ;
  Schedule *arg10 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  int res8 = SWIG_OLDOBJ ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  ConvertibleFixedCouponBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConvertibleFixedCouponBond",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFixedCouponBond" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *ptr = (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFixedCouponBond" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *ptr = (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFixedCouponBond" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFixedCouponBond" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< Quote > * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "6"" of type '" "Date const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFixedCouponBond" "', argument " "6"" of type '" "Date const &""'"); 
  }
  arg6 = reinterpret_cast< Date * >(argp6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "7"" of type '" "Integer""'");
  } 
  arg7 = static_cast< Integer >(val7);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res8 = swig::asptr(obj7, &ptr);
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "8"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFixedCouponBond" "', argument " "8"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg8 = ptr;
  }
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFixedCouponBond" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_ConvertibleFixedCouponBond" "', argument " "10"" of type '" "Schedule const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFixedCouponBond" "', argument " "10"" of type '" "Schedule const &""'"); 
  }
  arg10 = reinterpret_cast< Schedule * >(argp10);
  {
    try {
      result = (ConvertibleFixedCouponBondPtr *)new_ConvertibleFixedCouponBondPtr__SWIG_0((boost::shared_ptr< Exercise > const &)*arg1,arg2,(std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &)*arg3,(std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &)*arg4,(Handle< Quote > const &)*arg5,(Date const &)*arg6,arg7,(std::vector< double,std::allocator< double > > const &)*arg8,(DayCounter const &)*arg9,(Schedule const &)*arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConvertibleFixedCouponBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res8)) delete arg8;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res8)) delete arg8;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConvertibleFixedCouponBond(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[12] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 11) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 10) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = swig::asptr(argv[7], (std::vector< double,std::allocator< double > >**)(0));
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Schedule, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        return _wrap_new_ConvertibleFixedCouponBond__SWIG_1(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = swig::asptr(argv[7], (std::vector< double,std::allocator< double > >**)(0));
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Schedule, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_double(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          return _wrap_new_ConvertibleFixedCouponBond__SWIG_0(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ConvertibleFixedCouponBond'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ConvertibleFixedCouponBondPtr::ConvertibleFixedCouponBondPtr(boost::shared_ptr< Exercise > const &,Real,std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &,std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &,Handle< Quote > const &,Date const &,Integer,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Schedule const &,Real)\n"
    "    ConvertibleFixedCouponBondPtr::ConvertibleFixedCouponBondPtr(boost::shared_ptr< Exercise > const &,Real,std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &,std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &,Handle< Quote > const &,Date const &,Integer,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Schedule const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_ConvertibleFixedCouponBond(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ConvertibleFixedCouponBondPtr *arg1 = (ConvertibleFixedCouponBondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ConvertibleFixedCouponBond",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ConvertibleFixedCouponBondPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ConvertibleFixedCouponBond" "', argument " "1"" of type '" "ConvertibleFixedCouponBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< ConvertibleFixedCouponBondPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ConvertibleFixedCouponBond_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ConvertibleFixedCouponBondPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ConvertibleFloatingRateBond__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > *arg1 = 0 ;
  Real arg2 ;
  std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *arg3 = 0 ;
  std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *arg4 = 0 ;
  Handle< Quote > *arg5 = 0 ;
  Date *arg6 = 0 ;
  Integer arg7 ;
  IborIndexPtr *arg8 = 0 ;
  Integer arg9 ;
  std::vector< Spread,std::allocator< Spread > > *arg10 = 0 ;
  DayCounter *arg11 = 0 ;
  Schedule *arg12 = 0 ;
  Real arg13 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  int res10 = SWIG_OLDOBJ ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  void *argp12 = 0 ;
  int res12 = 0 ;
  double val13 ;
  int ecode13 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  ConvertibleFloatingRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConvertibleFloatingRateBond",13,13,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFloatingRateBond" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *ptr = (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFloatingRateBond" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *ptr = (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFloatingRateBond" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFloatingRateBond" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< Quote > * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "6"" of type '" "Date const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFloatingRateBond" "', argument " "6"" of type '" "Date const &""'"); 
  }
  arg6 = reinterpret_cast< Date * >(argp6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "7"" of type '" "Integer""'");
  } 
  arg7 = static_cast< Integer >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "8"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFloatingRateBond" "', argument " "8"" of type '" "IborIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< IborIndexPtr * >(argp8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "9"" of type '" "Integer""'");
  } 
  arg9 = static_cast< Integer >(val9);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res10 = swig::asptr(obj9, &ptr);
    if (!SWIG_IsOK(res10)) {
      SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "10"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFloatingRateBond" "', argument " "10"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    arg10 = ptr;
  }
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "11"" of type '" "DayCounter const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFloatingRateBond" "', argument " "11"" of type '" "DayCounter const &""'"); 
  }
  arg11 = reinterpret_cast< DayCounter * >(argp11);
  res12 = SWIG_ConvertPtr(obj11, &argp12, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res12)) {
    SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "12"" of type '" "Schedule const &""'"); 
  }
  if (!argp12) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFloatingRateBond" "', argument " "12"" of type '" "Schedule const &""'"); 
  }
  arg12 = reinterpret_cast< Schedule * >(argp12);
  ecode13 = SWIG_AsVal_double(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "13"" of type '" "Real""'");
  } 
  arg13 = static_cast< Real >(val13);
  {
    try {
      result = (ConvertibleFloatingRateBondPtr *)new_ConvertibleFloatingRateBondPtr__SWIG_0((boost::shared_ptr< Exercise > const &)*arg1,arg2,(std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &)*arg3,(std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &)*arg4,(Handle< Quote > const &)*arg5,(Date const &)*arg6,arg7,(IborIndexPtr const &)*arg8,arg9,(std::vector< double,std::allocator< double > > const &)*arg10,(DayCounter const &)*arg11,(Schedule const &)*arg12,arg13);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConvertibleFloatingRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConvertibleFloatingRateBond__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Exercise > *arg1 = 0 ;
  Real arg2 ;
  std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *arg3 = 0 ;
  std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *arg4 = 0 ;
  Handle< Quote > *arg5 = 0 ;
  Date *arg6 = 0 ;
  Integer arg7 ;
  IborIndexPtr *arg8 = 0 ;
  Integer arg9 ;
  std::vector< Spread,std::allocator< Spread > > *arg10 = 0 ;
  DayCounter *arg11 = 0 ;
  Schedule *arg12 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  int res10 = SWIG_OLDOBJ ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  void *argp12 = 0 ;
  int res12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  ConvertibleFloatingRateBondPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConvertibleFloatingRateBond",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFloatingRateBond" "', argument " "1"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *ptr = (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFloatingRateBond" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *ptr = (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFloatingRateBond" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFloatingRateBond" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< Quote > * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "6"" of type '" "Date const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFloatingRateBond" "', argument " "6"" of type '" "Date const &""'"); 
  }
  arg6 = reinterpret_cast< Date * >(argp6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "7"" of type '" "Integer""'");
  } 
  arg7 = static_cast< Integer >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "8"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFloatingRateBond" "', argument " "8"" of type '" "IborIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< IborIndexPtr * >(argp8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "9"" of type '" "Integer""'");
  } 
  arg9 = static_cast< Integer >(val9);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res10 = swig::asptr(obj9, &ptr);
    if (!SWIG_IsOK(res10)) {
      SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "10"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFloatingRateBond" "', argument " "10"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    arg10 = ptr;
  }
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "11"" of type '" "DayCounter const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFloatingRateBond" "', argument " "11"" of type '" "DayCounter const &""'"); 
  }
  arg11 = reinterpret_cast< DayCounter * >(argp11);
  res12 = SWIG_ConvertPtr(obj11, &argp12, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res12)) {
    SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_ConvertibleFloatingRateBond" "', argument " "12"" of type '" "Schedule const &""'"); 
  }
  if (!argp12) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ConvertibleFloatingRateBond" "', argument " "12"" of type '" "Schedule const &""'"); 
  }
  arg12 = reinterpret_cast< Schedule * >(argp12);
  {
    try {
      result = (ConvertibleFloatingRateBondPtr *)new_ConvertibleFloatingRateBondPtr__SWIG_0((boost::shared_ptr< Exercise > const &)*arg1,arg2,(std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &)*arg3,(std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &)*arg4,(Handle< Quote > const &)*arg5,(Date const &)*arg6,arg7,(IborIndexPtr const &)*arg8,arg9,(std::vector< double,std::allocator< double > > const &)*arg10,(DayCounter const &)*arg11,(Schedule const &)*arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConvertibleFloatingRateBondPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConvertibleFloatingRateBond(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[14] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 13) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 12) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_IborIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      int res = swig::asptr(argv[9], (std::vector< double,std::allocator< double > >**)(0));
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_DayCounter, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          int res = SWIG_ConvertPtr(argv[11], 0, SWIGTYPE_p_Schedule, 0);
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            return _wrap_new_ConvertibleFloatingRateBond__SWIG_1(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 13) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_Date, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_IborIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      int res = swig::asptr(argv[9], (std::vector< double,std::allocator< double > >**)(0));
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_DayCounter, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          int res = SWIG_ConvertPtr(argv[11], 0, SWIGTYPE_p_Schedule, 0);
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            {
                              int res = SWIG_AsVal_double(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              return _wrap_new_ConvertibleFloatingRateBond__SWIG_0(self, args);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ConvertibleFloatingRateBond'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ConvertibleFloatingRateBondPtr::ConvertibleFloatingRateBondPtr(boost::shared_ptr< Exercise > const &,Real,std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &,std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &,Handle< Quote > const &,Date const &,Integer,IborIndexPtr const &,Integer,std::vector< Spread,std::allocator< Spread > > const &,DayCounter const &,Schedule const &,Real)\n"
    "    ConvertibleFloatingRateBondPtr::ConvertibleFloatingRateBondPtr(boost::shared_ptr< Exercise > const &,Real,std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > const &,std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > const &,Handle< Quote > const &,Date const &,Integer,IborIndexPtr const &,Integer,std::vector< Spread,std::allocator< Spread > > const &,DayCounter const &,Schedule const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_ConvertibleFloatingRateBond(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ConvertibleFloatingRateBondPtr *arg1 = (ConvertibleFloatingRateBondPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ConvertibleFloatingRateBond",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ConvertibleFloatingRateBondPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ConvertibleFloatingRateBond" "', argument " "1"" of type '" "ConvertibleFloatingRateBondPtr *""'"); 
  }
  arg1 = reinterpret_cast< ConvertibleFloatingRateBondPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ConvertibleFloatingRateBond_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ConvertibleFloatingRateBondPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BinomialConvertibleEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GeneralizedBlackScholesProcessPtr *arg1 = 0 ;
  std::string *arg2 = 0 ;
  Size arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  BinomialConvertibleEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BinomialConvertibleEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GeneralizedBlackScholesProcessPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BinomialConvertibleEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BinomialConvertibleEngine" "', argument " "1"" of type '" "GeneralizedBlackScholesProcessPtr const &""'"); 
  }
  arg1 = reinterpret_cast< GeneralizedBlackScholesProcessPtr * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BinomialConvertibleEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BinomialConvertibleEngine" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BinomialConvertibleEngine" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (BinomialConvertibleEnginePtr *)new_BinomialConvertibleEnginePtr((GeneralizedBlackScholesProcessPtr const &)*arg1,(std::string const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BinomialConvertibleEnginePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BinomialConvertibleEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BinomialConvertibleEnginePtr *arg1 = (BinomialConvertibleEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BinomialConvertibleEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BinomialConvertibleEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BinomialConvertibleEngine" "', argument " "1"" of type '" "BinomialConvertibleEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< BinomialConvertibleEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BinomialConvertibleEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BinomialConvertibleEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  DefaultProbabilityTermStructure *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure___deref__" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (DefaultProbabilityTermStructure *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DefaultProbabilityTermStructure, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_DefaultProbabilityTermStructure_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure___bool__" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_DefaultProbabilityTermStructure_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_asObservable" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_DefaultProbabilityTermStructure_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DefaultProbabilityTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DefaultProbabilityTermStructure",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< DefaultProbabilityTermStructure > *)new boost::shared_ptr< DefaultProbabilityTermStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DefaultProbabilityTermStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DefaultProbabilityTermStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DefaultProbabilityTermStructure" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_dayCounter" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->dayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_calendar" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->calendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_referenceDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_referenceDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_referenceDate" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->referenceDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_maxDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_maxDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_maxDate" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->maxDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_maxTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_maxTime",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_maxTime" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (Time)(*arg1)->maxTime();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_defaultProbability__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_defaultProbability",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Probability)(*arg1)->defaultProbability((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_defaultProbability__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_defaultProbability",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Probability)(*arg1)->defaultProbability((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_defaultProbability__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_defaultProbability",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Probability)(*arg1)->defaultProbability(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_defaultProbability__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_defaultProbability",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Probability)(*arg1)->defaultProbability(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_defaultProbability__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_defaultProbability",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Probability)(*arg1)->defaultProbability((Date const &)*arg2,(Date const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_defaultProbability__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_defaultProbability",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  {
    try {
      result = (Probability)(*arg1)->defaultProbability((Date const &)*arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_defaultProbability__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_defaultProbability",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Probability)(*arg1)->defaultProbability(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_defaultProbability__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_defaultProbability",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructure_defaultProbability" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  {
    try {
      result = (Probability)(*arg1)->defaultProbability(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_defaultProbability(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_DefaultProbabilityTermStructure_defaultProbability__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DefaultProbabilityTermStructure_defaultProbability__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DefaultProbabilityTermStructure_defaultProbability__SWIG_5(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DefaultProbabilityTermStructure_defaultProbability__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DefaultProbabilityTermStructure_defaultProbability__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DefaultProbabilityTermStructure_defaultProbability__SWIG_7(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_DefaultProbabilityTermStructure_defaultProbability__SWIG_4(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_DefaultProbabilityTermStructure_defaultProbability__SWIG_6(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DefaultProbabilityTermStructure_defaultProbability'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    DefaultProbabilityTermStructure::defaultProbability(Date const &,bool)\n"
    "    DefaultProbabilityTermStructure::defaultProbability(Date const &)\n"
    "    DefaultProbabilityTermStructure::defaultProbability(Time,bool)\n"
    "    DefaultProbabilityTermStructure::defaultProbability(Time)\n"
    "    DefaultProbabilityTermStructure::defaultProbability(Date const &,Date const &,bool)\n"
    "    DefaultProbabilityTermStructure::defaultProbability(Date const &,Date const &)\n"
    "    DefaultProbabilityTermStructure::defaultProbability(Time,Time,bool)\n"
    "    DefaultProbabilityTermStructure::defaultProbability(Time,Time)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_survivalProbability__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_survivalProbability",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_survivalProbability" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructure_survivalProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructure_survivalProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructure_survivalProbability" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Probability)(*arg1)->survivalProbability((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_survivalProbability__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_survivalProbability",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_survivalProbability" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructure_survivalProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructure_survivalProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Probability)(*arg1)->survivalProbability((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_survivalProbability__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_survivalProbability",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_survivalProbability" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructure_survivalProbability" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructure_survivalProbability" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Probability)(*arg1)->survivalProbability(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_survivalProbability__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_survivalProbability",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_survivalProbability" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructure_survivalProbability" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Probability)(*arg1)->survivalProbability(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_survivalProbability(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_DefaultProbabilityTermStructure_survivalProbability__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DefaultProbabilityTermStructure_survivalProbability__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DefaultProbabilityTermStructure_survivalProbability__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DefaultProbabilityTermStructure_survivalProbability__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DefaultProbabilityTermStructure_survivalProbability'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    DefaultProbabilityTermStructure::survivalProbability(Date const &,bool)\n"
    "    DefaultProbabilityTermStructure::survivalProbability(Date const &)\n"
    "    DefaultProbabilityTermStructure::survivalProbability(Time,bool)\n"
    "    DefaultProbabilityTermStructure::survivalProbability(Time)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_defaultDensity__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_defaultDensity",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_defaultDensity" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructure_defaultDensity" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructure_defaultDensity" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructure_defaultDensity" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(*arg1)->defaultDensity((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_defaultDensity__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_defaultDensity",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_defaultDensity" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructure_defaultDensity" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructure_defaultDensity" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Real)(*arg1)->defaultDensity((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_defaultDensity__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_defaultDensity",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_defaultDensity" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructure_defaultDensity" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructure_defaultDensity" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(*arg1)->defaultDensity(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_defaultDensity__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_defaultDensity",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_defaultDensity" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructure_defaultDensity" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)(*arg1)->defaultDensity(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_defaultDensity(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_DefaultProbabilityTermStructure_defaultDensity__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DefaultProbabilityTermStructure_defaultDensity__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DefaultProbabilityTermStructure_defaultDensity__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DefaultProbabilityTermStructure_defaultDensity__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DefaultProbabilityTermStructure_defaultDensity'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    DefaultProbabilityTermStructure::defaultDensity(Date const &,bool)\n"
    "    DefaultProbabilityTermStructure::defaultDensity(Date const &)\n"
    "    DefaultProbabilityTermStructure::defaultDensity(Time,bool)\n"
    "    DefaultProbabilityTermStructure::defaultDensity(Time)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_hazardRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_hazardRate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_hazardRate" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructure_hazardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructure_hazardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructure_hazardRate" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(*arg1)->hazardRate((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_hazardRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_hazardRate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_hazardRate" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructure_hazardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructure_hazardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Real)(*arg1)->hazardRate((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_hazardRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_hazardRate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_hazardRate" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructure_hazardRate" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructure_hazardRate" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(*arg1)->hazardRate(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_hazardRate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_hazardRate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_hazardRate" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructure_hazardRate" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)(*arg1)->hazardRate(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_hazardRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_DefaultProbabilityTermStructure_hazardRate__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DefaultProbabilityTermStructure_hazardRate__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DefaultProbabilityTermStructure_hazardRate__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DefaultProbabilityTermStructure_hazardRate__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DefaultProbabilityTermStructure_hazardRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    DefaultProbabilityTermStructure::hazardRate(Date const &,bool)\n"
    "    DefaultProbabilityTermStructure::hazardRate(Date const &)\n"
    "    DefaultProbabilityTermStructure::hazardRate(Time,bool)\n"
    "    DefaultProbabilityTermStructure::hazardRate(Time)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_enableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_enableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_enableExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      (*arg1)->enableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_disableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_disableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_disableExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      (*arg1)->disableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructure_allowsExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = (boost::shared_ptr< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructure_allowsExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructure_allowsExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->allowsExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DefaultProbabilityTermStructure_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DefaultProbabilityTermStructureHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< DefaultProbabilityTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DefaultProbabilityTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DefaultProbabilityTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DefaultProbabilityTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (Handle< DefaultProbabilityTermStructure > *)new Handle< DefaultProbabilityTermStructure >((boost::shared_ptr< DefaultProbabilityTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DefaultProbabilityTermStructureHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DefaultProbabilityTermStructureHandle",0,0)) SWIG_fail;
  {
    try {
      result = (Handle< DefaultProbabilityTermStructure > *)new Handle< DefaultProbabilityTermStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DefaultProbabilityTermStructureHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_DefaultProbabilityTermStructureHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_DefaultProbabilityTermStructureHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DefaultProbabilityTermStructureHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Handle< DefaultProbabilityTermStructure >::Handle(boost::shared_ptr< DefaultProbabilityTermStructure > const &)\n"
    "    Handle< DefaultProbabilityTermStructure >::Handle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< DefaultProbabilityTermStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle___deref__" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< DefaultProbabilityTermStructure >(static_cast< const boost::shared_ptr< DefaultProbabilityTermStructure >& >(result))), SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle___nonzero__" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_DefaultProbabilityTermStructure_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle___bool__" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_DefaultProbabilityTermStructure_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_asObservable" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = Handle_Sl_DefaultProbabilityTermStructure_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DefaultProbabilityTermStructureHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DefaultProbabilityTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DefaultProbabilityTermStructureHandle" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_dayCounter" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->dayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_calendar" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->calendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_referenceDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_referenceDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_referenceDate" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->referenceDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_maxDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_maxDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_maxDate" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (*arg1)->maxDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_maxTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_maxTime",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_maxTime" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > const *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (Time)(*arg1)->maxTime();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_defaultProbability__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_defaultProbability",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Probability)(*arg1)->defaultProbability((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_defaultProbability__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_defaultProbability",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Probability)(*arg1)->defaultProbability((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_defaultProbability__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_defaultProbability",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Probability)(*arg1)->defaultProbability(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_defaultProbability__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_defaultProbability",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Probability)(*arg1)->defaultProbability(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_defaultProbability__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_defaultProbability",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Probability)(*arg1)->defaultProbability((Date const &)*arg2,(Date const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_defaultProbability__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_defaultProbability",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  {
    try {
      result = (Probability)(*arg1)->defaultProbability((Date const &)*arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_defaultProbability__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_defaultProbability",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Probability)(*arg1)->defaultProbability(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_defaultProbability__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_defaultProbability",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructureHandle_defaultProbability" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  {
    try {
      result = (Probability)(*arg1)->defaultProbability(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_defaultProbability(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_DefaultProbabilityTermStructureHandle_defaultProbability__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DefaultProbabilityTermStructureHandle_defaultProbability__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DefaultProbabilityTermStructureHandle_defaultProbability__SWIG_5(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DefaultProbabilityTermStructureHandle_defaultProbability__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DefaultProbabilityTermStructureHandle_defaultProbability__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DefaultProbabilityTermStructureHandle_defaultProbability__SWIG_7(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_DefaultProbabilityTermStructureHandle_defaultProbability__SWIG_4(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_DefaultProbabilityTermStructureHandle_defaultProbability__SWIG_6(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DefaultProbabilityTermStructureHandle_defaultProbability'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    DefaultProbabilityTermStructure::defaultProbability(Date const &,bool)\n"
    "    DefaultProbabilityTermStructure::defaultProbability(Date const &)\n"
    "    DefaultProbabilityTermStructure::defaultProbability(Time,bool)\n"
    "    DefaultProbabilityTermStructure::defaultProbability(Time)\n"
    "    DefaultProbabilityTermStructure::defaultProbability(Date const &,Date const &,bool)\n"
    "    DefaultProbabilityTermStructure::defaultProbability(Date const &,Date const &)\n"
    "    DefaultProbabilityTermStructure::defaultProbability(Time,Time,bool)\n"
    "    DefaultProbabilityTermStructure::defaultProbability(Time,Time)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_survivalProbability__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_survivalProbability",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_survivalProbability" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructureHandle_survivalProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructureHandle_survivalProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructureHandle_survivalProbability" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Probability)(*arg1)->survivalProbability((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_survivalProbability__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_survivalProbability",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_survivalProbability" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructureHandle_survivalProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructureHandle_survivalProbability" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Probability)(*arg1)->survivalProbability((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_survivalProbability__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_survivalProbability",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_survivalProbability" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructureHandle_survivalProbability" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructureHandle_survivalProbability" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Probability)(*arg1)->survivalProbability(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_survivalProbability__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Probability result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_survivalProbability",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_survivalProbability" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructureHandle_survivalProbability" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Probability)(*arg1)->survivalProbability(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_survivalProbability(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_DefaultProbabilityTermStructureHandle_survivalProbability__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DefaultProbabilityTermStructureHandle_survivalProbability__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DefaultProbabilityTermStructureHandle_survivalProbability__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DefaultProbabilityTermStructureHandle_survivalProbability__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DefaultProbabilityTermStructureHandle_survivalProbability'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    DefaultProbabilityTermStructure::survivalProbability(Date const &,bool)\n"
    "    DefaultProbabilityTermStructure::survivalProbability(Date const &)\n"
    "    DefaultProbabilityTermStructure::survivalProbability(Time,bool)\n"
    "    DefaultProbabilityTermStructure::survivalProbability(Time)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_defaultDensity__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_defaultDensity",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_defaultDensity" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructureHandle_defaultDensity" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructureHandle_defaultDensity" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructureHandle_defaultDensity" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(*arg1)->defaultDensity((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_defaultDensity__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_defaultDensity",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_defaultDensity" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructureHandle_defaultDensity" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructureHandle_defaultDensity" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Real)(*arg1)->defaultDensity((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_defaultDensity__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_defaultDensity",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_defaultDensity" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructureHandle_defaultDensity" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructureHandle_defaultDensity" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(*arg1)->defaultDensity(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_defaultDensity__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_defaultDensity",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_defaultDensity" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructureHandle_defaultDensity" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)(*arg1)->defaultDensity(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_defaultDensity(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_DefaultProbabilityTermStructureHandle_defaultDensity__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DefaultProbabilityTermStructureHandle_defaultDensity__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DefaultProbabilityTermStructureHandle_defaultDensity__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DefaultProbabilityTermStructureHandle_defaultDensity__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DefaultProbabilityTermStructureHandle_defaultDensity'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    DefaultProbabilityTermStructure::defaultDensity(Date const &,bool)\n"
    "    DefaultProbabilityTermStructure::defaultDensity(Date const &)\n"
    "    DefaultProbabilityTermStructure::defaultDensity(Time,bool)\n"
    "    DefaultProbabilityTermStructure::defaultDensity(Time)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_hazardRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_hazardRate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_hazardRate" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructureHandle_hazardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructureHandle_hazardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructureHandle_hazardRate" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(*arg1)->hazardRate((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_hazardRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_hazardRate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_hazardRate" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityTermStructureHandle_hazardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityTermStructureHandle_hazardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Real)(*arg1)->hazardRate((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_hazardRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_hazardRate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_hazardRate" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructureHandle_hazardRate" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityTermStructureHandle_hazardRate" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (Real)(*arg1)->hazardRate(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_hazardRate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_hazardRate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_hazardRate" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityTermStructureHandle_hazardRate" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)(*arg1)->hazardRate(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_hazardRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_DefaultProbabilityTermStructureHandle_hazardRate__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DefaultProbabilityTermStructureHandle_hazardRate__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DefaultProbabilityTermStructureHandle_hazardRate__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DefaultProbabilityTermStructureHandle_hazardRate__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DefaultProbabilityTermStructureHandle_hazardRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    DefaultProbabilityTermStructure::hazardRate(Date const &,bool)\n"
    "    DefaultProbabilityTermStructure::hazardRate(Date const &)\n"
    "    DefaultProbabilityTermStructure::hazardRate(Time,bool)\n"
    "    DefaultProbabilityTermStructure::hazardRate(Time)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_enableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_enableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_enableExtrapolation" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      (*arg1)->enableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_disableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_disableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_disableExtrapolation" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      (*arg1)->disableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityTermStructureHandle_allowsExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = (Handle< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityTermStructureHandle_allowsExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityTermStructureHandle_allowsExtrapolation" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->allowsExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DefaultProbabilityTermStructureHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_RelinkableDefaultProbabilityTermStructureHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  RelinkableHandle< DefaultProbabilityTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableDefaultProbabilityTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RelinkableDefaultProbabilityTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RelinkableDefaultProbabilityTermStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      result = (RelinkableHandle< DefaultProbabilityTermStructure > *)new RelinkableHandle< DefaultProbabilityTermStructure >((boost::shared_ptr< DefaultProbabilityTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_DefaultProbabilityTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableDefaultProbabilityTermStructureHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< DefaultProbabilityTermStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableDefaultProbabilityTermStructureHandle",0,0)) SWIG_fail;
  {
    try {
      result = (RelinkableHandle< DefaultProbabilityTermStructure > *)new RelinkableHandle< DefaultProbabilityTermStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_DefaultProbabilityTermStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableDefaultProbabilityTermStructureHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_RelinkableDefaultProbabilityTermStructureHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_RelinkableDefaultProbabilityTermStructureHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RelinkableDefaultProbabilityTermStructureHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    RelinkableHandle< DefaultProbabilityTermStructure >::RelinkableHandle(boost::shared_ptr< DefaultProbabilityTermStructure > const &)\n"
    "    RelinkableHandle< DefaultProbabilityTermStructure >::RelinkableHandle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableDefaultProbabilityTermStructureHandle_linkTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< DefaultProbabilityTermStructure > *arg1 = (RelinkableHandle< DefaultProbabilityTermStructure > *) 0 ;
  boost::shared_ptr< DefaultProbabilityTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableDefaultProbabilityTermStructureHandle_linkTo",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_DefaultProbabilityTermStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableDefaultProbabilityTermStructureHandle_linkTo" "', argument " "1"" of type '" "RelinkableHandle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< DefaultProbabilityTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableDefaultProbabilityTermStructureHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableDefaultProbabilityTermStructureHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< DefaultProbabilityTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityTermStructure > * >(argp2);
  {
    try {
      (arg1)->linkTo((boost::shared_ptr< DefaultProbabilityTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RelinkableDefaultProbabilityTermStructureHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< DefaultProbabilityTermStructure > *arg1 = (RelinkableHandle< DefaultProbabilityTermStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RelinkableDefaultProbabilityTermStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_DefaultProbabilityTermStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RelinkableDefaultProbabilityTermStructureHandle" "', argument " "1"" of type '" "RelinkableHandle< DefaultProbabilityTermStructure > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< DefaultProbabilityTermStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RelinkableDefaultProbabilityTermStructureHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RelinkableHandleT_DefaultProbabilityTermStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FlatHazardRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FlatHazardRatePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FlatHazardRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FlatHazardRate" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FlatHazardRate" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatHazardRate" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FlatHazardRate" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatHazardRate" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FlatHazardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatHazardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    try {
      result = (FlatHazardRatePtr *)new_FlatHazardRatePtr__SWIG_0(arg1,(Calendar const &)*arg2,(Handle< Quote > const &)*arg3,(DayCounter const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FlatHazardRatePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FlatHazardRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  FlatHazardRatePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FlatHazardRate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FlatHazardRate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatHazardRate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FlatHazardRate" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatHazardRate" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FlatHazardRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FlatHazardRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (FlatHazardRatePtr *)new_FlatHazardRatePtr__SWIG_1((Date const &)*arg1,(Handle< Quote > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FlatHazardRatePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FlatHazardRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_FlatHazardRate__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_FlatHazardRate__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FlatHazardRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FlatHazardRatePtr::FlatHazardRatePtr(Integer,Calendar const &,Handle< Quote > const &,DayCounter const &)\n"
    "    FlatHazardRatePtr::FlatHazardRatePtr(Date const &,Handle< Quote > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FlatHazardRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FlatHazardRatePtr *arg1 = (FlatHazardRatePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FlatHazardRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FlatHazardRatePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FlatHazardRate" "', argument " "1"" of type '" "FlatHazardRatePtr *""'"); 
  }
  arg1 = reinterpret_cast< FlatHazardRatePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FlatHazardRate_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FlatHazardRatePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_HazardRateCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  BackwardFlat *arg5 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  HazardRateCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HazardRateCurve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HazardRateCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HazardRateCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_HazardRateCurve" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HazardRateCurve" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_HazardRateCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HazardRateCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_HazardRateCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HazardRateCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_BackwardFlat,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_HazardRateCurve" "', argument " "5"" of type '" "BackwardFlat const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HazardRateCurve" "', argument " "5"" of type '" "BackwardFlat const &""'"); 
  }
  arg5 = reinterpret_cast< BackwardFlat * >(argp5);
  {
    try {
      result = (HazardRateCurvePtr *)new_HazardRateCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(BackwardFlat const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HazardRateCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_HazardRateCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  HazardRateCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HazardRateCurve",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HazardRateCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HazardRateCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_HazardRateCurve" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HazardRateCurve" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_HazardRateCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HazardRateCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_HazardRateCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HazardRateCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  {
    try {
      result = (HazardRateCurvePtr *)new_HazardRateCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HazardRateCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_HazardRateCurve__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  HazardRateCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HazardRateCurve",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HazardRateCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HazardRateCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_HazardRateCurve" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HazardRateCurve" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_HazardRateCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_HazardRateCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (HazardRateCurvePtr *)new_HazardRateCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HazardRateCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_HazardRateCurve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_HazardRateCurve__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_HazardRateCurve__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_BackwardFlat, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_HazardRateCurve__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_HazardRateCurve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    HazardRateCurvePtr::HazardRateCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &,DayCounter const &,Calendar const &,BackwardFlat const &)\n"
    "    HazardRateCurvePtr::HazardRateCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &,DayCounter const &,Calendar const &)\n"
    "    HazardRateCurvePtr::HazardRateCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_HazardRateCurve_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HazardRateCurvePtr *arg1 = (HazardRateCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"HazardRateCurve_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HazardRateCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HazardRateCurve_dates" "', argument " "1"" of type '" "HazardRateCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< HazardRateCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &HazardRateCurvePtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HazardRateCurve_hazardRates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HazardRateCurvePtr *arg1 = (HazardRateCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"HazardRateCurve_hazardRates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HazardRateCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HazardRateCurve_hazardRates" "', argument " "1"" of type '" "HazardRateCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< HazardRateCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Real,std::allocator< Real > > *) &HazardRateCurvePtr_hazardRates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HazardRateCurve_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HazardRateCurvePtr *arg1 = (HazardRateCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"HazardRateCurve_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HazardRateCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HazardRateCurve_nodes" "', argument " "1"" of type '" "HazardRateCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< HazardRateCurvePtr * >(argp1);
  {
    try {
      result = HazardRateCurvePtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_HazardRateCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HazardRateCurvePtr *arg1 = (HazardRateCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_HazardRateCurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HazardRateCurvePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HazardRateCurve" "', argument " "1"" of type '" "HazardRateCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< HazardRateCurvePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *HazardRateCurve_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HazardRateCurvePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DefaultDensityCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  Linear *arg5 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  DefaultDensityCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DefaultDensityCurve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DefaultDensityCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DefaultDensityCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DefaultDensityCurve" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DefaultDensityCurve" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DefaultDensityCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DefaultDensityCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_DefaultDensityCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DefaultDensityCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Linear,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_DefaultDensityCurve" "', argument " "5"" of type '" "Linear const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DefaultDensityCurve" "', argument " "5"" of type '" "Linear const &""'"); 
  }
  arg5 = reinterpret_cast< Linear * >(argp5);
  {
    try {
      result = (DefaultDensityCurvePtr *)new_DefaultDensityCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(Linear const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DefaultDensityCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DefaultDensityCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  DefaultDensityCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DefaultDensityCurve",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DefaultDensityCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DefaultDensityCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DefaultDensityCurve" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DefaultDensityCurve" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DefaultDensityCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DefaultDensityCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_DefaultDensityCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DefaultDensityCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  {
    try {
      result = (DefaultDensityCurvePtr *)new_DefaultDensityCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DefaultDensityCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DefaultDensityCurve__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  DefaultDensityCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DefaultDensityCurve",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DefaultDensityCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DefaultDensityCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DefaultDensityCurve" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DefaultDensityCurve" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DefaultDensityCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DefaultDensityCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (DefaultDensityCurvePtr *)new_DefaultDensityCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DefaultDensityCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DefaultDensityCurve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_DefaultDensityCurve__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_DefaultDensityCurve__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Linear, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_DefaultDensityCurve__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DefaultDensityCurve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    DefaultDensityCurvePtr::DefaultDensityCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &,DayCounter const &,Calendar const &,Linear const &)\n"
    "    DefaultDensityCurvePtr::DefaultDensityCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &,DayCounter const &,Calendar const &)\n"
    "    DefaultDensityCurvePtr::DefaultDensityCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DefaultDensityCurve_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DefaultDensityCurvePtr *arg1 = (DefaultDensityCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultDensityCurve_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DefaultDensityCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultDensityCurve_dates" "', argument " "1"" of type '" "DefaultDensityCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< DefaultDensityCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &DefaultDensityCurvePtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultDensityCurve_defaultDensities(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DefaultDensityCurvePtr *arg1 = (DefaultDensityCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultDensityCurve_defaultDensities",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DefaultDensityCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultDensityCurve_defaultDensities" "', argument " "1"" of type '" "DefaultDensityCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< DefaultDensityCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Real,std::allocator< Real > > *) &DefaultDensityCurvePtr_defaultDensities(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultDensityCurve_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DefaultDensityCurvePtr *arg1 = (DefaultDensityCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultDensityCurve_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DefaultDensityCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultDensityCurve_nodes" "', argument " "1"" of type '" "DefaultDensityCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< DefaultDensityCurvePtr * >(argp1);
  {
    try {
      result = DefaultDensityCurvePtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DefaultDensityCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DefaultDensityCurvePtr *arg1 = (DefaultDensityCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DefaultDensityCurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DefaultDensityCurvePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DefaultDensityCurve" "', argument " "1"" of type '" "DefaultDensityCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< DefaultDensityCurvePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DefaultDensityCurve_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DefaultDensityCurvePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_DefaultProbabilityHelper___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityHelper > *arg1 = (boost::shared_ptr< DefaultProbabilityHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  DefaultProbabilityHelper *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelper___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelper___deref__" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityHelper > * >(argp1);
  {
    try {
      result = (DefaultProbabilityHelper *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DefaultProbabilityHelper, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelper___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityHelper > *arg1 = (boost::shared_ptr< DefaultProbabilityHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelper___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelper___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityHelper > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelper___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityHelper > *arg1 = (boost::shared_ptr< DefaultProbabilityHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelper___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelper___bool__" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityHelper > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DefaultProbabilityHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityHelper > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DefaultProbabilityHelper",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< DefaultProbabilityHelper > *)new boost::shared_ptr< DefaultProbabilityHelper >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DefaultProbabilityHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultProbabilityHelper > *arg1 = (boost::shared_ptr< DefaultProbabilityHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DefaultProbabilityHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DefaultProbabilityHelper" "', argument " "1"" of type '" "boost::shared_ptr< DefaultProbabilityHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultProbabilityHelper > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DefaultProbabilityHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_iterator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector___nonzero__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____nonzero__((std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector___bool__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____bool__((std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector___len__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____len__((std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector___getslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityHelperVector___getslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityHelperVector___getslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *)std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityHelperVector___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityHelperVector___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type arg3 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityHelperVector___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityHelperVector___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type >(val3);
  {
    std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *ptr = (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DefaultProbabilityHelperVector___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityHelperVector___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(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_DefaultProbabilityHelperVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(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< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_DefaultProbabilityHelperVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DefaultProbabilityHelperVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::__setslice__(std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::__setslice__(std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type,std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector___delslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityHelperVector___delslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityHelperVector___delslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityHelperVector___delitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DefaultProbabilityHelperVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *)std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DefaultProbabilityHelperVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *ptr = (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DefaultProbabilityHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DefaultProbabilityHelperVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DefaultProbabilityHelperVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_DefaultProbabilityHelperVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DefaultProbabilityHelperVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DefaultProbabilityHelperVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::__delitem__(std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityHelperVector___getitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type *) &std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____getitem____SWIG_1((std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_DefaultProbabilityHelperVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DefaultProbabilityHelperVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DefaultProbabilityHelperVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::__getitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::__getitem__(std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityHelperVector___setitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DefaultProbabilityHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type * >(argp3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg____setitem____SWIG_2(arg1,arg2,(boost::shared_ptr< DefaultProbabilityHelper > const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_DefaultProbabilityHelperVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DefaultProbabilityHelperVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(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_boost__shared_ptrT_DefaultProbabilityHelper_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DefaultProbabilityHelperVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DefaultProbabilityHelperVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::__setitem__(PySliceObject *,std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &)\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::__setitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::__setitem__(std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::difference_type,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_pop" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type(static_cast< const std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type& >(result))), SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_append" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityHelperVector_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityHelperVector_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type * >(argp2);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg__append(arg1,(boost::shared_ptr< DefaultProbabilityHelper > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DefaultProbabilityHelperVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DefaultProbabilityHelperVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *)new std::vector< boost::shared_ptr< DefaultProbabilityHelper > >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DefaultProbabilityHelperVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DefaultProbabilityHelperVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *ptr = (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DefaultProbabilityHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DefaultProbabilityHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *)new std::vector< boost::shared_ptr< DefaultProbabilityHelper > >((std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_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_DefaultProbabilityHelperVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_empty" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    try {
      result = (bool)((std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_size" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_swap" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityHelperVector_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityHelperVector_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_begin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_end" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_rbegin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_rend" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_clear" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_get_allocator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::allocator_type(static_cast< const std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DefaultProbabilityHelperVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DefaultProbabilityHelperVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DefaultProbabilityHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type >(val1);
  {
    try {
      result = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *)new std::vector< boost::shared_ptr< DefaultProbabilityHelper > >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_pop_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityHelperVector_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DefaultProbabilityHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DefaultProbabilityHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator arg2 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DefaultProbabilityHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DefaultProbabilityHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DefaultProbabilityHelperVector_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DefaultProbabilityHelperVector_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(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< boost::shared_ptr< DefaultProbabilityHelper > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_DefaultProbabilityHelperVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(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< boost::shared_ptr< DefaultProbabilityHelper > >::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< boost::shared_ptr< DefaultProbabilityHelper > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_DefaultProbabilityHelperVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DefaultProbabilityHelperVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::erase(std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator)\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::erase(std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_DefaultProbabilityHelperVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type arg1 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DefaultProbabilityHelperVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DefaultProbabilityHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DefaultProbabilityHelperVector" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DefaultProbabilityHelperVector" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type * >(argp2);
  {
    try {
      result = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *)new std::vector< boost::shared_ptr< DefaultProbabilityHelper > >(arg1,(std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DefaultProbabilityHelperVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_DefaultProbabilityHelperVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_DefaultProbabilityHelperVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_DefaultProbabilityHelperVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_DefaultProbabilityHelperVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DefaultProbabilityHelperVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::vector()\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::vector(std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const &)\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::vector(std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type)\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::vector(std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_push_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DefaultProbabilityHelperVector_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityHelperVector_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type * >(argp2);
  {
    try {
      (arg1)->push_back((std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_front" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type *) &((std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type *) &((std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type arg2 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_assign" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityHelperVector_assign" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DefaultProbabilityHelperVector_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityHelperVector_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type * >(argp3);
  {
    try {
      (arg1)->assign(arg2,(std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type arg2 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityHelperVector_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DefaultProbabilityHelperVector_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityHelperVector_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type * >(argp3);
  {
    try {
      (arg1)->resize(arg2,(std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DefaultProbabilityHelperVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(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_boost__shared_ptrT_DefaultProbabilityHelper_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DefaultProbabilityHelperVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DefaultProbabilityHelperVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::resize(std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type)\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::resize(std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator arg2 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DefaultProbabilityHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DefaultProbabilityHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DefaultProbabilityHelperVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityHelperVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type * >(argp3);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg__insert__SWIG_0(arg1,arg2,(boost::shared_ptr< DefaultProbabilityHelper > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator arg2 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type arg3 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::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 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DefaultProbabilityHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DefaultProbabilityHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DefaultProbabilityHelperVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DefaultProbabilityHelperVector_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DefaultProbabilityHelperVector_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type * >(argp4);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_DefaultProbabilityHelper_Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(boost::shared_ptr< DefaultProbabilityHelper > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(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< boost::shared_ptr< DefaultProbabilityHelper > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_DefaultProbabilityHelper_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DefaultProbabilityHelperVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(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< boost::shared_ptr< DefaultProbabilityHelper > >::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_boost__shared_ptrT_DefaultProbabilityHelper_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_DefaultProbabilityHelperVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'DefaultProbabilityHelperVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::insert(std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &)\n"
    "    std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::insert(std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::iterator,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type,std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_reserve" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DefaultProbabilityHelperVector_reserve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DefaultProbabilityHelperVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DefaultProbabilityHelperVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DefaultProbabilityHelperVector_capacity" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< DefaultProbabilityHelper > > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DefaultProbabilityHelperVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *arg1 = (std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DefaultProbabilityHelperVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DefaultProbabilityHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< DefaultProbabilityHelper > > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DefaultProbabilityHelperVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SpreadCdsHelper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Period *arg2 = 0 ;
  Integer arg3 ;
  Calendar *arg4 = 0 ;
  Frequency arg5 ;
  BusinessDayConvention arg6 ;
  DateGeneration::Rule arg7 ;
  DayCounter *arg8 = 0 ;
  Real arg9 ;
  Handle< YieldTermStructure > *arg10 = 0 ;
  bool arg11 ;
  bool arg12 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  bool val11 ;
  int ecode11 = 0 ;
  bool val12 ;
  int ecode12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  SpreadCdsHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SpreadCdsHelper",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpreadCdsHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SpreadCdsHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SpreadCdsHelper" "', argument " "3"" of type '" "Integer""'");
  } 
  arg3 = static_cast< Integer >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SpreadCdsHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpreadCdsHelper" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpreadCdsHelper" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpreadCdsHelper" "', argument " "7"" of type '" "DateGeneration::Rule""'");
  } 
  arg7 = static_cast< DateGeneration::Rule >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SpreadCdsHelper" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  arg8 = reinterpret_cast< DayCounter * >(argp8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpreadCdsHelper" "', argument " "9"" of type '" "Real""'");
  } 
  arg9 = static_cast< Real >(val9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SpreadCdsHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg10 = reinterpret_cast< Handle< YieldTermStructure > * >(argp10);
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SpreadCdsHelper" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  ecode12 = SWIG_AsVal_bool(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_SpreadCdsHelper" "', argument " "12"" of type '" "bool""'");
  } 
  arg12 = static_cast< bool >(val12);
  {
    try {
      result = (SpreadCdsHelperPtr *)new_SpreadCdsHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,(Period const &)*arg2,arg3,(Calendar const &)*arg4,arg5,arg6,arg7,(DayCounter const &)*arg8,arg9,(Handle< YieldTermStructure > const &)*arg10,arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SpreadCdsHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SpreadCdsHelper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Period *arg2 = 0 ;
  Integer arg3 ;
  Calendar *arg4 = 0 ;
  Frequency arg5 ;
  BusinessDayConvention arg6 ;
  DateGeneration::Rule arg7 ;
  DayCounter *arg8 = 0 ;
  Real arg9 ;
  Handle< YieldTermStructure > *arg10 = 0 ;
  bool arg11 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  bool val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  SpreadCdsHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SpreadCdsHelper",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpreadCdsHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SpreadCdsHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SpreadCdsHelper" "', argument " "3"" of type '" "Integer""'");
  } 
  arg3 = static_cast< Integer >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SpreadCdsHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpreadCdsHelper" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpreadCdsHelper" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpreadCdsHelper" "', argument " "7"" of type '" "DateGeneration::Rule""'");
  } 
  arg7 = static_cast< DateGeneration::Rule >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SpreadCdsHelper" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  arg8 = reinterpret_cast< DayCounter * >(argp8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpreadCdsHelper" "', argument " "9"" of type '" "Real""'");
  } 
  arg9 = static_cast< Real >(val9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SpreadCdsHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg10 = reinterpret_cast< Handle< YieldTermStructure > * >(argp10);
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SpreadCdsHelper" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  {
    try {
      result = (SpreadCdsHelperPtr *)new_SpreadCdsHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,(Period const &)*arg2,arg3,(Calendar const &)*arg4,arg5,arg6,arg7,(DayCounter const &)*arg8,arg9,(Handle< YieldTermStructure > const &)*arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SpreadCdsHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SpreadCdsHelper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Period *arg2 = 0 ;
  Integer arg3 ;
  Calendar *arg4 = 0 ;
  Frequency arg5 ;
  BusinessDayConvention arg6 ;
  DateGeneration::Rule arg7 ;
  DayCounter *arg8 = 0 ;
  Real arg9 ;
  Handle< YieldTermStructure > *arg10 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  SpreadCdsHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SpreadCdsHelper",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpreadCdsHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SpreadCdsHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SpreadCdsHelper" "', argument " "3"" of type '" "Integer""'");
  } 
  arg3 = static_cast< Integer >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SpreadCdsHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpreadCdsHelper" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpreadCdsHelper" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpreadCdsHelper" "', argument " "7"" of type '" "DateGeneration::Rule""'");
  } 
  arg7 = static_cast< DateGeneration::Rule >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SpreadCdsHelper" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  arg8 = reinterpret_cast< DayCounter * >(argp8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpreadCdsHelper" "', argument " "9"" of type '" "Real""'");
  } 
  arg9 = static_cast< Real >(val9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SpreadCdsHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg10 = reinterpret_cast< Handle< YieldTermStructure > * >(argp10);
  {
    try {
      result = (SpreadCdsHelperPtr *)new_SpreadCdsHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,(Period const &)*arg2,arg3,(Calendar const &)*arg4,arg5,arg6,arg7,(DayCounter const &)*arg8,arg9,(Handle< YieldTermStructure > const &)*arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SpreadCdsHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SpreadCdsHelper__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Period *arg2 = 0 ;
  Integer arg3 ;
  Calendar *arg4 = 0 ;
  Frequency arg5 ;
  BusinessDayConvention arg6 ;
  DateGeneration::Rule arg7 ;
  DayCounter *arg8 = 0 ;
  Real arg9 ;
  Handle< YieldTermStructure > *arg10 = 0 ;
  bool arg11 ;
  bool arg12 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  bool val11 ;
  int ecode11 = 0 ;
  bool val12 ;
  int ecode12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  SpreadCdsHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SpreadCdsHelper",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpreadCdsHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SpreadCdsHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SpreadCdsHelper" "', argument " "3"" of type '" "Integer""'");
  } 
  arg3 = static_cast< Integer >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SpreadCdsHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpreadCdsHelper" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpreadCdsHelper" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpreadCdsHelper" "', argument " "7"" of type '" "DateGeneration::Rule""'");
  } 
  arg7 = static_cast< DateGeneration::Rule >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SpreadCdsHelper" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  arg8 = reinterpret_cast< DayCounter * >(argp8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpreadCdsHelper" "', argument " "9"" of type '" "Real""'");
  } 
  arg9 = static_cast< Real >(val9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SpreadCdsHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg10 = reinterpret_cast< Handle< YieldTermStructure > * >(argp10);
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SpreadCdsHelper" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  ecode12 = SWIG_AsVal_bool(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_SpreadCdsHelper" "', argument " "12"" of type '" "bool""'");
  } 
  arg12 = static_cast< bool >(val12);
  {
    try {
      result = (SpreadCdsHelperPtr *)new_SpreadCdsHelperPtr__SWIG_3(arg1,(Period const &)*arg2,arg3,(Calendar const &)*arg4,arg5,arg6,arg7,(DayCounter const &)*arg8,arg9,(Handle< YieldTermStructure > const &)*arg10,arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SpreadCdsHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SpreadCdsHelper__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Period *arg2 = 0 ;
  Integer arg3 ;
  Calendar *arg4 = 0 ;
  Frequency arg5 ;
  BusinessDayConvention arg6 ;
  DateGeneration::Rule arg7 ;
  DayCounter *arg8 = 0 ;
  Real arg9 ;
  Handle< YieldTermStructure > *arg10 = 0 ;
  bool arg11 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  bool val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  SpreadCdsHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SpreadCdsHelper",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpreadCdsHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SpreadCdsHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SpreadCdsHelper" "', argument " "3"" of type '" "Integer""'");
  } 
  arg3 = static_cast< Integer >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SpreadCdsHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpreadCdsHelper" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpreadCdsHelper" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpreadCdsHelper" "', argument " "7"" of type '" "DateGeneration::Rule""'");
  } 
  arg7 = static_cast< DateGeneration::Rule >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SpreadCdsHelper" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  arg8 = reinterpret_cast< DayCounter * >(argp8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpreadCdsHelper" "', argument " "9"" of type '" "Real""'");
  } 
  arg9 = static_cast< Real >(val9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SpreadCdsHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg10 = reinterpret_cast< Handle< YieldTermStructure > * >(argp10);
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SpreadCdsHelper" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  {
    try {
      result = (SpreadCdsHelperPtr *)new_SpreadCdsHelperPtr__SWIG_3(arg1,(Period const &)*arg2,arg3,(Calendar const &)*arg4,arg5,arg6,arg7,(DayCounter const &)*arg8,arg9,(Handle< YieldTermStructure > const &)*arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SpreadCdsHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SpreadCdsHelper__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Period *arg2 = 0 ;
  Integer arg3 ;
  Calendar *arg4 = 0 ;
  Frequency arg5 ;
  BusinessDayConvention arg6 ;
  DateGeneration::Rule arg7 ;
  DayCounter *arg8 = 0 ;
  Real arg9 ;
  Handle< YieldTermStructure > *arg10 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  double val9 ;
  int ecode9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  SpreadCdsHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SpreadCdsHelper",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpreadCdsHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SpreadCdsHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SpreadCdsHelper" "', argument " "3"" of type '" "Integer""'");
  } 
  arg3 = static_cast< Integer >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SpreadCdsHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpreadCdsHelper" "', argument " "5"" of type '" "Frequency""'");
  } 
  arg5 = static_cast< Frequency >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpreadCdsHelper" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpreadCdsHelper" "', argument " "7"" of type '" "DateGeneration::Rule""'");
  } 
  arg7 = static_cast< DateGeneration::Rule >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SpreadCdsHelper" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  arg8 = reinterpret_cast< DayCounter * >(argp8);
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpreadCdsHelper" "', argument " "9"" of type '" "Real""'");
  } 
  arg9 = static_cast< Real >(val9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SpreadCdsHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SpreadCdsHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg10 = reinterpret_cast< Handle< YieldTermStructure > * >(argp10);
  {
    try {
      result = (SpreadCdsHelperPtr *)new_SpreadCdsHelperPtr__SWIG_3(arg1,(Period const &)*arg2,arg3,(Calendar const &)*arg4,arg5,arg6,arg7,(DayCounter const &)*arg8,arg9,(Handle< YieldTermStructure > const &)*arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SpreadCdsHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SpreadCdsHelper(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[13] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 12) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 10) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_DayCounter, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        return _wrap_new_SpreadCdsHelper__SWIG_2(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_DayCounter, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        return _wrap_new_SpreadCdsHelper__SWIG_5(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_DayCounter, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          return _wrap_new_SpreadCdsHelper__SWIG_1(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_DayCounter, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          return _wrap_new_SpreadCdsHelper__SWIG_4(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_DayCounter, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_bool(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            return _wrap_new_SpreadCdsHelper__SWIG_0(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_DayCounter, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_bool(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            return _wrap_new_SpreadCdsHelper__SWIG_3(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SpreadCdsHelper'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SpreadCdsHelperPtr::SpreadCdsHelperPtr(Handle< Quote > const &,Period const &,Integer,Calendar const &,Frequency,BusinessDayConvention,DateGeneration::Rule,DayCounter const &,Real,Handle< YieldTermStructure > const &,bool,bool)\n"
    "    SpreadCdsHelperPtr::SpreadCdsHelperPtr(Handle< Quote > const &,Period const &,Integer,Calendar const &,Frequency,BusinessDayConvention,DateGeneration::Rule,DayCounter const &,Real,Handle< YieldTermStructure > const &,bool)\n"
    "    SpreadCdsHelperPtr::SpreadCdsHelperPtr(Handle< Quote > const &,Period const &,Integer,Calendar const &,Frequency,BusinessDayConvention,DateGeneration::Rule,DayCounter const &,Real,Handle< YieldTermStructure > const &)\n"
    "    SpreadCdsHelperPtr::SpreadCdsHelperPtr(Rate,Period const &,Integer,Calendar const &,Frequency,BusinessDayConvention,DateGeneration::Rule,DayCounter const &,Real,Handle< YieldTermStructure > const &,bool,bool)\n"
    "    SpreadCdsHelperPtr::SpreadCdsHelperPtr(Rate,Period const &,Integer,Calendar const &,Frequency,BusinessDayConvention,DateGeneration::Rule,DayCounter const &,Real,Handle< YieldTermStructure > const &,bool)\n"
    "    SpreadCdsHelperPtr::SpreadCdsHelperPtr(Rate,Period const &,Integer,Calendar const &,Frequency,BusinessDayConvention,DateGeneration::Rule,DayCounter const &,Real,Handle< YieldTermStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_SpreadCdsHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SpreadCdsHelperPtr *arg1 = (SpreadCdsHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SpreadCdsHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SpreadCdsHelperPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SpreadCdsHelper" "', argument " "1"" of type '" "SpreadCdsHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< SpreadCdsHelperPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SpreadCdsHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SpreadCdsHelperPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_UpfrontCdsHelper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Rate arg2 ;
  Period *arg3 = 0 ;
  Integer arg4 ;
  Calendar *arg5 = 0 ;
  Frequency arg6 ;
  BusinessDayConvention arg7 ;
  DateGeneration::Rule arg8 ;
  DayCounter *arg9 = 0 ;
  Real arg10 ;
  Handle< YieldTermStructure > *arg11 = 0 ;
  Natural arg12 ;
  bool arg13 ;
  bool arg14 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  unsigned int val12 ;
  int ecode12 = 0 ;
  bool val13 ;
  int ecode13 = 0 ;
  bool val14 ;
  int ecode14 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  UpfrontCdsHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UpfrontCdsHelper",14,14,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_UpfrontCdsHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_UpfrontCdsHelper" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_UpfrontCdsHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_UpfrontCdsHelper" "', argument " "4"" of type '" "Integer""'");
  } 
  arg4 = static_cast< Integer >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_UpfrontCdsHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_UpfrontCdsHelper" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_UpfrontCdsHelper" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_UpfrontCdsHelper" "', argument " "8"" of type '" "DateGeneration::Rule""'");
  } 
  arg8 = static_cast< DateGeneration::Rule >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_UpfrontCdsHelper" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_UpfrontCdsHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_UpfrontCdsHelper" "', argument " "11"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "11"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg11 = reinterpret_cast< Handle< YieldTermStructure > * >(argp11);
  ecode12 = SWIG_AsVal_unsigned_SS_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_UpfrontCdsHelper" "', argument " "12"" of type '" "Natural""'");
  } 
  arg12 = static_cast< Natural >(val12);
  ecode13 = SWIG_AsVal_bool(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_UpfrontCdsHelper" "', argument " "13"" of type '" "bool""'");
  } 
  arg13 = static_cast< bool >(val13);
  ecode14 = SWIG_AsVal_bool(obj13, &val14);
  if (!SWIG_IsOK(ecode14)) {
    SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "new_UpfrontCdsHelper" "', argument " "14"" of type '" "bool""'");
  } 
  arg14 = static_cast< bool >(val14);
  {
    try {
      result = (UpfrontCdsHelperPtr *)new_UpfrontCdsHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,arg2,(Period const &)*arg3,arg4,(Calendar const &)*arg5,arg6,arg7,arg8,(DayCounter const &)*arg9,arg10,(Handle< YieldTermStructure > const &)*arg11,arg12,arg13,arg14);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UpfrontCdsHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UpfrontCdsHelper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Rate arg2 ;
  Period *arg3 = 0 ;
  Integer arg4 ;
  Calendar *arg5 = 0 ;
  Frequency arg6 ;
  BusinessDayConvention arg7 ;
  DateGeneration::Rule arg8 ;
  DayCounter *arg9 = 0 ;
  Real arg10 ;
  Handle< YieldTermStructure > *arg11 = 0 ;
  Natural arg12 ;
  bool arg13 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  unsigned int val12 ;
  int ecode12 = 0 ;
  bool val13 ;
  int ecode13 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  UpfrontCdsHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UpfrontCdsHelper",13,13,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_UpfrontCdsHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_UpfrontCdsHelper" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_UpfrontCdsHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_UpfrontCdsHelper" "', argument " "4"" of type '" "Integer""'");
  } 
  arg4 = static_cast< Integer >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_UpfrontCdsHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_UpfrontCdsHelper" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_UpfrontCdsHelper" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_UpfrontCdsHelper" "', argument " "8"" of type '" "DateGeneration::Rule""'");
  } 
  arg8 = static_cast< DateGeneration::Rule >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_UpfrontCdsHelper" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_UpfrontCdsHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_UpfrontCdsHelper" "', argument " "11"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "11"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg11 = reinterpret_cast< Handle< YieldTermStructure > * >(argp11);
  ecode12 = SWIG_AsVal_unsigned_SS_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_UpfrontCdsHelper" "', argument " "12"" of type '" "Natural""'");
  } 
  arg12 = static_cast< Natural >(val12);
  ecode13 = SWIG_AsVal_bool(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_UpfrontCdsHelper" "', argument " "13"" of type '" "bool""'");
  } 
  arg13 = static_cast< bool >(val13);
  {
    try {
      result = (UpfrontCdsHelperPtr *)new_UpfrontCdsHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,arg2,(Period const &)*arg3,arg4,(Calendar const &)*arg5,arg6,arg7,arg8,(DayCounter const &)*arg9,arg10,(Handle< YieldTermStructure > const &)*arg11,arg12,arg13);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UpfrontCdsHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UpfrontCdsHelper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Rate arg2 ;
  Period *arg3 = 0 ;
  Integer arg4 ;
  Calendar *arg5 = 0 ;
  Frequency arg6 ;
  BusinessDayConvention arg7 ;
  DateGeneration::Rule arg8 ;
  DayCounter *arg9 = 0 ;
  Real arg10 ;
  Handle< YieldTermStructure > *arg11 = 0 ;
  Natural arg12 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  unsigned int val12 ;
  int ecode12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  UpfrontCdsHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UpfrontCdsHelper",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_UpfrontCdsHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_UpfrontCdsHelper" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_UpfrontCdsHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_UpfrontCdsHelper" "', argument " "4"" of type '" "Integer""'");
  } 
  arg4 = static_cast< Integer >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_UpfrontCdsHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_UpfrontCdsHelper" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_UpfrontCdsHelper" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_UpfrontCdsHelper" "', argument " "8"" of type '" "DateGeneration::Rule""'");
  } 
  arg8 = static_cast< DateGeneration::Rule >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_UpfrontCdsHelper" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_UpfrontCdsHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_UpfrontCdsHelper" "', argument " "11"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "11"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg11 = reinterpret_cast< Handle< YieldTermStructure > * >(argp11);
  ecode12 = SWIG_AsVal_unsigned_SS_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_UpfrontCdsHelper" "', argument " "12"" of type '" "Natural""'");
  } 
  arg12 = static_cast< Natural >(val12);
  {
    try {
      result = (UpfrontCdsHelperPtr *)new_UpfrontCdsHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,arg2,(Period const &)*arg3,arg4,(Calendar const &)*arg5,arg6,arg7,arg8,(DayCounter const &)*arg9,arg10,(Handle< YieldTermStructure > const &)*arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UpfrontCdsHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UpfrontCdsHelper__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Rate arg2 ;
  Period *arg3 = 0 ;
  Integer arg4 ;
  Calendar *arg5 = 0 ;
  Frequency arg6 ;
  BusinessDayConvention arg7 ;
  DateGeneration::Rule arg8 ;
  DayCounter *arg9 = 0 ;
  Real arg10 ;
  Handle< YieldTermStructure > *arg11 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  UpfrontCdsHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UpfrontCdsHelper",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_UpfrontCdsHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_UpfrontCdsHelper" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_UpfrontCdsHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_UpfrontCdsHelper" "', argument " "4"" of type '" "Integer""'");
  } 
  arg4 = static_cast< Integer >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_UpfrontCdsHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_UpfrontCdsHelper" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_UpfrontCdsHelper" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_UpfrontCdsHelper" "', argument " "8"" of type '" "DateGeneration::Rule""'");
  } 
  arg8 = static_cast< DateGeneration::Rule >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_UpfrontCdsHelper" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_UpfrontCdsHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_UpfrontCdsHelper" "', argument " "11"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "11"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg11 = reinterpret_cast< Handle< YieldTermStructure > * >(argp11);
  {
    try {
      result = (UpfrontCdsHelperPtr *)new_UpfrontCdsHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,arg2,(Period const &)*arg3,arg4,(Calendar const &)*arg5,arg6,arg7,arg8,(DayCounter const &)*arg9,arg10,(Handle< YieldTermStructure > const &)*arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UpfrontCdsHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UpfrontCdsHelper__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Rate arg2 ;
  Period *arg3 = 0 ;
  Integer arg4 ;
  Calendar *arg5 = 0 ;
  Frequency arg6 ;
  BusinessDayConvention arg7 ;
  DateGeneration::Rule arg8 ;
  DayCounter *arg9 = 0 ;
  Real arg10 ;
  Handle< YieldTermStructure > *arg11 = 0 ;
  Natural arg12 ;
  bool arg13 ;
  bool arg14 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  unsigned int val12 ;
  int ecode12 = 0 ;
  bool val13 ;
  int ecode13 = 0 ;
  bool val14 ;
  int ecode14 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  UpfrontCdsHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UpfrontCdsHelper",14,14,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UpfrontCdsHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_UpfrontCdsHelper" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_UpfrontCdsHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_UpfrontCdsHelper" "', argument " "4"" of type '" "Integer""'");
  } 
  arg4 = static_cast< Integer >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_UpfrontCdsHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_UpfrontCdsHelper" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_UpfrontCdsHelper" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_UpfrontCdsHelper" "', argument " "8"" of type '" "DateGeneration::Rule""'");
  } 
  arg8 = static_cast< DateGeneration::Rule >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_UpfrontCdsHelper" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_UpfrontCdsHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_UpfrontCdsHelper" "', argument " "11"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "11"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg11 = reinterpret_cast< Handle< YieldTermStructure > * >(argp11);
  ecode12 = SWIG_AsVal_unsigned_SS_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_UpfrontCdsHelper" "', argument " "12"" of type '" "Natural""'");
  } 
  arg12 = static_cast< Natural >(val12);
  ecode13 = SWIG_AsVal_bool(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_UpfrontCdsHelper" "', argument " "13"" of type '" "bool""'");
  } 
  arg13 = static_cast< bool >(val13);
  ecode14 = SWIG_AsVal_bool(obj13, &val14);
  if (!SWIG_IsOK(ecode14)) {
    SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "new_UpfrontCdsHelper" "', argument " "14"" of type '" "bool""'");
  } 
  arg14 = static_cast< bool >(val14);
  {
    try {
      result = (UpfrontCdsHelperPtr *)new_UpfrontCdsHelperPtr__SWIG_4(arg1,arg2,(Period const &)*arg3,arg4,(Calendar const &)*arg5,arg6,arg7,arg8,(DayCounter const &)*arg9,arg10,(Handle< YieldTermStructure > const &)*arg11,arg12,arg13,arg14);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UpfrontCdsHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UpfrontCdsHelper__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Rate arg2 ;
  Period *arg3 = 0 ;
  Integer arg4 ;
  Calendar *arg5 = 0 ;
  Frequency arg6 ;
  BusinessDayConvention arg7 ;
  DateGeneration::Rule arg8 ;
  DayCounter *arg9 = 0 ;
  Real arg10 ;
  Handle< YieldTermStructure > *arg11 = 0 ;
  Natural arg12 ;
  bool arg13 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  unsigned int val12 ;
  int ecode12 = 0 ;
  bool val13 ;
  int ecode13 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  UpfrontCdsHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UpfrontCdsHelper",13,13,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UpfrontCdsHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_UpfrontCdsHelper" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_UpfrontCdsHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_UpfrontCdsHelper" "', argument " "4"" of type '" "Integer""'");
  } 
  arg4 = static_cast< Integer >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_UpfrontCdsHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_UpfrontCdsHelper" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_UpfrontCdsHelper" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_UpfrontCdsHelper" "', argument " "8"" of type '" "DateGeneration::Rule""'");
  } 
  arg8 = static_cast< DateGeneration::Rule >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_UpfrontCdsHelper" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_UpfrontCdsHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_UpfrontCdsHelper" "', argument " "11"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "11"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg11 = reinterpret_cast< Handle< YieldTermStructure > * >(argp11);
  ecode12 = SWIG_AsVal_unsigned_SS_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_UpfrontCdsHelper" "', argument " "12"" of type '" "Natural""'");
  } 
  arg12 = static_cast< Natural >(val12);
  ecode13 = SWIG_AsVal_bool(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_UpfrontCdsHelper" "', argument " "13"" of type '" "bool""'");
  } 
  arg13 = static_cast< bool >(val13);
  {
    try {
      result = (UpfrontCdsHelperPtr *)new_UpfrontCdsHelperPtr__SWIG_4(arg1,arg2,(Period const &)*arg3,arg4,(Calendar const &)*arg5,arg6,arg7,arg8,(DayCounter const &)*arg9,arg10,(Handle< YieldTermStructure > const &)*arg11,arg12,arg13);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UpfrontCdsHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UpfrontCdsHelper__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Rate arg2 ;
  Period *arg3 = 0 ;
  Integer arg4 ;
  Calendar *arg5 = 0 ;
  Frequency arg6 ;
  BusinessDayConvention arg7 ;
  DateGeneration::Rule arg8 ;
  DayCounter *arg9 = 0 ;
  Real arg10 ;
  Handle< YieldTermStructure > *arg11 = 0 ;
  Natural arg12 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  unsigned int val12 ;
  int ecode12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  UpfrontCdsHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UpfrontCdsHelper",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UpfrontCdsHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_UpfrontCdsHelper" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_UpfrontCdsHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_UpfrontCdsHelper" "', argument " "4"" of type '" "Integer""'");
  } 
  arg4 = static_cast< Integer >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_UpfrontCdsHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_UpfrontCdsHelper" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_UpfrontCdsHelper" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_UpfrontCdsHelper" "', argument " "8"" of type '" "DateGeneration::Rule""'");
  } 
  arg8 = static_cast< DateGeneration::Rule >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_UpfrontCdsHelper" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_UpfrontCdsHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_UpfrontCdsHelper" "', argument " "11"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "11"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg11 = reinterpret_cast< Handle< YieldTermStructure > * >(argp11);
  ecode12 = SWIG_AsVal_unsigned_SS_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_UpfrontCdsHelper" "', argument " "12"" of type '" "Natural""'");
  } 
  arg12 = static_cast< Natural >(val12);
  {
    try {
      result = (UpfrontCdsHelperPtr *)new_UpfrontCdsHelperPtr__SWIG_4(arg1,arg2,(Period const &)*arg3,arg4,(Calendar const &)*arg5,arg6,arg7,arg8,(DayCounter const &)*arg9,arg10,(Handle< YieldTermStructure > const &)*arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UpfrontCdsHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UpfrontCdsHelper__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Rate arg2 ;
  Period *arg3 = 0 ;
  Integer arg4 ;
  Calendar *arg5 = 0 ;
  Frequency arg6 ;
  BusinessDayConvention arg7 ;
  DateGeneration::Rule arg8 ;
  DayCounter *arg9 = 0 ;
  Real arg10 ;
  Handle< YieldTermStructure > *arg11 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  UpfrontCdsHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UpfrontCdsHelper",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UpfrontCdsHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_UpfrontCdsHelper" "', argument " "2"" of type '" "Rate""'");
  } 
  arg2 = static_cast< Rate >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_UpfrontCdsHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_UpfrontCdsHelper" "', argument " "4"" of type '" "Integer""'");
  } 
  arg4 = static_cast< Integer >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_UpfrontCdsHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_UpfrontCdsHelper" "', argument " "6"" of type '" "Frequency""'");
  } 
  arg6 = static_cast< Frequency >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_UpfrontCdsHelper" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_UpfrontCdsHelper" "', argument " "8"" of type '" "DateGeneration::Rule""'");
  } 
  arg8 = static_cast< DateGeneration::Rule >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_UpfrontCdsHelper" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_UpfrontCdsHelper" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_UpfrontCdsHelper" "', argument " "11"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UpfrontCdsHelper" "', argument " "11"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg11 = reinterpret_cast< Handle< YieldTermStructure > * >(argp11);
  {
    try {
      result = (UpfrontCdsHelperPtr *)new_UpfrontCdsHelperPtr__SWIG_4(arg1,arg2,(Period const &)*arg3,arg4,(Calendar const &)*arg5,arg6,arg7,arg8,(DayCounter const &)*arg9,arg10,(Handle< YieldTermStructure > const &)*arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UpfrontCdsHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UpfrontCdsHelper(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[15] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 14) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 11) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          return _wrap_new_UpfrontCdsHelper__SWIG_3(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          return _wrap_new_UpfrontCdsHelper__SWIG_7(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          {
                            int res = SWIG_AsVal_unsigned_SS_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            return _wrap_new_UpfrontCdsHelper__SWIG_2(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          {
                            int res = SWIG_AsVal_unsigned_SS_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            return _wrap_new_UpfrontCdsHelper__SWIG_6(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 13) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          {
                            int res = SWIG_AsVal_unsigned_SS_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            {
                              int res = SWIG_AsVal_bool(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              return _wrap_new_UpfrontCdsHelper__SWIG_1(self, args);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 13) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          {
                            int res = SWIG_AsVal_unsigned_SS_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            {
                              int res = SWIG_AsVal_bool(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              return _wrap_new_UpfrontCdsHelper__SWIG_5(self, args);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 14) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          {
                            int res = SWIG_AsVal_unsigned_SS_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            {
                              int res = SWIG_AsVal_bool(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              {
                                int res = SWIG_AsVal_bool(argv[13], NULL);
                                _v = SWIG_CheckState(res);
                              }
                              if (_v) {
                                return _wrap_new_UpfrontCdsHelper__SWIG_0(self, args);
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 14) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          {
                            int res = SWIG_AsVal_unsigned_SS_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            {
                              int res = SWIG_AsVal_bool(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              {
                                int res = SWIG_AsVal_bool(argv[13], NULL);
                                _v = SWIG_CheckState(res);
                              }
                              if (_v) {
                                return _wrap_new_UpfrontCdsHelper__SWIG_4(self, args);
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_UpfrontCdsHelper'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    UpfrontCdsHelperPtr::UpfrontCdsHelperPtr(Handle< Quote > const &,Rate,Period const &,Integer,Calendar const &,Frequency,BusinessDayConvention,DateGeneration::Rule,DayCounter const &,Real,Handle< YieldTermStructure > const &,Natural,bool,bool)\n"
    "    UpfrontCdsHelperPtr::UpfrontCdsHelperPtr(Handle< Quote > const &,Rate,Period const &,Integer,Calendar const &,Frequency,BusinessDayConvention,DateGeneration::Rule,DayCounter const &,Real,Handle< YieldTermStructure > const &,Natural,bool)\n"
    "    UpfrontCdsHelperPtr::UpfrontCdsHelperPtr(Handle< Quote > const &,Rate,Period const &,Integer,Calendar const &,Frequency,BusinessDayConvention,DateGeneration::Rule,DayCounter const &,Real,Handle< YieldTermStructure > const &,Natural)\n"
    "    UpfrontCdsHelperPtr::UpfrontCdsHelperPtr(Handle< Quote > const &,Rate,Period const &,Integer,Calendar const &,Frequency,BusinessDayConvention,DateGeneration::Rule,DayCounter const &,Real,Handle< YieldTermStructure > const &)\n"
    "    UpfrontCdsHelperPtr::UpfrontCdsHelperPtr(Rate,Rate,Period const &,Integer,Calendar const &,Frequency,BusinessDayConvention,DateGeneration::Rule,DayCounter const &,Real,Handle< YieldTermStructure > const &,Natural,bool,bool)\n"
    "    UpfrontCdsHelperPtr::UpfrontCdsHelperPtr(Rate,Rate,Period const &,Integer,Calendar const &,Frequency,BusinessDayConvention,DateGeneration::Rule,DayCounter const &,Real,Handle< YieldTermStructure > const &,Natural,bool)\n"
    "    UpfrontCdsHelperPtr::UpfrontCdsHelperPtr(Rate,Rate,Period const &,Integer,Calendar const &,Frequency,BusinessDayConvention,DateGeneration::Rule,DayCounter const &,Real,Handle< YieldTermStructure > const &,Natural)\n"
    "    UpfrontCdsHelperPtr::UpfrontCdsHelperPtr(Rate,Rate,Period const &,Integer,Calendar const &,Frequency,BusinessDayConvention,DateGeneration::Rule,DayCounter const &,Real,Handle< YieldTermStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_UpfrontCdsHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  UpfrontCdsHelperPtr *arg1 = (UpfrontCdsHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_UpfrontCdsHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UpfrontCdsHelperPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_UpfrontCdsHelper" "', argument " "1"" of type '" "UpfrontCdsHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< UpfrontCdsHelperPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *UpfrontCdsHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_UpfrontCdsHelperPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_HazardRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HazardRate *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HazardRate",0,0)) SWIG_fail;
  {
    try {
      result = (HazardRate *)new HazardRate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HazardRate, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_HazardRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HazardRate *arg1 = (HazardRate *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_HazardRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HazardRate, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HazardRate" "', argument " "1"" of type '" "HazardRate *""'"); 
  }
  arg1 = reinterpret_cast< HazardRate * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *HazardRate_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HazardRate, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DefaultDensity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DefaultDensity *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DefaultDensity",0,0)) SWIG_fail;
  {
    try {
      result = (DefaultDensity *)new DefaultDensity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DefaultDensity, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DefaultDensity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DefaultDensity *arg1 = (DefaultDensity *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DefaultDensity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DefaultDensity, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DefaultDensity" "', argument " "1"" of type '" "DefaultDensity *""'"); 
  }
  arg1 = reinterpret_cast< DefaultDensity * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DefaultDensity_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DefaultDensity, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PiecewiseFlatHazardRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Real arg4 ;
  BackwardFlat *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PiecewiseFlatHazardRatePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseFlatHazardRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *ptr = (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_BackwardFlat,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "5"" of type '" "BackwardFlat const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "5"" of type '" "BackwardFlat const &""'"); 
  }
  arg5 = reinterpret_cast< BackwardFlat * >(argp5);
  {
    try {
      result = (PiecewiseFlatHazardRatePtr *)new_PiecewiseFlatHazardRatePtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &)*arg2,(DayCounter const &)*arg3,arg4,(BackwardFlat const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseFlatHazardRatePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseFlatHazardRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PiecewiseFlatHazardRatePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseFlatHazardRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *ptr = (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (PiecewiseFlatHazardRatePtr *)new_PiecewiseFlatHazardRatePtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &)*arg2,(DayCounter const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseFlatHazardRatePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseFlatHazardRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PiecewiseFlatHazardRatePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseFlatHazardRate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *ptr = (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (PiecewiseFlatHazardRatePtr *)new_PiecewiseFlatHazardRatePtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseFlatHazardRatePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseFlatHazardRate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Real arg5 ;
  BackwardFlat *arg6 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PiecewiseFlatHazardRatePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseFlatHazardRate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *ptr = (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_BackwardFlat,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "6"" of type '" "BackwardFlat const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "6"" of type '" "BackwardFlat const &""'"); 
  }
  arg6 = reinterpret_cast< BackwardFlat * >(argp6);
  {
    try {
      result = (PiecewiseFlatHazardRatePtr *)new_PiecewiseFlatHazardRatePtr__SWIG_3(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &)*arg3,(DayCounter const &)*arg4,arg5,(BackwardFlat const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseFlatHazardRatePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseFlatHazardRate__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Real arg5 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PiecewiseFlatHazardRatePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseFlatHazardRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *ptr = (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (PiecewiseFlatHazardRatePtr *)new_PiecewiseFlatHazardRatePtr__SWIG_3(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &)*arg3,(DayCounter const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseFlatHazardRatePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseFlatHazardRate__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PiecewiseFlatHazardRatePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseFlatHazardRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *ptr = (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseFlatHazardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatHazardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    try {
      result = (PiecewiseFlatHazardRatePtr *)new_PiecewiseFlatHazardRatePtr__SWIG_3(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &)*arg3,(DayCounter const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseFlatHazardRatePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseFlatHazardRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_PiecewiseFlatHazardRate__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_PiecewiseFlatHazardRate__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_PiecewiseFlatHazardRate__SWIG_5(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_BackwardFlat, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_PiecewiseFlatHazardRate__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_PiecewiseFlatHazardRate__SWIG_4(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_BackwardFlat, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_PiecewiseFlatHazardRate__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_PiecewiseFlatHazardRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    PiecewiseFlatHazardRatePtr::PiecewiseFlatHazardRatePtr(Date const &,std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &,DayCounter const &,Real,BackwardFlat const &)\n"
    "    PiecewiseFlatHazardRatePtr::PiecewiseFlatHazardRatePtr(Date const &,std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &,DayCounter const &,Real)\n"
    "    PiecewiseFlatHazardRatePtr::PiecewiseFlatHazardRatePtr(Date const &,std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &,DayCounter const &)\n"
    "    PiecewiseFlatHazardRatePtr::PiecewiseFlatHazardRatePtr(Integer,Calendar const &,std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &,DayCounter const &,Real,BackwardFlat const &)\n"
    "    PiecewiseFlatHazardRatePtr::PiecewiseFlatHazardRatePtr(Integer,Calendar const &,std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &,DayCounter const &,Real)\n"
    "    PiecewiseFlatHazardRatePtr::PiecewiseFlatHazardRatePtr(Integer,Calendar const &,std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_PiecewiseFlatHazardRate_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseFlatHazardRatePtr *arg1 = (PiecewiseFlatHazardRatePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseFlatHazardRate_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseFlatHazardRatePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseFlatHazardRate_dates" "', argument " "1"" of type '" "PiecewiseFlatHazardRatePtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseFlatHazardRatePtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &PiecewiseFlatHazardRatePtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseFlatHazardRate_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseFlatHazardRatePtr *arg1 = (PiecewiseFlatHazardRatePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseFlatHazardRate_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseFlatHazardRatePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseFlatHazardRate_times" "', argument " "1"" of type '" "PiecewiseFlatHazardRatePtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseFlatHazardRatePtr * >(argp1);
  {
    try {
      result = (std::vector< Time,std::allocator< Time > > *) &PiecewiseFlatHazardRatePtr_times(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseFlatHazardRate_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseFlatHazardRatePtr *arg1 = (PiecewiseFlatHazardRatePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseFlatHazardRate_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseFlatHazardRatePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseFlatHazardRate_nodes" "', argument " "1"" of type '" "PiecewiseFlatHazardRatePtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseFlatHazardRatePtr * >(argp1);
  {
    try {
      result = PiecewiseFlatHazardRatePtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PiecewiseFlatHazardRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseFlatHazardRatePtr *arg1 = (PiecewiseFlatHazardRatePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PiecewiseFlatHazardRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseFlatHazardRatePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PiecewiseFlatHazardRate" "', argument " "1"" of type '" "PiecewiseFlatHazardRatePtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseFlatHazardRatePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PiecewiseFlatHazardRate_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_PiecewiseFlatHazardRatePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Protection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Protection *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Protection",0,0)) SWIG_fail;
  {
    try {
      result = (Protection *)new Protection();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Protection, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Protection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Protection *arg1 = (Protection *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Protection",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Protection, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Protection" "', argument " "1"" of type '" "Protection *""'"); 
  }
  arg1 = reinterpret_cast< Protection * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Protection_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Protection, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CreditDefaultSwap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Protection::Side arg1 ;
  Real arg2 ;
  Rate arg3 ;
  Schedule *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  bool arg7 ;
  bool arg8 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  bool val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  CreditDefaultSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CreditDefaultSwap",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CreditDefaultSwap" "', argument " "1"" of type '" "Protection::Side""'");
  } 
  arg1 = static_cast< Protection::Side >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CreditDefaultSwap" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CreditDefaultSwap" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CreditDefaultSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CreditDefaultSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_CreditDefaultSwap" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CreditDefaultSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CreditDefaultSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_CreditDefaultSwap" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_CreditDefaultSwap" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  {
    try {
      result = (CreditDefaultSwapPtr *)new_CreditDefaultSwapPtr__SWIG_0(arg1,arg2,arg3,(Schedule const &)*arg4,arg5,(DayCounter const &)*arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CreditDefaultSwapPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CreditDefaultSwap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Protection::Side arg1 ;
  Real arg2 ;
  Rate arg3 ;
  Schedule *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  bool arg7 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  CreditDefaultSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CreditDefaultSwap",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CreditDefaultSwap" "', argument " "1"" of type '" "Protection::Side""'");
  } 
  arg1 = static_cast< Protection::Side >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CreditDefaultSwap" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CreditDefaultSwap" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CreditDefaultSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CreditDefaultSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_CreditDefaultSwap" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CreditDefaultSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CreditDefaultSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_CreditDefaultSwap" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  {
    try {
      result = (CreditDefaultSwapPtr *)new_CreditDefaultSwapPtr__SWIG_0(arg1,arg2,arg3,(Schedule const &)*arg4,arg5,(DayCounter const &)*arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CreditDefaultSwapPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CreditDefaultSwap__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Protection::Side arg1 ;
  Real arg2 ;
  Rate arg3 ;
  Schedule *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  CreditDefaultSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CreditDefaultSwap",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CreditDefaultSwap" "', argument " "1"" of type '" "Protection::Side""'");
  } 
  arg1 = static_cast< Protection::Side >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CreditDefaultSwap" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CreditDefaultSwap" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CreditDefaultSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CreditDefaultSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_CreditDefaultSwap" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CreditDefaultSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CreditDefaultSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  {
    try {
      result = (CreditDefaultSwapPtr *)new_CreditDefaultSwapPtr__SWIG_0(arg1,arg2,arg3,(Schedule const &)*arg4,arg5,(DayCounter const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CreditDefaultSwapPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CreditDefaultSwap__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Protection::Side arg1 ;
  Real arg2 ;
  Rate arg3 ;
  Rate arg4 ;
  Schedule *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  DayCounter *arg7 = 0 ;
  bool arg8 ;
  bool arg9 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  bool val8 ;
  int ecode8 = 0 ;
  bool val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  CreditDefaultSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CreditDefaultSwap",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CreditDefaultSwap" "', argument " "1"" of type '" "Protection::Side""'");
  } 
  arg1 = static_cast< Protection::Side >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CreditDefaultSwap" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CreditDefaultSwap" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_CreditDefaultSwap" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CreditDefaultSwap" "', argument " "5"" of type '" "Schedule const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CreditDefaultSwap" "', argument " "5"" of type '" "Schedule const &""'"); 
  }
  arg5 = reinterpret_cast< Schedule * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CreditDefaultSwap" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CreditDefaultSwap" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CreditDefaultSwap" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_CreditDefaultSwap" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  ecode9 = SWIG_AsVal_bool(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_CreditDefaultSwap" "', argument " "9"" of type '" "bool""'");
  } 
  arg9 = static_cast< bool >(val9);
  {
    try {
      result = (CreditDefaultSwapPtr *)new_CreditDefaultSwapPtr__SWIG_3(arg1,arg2,arg3,arg4,(Schedule const &)*arg5,arg6,(DayCounter const &)*arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CreditDefaultSwapPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CreditDefaultSwap__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Protection::Side arg1 ;
  Real arg2 ;
  Rate arg3 ;
  Rate arg4 ;
  Schedule *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  DayCounter *arg7 = 0 ;
  bool arg8 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  bool val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  CreditDefaultSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CreditDefaultSwap",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CreditDefaultSwap" "', argument " "1"" of type '" "Protection::Side""'");
  } 
  arg1 = static_cast< Protection::Side >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CreditDefaultSwap" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CreditDefaultSwap" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_CreditDefaultSwap" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CreditDefaultSwap" "', argument " "5"" of type '" "Schedule const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CreditDefaultSwap" "', argument " "5"" of type '" "Schedule const &""'"); 
  }
  arg5 = reinterpret_cast< Schedule * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CreditDefaultSwap" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CreditDefaultSwap" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CreditDefaultSwap" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_CreditDefaultSwap" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  {
    try {
      result = (CreditDefaultSwapPtr *)new_CreditDefaultSwapPtr__SWIG_3(arg1,arg2,arg3,arg4,(Schedule const &)*arg5,arg6,(DayCounter const &)*arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CreditDefaultSwapPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CreditDefaultSwap__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Protection::Side arg1 ;
  Real arg2 ;
  Rate arg3 ;
  Rate arg4 ;
  Schedule *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  DayCounter *arg7 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  CreditDefaultSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CreditDefaultSwap",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CreditDefaultSwap" "', argument " "1"" of type '" "Protection::Side""'");
  } 
  arg1 = static_cast< Protection::Side >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CreditDefaultSwap" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CreditDefaultSwap" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_CreditDefaultSwap" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CreditDefaultSwap" "', argument " "5"" of type '" "Schedule const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CreditDefaultSwap" "', argument " "5"" of type '" "Schedule const &""'"); 
  }
  arg5 = reinterpret_cast< Schedule * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CreditDefaultSwap" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CreditDefaultSwap" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CreditDefaultSwap" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  {
    try {
      result = (CreditDefaultSwapPtr *)new_CreditDefaultSwapPtr__SWIG_3(arg1,arg2,arg3,arg4,(Schedule const &)*arg5,arg6,(DayCounter const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CreditDefaultSwapPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CreditDefaultSwap(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_CreditDefaultSwap__SWIG_2(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_CreditDefaultSwap__SWIG_1(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Schedule, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_CreditDefaultSwap__SWIG_5(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_CreditDefaultSwap__SWIG_0(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Schedule, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_CreditDefaultSwap__SWIG_4(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Schedule, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_bool(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_new_CreditDefaultSwap__SWIG_3(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CreditDefaultSwap'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CreditDefaultSwapPtr::CreditDefaultSwapPtr(Protection::Side,Real,Rate,Schedule const &,BusinessDayConvention,DayCounter const &,bool,bool)\n"
    "    CreditDefaultSwapPtr::CreditDefaultSwapPtr(Protection::Side,Real,Rate,Schedule const &,BusinessDayConvention,DayCounter const &,bool)\n"
    "    CreditDefaultSwapPtr::CreditDefaultSwapPtr(Protection::Side,Real,Rate,Schedule const &,BusinessDayConvention,DayCounter const &)\n"
    "    CreditDefaultSwapPtr::CreditDefaultSwapPtr(Protection::Side,Real,Rate,Rate,Schedule const &,BusinessDayConvention,DayCounter const &,bool,bool)\n"
    "    CreditDefaultSwapPtr::CreditDefaultSwapPtr(Protection::Side,Real,Rate,Rate,Schedule const &,BusinessDayConvention,DayCounter const &,bool)\n"
    "    CreditDefaultSwapPtr::CreditDefaultSwapPtr(Protection::Side,Real,Rate,Rate,Schedule const &,BusinessDayConvention,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CreditDefaultSwap_side(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CreditDefaultSwapPtr *arg1 = (CreditDefaultSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Protection::Side result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CreditDefaultSwap_side",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CreditDefaultSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreditDefaultSwap_side" "', argument " "1"" of type '" "CreditDefaultSwapPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CreditDefaultSwapPtr * >(argp1);
  {
    try {
      result = (Protection::Side)CreditDefaultSwapPtr_side((CreditDefaultSwapPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CreditDefaultSwap_notional(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CreditDefaultSwapPtr *arg1 = (CreditDefaultSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CreditDefaultSwap_notional",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CreditDefaultSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreditDefaultSwap_notional" "', argument " "1"" of type '" "CreditDefaultSwapPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CreditDefaultSwapPtr * >(argp1);
  {
    try {
      result = (Real)CreditDefaultSwapPtr_notional((CreditDefaultSwapPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CreditDefaultSwap_runningSpread(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CreditDefaultSwapPtr *arg1 = (CreditDefaultSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CreditDefaultSwap_runningSpread",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CreditDefaultSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreditDefaultSwap_runningSpread" "', argument " "1"" of type '" "CreditDefaultSwapPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CreditDefaultSwapPtr * >(argp1);
  {
    try {
      result = (Rate)CreditDefaultSwapPtr_runningSpread((CreditDefaultSwapPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CreditDefaultSwap_upfront(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CreditDefaultSwapPtr *arg1 = (CreditDefaultSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  doubleOrNull result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CreditDefaultSwap_upfront",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CreditDefaultSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreditDefaultSwap_upfront" "', argument " "1"" of type '" "CreditDefaultSwapPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CreditDefaultSwapPtr * >(argp1);
  {
    try {
      result = CreditDefaultSwapPtr_upfront((CreditDefaultSwapPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  {
    if (result == Null<double>()) {
      Py_INCREF(Py_None);
      resultobj = Py_None;
    } else {
      resultobj = PyFloat_FromDouble(result);
    }
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CreditDefaultSwap_settlesAccrual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CreditDefaultSwapPtr *arg1 = (CreditDefaultSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CreditDefaultSwap_settlesAccrual",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CreditDefaultSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreditDefaultSwap_settlesAccrual" "', argument " "1"" of type '" "CreditDefaultSwapPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CreditDefaultSwapPtr * >(argp1);
  {
    try {
      result = (bool)CreditDefaultSwapPtr_settlesAccrual((CreditDefaultSwapPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CreditDefaultSwap_paysAtDefaultTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CreditDefaultSwapPtr *arg1 = (CreditDefaultSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CreditDefaultSwap_paysAtDefaultTime",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CreditDefaultSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreditDefaultSwap_paysAtDefaultTime" "', argument " "1"" of type '" "CreditDefaultSwapPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CreditDefaultSwapPtr * >(argp1);
  {
    try {
      result = (bool)CreditDefaultSwapPtr_paysAtDefaultTime((CreditDefaultSwapPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CreditDefaultSwap_fairSpread(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CreditDefaultSwapPtr *arg1 = (CreditDefaultSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CreditDefaultSwap_fairSpread",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CreditDefaultSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreditDefaultSwap_fairSpread" "', argument " "1"" of type '" "CreditDefaultSwapPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CreditDefaultSwapPtr * >(argp1);
  {
    try {
      result = (Rate)CreditDefaultSwapPtr_fairSpread((CreditDefaultSwapPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CreditDefaultSwap_fairUpfront(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CreditDefaultSwapPtr *arg1 = (CreditDefaultSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CreditDefaultSwap_fairUpfront",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CreditDefaultSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreditDefaultSwap_fairUpfront" "', argument " "1"" of type '" "CreditDefaultSwapPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CreditDefaultSwapPtr * >(argp1);
  {
    try {
      result = (Rate)CreditDefaultSwapPtr_fairUpfront((CreditDefaultSwapPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CreditDefaultSwap_couponLegBPS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CreditDefaultSwapPtr *arg1 = (CreditDefaultSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CreditDefaultSwap_couponLegBPS",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CreditDefaultSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreditDefaultSwap_couponLegBPS" "', argument " "1"" of type '" "CreditDefaultSwapPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CreditDefaultSwapPtr * >(argp1);
  {
    try {
      result = (Real)CreditDefaultSwapPtr_couponLegBPS((CreditDefaultSwapPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CreditDefaultSwap_couponLegNPV(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CreditDefaultSwapPtr *arg1 = (CreditDefaultSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CreditDefaultSwap_couponLegNPV",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CreditDefaultSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreditDefaultSwap_couponLegNPV" "', argument " "1"" of type '" "CreditDefaultSwapPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CreditDefaultSwapPtr * >(argp1);
  {
    try {
      result = (Real)CreditDefaultSwapPtr_couponLegNPV((CreditDefaultSwapPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CreditDefaultSwap_defaultLegNPV(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CreditDefaultSwapPtr *arg1 = (CreditDefaultSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CreditDefaultSwap_defaultLegNPV",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CreditDefaultSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreditDefaultSwap_defaultLegNPV" "', argument " "1"" of type '" "CreditDefaultSwapPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CreditDefaultSwapPtr * >(argp1);
  {
    try {
      result = (Real)CreditDefaultSwapPtr_defaultLegNPV((CreditDefaultSwapPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CreditDefaultSwap_upfrontBPS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CreditDefaultSwapPtr *arg1 = (CreditDefaultSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CreditDefaultSwap_upfrontBPS",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CreditDefaultSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreditDefaultSwap_upfrontBPS" "', argument " "1"" of type '" "CreditDefaultSwapPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CreditDefaultSwapPtr * >(argp1);
  {
    try {
      result = (Real)CreditDefaultSwapPtr_upfrontBPS((CreditDefaultSwapPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CreditDefaultSwap_upfrontNPV(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CreditDefaultSwapPtr *arg1 = (CreditDefaultSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CreditDefaultSwap_upfrontNPV",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CreditDefaultSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreditDefaultSwap_upfrontNPV" "', argument " "1"" of type '" "CreditDefaultSwapPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CreditDefaultSwapPtr * >(argp1);
  {
    try {
      result = (Real)CreditDefaultSwapPtr_upfrontNPV((CreditDefaultSwapPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CreditDefaultSwap_impliedHazardRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CreditDefaultSwapPtr *arg1 = (CreditDefaultSwapPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Real arg5 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CreditDefaultSwap_impliedHazardRate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CreditDefaultSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "1"" of type '" "CreditDefaultSwapPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CreditDefaultSwapPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (Rate)CreditDefaultSwapPtr_impliedHazardRate__SWIG_0((CreditDefaultSwapPtr const *)arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CreditDefaultSwap_impliedHazardRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CreditDefaultSwapPtr *arg1 = (CreditDefaultSwapPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CreditDefaultSwap_impliedHazardRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CreditDefaultSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "1"" of type '" "CreditDefaultSwapPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CreditDefaultSwapPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Rate)CreditDefaultSwapPtr_impliedHazardRate__SWIG_0((CreditDefaultSwapPtr const *)arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CreditDefaultSwap_impliedHazardRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CreditDefaultSwapPtr *arg1 = (CreditDefaultSwapPtr *) 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CreditDefaultSwap_impliedHazardRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CreditDefaultSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "1"" of type '" "CreditDefaultSwapPtr const *""'"); 
  }
  arg1 = reinterpret_cast< CreditDefaultSwapPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CreditDefaultSwap_impliedHazardRate" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    try {
      result = (Rate)CreditDefaultSwapPtr_impliedHazardRate__SWIG_0((CreditDefaultSwapPtr const *)arg1,arg2,(Handle< YieldTermStructure > const &)*arg3,(DayCounter const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CreditDefaultSwap_impliedHazardRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CreditDefaultSwapPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_CreditDefaultSwap_impliedHazardRate__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CreditDefaultSwapPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_CreditDefaultSwap_impliedHazardRate__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CreditDefaultSwapPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_CreditDefaultSwap_impliedHazardRate__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CreditDefaultSwap_impliedHazardRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CreditDefaultSwapPtr::impliedHazardRate(Real,Handle< YieldTermStructure > const &,DayCounter const &,Real,Real) const\n"
    "    CreditDefaultSwapPtr::impliedHazardRate(Real,Handle< YieldTermStructure > const &,DayCounter const &,Real) const\n"
    "    CreditDefaultSwapPtr::impliedHazardRate(Real,Handle< YieldTermStructure > const &,DayCounter const &) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CreditDefaultSwap_coupons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CreditDefaultSwapPtr *arg1 = (CreditDefaultSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CreditDefaultSwap_coupons",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CreditDefaultSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreditDefaultSwap_coupons" "', argument " "1"" of type '" "CreditDefaultSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< CreditDefaultSwapPtr * >(argp1);
  {
    try {
      result = CreditDefaultSwapPtr_coupons(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CreditDefaultSwap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CreditDefaultSwapPtr *arg1 = (CreditDefaultSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CreditDefaultSwap",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CreditDefaultSwapPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CreditDefaultSwap" "', argument " "1"" of type '" "CreditDefaultSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< CreditDefaultSwapPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CreditDefaultSwap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CreditDefaultSwapPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MidPointCdsEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< DefaultProbabilityTermStructure > *arg1 = 0 ;
  Real arg2 ;
  Handle< YieldTermStructure > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  MidPointCdsEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MidPointCdsEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MidPointCdsEngine" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MidPointCdsEngine" "', argument " "1"" of type '" "Handle< DefaultProbabilityTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MidPointCdsEngine" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MidPointCdsEngine" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MidPointCdsEngine" "', argument " "3"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< YieldTermStructure > * >(argp3);
  {
    try {
      result = (MidPointCdsEnginePtr *)new_MidPointCdsEnginePtr((Handle< DefaultProbabilityTermStructure > const &)*arg1,arg2,(Handle< YieldTermStructure > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MidPointCdsEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MidPointCdsEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MidPointCdsEnginePtr *arg1 = (MidPointCdsEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MidPointCdsEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MidPointCdsEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MidPointCdsEngine" "', argument " "1"" of type '" "MidPointCdsEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< MidPointCdsEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MidPointCdsEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MidPointCdsEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_IntegralCdsEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< DefaultProbabilityTermStructure > *arg2 = 0 ;
  Real arg3 ;
  Handle< YieldTermStructure > *arg4 = 0 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  IntegralCdsEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IntegralCdsEngine",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IntegralCdsEngine" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntegralCdsEngine" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_IntegralCdsEngine" "', argument " "2"" of type '" "Handle< DefaultProbabilityTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntegralCdsEngine" "', argument " "2"" of type '" "Handle< DefaultProbabilityTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_IntegralCdsEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_IntegralCdsEngine" "', argument " "4"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntegralCdsEngine" "', argument " "4"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< YieldTermStructure > * >(argp4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_IntegralCdsEngine" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (IntegralCdsEnginePtr *)new_IntegralCdsEnginePtr__SWIG_0((Period const &)*arg1,(Handle< DefaultProbabilityTermStructure > const &)*arg2,arg3,(Handle< YieldTermStructure > const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IntegralCdsEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_IntegralCdsEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Period *arg1 = 0 ;
  Handle< DefaultProbabilityTermStructure > *arg2 = 0 ;
  Real arg3 ;
  Handle< YieldTermStructure > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  IntegralCdsEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IntegralCdsEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IntegralCdsEngine" "', argument " "1"" of type '" "Period const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntegralCdsEngine" "', argument " "1"" of type '" "Period const &""'"); 
  }
  arg1 = reinterpret_cast< Period * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_IntegralCdsEngine" "', argument " "2"" of type '" "Handle< DefaultProbabilityTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntegralCdsEngine" "', argument " "2"" of type '" "Handle< DefaultProbabilityTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< DefaultProbabilityTermStructure > * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_IntegralCdsEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_IntegralCdsEngine" "', argument " "4"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntegralCdsEngine" "', argument " "4"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< YieldTermStructure > * >(argp4);
  {
    try {
      result = (IntegralCdsEnginePtr *)new_IntegralCdsEnginePtr__SWIG_0((Period const &)*arg1,(Handle< DefaultProbabilityTermStructure > const &)*arg2,arg3,(Handle< YieldTermStructure > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IntegralCdsEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_IntegralCdsEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_IntegralCdsEngine__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Period, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_DefaultProbabilityTermStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_IntegralCdsEngine__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_IntegralCdsEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    IntegralCdsEnginePtr::IntegralCdsEnginePtr(Period const &,Handle< DefaultProbabilityTermStructure > const &,Real,Handle< YieldTermStructure > const &,bool)\n"
    "    IntegralCdsEnginePtr::IntegralCdsEnginePtr(Period const &,Handle< DefaultProbabilityTermStructure > const &,Real,Handle< YieldTermStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_IntegralCdsEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IntegralCdsEnginePtr *arg1 = (IntegralCdsEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_IntegralCdsEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegralCdsEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntegralCdsEngine" "', argument " "1"" of type '" "IntegralCdsEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< IntegralCdsEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *IntegralCdsEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_IntegralCdsEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DiscountCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< DiscountFactor,std::allocator< DiscountFactor > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  LogLinear *arg5 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  DiscountCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DiscountCurve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DiscountCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DiscountCurve" "', argument " "2"" of type '" "std::vector< DiscountFactor,std::allocator< DiscountFactor > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountCurve" "', argument " "2"" of type '" "std::vector< DiscountFactor,std::allocator< DiscountFactor > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DiscountCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_DiscountCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_LogLinear,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_DiscountCurve" "', argument " "5"" of type '" "LogLinear const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountCurve" "', argument " "5"" of type '" "LogLinear const &""'"); 
  }
  arg5 = reinterpret_cast< LogLinear * >(argp5);
  {
    try {
      result = (DiscountCurvePtr *)new_DiscountCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(LogLinear const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DiscountCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DiscountCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< DiscountFactor,std::allocator< DiscountFactor > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  DiscountCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DiscountCurve",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DiscountCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DiscountCurve" "', argument " "2"" of type '" "std::vector< DiscountFactor,std::allocator< DiscountFactor > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountCurve" "', argument " "2"" of type '" "std::vector< DiscountFactor,std::allocator< DiscountFactor > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DiscountCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_DiscountCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  {
    try {
      result = (DiscountCurvePtr *)new_DiscountCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DiscountCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DiscountCurve__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< DiscountFactor,std::allocator< DiscountFactor > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  DiscountCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DiscountCurve",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DiscountCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DiscountCurve" "', argument " "2"" of type '" "std::vector< DiscountFactor,std::allocator< DiscountFactor > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountCurve" "', argument " "2"" of type '" "std::vector< DiscountFactor,std::allocator< DiscountFactor > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DiscountCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (DiscountCurvePtr *)new_DiscountCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DiscountCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DiscountCurve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_DiscountCurve__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_DiscountCurve__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_LogLinear, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_DiscountCurve__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DiscountCurve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    DiscountCurvePtr::DiscountCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< DiscountFactor,std::allocator< DiscountFactor > > const &,DayCounter const &,Calendar const &,LogLinear const &)\n"
    "    DiscountCurvePtr::DiscountCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< DiscountFactor,std::allocator< DiscountFactor > > const &,DayCounter const &,Calendar const &)\n"
    "    DiscountCurvePtr::DiscountCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< DiscountFactor,std::allocator< DiscountFactor > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DiscountCurve_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DiscountCurvePtr *arg1 = (DiscountCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DiscountCurve_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DiscountCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DiscountCurve_times" "', argument " "1"" of type '" "DiscountCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< DiscountCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Time,std::allocator< Time > > *) &DiscountCurvePtr_times(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DiscountCurve_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DiscountCurvePtr *arg1 = (DiscountCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DiscountCurve_data",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DiscountCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DiscountCurve_data" "', argument " "1"" of type '" "DiscountCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< DiscountCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Real,std::allocator< Real > > *) &DiscountCurvePtr_data(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DiscountCurve_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DiscountCurvePtr *arg1 = (DiscountCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DiscountCurve_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DiscountCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DiscountCurve_dates" "', argument " "1"" of type '" "DiscountCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< DiscountCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &DiscountCurvePtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DiscountCurve_discounts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DiscountCurvePtr *arg1 = (DiscountCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< DiscountFactor,std::allocator< DiscountFactor > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"DiscountCurve_discounts",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DiscountCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DiscountCurve_discounts" "', argument " "1"" of type '" "DiscountCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< DiscountCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< DiscountFactor,std::allocator< DiscountFactor > > *) &DiscountCurvePtr_discounts(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DiscountCurve_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DiscountCurvePtr *arg1 = (DiscountCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,DiscountFactor >,std::allocator< std::pair< Date,DiscountFactor > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"DiscountCurve_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DiscountCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DiscountCurve_nodes" "', argument " "1"" of type '" "DiscountCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< DiscountCurvePtr * >(argp1);
  {
    try {
      result = DiscountCurvePtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DiscountCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DiscountCurvePtr *arg1 = (DiscountCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DiscountCurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DiscountCurvePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DiscountCurve" "', argument " "1"" of type '" "DiscountCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< DiscountCurvePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DiscountCurve_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DiscountCurvePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_NormalDistribution__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Real arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  NormalDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NormalDistribution",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NormalDistribution" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NormalDistribution" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (NormalDistribution *)new NormalDistribution(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NormalDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NormalDistribution__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  NormalDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NormalDistribution",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NormalDistribution" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (NormalDistribution *)new NormalDistribution(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NormalDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NormalDistribution__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NormalDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NormalDistribution",0,0)) SWIG_fail;
  {
    try {
      result = (NormalDistribution *)new NormalDistribution();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NormalDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NormalDistribution(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_NormalDistribution__SWIG_2(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_NormalDistribution__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_NormalDistribution__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_NormalDistribution'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    NormalDistribution::NormalDistribution(Real,Real)\n"
    "    NormalDistribution::NormalDistribution(Real)\n"
    "    NormalDistribution::NormalDistribution()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_NormalDistribution___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NormalDistribution *arg1 = (NormalDistribution *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NormalDistribution___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NormalDistribution, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NormalDistribution___call__" "', argument " "1"" of type '" "NormalDistribution *""'"); 
  }
  arg1 = reinterpret_cast< NormalDistribution * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NormalDistribution___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NormalDistribution_derivative(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NormalDistribution *arg1 = (NormalDistribution *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NormalDistribution_derivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NormalDistribution, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NormalDistribution_derivative" "', argument " "1"" of type '" "NormalDistribution *""'"); 
  }
  arg1 = reinterpret_cast< NormalDistribution * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NormalDistribution_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->derivative(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_NormalDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NormalDistribution *arg1 = (NormalDistribution *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NormalDistribution",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NormalDistribution, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NormalDistribution" "', argument " "1"" of type '" "NormalDistribution *""'"); 
  }
  arg1 = reinterpret_cast< NormalDistribution * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NormalDistribution_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_NormalDistribution, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CumulativeNormalDistribution__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Real arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  CumulativeNormalDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CumulativeNormalDistribution",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CumulativeNormalDistribution" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CumulativeNormalDistribution" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (CumulativeNormalDistribution *)new CumulativeNormalDistribution(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CumulativeNormalDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CumulativeNormalDistribution__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  CumulativeNormalDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CumulativeNormalDistribution",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CumulativeNormalDistribution" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (CumulativeNormalDistribution *)new CumulativeNormalDistribution(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CumulativeNormalDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CumulativeNormalDistribution__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CumulativeNormalDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CumulativeNormalDistribution",0,0)) SWIG_fail;
  {
    try {
      result = (CumulativeNormalDistribution *)new CumulativeNormalDistribution();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CumulativeNormalDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CumulativeNormalDistribution(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_CumulativeNormalDistribution__SWIG_2(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_CumulativeNormalDistribution__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_CumulativeNormalDistribution__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CumulativeNormalDistribution'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CumulativeNormalDistribution::CumulativeNormalDistribution(Real,Real)\n"
    "    CumulativeNormalDistribution::CumulativeNormalDistribution(Real)\n"
    "    CumulativeNormalDistribution::CumulativeNormalDistribution()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CumulativeNormalDistribution___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CumulativeNormalDistribution *arg1 = (CumulativeNormalDistribution *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CumulativeNormalDistribution___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CumulativeNormalDistribution, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CumulativeNormalDistribution___call__" "', argument " "1"" of type '" "CumulativeNormalDistribution *""'"); 
  }
  arg1 = reinterpret_cast< CumulativeNormalDistribution * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CumulativeNormalDistribution___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CumulativeNormalDistribution_derivative(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CumulativeNormalDistribution *arg1 = (CumulativeNormalDistribution *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CumulativeNormalDistribution_derivative",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CumulativeNormalDistribution, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CumulativeNormalDistribution_derivative" "', argument " "1"" of type '" "CumulativeNormalDistribution *""'"); 
  }
  arg1 = reinterpret_cast< CumulativeNormalDistribution * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CumulativeNormalDistribution_derivative" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->derivative(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CumulativeNormalDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CumulativeNormalDistribution *arg1 = (CumulativeNormalDistribution *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CumulativeNormalDistribution",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CumulativeNormalDistribution, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CumulativeNormalDistribution" "', argument " "1"" of type '" "CumulativeNormalDistribution *""'"); 
  }
  arg1 = reinterpret_cast< CumulativeNormalDistribution * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CumulativeNormalDistribution_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CumulativeNormalDistribution, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_InverseCumulativeNormal__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Real arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  InverseCumulativeNormal *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InverseCumulativeNormal",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InverseCumulativeNormal" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_InverseCumulativeNormal" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (InverseCumulativeNormal *)new InverseCumulativeNormal(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeNormal, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InverseCumulativeNormal__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativeNormal *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InverseCumulativeNormal",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InverseCumulativeNormal" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (InverseCumulativeNormal *)new InverseCumulativeNormal(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeNormal, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InverseCumulativeNormal__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeNormal *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InverseCumulativeNormal",0,0)) SWIG_fail;
  {
    try {
      result = (InverseCumulativeNormal *)new InverseCumulativeNormal();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeNormal, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InverseCumulativeNormal(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_InverseCumulativeNormal__SWIG_2(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_InverseCumulativeNormal__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_InverseCumulativeNormal__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_InverseCumulativeNormal'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    InverseCumulativeNormal::InverseCumulativeNormal(Real,Real)\n"
    "    InverseCumulativeNormal::InverseCumulativeNormal(Real)\n"
    "    InverseCumulativeNormal::InverseCumulativeNormal()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InverseCumulativeNormal___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeNormal *arg1 = (InverseCumulativeNormal *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InverseCumulativeNormal___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeNormal, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InverseCumulativeNormal___call__" "', argument " "1"" of type '" "InverseCumulativeNormal *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeNormal * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InverseCumulativeNormal___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InverseCumulativeNormal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeNormal *arg1 = (InverseCumulativeNormal *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_InverseCumulativeNormal",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeNormal, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InverseCumulativeNormal" "', argument " "1"" of type '" "InverseCumulativeNormal *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeNormal * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InverseCumulativeNormal_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativeNormal, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MoroInverseCumulativeNormal__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Real arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  MoroInverseCumulativeNormal *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MoroInverseCumulativeNormal",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MoroInverseCumulativeNormal" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MoroInverseCumulativeNormal" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (MoroInverseCumulativeNormal *)new MoroInverseCumulativeNormal(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MoroInverseCumulativeNormal, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MoroInverseCumulativeNormal__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  MoroInverseCumulativeNormal *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MoroInverseCumulativeNormal",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MoroInverseCumulativeNormal" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (MoroInverseCumulativeNormal *)new MoroInverseCumulativeNormal(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MoroInverseCumulativeNormal, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MoroInverseCumulativeNormal__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MoroInverseCumulativeNormal *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MoroInverseCumulativeNormal",0,0)) SWIG_fail;
  {
    try {
      result = (MoroInverseCumulativeNormal *)new MoroInverseCumulativeNormal();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MoroInverseCumulativeNormal, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MoroInverseCumulativeNormal(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_MoroInverseCumulativeNormal__SWIG_2(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_MoroInverseCumulativeNormal__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_MoroInverseCumulativeNormal__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_MoroInverseCumulativeNormal'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    MoroInverseCumulativeNormal::MoroInverseCumulativeNormal(Real,Real)\n"
    "    MoroInverseCumulativeNormal::MoroInverseCumulativeNormal(Real)\n"
    "    MoroInverseCumulativeNormal::MoroInverseCumulativeNormal()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_MoroInverseCumulativeNormal___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MoroInverseCumulativeNormal *arg1 = (MoroInverseCumulativeNormal *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MoroInverseCumulativeNormal___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MoroInverseCumulativeNormal, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoroInverseCumulativeNormal___call__" "', argument " "1"" of type '" "MoroInverseCumulativeNormal *""'"); 
  }
  arg1 = reinterpret_cast< MoroInverseCumulativeNormal * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MoroInverseCumulativeNormal___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MoroInverseCumulativeNormal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MoroInverseCumulativeNormal *arg1 = (MoroInverseCumulativeNormal *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MoroInverseCumulativeNormal",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MoroInverseCumulativeNormal, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MoroInverseCumulativeNormal" "', argument " "1"" of type '" "MoroInverseCumulativeNormal *""'"); 
  }
  arg1 = reinterpret_cast< MoroInverseCumulativeNormal * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MoroInverseCumulativeNormal_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MoroInverseCumulativeNormal, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BivariateCumulativeNormalDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  BivariateCumulativeNormalDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BivariateCumulativeNormalDistribution",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BivariateCumulativeNormalDistribution" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (BivariateCumulativeNormalDistribution *)new BivariateCumulativeNormalDistribution(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BivariateCumulativeNormalDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BivariateCumulativeNormalDistribution___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BivariateCumulativeNormalDistribution *arg1 = (BivariateCumulativeNormalDistribution *) 0 ;
  Real arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BivariateCumulativeNormalDistribution___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BivariateCumulativeNormalDistribution, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BivariateCumulativeNormalDistribution___call__" "', argument " "1"" of type '" "BivariateCumulativeNormalDistribution *""'"); 
  }
  arg1 = reinterpret_cast< BivariateCumulativeNormalDistribution * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BivariateCumulativeNormalDistribution___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BivariateCumulativeNormalDistribution___call__" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BivariateCumulativeNormalDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BivariateCumulativeNormalDistribution *arg1 = (BivariateCumulativeNormalDistribution *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BivariateCumulativeNormalDistribution",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BivariateCumulativeNormalDistribution, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BivariateCumulativeNormalDistribution" "', argument " "1"" of type '" "BivariateCumulativeNormalDistribution *""'"); 
  }
  arg1 = reinterpret_cast< BivariateCumulativeNormalDistribution * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BivariateCumulativeNormalDistribution_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BivariateCumulativeNormalDistribution, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BinomialDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  BigNatural arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BinomialDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BinomialDistribution",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BinomialDistribution" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BinomialDistribution" "', argument " "2"" of type '" "BigNatural""'");
  } 
  arg2 = static_cast< BigNatural >(val2);
  {
    try {
      result = (BinomialDistribution *)new BinomialDistribution(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BinomialDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BinomialDistribution___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BinomialDistribution *arg1 = (BinomialDistribution *) 0 ;
  BigNatural arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BinomialDistribution___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BinomialDistribution, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BinomialDistribution___call__" "', argument " "1"" of type '" "BinomialDistribution *""'"); 
  }
  arg1 = reinterpret_cast< BinomialDistribution * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BinomialDistribution___call__" "', argument " "2"" of type '" "BigNatural""'");
  } 
  arg2 = static_cast< BigNatural >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BinomialDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BinomialDistribution *arg1 = (BinomialDistribution *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BinomialDistribution",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BinomialDistribution, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BinomialDistribution" "', argument " "1"" of type '" "BinomialDistribution *""'"); 
  }
  arg1 = reinterpret_cast< BinomialDistribution * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BinomialDistribution_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BinomialDistribution, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CumulativeBinomialDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  BigNatural arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  CumulativeBinomialDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CumulativeBinomialDistribution",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CumulativeBinomialDistribution" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CumulativeBinomialDistribution" "', argument " "2"" of type '" "BigNatural""'");
  } 
  arg2 = static_cast< BigNatural >(val2);
  {
    try {
      result = (CumulativeBinomialDistribution *)new CumulativeBinomialDistribution(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CumulativeBinomialDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CumulativeBinomialDistribution___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CumulativeBinomialDistribution *arg1 = (CumulativeBinomialDistribution *) 0 ;
  BigNatural arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CumulativeBinomialDistribution___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CumulativeBinomialDistribution, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CumulativeBinomialDistribution___call__" "', argument " "1"" of type '" "CumulativeBinomialDistribution *""'"); 
  }
  arg1 = reinterpret_cast< CumulativeBinomialDistribution * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CumulativeBinomialDistribution___call__" "', argument " "2"" of type '" "BigNatural""'");
  } 
  arg2 = static_cast< BigNatural >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CumulativeBinomialDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CumulativeBinomialDistribution *arg1 = (CumulativeBinomialDistribution *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CumulativeBinomialDistribution",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CumulativeBinomialDistribution, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CumulativeBinomialDistribution" "', argument " "1"" of type '" "CumulativeBinomialDistribution *""'"); 
  }
  arg1 = reinterpret_cast< CumulativeBinomialDistribution * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CumulativeBinomialDistribution_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CumulativeBinomialDistribution, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BivariateCumulativeNormalDistributionDr78(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  BivariateCumulativeNormalDistributionDr78 *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BivariateCumulativeNormalDistributionDr78",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BivariateCumulativeNormalDistributionDr78" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (BivariateCumulativeNormalDistributionDr78 *)new BivariateCumulativeNormalDistributionDr78(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BivariateCumulativeNormalDistributionDr78, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BivariateCumulativeNormalDistributionDr78___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BivariateCumulativeNormalDistributionDr78 *arg1 = (BivariateCumulativeNormalDistributionDr78 *) 0 ;
  Real arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BivariateCumulativeNormalDistributionDr78___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BivariateCumulativeNormalDistributionDr78, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BivariateCumulativeNormalDistributionDr78___call__" "', argument " "1"" of type '" "BivariateCumulativeNormalDistributionDr78 *""'"); 
  }
  arg1 = reinterpret_cast< BivariateCumulativeNormalDistributionDr78 * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BivariateCumulativeNormalDistributionDr78___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BivariateCumulativeNormalDistributionDr78___call__" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BivariateCumulativeNormalDistributionDr78(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BivariateCumulativeNormalDistributionDr78 *arg1 = (BivariateCumulativeNormalDistributionDr78 *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BivariateCumulativeNormalDistributionDr78",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BivariateCumulativeNormalDistributionDr78, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BivariateCumulativeNormalDistributionDr78" "', argument " "1"" of type '" "BivariateCumulativeNormalDistributionDr78 *""'"); 
  }
  arg1 = reinterpret_cast< BivariateCumulativeNormalDistributionDr78 * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BivariateCumulativeNormalDistributionDr78_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BivariateCumulativeNormalDistributionDr78, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BivariateCumulativeNormalDistributionWe04DP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  BivariateCumulativeNormalDistributionWe04DP *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BivariateCumulativeNormalDistributionWe04DP",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BivariateCumulativeNormalDistributionWe04DP" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (BivariateCumulativeNormalDistributionWe04DP *)new BivariateCumulativeNormalDistributionWe04DP(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BivariateCumulativeNormalDistributionWe04DP, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BivariateCumulativeNormalDistributionWe04DP___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BivariateCumulativeNormalDistributionWe04DP *arg1 = (BivariateCumulativeNormalDistributionWe04DP *) 0 ;
  Real arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BivariateCumulativeNormalDistributionWe04DP___call__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BivariateCumulativeNormalDistributionWe04DP, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BivariateCumulativeNormalDistributionWe04DP___call__" "', argument " "1"" of type '" "BivariateCumulativeNormalDistributionWe04DP *""'"); 
  }
  arg1 = reinterpret_cast< BivariateCumulativeNormalDistributionWe04DP * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BivariateCumulativeNormalDistributionWe04DP___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BivariateCumulativeNormalDistributionWe04DP___call__" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BivariateCumulativeNormalDistributionWe04DP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BivariateCumulativeNormalDistributionWe04DP *arg1 = (BivariateCumulativeNormalDistributionWe04DP *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BivariateCumulativeNormalDistributionWe04DP",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BivariateCumulativeNormalDistributionWe04DP, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BivariateCumulativeNormalDistributionWe04DP" "', argument " "1"" of type '" "BivariateCumulativeNormalDistributionWe04DP *""'"); 
  }
  arg1 = reinterpret_cast< BivariateCumulativeNormalDistributionWe04DP * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BivariateCumulativeNormalDistributionWe04DP_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BivariateCumulativeNormalDistributionWe04DP, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CumulativeChiSquareDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  CumulativeChiSquareDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CumulativeChiSquareDistribution",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CumulativeChiSquareDistribution" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (CumulativeChiSquareDistribution *)new CumulativeChiSquareDistribution(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CumulativeChiSquareDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CumulativeChiSquareDistribution___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CumulativeChiSquareDistribution *arg1 = (CumulativeChiSquareDistribution *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CumulativeChiSquareDistribution___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CumulativeChiSquareDistribution, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CumulativeChiSquareDistribution___call__" "', argument " "1"" of type '" "CumulativeChiSquareDistribution *""'"); 
  }
  arg1 = reinterpret_cast< CumulativeChiSquareDistribution * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CumulativeChiSquareDistribution___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CumulativeChiSquareDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CumulativeChiSquareDistribution *arg1 = (CumulativeChiSquareDistribution *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CumulativeChiSquareDistribution",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CumulativeChiSquareDistribution, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CumulativeChiSquareDistribution" "', argument " "1"" of type '" "CumulativeChiSquareDistribution *""'"); 
  }
  arg1 = reinterpret_cast< CumulativeChiSquareDistribution * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CumulativeChiSquareDistribution_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CumulativeChiSquareDistribution, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_NonCentralCumulativeChiSquareDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Real arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  NonCentralCumulativeChiSquareDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NonCentralCumulativeChiSquareDistribution",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NonCentralCumulativeChiSquareDistribution" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NonCentralCumulativeChiSquareDistribution" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (NonCentralCumulativeChiSquareDistribution *)new NonCentralCumulativeChiSquareDistribution(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NonCentralCumulativeChiSquareDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NonCentralCumulativeChiSquareDistribution___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonCentralCumulativeChiSquareDistribution *arg1 = (NonCentralCumulativeChiSquareDistribution *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NonCentralCumulativeChiSquareDistribution___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NonCentralCumulativeChiSquareDistribution, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonCentralCumulativeChiSquareDistribution___call__" "', argument " "1"" of type '" "NonCentralCumulativeChiSquareDistribution *""'"); 
  }
  arg1 = reinterpret_cast< NonCentralCumulativeChiSquareDistribution * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NonCentralCumulativeChiSquareDistribution___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_NonCentralCumulativeChiSquareDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonCentralCumulativeChiSquareDistribution *arg1 = (NonCentralCumulativeChiSquareDistribution *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NonCentralCumulativeChiSquareDistribution",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NonCentralCumulativeChiSquareDistribution, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NonCentralCumulativeChiSquareDistribution" "', argument " "1"" of type '" "NonCentralCumulativeChiSquareDistribution *""'"); 
  }
  arg1 = reinterpret_cast< NonCentralCumulativeChiSquareDistribution * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NonCentralCumulativeChiSquareDistribution_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_NonCentralCumulativeChiSquareDistribution, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_InverseNonCentralCumulativeChiSquareDistribution__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Real arg2 ;
  Size arg3 ;
  Real arg4 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  InverseNonCentralCumulativeChiSquareDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InverseNonCentralCumulativeChiSquareDistribution",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InverseNonCentralCumulativeChiSquareDistribution" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_InverseNonCentralCumulativeChiSquareDistribution" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_InverseNonCentralCumulativeChiSquareDistribution" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_InverseNonCentralCumulativeChiSquareDistribution" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (InverseNonCentralCumulativeChiSquareDistribution *)new InverseNonCentralCumulativeChiSquareDistribution(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseNonCentralCumulativeChiSquareDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InverseNonCentralCumulativeChiSquareDistribution__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Real arg2 ;
  Size arg3 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  InverseNonCentralCumulativeChiSquareDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InverseNonCentralCumulativeChiSquareDistribution",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InverseNonCentralCumulativeChiSquareDistribution" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_InverseNonCentralCumulativeChiSquareDistribution" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_InverseNonCentralCumulativeChiSquareDistribution" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (InverseNonCentralCumulativeChiSquareDistribution *)new InverseNonCentralCumulativeChiSquareDistribution(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseNonCentralCumulativeChiSquareDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InverseNonCentralCumulativeChiSquareDistribution__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Real arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  InverseNonCentralCumulativeChiSquareDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InverseNonCentralCumulativeChiSquareDistribution",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InverseNonCentralCumulativeChiSquareDistribution" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_InverseNonCentralCumulativeChiSquareDistribution" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (InverseNonCentralCumulativeChiSquareDistribution *)new InverseNonCentralCumulativeChiSquareDistribution(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseNonCentralCumulativeChiSquareDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InverseNonCentralCumulativeChiSquareDistribution(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_InverseNonCentralCumulativeChiSquareDistribution__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          return _wrap_new_InverseNonCentralCumulativeChiSquareDistribution__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_InverseNonCentralCumulativeChiSquareDistribution__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_InverseNonCentralCumulativeChiSquareDistribution'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    InverseNonCentralCumulativeChiSquareDistribution::InverseNonCentralCumulativeChiSquareDistribution(Real,Real,Size,Real)\n"
    "    InverseNonCentralCumulativeChiSquareDistribution::InverseNonCentralCumulativeChiSquareDistribution(Real,Real,Size)\n"
    "    InverseNonCentralCumulativeChiSquareDistribution::InverseNonCentralCumulativeChiSquareDistribution(Real,Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InverseNonCentralCumulativeChiSquareDistribution___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseNonCentralCumulativeChiSquareDistribution *arg1 = (InverseNonCentralCumulativeChiSquareDistribution *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InverseNonCentralCumulativeChiSquareDistribution___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseNonCentralCumulativeChiSquareDistribution, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InverseNonCentralCumulativeChiSquareDistribution___call__" "', argument " "1"" of type '" "InverseNonCentralCumulativeChiSquareDistribution *""'"); 
  }
  arg1 = reinterpret_cast< InverseNonCentralCumulativeChiSquareDistribution * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InverseNonCentralCumulativeChiSquareDistribution___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InverseNonCentralCumulativeChiSquareDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseNonCentralCumulativeChiSquareDistribution *arg1 = (InverseNonCentralCumulativeChiSquareDistribution *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_InverseNonCentralCumulativeChiSquareDistribution",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseNonCentralCumulativeChiSquareDistribution, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InverseNonCentralCumulativeChiSquareDistribution" "', argument " "1"" of type '" "InverseNonCentralCumulativeChiSquareDistribution *""'"); 
  }
  arg1 = reinterpret_cast< InverseNonCentralCumulativeChiSquareDistribution * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InverseNonCentralCumulativeChiSquareDistribution_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseNonCentralCumulativeChiSquareDistribution, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CumulativeGammaDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  CumulativeGammaDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CumulativeGammaDistribution",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CumulativeGammaDistribution" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (CumulativeGammaDistribution *)new CumulativeGammaDistribution(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CumulativeGammaDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CumulativeGammaDistribution___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CumulativeGammaDistribution *arg1 = (CumulativeGammaDistribution *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CumulativeGammaDistribution___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CumulativeGammaDistribution, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CumulativeGammaDistribution___call__" "', argument " "1"" of type '" "CumulativeGammaDistribution *""'"); 
  }
  arg1 = reinterpret_cast< CumulativeGammaDistribution * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CumulativeGammaDistribution___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CumulativeGammaDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CumulativeGammaDistribution *arg1 = (CumulativeGammaDistribution *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CumulativeGammaDistribution",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CumulativeGammaDistribution, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CumulativeGammaDistribution" "', argument " "1"" of type '" "CumulativeGammaDistribution *""'"); 
  }
  arg1 = reinterpret_cast< CumulativeGammaDistribution * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CumulativeGammaDistribution_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CumulativeGammaDistribution, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_GammaFunction_logValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GammaFunction *arg1 = (GammaFunction *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GammaFunction_logValue",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GammaFunction, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GammaFunction_logValue" "', argument " "1"" of type '" "GammaFunction *""'"); 
  }
  arg1 = reinterpret_cast< GammaFunction * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GammaFunction_logValue" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->logValue(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GammaFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GammaFunction *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GammaFunction",0,0)) SWIG_fail;
  {
    try {
      result = (GammaFunction *)new GammaFunction();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GammaFunction, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GammaFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GammaFunction *arg1 = (GammaFunction *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GammaFunction",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GammaFunction, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GammaFunction" "', argument " "1"" of type '" "GammaFunction *""'"); 
  }
  arg1 = reinterpret_cast< GammaFunction * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GammaFunction_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GammaFunction, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PoissonDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  PoissonDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PoissonDistribution",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PoissonDistribution" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (PoissonDistribution *)new PoissonDistribution(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PoissonDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PoissonDistribution___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PoissonDistribution *arg1 = (PoissonDistribution *) 0 ;
  BigNatural arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PoissonDistribution___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PoissonDistribution, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PoissonDistribution___call__" "', argument " "1"" of type '" "PoissonDistribution *""'"); 
  }
  arg1 = reinterpret_cast< PoissonDistribution * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PoissonDistribution___call__" "', argument " "2"" of type '" "BigNatural""'");
  } 
  arg2 = static_cast< BigNatural >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PoissonDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PoissonDistribution *arg1 = (PoissonDistribution *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PoissonDistribution",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PoissonDistribution, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PoissonDistribution" "', argument " "1"" of type '" "PoissonDistribution *""'"); 
  }
  arg1 = reinterpret_cast< PoissonDistribution * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PoissonDistribution_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_PoissonDistribution, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CumulativePoissonDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  CumulativePoissonDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CumulativePoissonDistribution",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CumulativePoissonDistribution" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (CumulativePoissonDistribution *)new CumulativePoissonDistribution(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CumulativePoissonDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CumulativePoissonDistribution___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CumulativePoissonDistribution *arg1 = (CumulativePoissonDistribution *) 0 ;
  BigNatural arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CumulativePoissonDistribution___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CumulativePoissonDistribution, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CumulativePoissonDistribution___call__" "', argument " "1"" of type '" "CumulativePoissonDistribution *""'"); 
  }
  arg1 = reinterpret_cast< CumulativePoissonDistribution * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CumulativePoissonDistribution___call__" "', argument " "2"" of type '" "BigNatural""'");
  } 
  arg2 = static_cast< BigNatural >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CumulativePoissonDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CumulativePoissonDistribution *arg1 = (CumulativePoissonDistribution *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CumulativePoissonDistribution",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CumulativePoissonDistribution, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CumulativePoissonDistribution" "', argument " "1"" of type '" "CumulativePoissonDistribution *""'"); 
  }
  arg1 = reinterpret_cast< CumulativePoissonDistribution * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CumulativePoissonDistribution_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CumulativePoissonDistribution, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_InverseCumulativePoisson(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativePoisson *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InverseCumulativePoisson",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InverseCumulativePoisson" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (InverseCumulativePoisson *)new InverseCumulativePoisson(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativePoisson, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InverseCumulativePoisson___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativePoisson *arg1 = (InverseCumulativePoisson *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InverseCumulativePoisson___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativePoisson, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InverseCumulativePoisson___call__" "', argument " "1"" of type '" "InverseCumulativePoisson *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativePoisson * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InverseCumulativePoisson___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InverseCumulativePoisson(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativePoisson *arg1 = (InverseCumulativePoisson *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_InverseCumulativePoisson",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativePoisson, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InverseCumulativePoisson" "', argument " "1"" of type '" "InverseCumulativePoisson *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativePoisson * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InverseCumulativePoisson_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativePoisson, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_StudentDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  StudentDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_StudentDistribution",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StudentDistribution" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  {
    try {
      result = (StudentDistribution *)new StudentDistribution(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_StudentDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StudentDistribution___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  StudentDistribution *arg1 = (StudentDistribution *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StudentDistribution___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_StudentDistribution, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StudentDistribution___call__" "', argument " "1"" of type '" "StudentDistribution *""'"); 
  }
  arg1 = reinterpret_cast< StudentDistribution * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StudentDistribution___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_StudentDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  StudentDistribution *arg1 = (StudentDistribution *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_StudentDistribution",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_StudentDistribution, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StudentDistribution" "', argument " "1"" of type '" "StudentDistribution *""'"); 
  }
  arg1 = reinterpret_cast< StudentDistribution * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *StudentDistribution_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_StudentDistribution, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CumulativeStudentDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  CumulativeStudentDistribution *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CumulativeStudentDistribution",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CumulativeStudentDistribution" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  {
    try {
      result = (CumulativeStudentDistribution *)new CumulativeStudentDistribution(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CumulativeStudentDistribution, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CumulativeStudentDistribution___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CumulativeStudentDistribution *arg1 = (CumulativeStudentDistribution *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CumulativeStudentDistribution___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CumulativeStudentDistribution, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CumulativeStudentDistribution___call__" "', argument " "1"" of type '" "CumulativeStudentDistribution *""'"); 
  }
  arg1 = reinterpret_cast< CumulativeStudentDistribution * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CumulativeStudentDistribution___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CumulativeStudentDistribution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CumulativeStudentDistribution *arg1 = (CumulativeStudentDistribution *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CumulativeStudentDistribution",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CumulativeStudentDistribution, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CumulativeStudentDistribution" "', argument " "1"" of type '" "CumulativeStudentDistribution *""'"); 
  }
  arg1 = reinterpret_cast< CumulativeStudentDistribution * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CumulativeStudentDistribution_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CumulativeStudentDistribution, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_InverseCumulativeStudent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  Size arg3 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  InverseCumulativeStudent *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InverseCumulativeStudent",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InverseCumulativeStudent" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_InverseCumulativeStudent" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_InverseCumulativeStudent" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  {
    try {
      result = (InverseCumulativeStudent *)new InverseCumulativeStudent(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeStudent, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InverseCumulativeStudent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Real arg2 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  InverseCumulativeStudent *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InverseCumulativeStudent",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InverseCumulativeStudent" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_InverseCumulativeStudent" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (InverseCumulativeStudent *)new InverseCumulativeStudent(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeStudent, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InverseCumulativeStudent__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativeStudent *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InverseCumulativeStudent",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InverseCumulativeStudent" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  {
    try {
      result = (InverseCumulativeStudent *)new InverseCumulativeStudent(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeStudent, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InverseCumulativeStudent(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_InverseCumulativeStudent__SWIG_2(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_InverseCumulativeStudent__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
        }
        if (_v) {
          return _wrap_new_InverseCumulativeStudent__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_InverseCumulativeStudent'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    InverseCumulativeStudent::InverseCumulativeStudent(Integer,Real,Size)\n"
    "    InverseCumulativeStudent::InverseCumulativeStudent(Integer,Real)\n"
    "    InverseCumulativeStudent::InverseCumulativeStudent(Integer)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InverseCumulativeStudent___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeStudent *arg1 = (InverseCumulativeStudent *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InverseCumulativeStudent___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeStudent, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InverseCumulativeStudent___call__" "', argument " "1"" of type '" "InverseCumulativeStudent *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeStudent * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InverseCumulativeStudent___call__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)(arg1)->operator ()(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InverseCumulativeStudent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeStudent *arg1 = (InverseCumulativeStudent *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_InverseCumulativeStudent",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeStudent, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InverseCumulativeStudent" "', argument " "1"" of type '" "InverseCumulativeStudent *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeStudent * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InverseCumulativeStudent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativeStudent, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Money__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = 0 ;
  Decimal arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Money *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Money",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Money" "', argument " "1"" of type '" "Currency const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Money" "', argument " "1"" of type '" "Currency const &""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Money" "', argument " "2"" of type '" "Decimal""'");
  } 
  arg2 = static_cast< Decimal >(val2);
  {
    try {
      result = (Money *)new Money((Currency const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Money, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Money__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Decimal arg1 ;
  Currency *arg2 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Money *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Money",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Money" "', argument " "1"" of type '" "Decimal""'");
  } 
  arg1 = static_cast< Decimal >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Money" "', argument " "2"" of type '" "Currency const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Money" "', argument " "2"" of type '" "Currency const &""'"); 
  }
  arg2 = reinterpret_cast< Currency * >(argp2);
  {
    try {
      result = (Money *)new Money(arg1,(Currency const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Money, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Money(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Currency, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_Money__SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Currency, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_Money__SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Money'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Money::Money(Currency const &,Decimal)\n"
    "    Money::Money(Decimal,Currency const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Money_currency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money *arg1 = (Money *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Currency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money_currency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Money, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Money_currency" "', argument " "1"" of type '" "Money const *""'"); 
  }
  arg1 = reinterpret_cast< Money * >(argp1);
  {
    try {
      result = (Currency *) &((Money const *)arg1)->currency();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Currency, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Money_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money *arg1 = (Money *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Decimal result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money_value",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Money, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Money_value" "', argument " "1"" of type '" "Money const *""'"); 
  }
  arg1 = reinterpret_cast< Money * >(argp1);
  {
    try {
      result = (Decimal)((Money const *)arg1)->value();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Money_rounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money *arg1 = (Money *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Money > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money_rounded",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Money, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Money_rounded" "', argument " "1"" of type '" "Money const *""'"); 
  }
  arg1 = reinterpret_cast< Money * >(argp1);
  {
    try {
      result = ((Money const *)arg1)->rounded();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Money(static_cast< const Money& >(result))), SWIGTYPE_p_Money, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Money___pos__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money *arg1 = (Money *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Money > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money___pos__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Money, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Money___pos__" "', argument " "1"" of type '" "Money const *""'"); 
  }
  arg1 = reinterpret_cast< Money * >(argp1);
  {
    try {
      result = ((Money const *)arg1)->operator +();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Money(static_cast< const Money& >(result))), SWIGTYPE_p_Money, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Money___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money *arg1 = (Money *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Money > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money___neg__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Money, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Money___neg__" "', argument " "1"" of type '" "Money const *""'"); 
  }
  arg1 = reinterpret_cast< Money * >(argp1);
  {
    try {
      result = ((Money const *)arg1)->operator -();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Money(static_cast< const Money& >(result))), SWIGTYPE_p_Money, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Money___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money *arg1 = (Money *) 0 ;
  Money *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< Money > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money___add__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Money, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Money___add__" "', argument " "1"" of type '" "Money *""'"); 
  }
  arg1 = reinterpret_cast< Money * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Money,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Money___add__" "', argument " "2"" of type '" "Money const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Money___add__" "', argument " "2"" of type '" "Money const &""'"); 
  }
  arg2 = reinterpret_cast< Money * >(argp2);
  {
    try {
      result = Money_operator_Sa_(arg1,(Money const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Money(static_cast< const Money& >(result))), SWIGTYPE_p_Money, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Money___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money *arg1 = (Money *) 0 ;
  Money *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< Money > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money___sub__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Money, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Money___sub__" "', argument " "1"" of type '" "Money *""'"); 
  }
  arg1 = reinterpret_cast< Money * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Money,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Money___sub__" "', argument " "2"" of type '" "Money const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Money___sub__" "', argument " "2"" of type '" "Money const &""'"); 
  }
  arg2 = reinterpret_cast< Money * >(argp2);
  {
    try {
      result = Money_operator_Ss_(arg1,(Money const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Money(static_cast< const Money& >(result))), SWIGTYPE_p_Money, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Money___mul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money *arg1 = (Money *) 0 ;
  Decimal arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< Money > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money___mul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Money, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Money___mul__" "', argument " "1"" of type '" "Money *""'"); 
  }
  arg1 = reinterpret_cast< Money * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Money___mul__" "', argument " "2"" of type '" "Decimal""'");
  } 
  arg2 = static_cast< Decimal >(val2);
  {
    try {
      result = Money_operator_Sm_(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Money(static_cast< const Money& >(result))), SWIGTYPE_p_Money, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Money___truediv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money *arg1 = (Money *) 0 ;
  Decimal arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< Money > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money___truediv__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Money, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Money___truediv__" "', argument " "1"" of type '" "Money *""'"); 
  }
  arg1 = reinterpret_cast< Money * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Money___truediv__" "', argument " "2"" of type '" "Decimal""'");
  } 
  arg2 = static_cast< Decimal >(val2);
  {
    try {
      result = Money_operator_Sd___SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Money(static_cast< const Money& >(result))), SWIGTYPE_p_Money, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Money___truediv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money *arg1 = (Money *) 0 ;
  Money *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Decimal result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money___truediv__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Money, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Money___truediv__" "', argument " "1"" of type '" "Money *""'"); 
  }
  arg1 = reinterpret_cast< Money * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Money,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Money___truediv__" "', argument " "2"" of type '" "Money const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Money___truediv__" "', argument " "2"" of type '" "Money const &""'"); 
  }
  arg2 = reinterpret_cast< Money * >(argp2);
  {
    try {
      result = (Decimal)Money_operator_Sd___SWIG_1(arg1,(Money const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Money___truediv__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Money, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Money, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_Money___truediv____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Money, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_Money___truediv____SWIG_0(self, args);
      }
    }
  }
  
fail:
  Py_INCREF(Py_NotImplemented);
  return Py_NotImplemented;
}


SWIGINTERN PyObject *_wrap_Money___rmul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money *arg1 = (Money *) 0 ;
  Decimal arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< Money > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money___rmul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Money, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Money___rmul__" "', argument " "1"" of type '" "Money *""'"); 
  }
  arg1 = reinterpret_cast< Money * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Money___rmul__" "', argument " "2"" of type '" "Decimal""'");
  } 
  arg2 = static_cast< Decimal >(val2);
  {
    try {
      result = Money___rmul__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Money(static_cast< const Money& >(result))), SWIGTYPE_p_Money, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Money___lt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money *arg1 = (Money *) 0 ;
  Money *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money___lt__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Money, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Money___lt__" "', argument " "1"" of type '" "Money *""'"); 
  }
  arg1 = reinterpret_cast< Money * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Money,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Money___lt__" "', argument " "2"" of type '" "Money const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Money___lt__" "', argument " "2"" of type '" "Money const &""'"); 
  }
  arg2 = reinterpret_cast< Money * >(argp2);
  {
    try {
      result = (bool)Money___lt__(arg1,(Money const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Money___gt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money *arg1 = (Money *) 0 ;
  Money *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money___gt__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Money, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Money___gt__" "', argument " "1"" of type '" "Money *""'"); 
  }
  arg1 = reinterpret_cast< Money * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Money,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Money___gt__" "', argument " "2"" of type '" "Money const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Money___gt__" "', argument " "2"" of type '" "Money const &""'"); 
  }
  arg2 = reinterpret_cast< Money * >(argp2);
  {
    try {
      result = (bool)Money___gt__(arg1,(Money const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Money___le__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money *arg1 = (Money *) 0 ;
  Money *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money___le__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Money, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Money___le__" "', argument " "1"" of type '" "Money *""'"); 
  }
  arg1 = reinterpret_cast< Money * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Money,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Money___le__" "', argument " "2"" of type '" "Money const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Money___le__" "', argument " "2"" of type '" "Money const &""'"); 
  }
  arg2 = reinterpret_cast< Money * >(argp2);
  {
    try {
      result = (bool)Money___le__(arg1,(Money const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Money___ge__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money *arg1 = (Money *) 0 ;
  Money *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money___ge__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Money, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Money___ge__" "', argument " "1"" of type '" "Money *""'"); 
  }
  arg1 = reinterpret_cast< Money * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Money,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Money___ge__" "', argument " "2"" of type '" "Money const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Money___ge__" "', argument " "2"" of type '" "Money const &""'"); 
  }
  arg2 = reinterpret_cast< Money * >(argp2);
  {
    try {
      result = (bool)Money___ge__(arg1,(Money const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Money___cmp__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money *arg1 = (Money *) 0 ;
  Money *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  int result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money___cmp__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Money, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Money___cmp__" "', argument " "1"" of type '" "Money *""'"); 
  }
  arg1 = reinterpret_cast< Money * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Money,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Money___cmp__" "', argument " "2"" of type '" "Money const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Money___cmp__" "', argument " "2"" of type '" "Money const &""'"); 
  }
  arg2 = reinterpret_cast< Money * >(argp2);
  {
    try {
      result = (int)Money___cmp__(arg1,(Money const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Money___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money *arg1 = (Money *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::string result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money___str__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Money, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Money___str__" "', argument " "1"" of type '" "Money *""'"); 
  }
  arg1 = reinterpret_cast< Money * >(argp1);
  {
    try {
      result = Money___str__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Money_setConversionType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money::ConversionType arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money_setConversionType",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Money_setConversionType" "', argument " "1"" of type '" "Money::ConversionType""'");
  } 
  arg1 = static_cast< Money::ConversionType >(val1);
  {
    try {
      Money_setConversionType(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Money_setBaseCurrency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Money_setBaseCurrency",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Money_setBaseCurrency" "', argument " "1"" of type '" "Currency const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Money_setBaseCurrency" "', argument " "1"" of type '" "Currency const &""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  {
    try {
      Money_setBaseCurrency((Currency const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Money(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Money *arg1 = (Money *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Money",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Money, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Money" "', argument " "1"" of type '" "Money *""'"); 
  }
  arg1 = reinterpret_cast< Money * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Money_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Money, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ExchangeRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Currency *arg1 = 0 ;
  Currency *arg2 = 0 ;
  Decimal arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  ExchangeRate *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ExchangeRate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ExchangeRate" "', argument " "1"" of type '" "Currency const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ExchangeRate" "', argument " "1"" of type '" "Currency const &""'"); 
  }
  arg1 = reinterpret_cast< Currency * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ExchangeRate" "', argument " "2"" of type '" "Currency const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ExchangeRate" "', argument " "2"" of type '" "Currency const &""'"); 
  }
  arg2 = reinterpret_cast< Currency * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ExchangeRate" "', argument " "3"" of type '" "Decimal""'");
  } 
  arg3 = static_cast< Decimal >(val3);
  {
    try {
      result = (ExchangeRate *)new ExchangeRate((Currency const &)*arg1,(Currency const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ExchangeRate, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ExchangeRate_source(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ExchangeRate *arg1 = (ExchangeRate *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Currency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ExchangeRate_source",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ExchangeRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExchangeRate_source" "', argument " "1"" of type '" "ExchangeRate const *""'"); 
  }
  arg1 = reinterpret_cast< ExchangeRate * >(argp1);
  {
    try {
      result = (Currency *) &((ExchangeRate const *)arg1)->source();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Currency, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ExchangeRate_target(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ExchangeRate *arg1 = (ExchangeRate *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Currency *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ExchangeRate_target",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ExchangeRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExchangeRate_target" "', argument " "1"" of type '" "ExchangeRate const *""'"); 
  }
  arg1 = reinterpret_cast< ExchangeRate * >(argp1);
  {
    try {
      result = (Currency *) &((ExchangeRate const *)arg1)->target();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Currency, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ExchangeRate_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ExchangeRate *arg1 = (ExchangeRate *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  ExchangeRate::Type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ExchangeRate_type",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ExchangeRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExchangeRate_type" "', argument " "1"" of type '" "ExchangeRate const *""'"); 
  }
  arg1 = reinterpret_cast< ExchangeRate * >(argp1);
  {
    try {
      result = (ExchangeRate::Type)((ExchangeRate const *)arg1)->type();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ExchangeRate_rate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ExchangeRate *arg1 = (ExchangeRate *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Decimal result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ExchangeRate_rate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ExchangeRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExchangeRate_rate" "', argument " "1"" of type '" "ExchangeRate const *""'"); 
  }
  arg1 = reinterpret_cast< ExchangeRate * >(argp1);
  {
    try {
      result = (Decimal)((ExchangeRate const *)arg1)->rate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ExchangeRate_exchange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ExchangeRate *arg1 = (ExchangeRate *) 0 ;
  Money *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< Money > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ExchangeRate_exchange",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ExchangeRate, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExchangeRate_exchange" "', argument " "1"" of type '" "ExchangeRate const *""'"); 
  }
  arg1 = reinterpret_cast< ExchangeRate * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Money,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ExchangeRate_exchange" "', argument " "2"" of type '" "Money const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExchangeRate_exchange" "', argument " "2"" of type '" "Money const &""'"); 
  }
  arg2 = reinterpret_cast< Money * >(argp2);
  {
    try {
      result = ((ExchangeRate const *)arg1)->exchange((Money const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Money(static_cast< const Money& >(result))), SWIGTYPE_p_Money, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ExchangeRate_chain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ExchangeRate *arg1 = 0 ;
  ExchangeRate *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< ExchangeRate > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ExchangeRate_chain",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_ExchangeRate,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExchangeRate_chain" "', argument " "1"" of type '" "ExchangeRate const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExchangeRate_chain" "', argument " "1"" of type '" "ExchangeRate const &""'"); 
  }
  arg1 = reinterpret_cast< ExchangeRate * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ExchangeRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ExchangeRate_chain" "', argument " "2"" of type '" "ExchangeRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExchangeRate_chain" "', argument " "2"" of type '" "ExchangeRate const &""'"); 
  }
  arg2 = reinterpret_cast< ExchangeRate * >(argp2);
  {
    try {
      result = ExchangeRate::chain((ExchangeRate const &)*arg1,(ExchangeRate const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new ExchangeRate(static_cast< const ExchangeRate& >(result))), SWIGTYPE_p_ExchangeRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ExchangeRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ExchangeRate *arg1 = (ExchangeRate *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ExchangeRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ExchangeRate, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ExchangeRate" "', argument " "1"" of type '" "ExchangeRate *""'"); 
  }
  arg1 = reinterpret_cast< ExchangeRate * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ExchangeRate_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ExchangeRate, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_ExchangeRateManager_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ExchangeRateManager *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ExchangeRateManager_instance",0,0)) SWIG_fail;
  {
    try {
      result = (ExchangeRateManager *) &ExchangeRateManager::instance();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ExchangeRateManager, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ExchangeRateManager_add__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ExchangeRateManager *arg1 = (ExchangeRateManager *) 0 ;
  ExchangeRate *arg2 = 0 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ExchangeRateManager_add",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ExchangeRateManager, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExchangeRateManager_add" "', argument " "1"" of type '" "ExchangeRateManager *""'"); 
  }
  arg1 = reinterpret_cast< ExchangeRateManager * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ExchangeRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ExchangeRateManager_add" "', argument " "2"" of type '" "ExchangeRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExchangeRateManager_add" "', argument " "2"" of type '" "ExchangeRate const &""'"); 
  }
  arg2 = reinterpret_cast< ExchangeRate * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ExchangeRateManager_add" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExchangeRateManager_add" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ExchangeRateManager_add" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExchangeRateManager_add" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  {
    try {
      (arg1)->add((ExchangeRate const &)*arg2,(Date const &)*arg3,(Date const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ExchangeRateManager_add__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ExchangeRateManager *arg1 = (ExchangeRateManager *) 0 ;
  ExchangeRate *arg2 = 0 ;
  Date *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ExchangeRateManager_add",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ExchangeRateManager, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExchangeRateManager_add" "', argument " "1"" of type '" "ExchangeRateManager *""'"); 
  }
  arg1 = reinterpret_cast< ExchangeRateManager * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ExchangeRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ExchangeRateManager_add" "', argument " "2"" of type '" "ExchangeRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExchangeRateManager_add" "', argument " "2"" of type '" "ExchangeRate const &""'"); 
  }
  arg2 = reinterpret_cast< ExchangeRate * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ExchangeRateManager_add" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExchangeRateManager_add" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  {
    try {
      (arg1)->add((ExchangeRate const &)*arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ExchangeRateManager_add__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ExchangeRateManager *arg1 = (ExchangeRateManager *) 0 ;
  ExchangeRate *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ExchangeRateManager_add",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ExchangeRateManager, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExchangeRateManager_add" "', argument " "1"" of type '" "ExchangeRateManager *""'"); 
  }
  arg1 = reinterpret_cast< ExchangeRateManager * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ExchangeRate,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ExchangeRateManager_add" "', argument " "2"" of type '" "ExchangeRate const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExchangeRateManager_add" "', argument " "2"" of type '" "ExchangeRate const &""'"); 
  }
  arg2 = reinterpret_cast< ExchangeRate * >(argp2);
  {
    try {
      (arg1)->add((ExchangeRate const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ExchangeRateManager_add(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ExchangeRateManager, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ExchangeRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_ExchangeRateManager_add__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ExchangeRateManager, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ExchangeRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ExchangeRateManager_add__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ExchangeRateManager, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_ExchangeRate, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_ExchangeRateManager_add__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ExchangeRateManager_add'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ExchangeRateManager::add(ExchangeRate const &,Date const &,Date const &)\n"
    "    ExchangeRateManager::add(ExchangeRate const &,Date const &)\n"
    "    ExchangeRateManager::add(ExchangeRate const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ExchangeRateManager_lookup__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ExchangeRateManager *arg1 = (ExchangeRateManager *) 0 ;
  Currency *arg2 = 0 ;
  Currency *arg3 = 0 ;
  Date *arg4 = 0 ;
  ExchangeRate::Type arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  SwigValueWrapper< ExchangeRate > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ExchangeRateManager_lookup",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ExchangeRateManager, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExchangeRateManager_lookup" "', argument " "1"" of type '" "ExchangeRateManager const *""'"); 
  }
  arg1 = reinterpret_cast< ExchangeRateManager * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ExchangeRateManager_lookup" "', argument " "2"" of type '" "Currency const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExchangeRateManager_lookup" "', argument " "2"" of type '" "Currency const &""'"); 
  }
  arg2 = reinterpret_cast< Currency * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ExchangeRateManager_lookup" "', argument " "3"" of type '" "Currency const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExchangeRateManager_lookup" "', argument " "3"" of type '" "Currency const &""'"); 
  }
  arg3 = reinterpret_cast< Currency * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ExchangeRateManager_lookup" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExchangeRateManager_lookup" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ExchangeRateManager_lookup" "', argument " "5"" of type '" "ExchangeRate::Type""'");
  } 
  arg5 = static_cast< ExchangeRate::Type >(val5);
  {
    try {
      result = ((ExchangeRateManager const *)arg1)->lookup((Currency const &)*arg2,(Currency const &)*arg3,(Date const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new ExchangeRate(static_cast< const ExchangeRate& >(result))), SWIGTYPE_p_ExchangeRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ExchangeRateManager_lookup__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ExchangeRateManager *arg1 = (ExchangeRateManager *) 0 ;
  Currency *arg2 = 0 ;
  Currency *arg3 = 0 ;
  Date *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  SwigValueWrapper< ExchangeRate > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ExchangeRateManager_lookup",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ExchangeRateManager, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExchangeRateManager_lookup" "', argument " "1"" of type '" "ExchangeRateManager const *""'"); 
  }
  arg1 = reinterpret_cast< ExchangeRateManager * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ExchangeRateManager_lookup" "', argument " "2"" of type '" "Currency const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExchangeRateManager_lookup" "', argument " "2"" of type '" "Currency const &""'"); 
  }
  arg2 = reinterpret_cast< Currency * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Currency,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ExchangeRateManager_lookup" "', argument " "3"" of type '" "Currency const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExchangeRateManager_lookup" "', argument " "3"" of type '" "Currency const &""'"); 
  }
  arg3 = reinterpret_cast< Currency * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ExchangeRateManager_lookup" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ExchangeRateManager_lookup" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  {
    try {
      result = ((ExchangeRateManager const *)arg1)->lookup((Currency const &)*arg2,(Currency const &)*arg3,(Date const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new ExchangeRate(static_cast< const ExchangeRate& >(result))), SWIGTYPE_p_ExchangeRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ExchangeRateManager_lookup(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ExchangeRateManager, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Currency, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Currency, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_ExchangeRateManager_lookup__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ExchangeRateManager, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Currency, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Currency, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_ExchangeRateManager_lookup__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ExchangeRateManager_lookup'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ExchangeRateManager::lookup(Currency const &,Currency const &,Date const &,ExchangeRate::Type) const\n"
    "    ExchangeRateManager::lookup(Currency const &,Currency const &,Date const &) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ExchangeRateManager_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ExchangeRateManager *arg1 = (ExchangeRateManager *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ExchangeRateManager_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ExchangeRateManager, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ExchangeRateManager_clear" "', argument " "1"" of type '" "ExchangeRateManager *""'"); 
  }
  arg1 = reinterpret_cast< ExchangeRateManager * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ExchangeRateManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ExchangeRateManager *arg1 = (ExchangeRateManager *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ExchangeRateManager",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ExchangeRateManager, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ExchangeRateManager" "', argument " "1"" of type '" "ExchangeRateManager *""'"); 
  }
  arg1 = reinterpret_cast< ExchangeRateManager * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ExchangeRateManager_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ExchangeRateManager, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Futures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Futures *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Futures",0,0)) SWIG_fail;
  {
    try {
      result = (Futures *)new Futures();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Futures, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Futures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Futures *arg1 = (Futures *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Futures",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Futures, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Futures" "', argument " "1"" of type '" "Futures *""'"); 
  }
  arg1 = reinterpret_cast< Futures * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Futures_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Futures, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_TimeBasket__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeBasket *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TimeBasket",0,0)) SWIG_fail;
  {
    try {
      result = (TimeBasket *)new TimeBasket();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TimeBasket, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TimeBasket__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TimeBasket *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TimeBasket",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TimeBasket" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TimeBasket" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TimeBasket" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TimeBasket" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      result = (TimeBasket *)new TimeBasket((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< Real,std::allocator< Real > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TimeBasket, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TimeBasket(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_TimeBasket__SWIG_0(self, args);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_TimeBasket__SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_TimeBasket'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    TimeBasket::TimeBasket()\n"
    "    TimeBasket::TimeBasket(std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_TimeBasket___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeBasket *arg1 = (TimeBasket *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TimeBasket___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeBasket, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeBasket___len__" "', argument " "1"" of type '" "TimeBasket *""'"); 
  }
  arg1 = reinterpret_cast< TimeBasket * >(argp1);
  {
    try {
      result = (arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TimeBasket_rebin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeBasket *arg1 = (TimeBasket *) 0 ;
  std::vector< Date,std::allocator< Date > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TimeBasket result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TimeBasket_rebin",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeBasket, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeBasket_rebin" "', argument " "1"" of type '" "TimeBasket const *""'"); 
  }
  arg1 = reinterpret_cast< TimeBasket * >(argp1);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeBasket_rebin" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeBasket_rebin" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      result = ((TimeBasket const *)arg1)->rebin((std::vector< Date,std::allocator< Date > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TimeBasket(static_cast< const TimeBasket& >(result))), SWIGTYPE_p_TimeBasket, SWIG_POINTER_OWN |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_TimeBasket___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeBasket *arg1 = (TimeBasket *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TimeBasket___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeBasket, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeBasket___getitem__" "', argument " "1"" of type '" "TimeBasket *""'"); 
  }
  arg1 = reinterpret_cast< TimeBasket * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeBasket___getitem__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeBasket___getitem__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Real)TimeBasket___getitem__(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TimeBasket___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeBasket *arg1 = (TimeBasket *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"TimeBasket___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeBasket, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeBasket___setitem__" "', argument " "1"" of type '" "TimeBasket *""'"); 
  }
  arg1 = reinterpret_cast< TimeBasket * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeBasket___setitem__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeBasket___setitem__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TimeBasket___setitem__" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      TimeBasket___setitem__(arg1,(Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TimeBasket_items(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeBasket *arg1 = (TimeBasket *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"TimeBasket_items",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeBasket, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeBasket_items" "', argument " "1"" of type '" "TimeBasket *""'"); 
  }
  arg1 = reinterpret_cast< TimeBasket * >(argp1);
  {
    try {
      result = (PyObject *)TimeBasket_items(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TimeBasket___contains__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeBasket *arg1 = (TimeBasket *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TimeBasket___contains__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeBasket, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeBasket___contains__" "', argument " "1"" of type '" "TimeBasket *""'"); 
  }
  arg1 = reinterpret_cast< TimeBasket * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TimeBasket___contains__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TimeBasket___contains__" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (bool)TimeBasket___contains__(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TimeBasket___iter__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeBasket *arg1 = (TimeBasket *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"TimeBasket___iter__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeBasket, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TimeBasket___iter__" "', argument " "1"" of type '" "TimeBasket *""'"); 
  }
  arg1 = reinterpret_cast< TimeBasket * >(argp1);
  {
    try {
      result = (PyObject *)TimeBasket___iter__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_TimeBasket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeBasket *arg1 = (TimeBasket *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_TimeBasket",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TimeBasket, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TimeBasket" "', argument " "1"" of type '" "TimeBasket *""'"); 
  }
  arg1 = reinterpret_cast< TimeBasket * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TimeBasket_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_TimeBasket, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *arg1 = 0 ;
  std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *arg2 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Swap",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Swap" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Swap" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *ptr = (std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      result = (SwapPtr *)new_SwapPtr((std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg1,(std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_Swap_startDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwapPtr *arg1 = (SwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Swap_startDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Swap_startDate" "', argument " "1"" of type '" "SwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< SwapPtr * >(argp1);
  {
    try {
      result = SwapPtr_startDate(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Swap_maturityDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwapPtr *arg1 = (SwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Swap_maturityDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Swap_maturityDate" "', argument " "1"" of type '" "SwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< SwapPtr * >(argp1);
  {
    try {
      result = SwapPtr_maturityDate(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Swap_leg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwapPtr *arg1 = (SwapPtr *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Leg *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Swap_leg",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Swap_leg" "', argument " "1"" of type '" "SwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< SwapPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Swap_leg" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (Leg *) &SwapPtr_leg(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Swap_legNPV(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwapPtr *arg1 = (SwapPtr *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Swap_legNPV",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Swap_legNPV" "', argument " "1"" of type '" "SwapPtr const *""'"); 
  }
  arg1 = reinterpret_cast< SwapPtr * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Swap_legNPV" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (Real)SwapPtr_legNPV((SwapPtr const *)arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwapPtr *arg1 = (SwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Swap",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwapPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Swap" "', argument " "1"" of type '" "SwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< SwapPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Swap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SwapPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_VanillaSwap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwap::Type arg1 ;
  Real arg2 ;
  Schedule *arg3 = 0 ;
  Rate arg4 ;
  DayCounter *arg5 = 0 ;
  Schedule *arg6 = 0 ;
  IborIndexPtr *arg7 = 0 ;
  Spread arg8 ;
  DayCounter *arg9 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  VanillaSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_VanillaSwap",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VanillaSwap" "', argument " "1"" of type '" "VanillaSwap::Type""'");
  } 
  arg1 = static_cast< VanillaSwap::Type >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VanillaSwap" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_VanillaSwap" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VanillaSwap" "', argument " "3"" of type '" "Schedule const &""'"); 
  }
  arg3 = reinterpret_cast< Schedule * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_VanillaSwap" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_VanillaSwap" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VanillaSwap" "', argument " "5"" of type '" "DayCounter const &""'"); 
  }
  arg5 = reinterpret_cast< DayCounter * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_VanillaSwap" "', argument " "6"" of type '" "Schedule const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VanillaSwap" "', argument " "6"" of type '" "Schedule const &""'"); 
  }
  arg6 = reinterpret_cast< Schedule * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_VanillaSwap" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VanillaSwap" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< IborIndexPtr * >(argp7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_VanillaSwap" "', argument " "8"" of type '" "Spread""'");
  } 
  arg8 = static_cast< Spread >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_VanillaSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VanillaSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  {
    try {
      result = (VanillaSwapPtr *)new_VanillaSwapPtr(arg1,arg2,(Schedule const &)*arg3,arg4,(DayCounter const &)*arg5,(Schedule const &)*arg6,(IborIndexPtr const &)*arg7,arg8,(DayCounter const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VanillaSwapPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaSwap_fairRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwapPtr *arg1 = (VanillaSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaSwap_fairRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaSwap_fairRate" "', argument " "1"" of type '" "VanillaSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaSwapPtr * >(argp1);
  {
    try {
      result = (Rate)VanillaSwapPtr_fairRate(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaSwap_fairSpread(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwapPtr *arg1 = (VanillaSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Spread result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaSwap_fairSpread",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaSwap_fairSpread" "', argument " "1"" of type '" "VanillaSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaSwapPtr * >(argp1);
  {
    try {
      result = (Spread)VanillaSwapPtr_fairSpread(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaSwap_fixedLegBPS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwapPtr *arg1 = (VanillaSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaSwap_fixedLegBPS",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaSwap_fixedLegBPS" "', argument " "1"" of type '" "VanillaSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaSwapPtr * >(argp1);
  {
    try {
      result = (Real)VanillaSwapPtr_fixedLegBPS(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaSwap_floatingLegBPS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwapPtr *arg1 = (VanillaSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaSwap_floatingLegBPS",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaSwap_floatingLegBPS" "', argument " "1"" of type '" "VanillaSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaSwapPtr * >(argp1);
  {
    try {
      result = (Real)VanillaSwapPtr_floatingLegBPS(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaSwap_fixedLegNPV(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwapPtr *arg1 = (VanillaSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaSwap_fixedLegNPV",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaSwap_fixedLegNPV" "', argument " "1"" of type '" "VanillaSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaSwapPtr * >(argp1);
  {
    try {
      result = (Real)VanillaSwapPtr_fixedLegNPV(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaSwap_floatingLegNPV(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwapPtr *arg1 = (VanillaSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaSwap_floatingLegNPV",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaSwap_floatingLegNPV" "', argument " "1"" of type '" "VanillaSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaSwapPtr * >(argp1);
  {
    try {
      result = (Real)VanillaSwapPtr_floatingLegNPV(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaSwap_fixedLeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwapPtr *arg1 = (VanillaSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Leg *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaSwap_fixedLeg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaSwap_fixedLeg" "', argument " "1"" of type '" "VanillaSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaSwapPtr * >(argp1);
  {
    try {
      result = (Leg *) &VanillaSwapPtr_fixedLeg(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaSwap_floatingLeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwapPtr *arg1 = (VanillaSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Leg *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaSwap_floatingLeg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaSwap_floatingLeg" "', argument " "1"" of type '" "VanillaSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaSwapPtr * >(argp1);
  {
    try {
      result = (Leg *) &VanillaSwapPtr_floatingLeg(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaSwap_nominal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwapPtr *arg1 = (VanillaSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaSwap_nominal",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaSwap_nominal" "', argument " "1"" of type '" "VanillaSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaSwapPtr * >(argp1);
  {
    try {
      result = (Real)VanillaSwapPtr_nominal(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaSwap_fixedSchedule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwapPtr *arg1 = (VanillaSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Schedule *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaSwap_fixedSchedule",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaSwap_fixedSchedule" "', argument " "1"" of type '" "VanillaSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaSwapPtr * >(argp1);
  {
    try {
      result = (Schedule *) &VanillaSwapPtr_fixedSchedule(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Schedule, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaSwap_floatingSchedule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwapPtr *arg1 = (VanillaSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Schedule *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaSwap_floatingSchedule",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaSwap_floatingSchedule" "', argument " "1"" of type '" "VanillaSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaSwapPtr * >(argp1);
  {
    try {
      result = (Schedule *) &VanillaSwapPtr_floatingSchedule(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Schedule, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaSwap_fixedRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwapPtr *arg1 = (VanillaSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaSwap_fixedRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaSwap_fixedRate" "', argument " "1"" of type '" "VanillaSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaSwapPtr * >(argp1);
  {
    try {
      result = (Rate)VanillaSwapPtr_fixedRate(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaSwap_spread(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwapPtr *arg1 = (VanillaSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Spread result;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaSwap_spread",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaSwap_spread" "', argument " "1"" of type '" "VanillaSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaSwapPtr * >(argp1);
  {
    try {
      result = (Spread)VanillaSwapPtr_spread(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaSwap_floatingDayCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwapPtr *arg1 = (VanillaSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  DayCounter *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaSwap_floatingDayCount",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaSwap_floatingDayCount" "', argument " "1"" of type '" "VanillaSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaSwapPtr * >(argp1);
  {
    try {
      result = (DayCounter *) &VanillaSwapPtr_floatingDayCount(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DayCounter, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VanillaSwap_fixedDayCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwapPtr *arg1 = (VanillaSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  DayCounter *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"VanillaSwap_fixedDayCount",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VanillaSwap_fixedDayCount" "', argument " "1"" of type '" "VanillaSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaSwapPtr * >(argp1);
  {
    try {
      result = (DayCounter *) &VanillaSwapPtr_fixedDayCount(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DayCounter, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_VanillaSwap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwapPtr *arg1 = (VanillaSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_VanillaSwap",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VanillaSwapPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VanillaSwap" "', argument " "1"" of type '" "VanillaSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< VanillaSwapPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *VanillaSwap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_VanillaSwapPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_NonstandardSwap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwap::Type arg1 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  Schedule *arg4 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  Schedule *arg7 = 0 ;
  IborIndexPtr *arg8 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg9 = 0 ;
  std::vector< Spread,std::allocator< Spread > > *arg10 = 0 ;
  DayCounter *arg11 = 0 ;
  bool arg12 ;
  bool arg13 ;
  BusinessDayConvention arg14 ;
  int val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int res9 = SWIG_OLDOBJ ;
  int res10 = SWIG_OLDOBJ ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  bool val12 ;
  int ecode12 = 0 ;
  bool val13 ;
  int ecode13 = 0 ;
  int val14 ;
  int ecode14 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  NonstandardSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NonstandardSwap",14,14,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NonstandardSwap" "', argument " "1"" of type '" "VanillaSwap::Type""'");
  } 
  arg1 = static_cast< VanillaSwap::Type >(val1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NonstandardSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_NonstandardSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_NonstandardSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_NonstandardSwap" "', argument " "5"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "5"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_NonstandardSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_NonstandardSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  arg7 = reinterpret_cast< Schedule * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_NonstandardSwap" "', argument " "8"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "8"" of type '" "IborIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< IborIndexPtr * >(argp8);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res9 = swig::asptr(obj8, &ptr);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_NonstandardSwap" "', argument " "9"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "9"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg9 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res10 = swig::asptr(obj9, &ptr);
    if (!SWIG_IsOK(res10)) {
      SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_NonstandardSwap" "', argument " "10"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "10"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    arg10 = ptr;
  }
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_NonstandardSwap" "', argument " "11"" of type '" "DayCounter const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "11"" of type '" "DayCounter const &""'"); 
  }
  arg11 = reinterpret_cast< DayCounter * >(argp11);
  ecode12 = SWIG_AsVal_bool(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_NonstandardSwap" "', argument " "12"" of type '" "bool""'");
  } 
  arg12 = static_cast< bool >(val12);
  ecode13 = SWIG_AsVal_bool(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_NonstandardSwap" "', argument " "13"" of type '" "bool""'");
  } 
  arg13 = static_cast< bool >(val13);
  ecode14 = SWIG_AsVal_int(obj13, &val14);
  if (!SWIG_IsOK(ecode14)) {
    SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "new_NonstandardSwap" "', argument " "14"" of type '" "BusinessDayConvention""'");
  } 
  arg14 = static_cast< BusinessDayConvention >(val14);
  {
    try {
      result = (NonstandardSwapPtr *)new_NonstandardSwapPtr__SWIG_0(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(Schedule const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(DayCounter const &)*arg6,(Schedule const &)*arg7,(IborIndexPtr const &)*arg8,(std::vector< double,std::allocator< double > > const &)*arg9,(std::vector< double,std::allocator< double > > const &)*arg10,(DayCounter const &)*arg11,arg12,arg13,arg14);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NonstandardSwapPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NonstandardSwap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwap::Type arg1 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  Schedule *arg4 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  Schedule *arg7 = 0 ;
  IborIndexPtr *arg8 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg9 = 0 ;
  std::vector< Spread,std::allocator< Spread > > *arg10 = 0 ;
  DayCounter *arg11 = 0 ;
  bool arg12 ;
  bool arg13 ;
  int val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int res9 = SWIG_OLDOBJ ;
  int res10 = SWIG_OLDOBJ ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  bool val12 ;
  int ecode12 = 0 ;
  bool val13 ;
  int ecode13 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  NonstandardSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NonstandardSwap",13,13,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NonstandardSwap" "', argument " "1"" of type '" "VanillaSwap::Type""'");
  } 
  arg1 = static_cast< VanillaSwap::Type >(val1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NonstandardSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_NonstandardSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_NonstandardSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_NonstandardSwap" "', argument " "5"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "5"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_NonstandardSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_NonstandardSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  arg7 = reinterpret_cast< Schedule * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_NonstandardSwap" "', argument " "8"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "8"" of type '" "IborIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< IborIndexPtr * >(argp8);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res9 = swig::asptr(obj8, &ptr);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_NonstandardSwap" "', argument " "9"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "9"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg9 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res10 = swig::asptr(obj9, &ptr);
    if (!SWIG_IsOK(res10)) {
      SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_NonstandardSwap" "', argument " "10"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "10"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    arg10 = ptr;
  }
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_NonstandardSwap" "', argument " "11"" of type '" "DayCounter const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "11"" of type '" "DayCounter const &""'"); 
  }
  arg11 = reinterpret_cast< DayCounter * >(argp11);
  ecode12 = SWIG_AsVal_bool(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_NonstandardSwap" "', argument " "12"" of type '" "bool""'");
  } 
  arg12 = static_cast< bool >(val12);
  ecode13 = SWIG_AsVal_bool(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_NonstandardSwap" "', argument " "13"" of type '" "bool""'");
  } 
  arg13 = static_cast< bool >(val13);
  {
    try {
      result = (NonstandardSwapPtr *)new_NonstandardSwapPtr__SWIG_0(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(Schedule const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(DayCounter const &)*arg6,(Schedule const &)*arg7,(IborIndexPtr const &)*arg8,(std::vector< double,std::allocator< double > > const &)*arg9,(std::vector< double,std::allocator< double > > const &)*arg10,(DayCounter const &)*arg11,arg12,arg13);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NonstandardSwapPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NonstandardSwap__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwap::Type arg1 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  Schedule *arg4 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  Schedule *arg7 = 0 ;
  IborIndexPtr *arg8 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg9 = 0 ;
  std::vector< Spread,std::allocator< Spread > > *arg10 = 0 ;
  DayCounter *arg11 = 0 ;
  bool arg12 ;
  int val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int res9 = SWIG_OLDOBJ ;
  int res10 = SWIG_OLDOBJ ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  bool val12 ;
  int ecode12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  NonstandardSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NonstandardSwap",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NonstandardSwap" "', argument " "1"" of type '" "VanillaSwap::Type""'");
  } 
  arg1 = static_cast< VanillaSwap::Type >(val1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NonstandardSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_NonstandardSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_NonstandardSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_NonstandardSwap" "', argument " "5"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "5"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_NonstandardSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_NonstandardSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  arg7 = reinterpret_cast< Schedule * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_NonstandardSwap" "', argument " "8"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "8"" of type '" "IborIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< IborIndexPtr * >(argp8);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res9 = swig::asptr(obj8, &ptr);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_NonstandardSwap" "', argument " "9"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "9"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg9 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res10 = swig::asptr(obj9, &ptr);
    if (!SWIG_IsOK(res10)) {
      SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_NonstandardSwap" "', argument " "10"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "10"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    arg10 = ptr;
  }
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_NonstandardSwap" "', argument " "11"" of type '" "DayCounter const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "11"" of type '" "DayCounter const &""'"); 
  }
  arg11 = reinterpret_cast< DayCounter * >(argp11);
  ecode12 = SWIG_AsVal_bool(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_NonstandardSwap" "', argument " "12"" of type '" "bool""'");
  } 
  arg12 = static_cast< bool >(val12);
  {
    try {
      result = (NonstandardSwapPtr *)new_NonstandardSwapPtr__SWIG_0(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(Schedule const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(DayCounter const &)*arg6,(Schedule const &)*arg7,(IborIndexPtr const &)*arg8,(std::vector< double,std::allocator< double > > const &)*arg9,(std::vector< double,std::allocator< double > > const &)*arg10,(DayCounter const &)*arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NonstandardSwapPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NonstandardSwap__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwap::Type arg1 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  Schedule *arg4 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  Schedule *arg7 = 0 ;
  IborIndexPtr *arg8 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg9 = 0 ;
  std::vector< Spread,std::allocator< Spread > > *arg10 = 0 ;
  DayCounter *arg11 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int res9 = SWIG_OLDOBJ ;
  int res10 = SWIG_OLDOBJ ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  NonstandardSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NonstandardSwap",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NonstandardSwap" "', argument " "1"" of type '" "VanillaSwap::Type""'");
  } 
  arg1 = static_cast< VanillaSwap::Type >(val1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NonstandardSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_NonstandardSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_NonstandardSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_NonstandardSwap" "', argument " "5"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "5"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_NonstandardSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_NonstandardSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  arg7 = reinterpret_cast< Schedule * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_NonstandardSwap" "', argument " "8"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "8"" of type '" "IborIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< IborIndexPtr * >(argp8);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res9 = swig::asptr(obj8, &ptr);
    if (!SWIG_IsOK(res9)) {
      SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_NonstandardSwap" "', argument " "9"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "9"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg9 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res10 = swig::asptr(obj9, &ptr);
    if (!SWIG_IsOK(res10)) {
      SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_NonstandardSwap" "', argument " "10"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "10"" of type '" "std::vector< Spread,std::allocator< Spread > > const &""'"); 
    }
    arg10 = ptr;
  }
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_NonstandardSwap" "', argument " "11"" of type '" "DayCounter const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwap" "', argument " "11"" of type '" "DayCounter const &""'"); 
  }
  arg11 = reinterpret_cast< DayCounter * >(argp11);
  {
    try {
      result = (NonstandardSwapPtr *)new_NonstandardSwapPtr__SWIG_0(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(Schedule const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(DayCounter const &)*arg6,(Schedule const &)*arg7,(IborIndexPtr const &)*arg8,(std::vector< double,std::allocator< double > > const &)*arg9,(std::vector< double,std::allocator< double > > const &)*arg10,(DayCounter const &)*arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NonstandardSwapPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res9)) delete arg9;
  if (SWIG_IsNewObj(res10)) delete arg10;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NonstandardSwap(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[15] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 14) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 11) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Schedule, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_IborIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = swig::asptr(argv[8], (std::vector< double,std::allocator< double > >**)(0));
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = swig::asptr(argv[9], (std::vector< double,std::allocator< double > >**)(0));
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_DayCounter, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          return _wrap_new_NonstandardSwap__SWIG_3(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Schedule, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_IborIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = swig::asptr(argv[8], (std::vector< double,std::allocator< double > >**)(0));
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = swig::asptr(argv[9], (std::vector< double,std::allocator< double > >**)(0));
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_DayCounter, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          {
                            int res = SWIG_AsVal_bool(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            return _wrap_new_NonstandardSwap__SWIG_2(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 13) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Schedule, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_IborIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = swig::asptr(argv[8], (std::vector< double,std::allocator< double > >**)(0));
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = swig::asptr(argv[9], (std::vector< double,std::allocator< double > >**)(0));
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_DayCounter, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          {
                            int res = SWIG_AsVal_bool(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            {
                              int res = SWIG_AsVal_bool(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              return _wrap_new_NonstandardSwap__SWIG_1(self, args);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 14) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Schedule, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_IborIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = swig::asptr(argv[8], (std::vector< double,std::allocator< double > >**)(0));
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = swig::asptr(argv[9], (std::vector< double,std::allocator< double > >**)(0));
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_DayCounter, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          {
                            int res = SWIG_AsVal_bool(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            {
                              int res = SWIG_AsVal_bool(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              {
                                int res = SWIG_AsVal_int(argv[13], NULL);
                                _v = SWIG_CheckState(res);
                              }
                              if (_v) {
                                return _wrap_new_NonstandardSwap__SWIG_0(self, args);
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_NonstandardSwap'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    NonstandardSwapPtr::NonstandardSwapPtr(VanillaSwap::Type,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,Schedule const &,std::vector< Real,std::allocator< Real > > const &,DayCounter const &,Schedule const &,IborIndexPtr const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Spread,std::allocator< Spread > > const &,DayCounter const &,bool const,bool const,BusinessDayConvention)\n"
    "    NonstandardSwapPtr::NonstandardSwapPtr(VanillaSwap::Type,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,Schedule const &,std::vector< Real,std::allocator< Real > > const &,DayCounter const &,Schedule const &,IborIndexPtr const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Spread,std::allocator< Spread > > const &,DayCounter const &,bool const,bool const)\n"
    "    NonstandardSwapPtr::NonstandardSwapPtr(VanillaSwap::Type,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,Schedule const &,std::vector< Real,std::allocator< Real > > const &,DayCounter const &,Schedule const &,IborIndexPtr const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Spread,std::allocator< Spread > > const &,DayCounter const &,bool const)\n"
    "    NonstandardSwapPtr::NonstandardSwapPtr(VanillaSwap::Type,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,Schedule const &,std::vector< Real,std::allocator< Real > > const &,DayCounter const &,Schedule const &,IborIndexPtr const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Spread,std::allocator< Spread > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_NonstandardSwap_fixedLeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonstandardSwapPtr *arg1 = (NonstandardSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Leg *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NonstandardSwap_fixedLeg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NonstandardSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonstandardSwap_fixedLeg" "', argument " "1"" of type '" "NonstandardSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< NonstandardSwapPtr * >(argp1);
  {
    try {
      result = (Leg *) &NonstandardSwapPtr_fixedLeg(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NonstandardSwap_floatingLeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonstandardSwapPtr *arg1 = (NonstandardSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Leg *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NonstandardSwap_floatingLeg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NonstandardSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonstandardSwap_floatingLeg" "', argument " "1"" of type '" "NonstandardSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< NonstandardSwapPtr * >(argp1);
  {
    try {
      result = (Leg *) &NonstandardSwapPtr_floatingLeg(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NonstandardSwap_fixedNominals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonstandardSwapPtr *arg1 = (NonstandardSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NonstandardSwap_fixedNominals",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NonstandardSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonstandardSwap_fixedNominals" "', argument " "1"" of type '" "NonstandardSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< NonstandardSwapPtr * >(argp1);
  {
    try {
      result = NonstandardSwapPtr_fixedNominals(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NonstandardSwap_floatingNominals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonstandardSwapPtr *arg1 = (NonstandardSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NonstandardSwap_floatingNominals",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NonstandardSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonstandardSwap_floatingNominals" "', argument " "1"" of type '" "NonstandardSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< NonstandardSwapPtr * >(argp1);
  {
    try {
      result = NonstandardSwapPtr_floatingNominals(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NonstandardSwap_fixedSchedule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonstandardSwapPtr *arg1 = (NonstandardSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Schedule *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NonstandardSwap_fixedSchedule",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NonstandardSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonstandardSwap_fixedSchedule" "', argument " "1"" of type '" "NonstandardSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< NonstandardSwapPtr * >(argp1);
  {
    try {
      result = (Schedule *) &NonstandardSwapPtr_fixedSchedule(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Schedule, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NonstandardSwap_floatingSchedule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonstandardSwapPtr *arg1 = (NonstandardSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Schedule *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NonstandardSwap_floatingSchedule",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NonstandardSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonstandardSwap_floatingSchedule" "', argument " "1"" of type '" "NonstandardSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< NonstandardSwapPtr * >(argp1);
  {
    try {
      result = (Schedule *) &NonstandardSwapPtr_floatingSchedule(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Schedule, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NonstandardSwap_fixedRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonstandardSwapPtr *arg1 = (NonstandardSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Rate,std::allocator< Rate > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NonstandardSwap_fixedRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NonstandardSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonstandardSwap_fixedRate" "', argument " "1"" of type '" "NonstandardSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< NonstandardSwapPtr * >(argp1);
  {
    try {
      result = NonstandardSwapPtr_fixedRate(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NonstandardSwap_spreads(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonstandardSwapPtr *arg1 = (NonstandardSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Spread,std::allocator< Spread > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NonstandardSwap_spreads",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NonstandardSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonstandardSwap_spreads" "', argument " "1"" of type '" "NonstandardSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< NonstandardSwapPtr * >(argp1);
  {
    try {
      result = NonstandardSwapPtr_spreads(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NonstandardSwap_gearings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonstandardSwapPtr *arg1 = (NonstandardSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Spread,std::allocator< Spread > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NonstandardSwap_gearings",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NonstandardSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonstandardSwap_gearings" "', argument " "1"" of type '" "NonstandardSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< NonstandardSwapPtr * >(argp1);
  {
    try {
      result = NonstandardSwapPtr_gearings(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NonstandardSwap_floatingDayCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonstandardSwapPtr *arg1 = (NonstandardSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  DayCounter *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NonstandardSwap_floatingDayCount",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NonstandardSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonstandardSwap_floatingDayCount" "', argument " "1"" of type '" "NonstandardSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< NonstandardSwapPtr * >(argp1);
  {
    try {
      result = (DayCounter *) &NonstandardSwapPtr_floatingDayCount(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DayCounter, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_NonstandardSwap_fixedDayCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonstandardSwapPtr *arg1 = (NonstandardSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  DayCounter *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"NonstandardSwap_fixedDayCount",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NonstandardSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonstandardSwap_fixedDayCount" "', argument " "1"" of type '" "NonstandardSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< NonstandardSwapPtr * >(argp1);
  {
    try {
      result = (DayCounter *) &NonstandardSwapPtr_fixedDayCount(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DayCounter, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_NonstandardSwap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonstandardSwapPtr *arg1 = (NonstandardSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NonstandardSwap",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NonstandardSwapPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NonstandardSwap" "', argument " "1"" of type '" "NonstandardSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< NonstandardSwapPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NonstandardSwap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_NonstandardSwapPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DiscountingSwapEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  DiscountingSwapEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DiscountingSwapEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DiscountingSwapEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountingSwapEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DiscountingSwapEngine" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountingSwapEngine" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DiscountingSwapEngine" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountingSwapEngine" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  {
    try {
      result = (DiscountingSwapEnginePtr *)new_DiscountingSwapEnginePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(Date const &)*arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DiscountingSwapEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DiscountingSwapEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DiscountingSwapEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DiscountingSwapEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DiscountingSwapEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountingSwapEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DiscountingSwapEngine" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountingSwapEngine" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (DiscountingSwapEnginePtr *)new_DiscountingSwapEnginePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DiscountingSwapEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DiscountingSwapEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  DiscountingSwapEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DiscountingSwapEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DiscountingSwapEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountingSwapEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    try {
      result = (DiscountingSwapEnginePtr *)new_DiscountingSwapEnginePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DiscountingSwapEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DiscountingSwapEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  bool arg2 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  DiscountingSwapEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DiscountingSwapEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DiscountingSwapEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountingSwapEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DiscountingSwapEngine" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DiscountingSwapEngine" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountingSwapEngine" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_DiscountingSwapEngine" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountingSwapEngine" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  {
    try {
      result = (DiscountingSwapEnginePtr *)new_DiscountingSwapEnginePtr__SWIG_3((Handle< YieldTermStructure > const &)*arg1,arg2,(Date const &)*arg3,(Date const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DiscountingSwapEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DiscountingSwapEngine__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  bool arg2 ;
  Date *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  DiscountingSwapEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DiscountingSwapEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DiscountingSwapEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountingSwapEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DiscountingSwapEngine" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DiscountingSwapEngine" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountingSwapEngine" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  {
    try {
      result = (DiscountingSwapEnginePtr *)new_DiscountingSwapEnginePtr__SWIG_3((Handle< YieldTermStructure > const &)*arg1,arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DiscountingSwapEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DiscountingSwapEngine__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DiscountingSwapEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DiscountingSwapEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DiscountingSwapEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DiscountingSwapEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DiscountingSwapEngine" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      result = (DiscountingSwapEnginePtr *)new_DiscountingSwapEnginePtr__SWIG_3((Handle< YieldTermStructure > const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DiscountingSwapEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DiscountingSwapEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_DiscountingSwapEngine__SWIG_2(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_DiscountingSwapEngine__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_DiscountingSwapEngine__SWIG_5(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_DiscountingSwapEngine__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_DiscountingSwapEngine__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_DiscountingSwapEngine__SWIG_3(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DiscountingSwapEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    DiscountingSwapEnginePtr::DiscountingSwapEnginePtr(Handle< YieldTermStructure > const &,Date const &,Date const &)\n"
    "    DiscountingSwapEnginePtr::DiscountingSwapEnginePtr(Handle< YieldTermStructure > const &,Date const &)\n"
    "    DiscountingSwapEnginePtr::DiscountingSwapEnginePtr(Handle< YieldTermStructure > const &)\n"
    "    DiscountingSwapEnginePtr::DiscountingSwapEnginePtr(Handle< YieldTermStructure > const &,bool,Date const &,Date const &)\n"
    "    DiscountingSwapEnginePtr::DiscountingSwapEnginePtr(Handle< YieldTermStructure > const &,bool,Date const &)\n"
    "    DiscountingSwapEnginePtr::DiscountingSwapEnginePtr(Handle< YieldTermStructure > const &,bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_DiscountingSwapEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DiscountingSwapEnginePtr *arg1 = (DiscountingSwapEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DiscountingSwapEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DiscountingSwapEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DiscountingSwapEngine" "', argument " "1"" of type '" "DiscountingSwapEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< DiscountingSwapEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DiscountingSwapEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DiscountingSwapEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_AssetSwap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  bool arg1 ;
  BondPtr *arg2 = 0 ;
  Real arg3 ;
  InterestRateIndexPtr *arg4 = 0 ;
  Spread arg5 ;
  Schedule const &arg6_defvalue = Schedule() ;
  Schedule *arg6 = (Schedule *) &arg6_defvalue ;
  DayCounter const &arg7_defvalue = DayCounter() ;
  DayCounter *arg7 = (DayCounter *) &arg7_defvalue ;
  bool arg8 = (bool) true ;
  bool val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  bool val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  char *  kwnames[] = {
    (char *) "payFixedRate",(char *) "bond",(char *) "bondCleanPrice",(char *) "index",(char *) "spread",(char *) "floatSchedule",(char *) "floatingDayCount",(char *) "parAssetSwap", NULL 
  };
  AssetSwapPtr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:new_AssetSwap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_AssetSwap" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AssetSwap" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssetSwap" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_AssetSwap" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_AssetSwap" "', argument " "4"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssetSwap" "', argument " "4"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< InterestRateIndexPtr * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_AssetSwap" "', argument " "5"" of type '" "Spread""'");
  } 
  arg5 = static_cast< Spread >(val5);
  if (obj5) {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_Schedule,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_AssetSwap" "', argument " "6"" of type '" "Schedule const &""'"); 
    }
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssetSwap" "', argument " "6"" of type '" "Schedule const &""'"); 
    }
    arg6 = reinterpret_cast< Schedule * >(argp6);
  }
  if (obj6) {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_AssetSwap" "', argument " "7"" of type '" "DayCounter const &""'"); 
    }
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AssetSwap" "', argument " "7"" of type '" "DayCounter const &""'"); 
    }
    arg7 = reinterpret_cast< DayCounter * >(argp7);
  }
  if (obj7) {
    ecode8 = SWIG_AsVal_bool(obj7, &val8);
    if (!SWIG_IsOK(ecode8)) {
      SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_AssetSwap" "', argument " "8"" of type '" "bool""'");
    } 
    arg8 = static_cast< bool >(val8);
  }
  {
    try {
      result = (AssetSwapPtr *)new_AssetSwapPtr(arg1,(BondPtr const &)*arg2,arg3,(InterestRateIndexPtr const &)*arg4,arg5,(Schedule const &)*arg6,(DayCounter const &)*arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AssetSwapPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_AssetSwap_fairCleanPrice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AssetSwapPtr *arg1 = (AssetSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"AssetSwap_fairCleanPrice",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AssetSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssetSwap_fairCleanPrice" "', argument " "1"" of type '" "AssetSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< AssetSwapPtr * >(argp1);
  {
    try {
      result = (Real)AssetSwapPtr_fairCleanPrice(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_AssetSwap_fairSpread(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AssetSwapPtr *arg1 = (AssetSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Spread result;
  
  if(!PyArg_UnpackTuple(args,(char *)"AssetSwap_fairSpread",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AssetSwapPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssetSwap_fairSpread" "', argument " "1"" of type '" "AssetSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< AssetSwapPtr * >(argp1);
  {
    try {
      result = (Spread)AssetSwapPtr_fairSpread(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_AssetSwap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  AssetSwapPtr *arg1 = (AssetSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_AssetSwap",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AssetSwapPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AssetSwap" "', argument " "1"" of type '" "AssetSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< AssetSwapPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *AssetSwap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_AssetSwapPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FloatFloatSwap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwap::Type arg1 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  Schedule *arg4 = 0 ;
  InterestRateIndexPtr *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  Schedule *arg7 = 0 ;
  InterestRateIndexPtr *arg8 = 0 ;
  DayCounter *arg9 = 0 ;
  bool arg10 ;
  bool arg11 ;
  std::vector< Real,std::allocator< Real > > *arg12 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg13 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg14 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg15 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg16 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg17 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg18 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg19 = 0 ;
  BusinessDayConvention arg20 ;
  BusinessDayConvention arg21 ;
  int val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  bool val10 ;
  int ecode10 = 0 ;
  bool val11 ;
  int ecode11 = 0 ;
  int res12 = SWIG_OLDOBJ ;
  int res13 = SWIG_OLDOBJ ;
  int res14 = SWIG_OLDOBJ ;
  int res15 = SWIG_OLDOBJ ;
  int res16 = SWIG_OLDOBJ ;
  int res17 = SWIG_OLDOBJ ;
  int res18 = SWIG_OLDOBJ ;
  int res19 = SWIG_OLDOBJ ;
  int val20 ;
  int ecode20 = 0 ;
  int val21 ;
  int ecode21 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  PyObject * obj14 = 0 ;
  PyObject * obj15 = 0 ;
  PyObject * obj16 = 0 ;
  PyObject * obj17 = 0 ;
  PyObject * obj18 = 0 ;
  PyObject * obj19 = 0 ;
  PyObject * obj20 = 0 ;
  FloatFloatSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FloatFloatSwap",21,21,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15,&obj16,&obj17,&obj18,&obj19,&obj20)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloatFloatSwap" "', argument " "1"" of type '" "VanillaSwap::Type""'");
  } 
  arg1 = static_cast< VanillaSwap::Type >(val1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg5 = reinterpret_cast< InterestRateIndexPtr * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  arg7 = reinterpret_cast< Schedule * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< InterestRateIndexPtr * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_bool(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_FloatFloatSwap" "', argument " "10"" of type '" "bool""'");
  } 
  arg10 = static_cast< bool >(val10);
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_FloatFloatSwap" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res12 = swig::asptr(obj11, &ptr);
    if (!SWIG_IsOK(res12)) {
      SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg12 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res13 = swig::asptr(obj12, &ptr);
    if (!SWIG_IsOK(res13)) {
      SWIG_exception_fail(SWIG_ArgError(res13), "in method '" "new_FloatFloatSwap" "', argument " "13"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "13"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg13 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res14 = swig::asptr(obj13, &ptr);
    if (!SWIG_IsOK(res14)) {
      SWIG_exception_fail(SWIG_ArgError(res14), "in method '" "new_FloatFloatSwap" "', argument " "14"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "14"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg14 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res15 = swig::asptr(obj14, &ptr);
    if (!SWIG_IsOK(res15)) {
      SWIG_exception_fail(SWIG_ArgError(res15), "in method '" "new_FloatFloatSwap" "', argument " "15"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "15"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg15 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res16 = swig::asptr(obj15, &ptr);
    if (!SWIG_IsOK(res16)) {
      SWIG_exception_fail(SWIG_ArgError(res16), "in method '" "new_FloatFloatSwap" "', argument " "16"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "16"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg16 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res17 = swig::asptr(obj16, &ptr);
    if (!SWIG_IsOK(res17)) {
      SWIG_exception_fail(SWIG_ArgError(res17), "in method '" "new_FloatFloatSwap" "', argument " "17"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "17"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg17 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res18 = swig::asptr(obj17, &ptr);
    if (!SWIG_IsOK(res18)) {
      SWIG_exception_fail(SWIG_ArgError(res18), "in method '" "new_FloatFloatSwap" "', argument " "18"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "18"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg18 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res19 = swig::asptr(obj18, &ptr);
    if (!SWIG_IsOK(res19)) {
      SWIG_exception_fail(SWIG_ArgError(res19), "in method '" "new_FloatFloatSwap" "', argument " "19"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "19"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg19 = ptr;
  }
  ecode20 = SWIG_AsVal_int(obj19, &val20);
  if (!SWIG_IsOK(ecode20)) {
    SWIG_exception_fail(SWIG_ArgError(ecode20), "in method '" "new_FloatFloatSwap" "', argument " "20"" of type '" "BusinessDayConvention""'");
  } 
  arg20 = static_cast< BusinessDayConvention >(val20);
  ecode21 = SWIG_AsVal_int(obj20, &val21);
  if (!SWIG_IsOK(ecode21)) {
    SWIG_exception_fail(SWIG_ArgError(ecode21), "in method '" "new_FloatFloatSwap" "', argument " "21"" of type '" "BusinessDayConvention""'");
  } 
  arg21 = static_cast< BusinessDayConvention >(val21);
  {
    try {
      result = (FloatFloatSwapPtr *)new_FloatFloatSwapPtr__SWIG_0(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(Schedule const &)*arg4,(InterestRateIndexPtr const &)*arg5,(DayCounter const &)*arg6,(Schedule const &)*arg7,(InterestRateIndexPtr const &)*arg8,(DayCounter const &)*arg9,arg10,arg11,(std::vector< double,std::allocator< double > > const &)*arg12,(std::vector< double,std::allocator< double > > const &)*arg13,(std::vector< double,std::allocator< double > > const &)*arg14,(std::vector< double,std::allocator< double > > const &)*arg15,(std::vector< double,std::allocator< double > > const &)*arg16,(std::vector< double,std::allocator< double > > const &)*arg17,(std::vector< double,std::allocator< double > > const &)*arg18,(std::vector< double,std::allocator< double > > const &)*arg19,arg20,arg21);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloatFloatSwapPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  if (SWIG_IsNewObj(res13)) delete arg13;
  if (SWIG_IsNewObj(res14)) delete arg14;
  if (SWIG_IsNewObj(res15)) delete arg15;
  if (SWIG_IsNewObj(res16)) delete arg16;
  if (SWIG_IsNewObj(res17)) delete arg17;
  if (SWIG_IsNewObj(res18)) delete arg18;
  if (SWIG_IsNewObj(res19)) delete arg19;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  if (SWIG_IsNewObj(res13)) delete arg13;
  if (SWIG_IsNewObj(res14)) delete arg14;
  if (SWIG_IsNewObj(res15)) delete arg15;
  if (SWIG_IsNewObj(res16)) delete arg16;
  if (SWIG_IsNewObj(res17)) delete arg17;
  if (SWIG_IsNewObj(res18)) delete arg18;
  if (SWIG_IsNewObj(res19)) delete arg19;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FloatFloatSwap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwap::Type arg1 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  Schedule *arg4 = 0 ;
  InterestRateIndexPtr *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  Schedule *arg7 = 0 ;
  InterestRateIndexPtr *arg8 = 0 ;
  DayCounter *arg9 = 0 ;
  bool arg10 ;
  bool arg11 ;
  std::vector< Real,std::allocator< Real > > *arg12 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg13 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg14 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg15 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg16 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg17 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg18 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg19 = 0 ;
  BusinessDayConvention arg20 ;
  int val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  bool val10 ;
  int ecode10 = 0 ;
  bool val11 ;
  int ecode11 = 0 ;
  int res12 = SWIG_OLDOBJ ;
  int res13 = SWIG_OLDOBJ ;
  int res14 = SWIG_OLDOBJ ;
  int res15 = SWIG_OLDOBJ ;
  int res16 = SWIG_OLDOBJ ;
  int res17 = SWIG_OLDOBJ ;
  int res18 = SWIG_OLDOBJ ;
  int res19 = SWIG_OLDOBJ ;
  int val20 ;
  int ecode20 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  PyObject * obj14 = 0 ;
  PyObject * obj15 = 0 ;
  PyObject * obj16 = 0 ;
  PyObject * obj17 = 0 ;
  PyObject * obj18 = 0 ;
  PyObject * obj19 = 0 ;
  FloatFloatSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FloatFloatSwap",20,20,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15,&obj16,&obj17,&obj18,&obj19)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloatFloatSwap" "', argument " "1"" of type '" "VanillaSwap::Type""'");
  } 
  arg1 = static_cast< VanillaSwap::Type >(val1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg5 = reinterpret_cast< InterestRateIndexPtr * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  arg7 = reinterpret_cast< Schedule * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< InterestRateIndexPtr * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_bool(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_FloatFloatSwap" "', argument " "10"" of type '" "bool""'");
  } 
  arg10 = static_cast< bool >(val10);
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_FloatFloatSwap" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res12 = swig::asptr(obj11, &ptr);
    if (!SWIG_IsOK(res12)) {
      SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg12 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res13 = swig::asptr(obj12, &ptr);
    if (!SWIG_IsOK(res13)) {
      SWIG_exception_fail(SWIG_ArgError(res13), "in method '" "new_FloatFloatSwap" "', argument " "13"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "13"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg13 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res14 = swig::asptr(obj13, &ptr);
    if (!SWIG_IsOK(res14)) {
      SWIG_exception_fail(SWIG_ArgError(res14), "in method '" "new_FloatFloatSwap" "', argument " "14"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "14"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg14 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res15 = swig::asptr(obj14, &ptr);
    if (!SWIG_IsOK(res15)) {
      SWIG_exception_fail(SWIG_ArgError(res15), "in method '" "new_FloatFloatSwap" "', argument " "15"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "15"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg15 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res16 = swig::asptr(obj15, &ptr);
    if (!SWIG_IsOK(res16)) {
      SWIG_exception_fail(SWIG_ArgError(res16), "in method '" "new_FloatFloatSwap" "', argument " "16"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "16"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg16 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res17 = swig::asptr(obj16, &ptr);
    if (!SWIG_IsOK(res17)) {
      SWIG_exception_fail(SWIG_ArgError(res17), "in method '" "new_FloatFloatSwap" "', argument " "17"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "17"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg17 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res18 = swig::asptr(obj17, &ptr);
    if (!SWIG_IsOK(res18)) {
      SWIG_exception_fail(SWIG_ArgError(res18), "in method '" "new_FloatFloatSwap" "', argument " "18"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "18"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg18 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res19 = swig::asptr(obj18, &ptr);
    if (!SWIG_IsOK(res19)) {
      SWIG_exception_fail(SWIG_ArgError(res19), "in method '" "new_FloatFloatSwap" "', argument " "19"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "19"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg19 = ptr;
  }
  ecode20 = SWIG_AsVal_int(obj19, &val20);
  if (!SWIG_IsOK(ecode20)) {
    SWIG_exception_fail(SWIG_ArgError(ecode20), "in method '" "new_FloatFloatSwap" "', argument " "20"" of type '" "BusinessDayConvention""'");
  } 
  arg20 = static_cast< BusinessDayConvention >(val20);
  {
    try {
      result = (FloatFloatSwapPtr *)new_FloatFloatSwapPtr__SWIG_0(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(Schedule const &)*arg4,(InterestRateIndexPtr const &)*arg5,(DayCounter const &)*arg6,(Schedule const &)*arg7,(InterestRateIndexPtr const &)*arg8,(DayCounter const &)*arg9,arg10,arg11,(std::vector< double,std::allocator< double > > const &)*arg12,(std::vector< double,std::allocator< double > > const &)*arg13,(std::vector< double,std::allocator< double > > const &)*arg14,(std::vector< double,std::allocator< double > > const &)*arg15,(std::vector< double,std::allocator< double > > const &)*arg16,(std::vector< double,std::allocator< double > > const &)*arg17,(std::vector< double,std::allocator< double > > const &)*arg18,(std::vector< double,std::allocator< double > > const &)*arg19,arg20);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloatFloatSwapPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  if (SWIG_IsNewObj(res13)) delete arg13;
  if (SWIG_IsNewObj(res14)) delete arg14;
  if (SWIG_IsNewObj(res15)) delete arg15;
  if (SWIG_IsNewObj(res16)) delete arg16;
  if (SWIG_IsNewObj(res17)) delete arg17;
  if (SWIG_IsNewObj(res18)) delete arg18;
  if (SWIG_IsNewObj(res19)) delete arg19;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  if (SWIG_IsNewObj(res13)) delete arg13;
  if (SWIG_IsNewObj(res14)) delete arg14;
  if (SWIG_IsNewObj(res15)) delete arg15;
  if (SWIG_IsNewObj(res16)) delete arg16;
  if (SWIG_IsNewObj(res17)) delete arg17;
  if (SWIG_IsNewObj(res18)) delete arg18;
  if (SWIG_IsNewObj(res19)) delete arg19;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FloatFloatSwap__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwap::Type arg1 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  Schedule *arg4 = 0 ;
  InterestRateIndexPtr *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  Schedule *arg7 = 0 ;
  InterestRateIndexPtr *arg8 = 0 ;
  DayCounter *arg9 = 0 ;
  bool arg10 ;
  bool arg11 ;
  std::vector< Real,std::allocator< Real > > *arg12 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg13 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg14 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg15 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg16 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg17 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg18 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg19 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  bool val10 ;
  int ecode10 = 0 ;
  bool val11 ;
  int ecode11 = 0 ;
  int res12 = SWIG_OLDOBJ ;
  int res13 = SWIG_OLDOBJ ;
  int res14 = SWIG_OLDOBJ ;
  int res15 = SWIG_OLDOBJ ;
  int res16 = SWIG_OLDOBJ ;
  int res17 = SWIG_OLDOBJ ;
  int res18 = SWIG_OLDOBJ ;
  int res19 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  PyObject * obj14 = 0 ;
  PyObject * obj15 = 0 ;
  PyObject * obj16 = 0 ;
  PyObject * obj17 = 0 ;
  PyObject * obj18 = 0 ;
  FloatFloatSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FloatFloatSwap",19,19,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15,&obj16,&obj17,&obj18)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloatFloatSwap" "', argument " "1"" of type '" "VanillaSwap::Type""'");
  } 
  arg1 = static_cast< VanillaSwap::Type >(val1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg5 = reinterpret_cast< InterestRateIndexPtr * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  arg7 = reinterpret_cast< Schedule * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< InterestRateIndexPtr * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_bool(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_FloatFloatSwap" "', argument " "10"" of type '" "bool""'");
  } 
  arg10 = static_cast< bool >(val10);
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_FloatFloatSwap" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res12 = swig::asptr(obj11, &ptr);
    if (!SWIG_IsOK(res12)) {
      SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg12 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res13 = swig::asptr(obj12, &ptr);
    if (!SWIG_IsOK(res13)) {
      SWIG_exception_fail(SWIG_ArgError(res13), "in method '" "new_FloatFloatSwap" "', argument " "13"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "13"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg13 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res14 = swig::asptr(obj13, &ptr);
    if (!SWIG_IsOK(res14)) {
      SWIG_exception_fail(SWIG_ArgError(res14), "in method '" "new_FloatFloatSwap" "', argument " "14"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "14"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg14 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res15 = swig::asptr(obj14, &ptr);
    if (!SWIG_IsOK(res15)) {
      SWIG_exception_fail(SWIG_ArgError(res15), "in method '" "new_FloatFloatSwap" "', argument " "15"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "15"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg15 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res16 = swig::asptr(obj15, &ptr);
    if (!SWIG_IsOK(res16)) {
      SWIG_exception_fail(SWIG_ArgError(res16), "in method '" "new_FloatFloatSwap" "', argument " "16"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "16"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg16 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res17 = swig::asptr(obj16, &ptr);
    if (!SWIG_IsOK(res17)) {
      SWIG_exception_fail(SWIG_ArgError(res17), "in method '" "new_FloatFloatSwap" "', argument " "17"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "17"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg17 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res18 = swig::asptr(obj17, &ptr);
    if (!SWIG_IsOK(res18)) {
      SWIG_exception_fail(SWIG_ArgError(res18), "in method '" "new_FloatFloatSwap" "', argument " "18"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "18"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg18 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res19 = swig::asptr(obj18, &ptr);
    if (!SWIG_IsOK(res19)) {
      SWIG_exception_fail(SWIG_ArgError(res19), "in method '" "new_FloatFloatSwap" "', argument " "19"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "19"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg19 = ptr;
  }
  {
    try {
      result = (FloatFloatSwapPtr *)new_FloatFloatSwapPtr__SWIG_0(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(Schedule const &)*arg4,(InterestRateIndexPtr const &)*arg5,(DayCounter const &)*arg6,(Schedule const &)*arg7,(InterestRateIndexPtr const &)*arg8,(DayCounter const &)*arg9,arg10,arg11,(std::vector< double,std::allocator< double > > const &)*arg12,(std::vector< double,std::allocator< double > > const &)*arg13,(std::vector< double,std::allocator< double > > const &)*arg14,(std::vector< double,std::allocator< double > > const &)*arg15,(std::vector< double,std::allocator< double > > const &)*arg16,(std::vector< double,std::allocator< double > > const &)*arg17,(std::vector< double,std::allocator< double > > const &)*arg18,(std::vector< double,std::allocator< double > > const &)*arg19);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloatFloatSwapPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  if (SWIG_IsNewObj(res13)) delete arg13;
  if (SWIG_IsNewObj(res14)) delete arg14;
  if (SWIG_IsNewObj(res15)) delete arg15;
  if (SWIG_IsNewObj(res16)) delete arg16;
  if (SWIG_IsNewObj(res17)) delete arg17;
  if (SWIG_IsNewObj(res18)) delete arg18;
  if (SWIG_IsNewObj(res19)) delete arg19;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  if (SWIG_IsNewObj(res13)) delete arg13;
  if (SWIG_IsNewObj(res14)) delete arg14;
  if (SWIG_IsNewObj(res15)) delete arg15;
  if (SWIG_IsNewObj(res16)) delete arg16;
  if (SWIG_IsNewObj(res17)) delete arg17;
  if (SWIG_IsNewObj(res18)) delete arg18;
  if (SWIG_IsNewObj(res19)) delete arg19;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FloatFloatSwap__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwap::Type arg1 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  Schedule *arg4 = 0 ;
  InterestRateIndexPtr *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  Schedule *arg7 = 0 ;
  InterestRateIndexPtr *arg8 = 0 ;
  DayCounter *arg9 = 0 ;
  bool arg10 ;
  bool arg11 ;
  std::vector< Real,std::allocator< Real > > *arg12 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg13 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg14 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg15 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg16 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg17 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg18 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  bool val10 ;
  int ecode10 = 0 ;
  bool val11 ;
  int ecode11 = 0 ;
  int res12 = SWIG_OLDOBJ ;
  int res13 = SWIG_OLDOBJ ;
  int res14 = SWIG_OLDOBJ ;
  int res15 = SWIG_OLDOBJ ;
  int res16 = SWIG_OLDOBJ ;
  int res17 = SWIG_OLDOBJ ;
  int res18 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  PyObject * obj14 = 0 ;
  PyObject * obj15 = 0 ;
  PyObject * obj16 = 0 ;
  PyObject * obj17 = 0 ;
  FloatFloatSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FloatFloatSwap",18,18,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15,&obj16,&obj17)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloatFloatSwap" "', argument " "1"" of type '" "VanillaSwap::Type""'");
  } 
  arg1 = static_cast< VanillaSwap::Type >(val1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg5 = reinterpret_cast< InterestRateIndexPtr * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  arg7 = reinterpret_cast< Schedule * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< InterestRateIndexPtr * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_bool(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_FloatFloatSwap" "', argument " "10"" of type '" "bool""'");
  } 
  arg10 = static_cast< bool >(val10);
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_FloatFloatSwap" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res12 = swig::asptr(obj11, &ptr);
    if (!SWIG_IsOK(res12)) {
      SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg12 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res13 = swig::asptr(obj12, &ptr);
    if (!SWIG_IsOK(res13)) {
      SWIG_exception_fail(SWIG_ArgError(res13), "in method '" "new_FloatFloatSwap" "', argument " "13"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "13"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg13 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res14 = swig::asptr(obj13, &ptr);
    if (!SWIG_IsOK(res14)) {
      SWIG_exception_fail(SWIG_ArgError(res14), "in method '" "new_FloatFloatSwap" "', argument " "14"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "14"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg14 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res15 = swig::asptr(obj14, &ptr);
    if (!SWIG_IsOK(res15)) {
      SWIG_exception_fail(SWIG_ArgError(res15), "in method '" "new_FloatFloatSwap" "', argument " "15"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "15"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg15 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res16 = swig::asptr(obj15, &ptr);
    if (!SWIG_IsOK(res16)) {
      SWIG_exception_fail(SWIG_ArgError(res16), "in method '" "new_FloatFloatSwap" "', argument " "16"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "16"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg16 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res17 = swig::asptr(obj16, &ptr);
    if (!SWIG_IsOK(res17)) {
      SWIG_exception_fail(SWIG_ArgError(res17), "in method '" "new_FloatFloatSwap" "', argument " "17"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "17"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg17 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res18 = swig::asptr(obj17, &ptr);
    if (!SWIG_IsOK(res18)) {
      SWIG_exception_fail(SWIG_ArgError(res18), "in method '" "new_FloatFloatSwap" "', argument " "18"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "18"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg18 = ptr;
  }
  {
    try {
      result = (FloatFloatSwapPtr *)new_FloatFloatSwapPtr__SWIG_0(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(Schedule const &)*arg4,(InterestRateIndexPtr const &)*arg5,(DayCounter const &)*arg6,(Schedule const &)*arg7,(InterestRateIndexPtr const &)*arg8,(DayCounter const &)*arg9,arg10,arg11,(std::vector< double,std::allocator< double > > const &)*arg12,(std::vector< double,std::allocator< double > > const &)*arg13,(std::vector< double,std::allocator< double > > const &)*arg14,(std::vector< double,std::allocator< double > > const &)*arg15,(std::vector< double,std::allocator< double > > const &)*arg16,(std::vector< double,std::allocator< double > > const &)*arg17,(std::vector< double,std::allocator< double > > const &)*arg18);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloatFloatSwapPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  if (SWIG_IsNewObj(res13)) delete arg13;
  if (SWIG_IsNewObj(res14)) delete arg14;
  if (SWIG_IsNewObj(res15)) delete arg15;
  if (SWIG_IsNewObj(res16)) delete arg16;
  if (SWIG_IsNewObj(res17)) delete arg17;
  if (SWIG_IsNewObj(res18)) delete arg18;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  if (SWIG_IsNewObj(res13)) delete arg13;
  if (SWIG_IsNewObj(res14)) delete arg14;
  if (SWIG_IsNewObj(res15)) delete arg15;
  if (SWIG_IsNewObj(res16)) delete arg16;
  if (SWIG_IsNewObj(res17)) delete arg17;
  if (SWIG_IsNewObj(res18)) delete arg18;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FloatFloatSwap__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwap::Type arg1 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  Schedule *arg4 = 0 ;
  InterestRateIndexPtr *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  Schedule *arg7 = 0 ;
  InterestRateIndexPtr *arg8 = 0 ;
  DayCounter *arg9 = 0 ;
  bool arg10 ;
  bool arg11 ;
  std::vector< Real,std::allocator< Real > > *arg12 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg13 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg14 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg15 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg16 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg17 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  bool val10 ;
  int ecode10 = 0 ;
  bool val11 ;
  int ecode11 = 0 ;
  int res12 = SWIG_OLDOBJ ;
  int res13 = SWIG_OLDOBJ ;
  int res14 = SWIG_OLDOBJ ;
  int res15 = SWIG_OLDOBJ ;
  int res16 = SWIG_OLDOBJ ;
  int res17 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  PyObject * obj14 = 0 ;
  PyObject * obj15 = 0 ;
  PyObject * obj16 = 0 ;
  FloatFloatSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FloatFloatSwap",17,17,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15,&obj16)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloatFloatSwap" "', argument " "1"" of type '" "VanillaSwap::Type""'");
  } 
  arg1 = static_cast< VanillaSwap::Type >(val1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg5 = reinterpret_cast< InterestRateIndexPtr * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  arg7 = reinterpret_cast< Schedule * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< InterestRateIndexPtr * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_bool(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_FloatFloatSwap" "', argument " "10"" of type '" "bool""'");
  } 
  arg10 = static_cast< bool >(val10);
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_FloatFloatSwap" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res12 = swig::asptr(obj11, &ptr);
    if (!SWIG_IsOK(res12)) {
      SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg12 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res13 = swig::asptr(obj12, &ptr);
    if (!SWIG_IsOK(res13)) {
      SWIG_exception_fail(SWIG_ArgError(res13), "in method '" "new_FloatFloatSwap" "', argument " "13"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "13"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg13 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res14 = swig::asptr(obj13, &ptr);
    if (!SWIG_IsOK(res14)) {
      SWIG_exception_fail(SWIG_ArgError(res14), "in method '" "new_FloatFloatSwap" "', argument " "14"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "14"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg14 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res15 = swig::asptr(obj14, &ptr);
    if (!SWIG_IsOK(res15)) {
      SWIG_exception_fail(SWIG_ArgError(res15), "in method '" "new_FloatFloatSwap" "', argument " "15"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "15"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg15 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res16 = swig::asptr(obj15, &ptr);
    if (!SWIG_IsOK(res16)) {
      SWIG_exception_fail(SWIG_ArgError(res16), "in method '" "new_FloatFloatSwap" "', argument " "16"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "16"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg16 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res17 = swig::asptr(obj16, &ptr);
    if (!SWIG_IsOK(res17)) {
      SWIG_exception_fail(SWIG_ArgError(res17), "in method '" "new_FloatFloatSwap" "', argument " "17"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "17"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg17 = ptr;
  }
  {
    try {
      result = (FloatFloatSwapPtr *)new_FloatFloatSwapPtr__SWIG_0(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(Schedule const &)*arg4,(InterestRateIndexPtr const &)*arg5,(DayCounter const &)*arg6,(Schedule const &)*arg7,(InterestRateIndexPtr const &)*arg8,(DayCounter const &)*arg9,arg10,arg11,(std::vector< double,std::allocator< double > > const &)*arg12,(std::vector< double,std::allocator< double > > const &)*arg13,(std::vector< double,std::allocator< double > > const &)*arg14,(std::vector< double,std::allocator< double > > const &)*arg15,(std::vector< double,std::allocator< double > > const &)*arg16,(std::vector< double,std::allocator< double > > const &)*arg17);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloatFloatSwapPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  if (SWIG_IsNewObj(res13)) delete arg13;
  if (SWIG_IsNewObj(res14)) delete arg14;
  if (SWIG_IsNewObj(res15)) delete arg15;
  if (SWIG_IsNewObj(res16)) delete arg16;
  if (SWIG_IsNewObj(res17)) delete arg17;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  if (SWIG_IsNewObj(res13)) delete arg13;
  if (SWIG_IsNewObj(res14)) delete arg14;
  if (SWIG_IsNewObj(res15)) delete arg15;
  if (SWIG_IsNewObj(res16)) delete arg16;
  if (SWIG_IsNewObj(res17)) delete arg17;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FloatFloatSwap__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwap::Type arg1 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  Schedule *arg4 = 0 ;
  InterestRateIndexPtr *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  Schedule *arg7 = 0 ;
  InterestRateIndexPtr *arg8 = 0 ;
  DayCounter *arg9 = 0 ;
  bool arg10 ;
  bool arg11 ;
  std::vector< Real,std::allocator< Real > > *arg12 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg13 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg14 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg15 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg16 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  bool val10 ;
  int ecode10 = 0 ;
  bool val11 ;
  int ecode11 = 0 ;
  int res12 = SWIG_OLDOBJ ;
  int res13 = SWIG_OLDOBJ ;
  int res14 = SWIG_OLDOBJ ;
  int res15 = SWIG_OLDOBJ ;
  int res16 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  PyObject * obj14 = 0 ;
  PyObject * obj15 = 0 ;
  FloatFloatSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FloatFloatSwap",16,16,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloatFloatSwap" "', argument " "1"" of type '" "VanillaSwap::Type""'");
  } 
  arg1 = static_cast< VanillaSwap::Type >(val1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg5 = reinterpret_cast< InterestRateIndexPtr * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  arg7 = reinterpret_cast< Schedule * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< InterestRateIndexPtr * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_bool(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_FloatFloatSwap" "', argument " "10"" of type '" "bool""'");
  } 
  arg10 = static_cast< bool >(val10);
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_FloatFloatSwap" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res12 = swig::asptr(obj11, &ptr);
    if (!SWIG_IsOK(res12)) {
      SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg12 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res13 = swig::asptr(obj12, &ptr);
    if (!SWIG_IsOK(res13)) {
      SWIG_exception_fail(SWIG_ArgError(res13), "in method '" "new_FloatFloatSwap" "', argument " "13"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "13"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg13 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res14 = swig::asptr(obj13, &ptr);
    if (!SWIG_IsOK(res14)) {
      SWIG_exception_fail(SWIG_ArgError(res14), "in method '" "new_FloatFloatSwap" "', argument " "14"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "14"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg14 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res15 = swig::asptr(obj14, &ptr);
    if (!SWIG_IsOK(res15)) {
      SWIG_exception_fail(SWIG_ArgError(res15), "in method '" "new_FloatFloatSwap" "', argument " "15"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "15"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg15 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res16 = swig::asptr(obj15, &ptr);
    if (!SWIG_IsOK(res16)) {
      SWIG_exception_fail(SWIG_ArgError(res16), "in method '" "new_FloatFloatSwap" "', argument " "16"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "16"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg16 = ptr;
  }
  {
    try {
      result = (FloatFloatSwapPtr *)new_FloatFloatSwapPtr__SWIG_0(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(Schedule const &)*arg4,(InterestRateIndexPtr const &)*arg5,(DayCounter const &)*arg6,(Schedule const &)*arg7,(InterestRateIndexPtr const &)*arg8,(DayCounter const &)*arg9,arg10,arg11,(std::vector< double,std::allocator< double > > const &)*arg12,(std::vector< double,std::allocator< double > > const &)*arg13,(std::vector< double,std::allocator< double > > const &)*arg14,(std::vector< double,std::allocator< double > > const &)*arg15,(std::vector< double,std::allocator< double > > const &)*arg16);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloatFloatSwapPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  if (SWIG_IsNewObj(res13)) delete arg13;
  if (SWIG_IsNewObj(res14)) delete arg14;
  if (SWIG_IsNewObj(res15)) delete arg15;
  if (SWIG_IsNewObj(res16)) delete arg16;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  if (SWIG_IsNewObj(res13)) delete arg13;
  if (SWIG_IsNewObj(res14)) delete arg14;
  if (SWIG_IsNewObj(res15)) delete arg15;
  if (SWIG_IsNewObj(res16)) delete arg16;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FloatFloatSwap__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwap::Type arg1 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  Schedule *arg4 = 0 ;
  InterestRateIndexPtr *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  Schedule *arg7 = 0 ;
  InterestRateIndexPtr *arg8 = 0 ;
  DayCounter *arg9 = 0 ;
  bool arg10 ;
  bool arg11 ;
  std::vector< Real,std::allocator< Real > > *arg12 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg13 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg14 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg15 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  bool val10 ;
  int ecode10 = 0 ;
  bool val11 ;
  int ecode11 = 0 ;
  int res12 = SWIG_OLDOBJ ;
  int res13 = SWIG_OLDOBJ ;
  int res14 = SWIG_OLDOBJ ;
  int res15 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  PyObject * obj14 = 0 ;
  FloatFloatSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FloatFloatSwap",15,15,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloatFloatSwap" "', argument " "1"" of type '" "VanillaSwap::Type""'");
  } 
  arg1 = static_cast< VanillaSwap::Type >(val1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg5 = reinterpret_cast< InterestRateIndexPtr * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  arg7 = reinterpret_cast< Schedule * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< InterestRateIndexPtr * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_bool(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_FloatFloatSwap" "', argument " "10"" of type '" "bool""'");
  } 
  arg10 = static_cast< bool >(val10);
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_FloatFloatSwap" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res12 = swig::asptr(obj11, &ptr);
    if (!SWIG_IsOK(res12)) {
      SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg12 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res13 = swig::asptr(obj12, &ptr);
    if (!SWIG_IsOK(res13)) {
      SWIG_exception_fail(SWIG_ArgError(res13), "in method '" "new_FloatFloatSwap" "', argument " "13"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "13"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg13 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res14 = swig::asptr(obj13, &ptr);
    if (!SWIG_IsOK(res14)) {
      SWIG_exception_fail(SWIG_ArgError(res14), "in method '" "new_FloatFloatSwap" "', argument " "14"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "14"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg14 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res15 = swig::asptr(obj14, &ptr);
    if (!SWIG_IsOK(res15)) {
      SWIG_exception_fail(SWIG_ArgError(res15), "in method '" "new_FloatFloatSwap" "', argument " "15"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "15"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg15 = ptr;
  }
  {
    try {
      result = (FloatFloatSwapPtr *)new_FloatFloatSwapPtr__SWIG_0(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(Schedule const &)*arg4,(InterestRateIndexPtr const &)*arg5,(DayCounter const &)*arg6,(Schedule const &)*arg7,(InterestRateIndexPtr const &)*arg8,(DayCounter const &)*arg9,arg10,arg11,(std::vector< double,std::allocator< double > > const &)*arg12,(std::vector< double,std::allocator< double > > const &)*arg13,(std::vector< double,std::allocator< double > > const &)*arg14,(std::vector< double,std::allocator< double > > const &)*arg15);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloatFloatSwapPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  if (SWIG_IsNewObj(res13)) delete arg13;
  if (SWIG_IsNewObj(res14)) delete arg14;
  if (SWIG_IsNewObj(res15)) delete arg15;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  if (SWIG_IsNewObj(res13)) delete arg13;
  if (SWIG_IsNewObj(res14)) delete arg14;
  if (SWIG_IsNewObj(res15)) delete arg15;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FloatFloatSwap__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwap::Type arg1 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  Schedule *arg4 = 0 ;
  InterestRateIndexPtr *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  Schedule *arg7 = 0 ;
  InterestRateIndexPtr *arg8 = 0 ;
  DayCounter *arg9 = 0 ;
  bool arg10 ;
  bool arg11 ;
  std::vector< Real,std::allocator< Real > > *arg12 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg13 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg14 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  bool val10 ;
  int ecode10 = 0 ;
  bool val11 ;
  int ecode11 = 0 ;
  int res12 = SWIG_OLDOBJ ;
  int res13 = SWIG_OLDOBJ ;
  int res14 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  FloatFloatSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FloatFloatSwap",14,14,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloatFloatSwap" "', argument " "1"" of type '" "VanillaSwap::Type""'");
  } 
  arg1 = static_cast< VanillaSwap::Type >(val1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg5 = reinterpret_cast< InterestRateIndexPtr * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  arg7 = reinterpret_cast< Schedule * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< InterestRateIndexPtr * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_bool(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_FloatFloatSwap" "', argument " "10"" of type '" "bool""'");
  } 
  arg10 = static_cast< bool >(val10);
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_FloatFloatSwap" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res12 = swig::asptr(obj11, &ptr);
    if (!SWIG_IsOK(res12)) {
      SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg12 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res13 = swig::asptr(obj12, &ptr);
    if (!SWIG_IsOK(res13)) {
      SWIG_exception_fail(SWIG_ArgError(res13), "in method '" "new_FloatFloatSwap" "', argument " "13"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "13"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg13 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res14 = swig::asptr(obj13, &ptr);
    if (!SWIG_IsOK(res14)) {
      SWIG_exception_fail(SWIG_ArgError(res14), "in method '" "new_FloatFloatSwap" "', argument " "14"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "14"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg14 = ptr;
  }
  {
    try {
      result = (FloatFloatSwapPtr *)new_FloatFloatSwapPtr__SWIG_0(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(Schedule const &)*arg4,(InterestRateIndexPtr const &)*arg5,(DayCounter const &)*arg6,(Schedule const &)*arg7,(InterestRateIndexPtr const &)*arg8,(DayCounter const &)*arg9,arg10,arg11,(std::vector< double,std::allocator< double > > const &)*arg12,(std::vector< double,std::allocator< double > > const &)*arg13,(std::vector< double,std::allocator< double > > const &)*arg14);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloatFloatSwapPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  if (SWIG_IsNewObj(res13)) delete arg13;
  if (SWIG_IsNewObj(res14)) delete arg14;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  if (SWIG_IsNewObj(res13)) delete arg13;
  if (SWIG_IsNewObj(res14)) delete arg14;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FloatFloatSwap__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwap::Type arg1 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  Schedule *arg4 = 0 ;
  InterestRateIndexPtr *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  Schedule *arg7 = 0 ;
  InterestRateIndexPtr *arg8 = 0 ;
  DayCounter *arg9 = 0 ;
  bool arg10 ;
  bool arg11 ;
  std::vector< Real,std::allocator< Real > > *arg12 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg13 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  bool val10 ;
  int ecode10 = 0 ;
  bool val11 ;
  int ecode11 = 0 ;
  int res12 = SWIG_OLDOBJ ;
  int res13 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  FloatFloatSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FloatFloatSwap",13,13,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloatFloatSwap" "', argument " "1"" of type '" "VanillaSwap::Type""'");
  } 
  arg1 = static_cast< VanillaSwap::Type >(val1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg5 = reinterpret_cast< InterestRateIndexPtr * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  arg7 = reinterpret_cast< Schedule * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< InterestRateIndexPtr * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_bool(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_FloatFloatSwap" "', argument " "10"" of type '" "bool""'");
  } 
  arg10 = static_cast< bool >(val10);
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_FloatFloatSwap" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res12 = swig::asptr(obj11, &ptr);
    if (!SWIG_IsOK(res12)) {
      SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg12 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res13 = swig::asptr(obj12, &ptr);
    if (!SWIG_IsOK(res13)) {
      SWIG_exception_fail(SWIG_ArgError(res13), "in method '" "new_FloatFloatSwap" "', argument " "13"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "13"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg13 = ptr;
  }
  {
    try {
      result = (FloatFloatSwapPtr *)new_FloatFloatSwapPtr__SWIG_0(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(Schedule const &)*arg4,(InterestRateIndexPtr const &)*arg5,(DayCounter const &)*arg6,(Schedule const &)*arg7,(InterestRateIndexPtr const &)*arg8,(DayCounter const &)*arg9,arg10,arg11,(std::vector< double,std::allocator< double > > const &)*arg12,(std::vector< double,std::allocator< double > > const &)*arg13);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloatFloatSwapPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  if (SWIG_IsNewObj(res13)) delete arg13;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  if (SWIG_IsNewObj(res13)) delete arg13;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FloatFloatSwap__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwap::Type arg1 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  Schedule *arg4 = 0 ;
  InterestRateIndexPtr *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  Schedule *arg7 = 0 ;
  InterestRateIndexPtr *arg8 = 0 ;
  DayCounter *arg9 = 0 ;
  bool arg10 ;
  bool arg11 ;
  std::vector< Real,std::allocator< Real > > *arg12 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  bool val10 ;
  int ecode10 = 0 ;
  bool val11 ;
  int ecode11 = 0 ;
  int res12 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  FloatFloatSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FloatFloatSwap",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloatFloatSwap" "', argument " "1"" of type '" "VanillaSwap::Type""'");
  } 
  arg1 = static_cast< VanillaSwap::Type >(val1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg5 = reinterpret_cast< InterestRateIndexPtr * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  arg7 = reinterpret_cast< Schedule * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< InterestRateIndexPtr * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_bool(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_FloatFloatSwap" "', argument " "10"" of type '" "bool""'");
  } 
  arg10 = static_cast< bool >(val10);
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_FloatFloatSwap" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res12 = swig::asptr(obj11, &ptr);
    if (!SWIG_IsOK(res12)) {
      SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "12"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg12 = ptr;
  }
  {
    try {
      result = (FloatFloatSwapPtr *)new_FloatFloatSwapPtr__SWIG_0(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(Schedule const &)*arg4,(InterestRateIndexPtr const &)*arg5,(DayCounter const &)*arg6,(Schedule const &)*arg7,(InterestRateIndexPtr const &)*arg8,(DayCounter const &)*arg9,arg10,arg11,(std::vector< double,std::allocator< double > > const &)*arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloatFloatSwapPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res12)) delete arg12;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FloatFloatSwap__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwap::Type arg1 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  Schedule *arg4 = 0 ;
  InterestRateIndexPtr *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  Schedule *arg7 = 0 ;
  InterestRateIndexPtr *arg8 = 0 ;
  DayCounter *arg9 = 0 ;
  bool arg10 ;
  bool arg11 ;
  int val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  bool val10 ;
  int ecode10 = 0 ;
  bool val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  FloatFloatSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FloatFloatSwap",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloatFloatSwap" "', argument " "1"" of type '" "VanillaSwap::Type""'");
  } 
  arg1 = static_cast< VanillaSwap::Type >(val1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg5 = reinterpret_cast< InterestRateIndexPtr * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  arg7 = reinterpret_cast< Schedule * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< InterestRateIndexPtr * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_bool(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_FloatFloatSwap" "', argument " "10"" of type '" "bool""'");
  } 
  arg10 = static_cast< bool >(val10);
  ecode11 = SWIG_AsVal_bool(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_FloatFloatSwap" "', argument " "11"" of type '" "bool""'");
  } 
  arg11 = static_cast< bool >(val11);
  {
    try {
      result = (FloatFloatSwapPtr *)new_FloatFloatSwapPtr__SWIG_0(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(Schedule const &)*arg4,(InterestRateIndexPtr const &)*arg5,(DayCounter const &)*arg6,(Schedule const &)*arg7,(InterestRateIndexPtr const &)*arg8,(DayCounter const &)*arg9,arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloatFloatSwapPtr, SWIG_POINTER_NEW |  0 );
  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_new_FloatFloatSwap__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwap::Type arg1 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  Schedule *arg4 = 0 ;
  InterestRateIndexPtr *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  Schedule *arg7 = 0 ;
  InterestRateIndexPtr *arg8 = 0 ;
  DayCounter *arg9 = 0 ;
  bool arg10 ;
  int val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  bool val10 ;
  int ecode10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  FloatFloatSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FloatFloatSwap",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloatFloatSwap" "', argument " "1"" of type '" "VanillaSwap::Type""'");
  } 
  arg1 = static_cast< VanillaSwap::Type >(val1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg5 = reinterpret_cast< InterestRateIndexPtr * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  arg7 = reinterpret_cast< Schedule * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< InterestRateIndexPtr * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  ecode10 = SWIG_AsVal_bool(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_FloatFloatSwap" "', argument " "10"" of type '" "bool""'");
  } 
  arg10 = static_cast< bool >(val10);
  {
    try {
      result = (FloatFloatSwapPtr *)new_FloatFloatSwapPtr__SWIG_0(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(Schedule const &)*arg4,(InterestRateIndexPtr const &)*arg5,(DayCounter const &)*arg6,(Schedule const &)*arg7,(InterestRateIndexPtr const &)*arg8,(DayCounter const &)*arg9,arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloatFloatSwapPtr, SWIG_POINTER_NEW |  0 );
  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_new_FloatFloatSwap__SWIG_12(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwap::Type arg1 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  Schedule *arg4 = 0 ;
  InterestRateIndexPtr *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  Schedule *arg7 = 0 ;
  InterestRateIndexPtr *arg8 = 0 ;
  DayCounter *arg9 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  FloatFloatSwapPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FloatFloatSwap",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloatFloatSwap" "', argument " "1"" of type '" "VanillaSwap::Type""'");
  } 
  arg1 = static_cast< VanillaSwap::Type >(val1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "5"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg5 = reinterpret_cast< InterestRateIndexPtr * >(argp5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "7"" of type '" "Schedule const &""'"); 
  }
  arg7 = reinterpret_cast< Schedule * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_InterestRateIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "8"" of type '" "InterestRateIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< InterestRateIndexPtr * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwap" "', argument " "9"" of type '" "DayCounter const &""'"); 
  }
  arg9 = reinterpret_cast< DayCounter * >(argp9);
  {
    try {
      result = (FloatFloatSwapPtr *)new_FloatFloatSwapPtr__SWIG_0(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3,(Schedule const &)*arg4,(InterestRateIndexPtr const &)*arg5,(DayCounter const &)*arg6,(Schedule const &)*arg7,(InterestRateIndexPtr const &)*arg8,(DayCounter const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloatFloatSwapPtr, SWIG_POINTER_NEW |  0 );
  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_new_FloatFloatSwap(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[22] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 21) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 9) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Schedule, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap_new_FloatFloatSwap__SWIG_12(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Schedule, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_bool(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        return _wrap_new_FloatFloatSwap__SWIG_11(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Schedule, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_bool(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          return _wrap_new_FloatFloatSwap__SWIG_10(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Schedule, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_bool(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          int res = swig::asptr(argv[11], (std::vector< double,std::allocator< double > >**)(0));
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            return _wrap_new_FloatFloatSwap__SWIG_9(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 13) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Schedule, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_bool(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          int res = swig::asptr(argv[11], (std::vector< double,std::allocator< double > >**)(0));
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            int res = swig::asptr(argv[12], (std::vector< double,std::allocator< double > >**)(0));
                            _v = SWIG_CheckState(res);
                            if (_v) {
                              return _wrap_new_FloatFloatSwap__SWIG_8(self, args);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 14) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Schedule, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_bool(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          int res = swig::asptr(argv[11], (std::vector< double,std::allocator< double > >**)(0));
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            int res = swig::asptr(argv[12], (std::vector< double,std::allocator< double > >**)(0));
                            _v = SWIG_CheckState(res);
                            if (_v) {
                              int res = swig::asptr(argv[13], (std::vector< double,std::allocator< double > >**)(0));
                              _v = SWIG_CheckState(res);
                              if (_v) {
                                return _wrap_new_FloatFloatSwap__SWIG_7(self, args);
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 15) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Schedule, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_bool(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          int res = swig::asptr(argv[11], (std::vector< double,std::allocator< double > >**)(0));
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            int res = swig::asptr(argv[12], (std::vector< double,std::allocator< double > >**)(0));
                            _v = SWIG_CheckState(res);
                            if (_v) {
                              int res = swig::asptr(argv[13], (std::vector< double,std::allocator< double > >**)(0));
                              _v = SWIG_CheckState(res);
                              if (_v) {
                                int res = swig::asptr(argv[14], (std::vector< double,std::allocator< double > >**)(0));
                                _v = SWIG_CheckState(res);
                                if (_v) {
                                  return _wrap_new_FloatFloatSwap__SWIG_6(self, args);
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 16) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Schedule, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_bool(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          int res = swig::asptr(argv[11], (std::vector< double,std::allocator< double > >**)(0));
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            int res = swig::asptr(argv[12], (std::vector< double,std::allocator< double > >**)(0));
                            _v = SWIG_CheckState(res);
                            if (_v) {
                              int res = swig::asptr(argv[13], (std::vector< double,std::allocator< double > >**)(0));
                              _v = SWIG_CheckState(res);
                              if (_v) {
                                int res = swig::asptr(argv[14], (std::vector< double,std::allocator< double > >**)(0));
                                _v = SWIG_CheckState(res);
                                if (_v) {
                                  int res = swig::asptr(argv[15], (std::vector< double,std::allocator< double > >**)(0));
                                  _v = SWIG_CheckState(res);
                                  if (_v) {
                                    return _wrap_new_FloatFloatSwap__SWIG_5(self, args);
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 17) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Schedule, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_bool(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          int res = swig::asptr(argv[11], (std::vector< double,std::allocator< double > >**)(0));
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            int res = swig::asptr(argv[12], (std::vector< double,std::allocator< double > >**)(0));
                            _v = SWIG_CheckState(res);
                            if (_v) {
                              int res = swig::asptr(argv[13], (std::vector< double,std::allocator< double > >**)(0));
                              _v = SWIG_CheckState(res);
                              if (_v) {
                                int res = swig::asptr(argv[14], (std::vector< double,std::allocator< double > >**)(0));
                                _v = SWIG_CheckState(res);
                                if (_v) {
                                  int res = swig::asptr(argv[15], (std::vector< double,std::allocator< double > >**)(0));
                                  _v = SWIG_CheckState(res);
                                  if (_v) {
                                    int res = swig::asptr(argv[16], (std::vector< double,std::allocator< double > >**)(0));
                                    _v = SWIG_CheckState(res);
                                    if (_v) {
                                      return _wrap_new_FloatFloatSwap__SWIG_4(self, args);
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 18) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Schedule, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_bool(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          int res = swig::asptr(argv[11], (std::vector< double,std::allocator< double > >**)(0));
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            int res = swig::asptr(argv[12], (std::vector< double,std::allocator< double > >**)(0));
                            _v = SWIG_CheckState(res);
                            if (_v) {
                              int res = swig::asptr(argv[13], (std::vector< double,std::allocator< double > >**)(0));
                              _v = SWIG_CheckState(res);
                              if (_v) {
                                int res = swig::asptr(argv[14], (std::vector< double,std::allocator< double > >**)(0));
                                _v = SWIG_CheckState(res);
                                if (_v) {
                                  int res = swig::asptr(argv[15], (std::vector< double,std::allocator< double > >**)(0));
                                  _v = SWIG_CheckState(res);
                                  if (_v) {
                                    int res = swig::asptr(argv[16], (std::vector< double,std::allocator< double > >**)(0));
                                    _v = SWIG_CheckState(res);
                                    if (_v) {
                                      int res = swig::asptr(argv[17], (std::vector< double,std::allocator< double > >**)(0));
                                      _v = SWIG_CheckState(res);
                                      if (_v) {
                                        return _wrap_new_FloatFloatSwap__SWIG_3(self, args);
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 19) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Schedule, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_bool(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          int res = swig::asptr(argv[11], (std::vector< double,std::allocator< double > >**)(0));
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            int res = swig::asptr(argv[12], (std::vector< double,std::allocator< double > >**)(0));
                            _v = SWIG_CheckState(res);
                            if (_v) {
                              int res = swig::asptr(argv[13], (std::vector< double,std::allocator< double > >**)(0));
                              _v = SWIG_CheckState(res);
                              if (_v) {
                                int res = swig::asptr(argv[14], (std::vector< double,std::allocator< double > >**)(0));
                                _v = SWIG_CheckState(res);
                                if (_v) {
                                  int res = swig::asptr(argv[15], (std::vector< double,std::allocator< double > >**)(0));
                                  _v = SWIG_CheckState(res);
                                  if (_v) {
                                    int res = swig::asptr(argv[16], (std::vector< double,std::allocator< double > >**)(0));
                                    _v = SWIG_CheckState(res);
                                    if (_v) {
                                      int res = swig::asptr(argv[17], (std::vector< double,std::allocator< double > >**)(0));
                                      _v = SWIG_CheckState(res);
                                      if (_v) {
                                        int res = swig::asptr(argv[18], (std::vector< double,std::allocator< double > >**)(0));
                                        _v = SWIG_CheckState(res);
                                        if (_v) {
                                          return _wrap_new_FloatFloatSwap__SWIG_2(self, args);
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 20) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Schedule, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_bool(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          int res = swig::asptr(argv[11], (std::vector< double,std::allocator< double > >**)(0));
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            int res = swig::asptr(argv[12], (std::vector< double,std::allocator< double > >**)(0));
                            _v = SWIG_CheckState(res);
                            if (_v) {
                              int res = swig::asptr(argv[13], (std::vector< double,std::allocator< double > >**)(0));
                              _v = SWIG_CheckState(res);
                              if (_v) {
                                int res = swig::asptr(argv[14], (std::vector< double,std::allocator< double > >**)(0));
                                _v = SWIG_CheckState(res);
                                if (_v) {
                                  int res = swig::asptr(argv[15], (std::vector< double,std::allocator< double > >**)(0));
                                  _v = SWIG_CheckState(res);
                                  if (_v) {
                                    int res = swig::asptr(argv[16], (std::vector< double,std::allocator< double > >**)(0));
                                    _v = SWIG_CheckState(res);
                                    if (_v) {
                                      int res = swig::asptr(argv[17], (std::vector< double,std::allocator< double > >**)(0));
                                      _v = SWIG_CheckState(res);
                                      if (_v) {
                                        int res = swig::asptr(argv[18], (std::vector< double,std::allocator< double > >**)(0));
                                        _v = SWIG_CheckState(res);
                                        if (_v) {
                                          {
                                            int res = SWIG_AsVal_int(argv[19], NULL);
                                            _v = SWIG_CheckState(res);
                                          }
                                          if (_v) {
                                            return _wrap_new_FloatFloatSwap__SWIG_1(self, args);
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 21) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Schedule, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_InterestRateIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_DayCounter, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_bool(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          int res = SWIG_AsVal_bool(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          int res = swig::asptr(argv[11], (std::vector< double,std::allocator< double > >**)(0));
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            int res = swig::asptr(argv[12], (std::vector< double,std::allocator< double > >**)(0));
                            _v = SWIG_CheckState(res);
                            if (_v) {
                              int res = swig::asptr(argv[13], (std::vector< double,std::allocator< double > >**)(0));
                              _v = SWIG_CheckState(res);
                              if (_v) {
                                int res = swig::asptr(argv[14], (std::vector< double,std::allocator< double > >**)(0));
                                _v = SWIG_CheckState(res);
                                if (_v) {
                                  int res = swig::asptr(argv[15], (std::vector< double,std::allocator< double > >**)(0));
                                  _v = SWIG_CheckState(res);
                                  if (_v) {
                                    int res = swig::asptr(argv[16], (std::vector< double,std::allocator< double > >**)(0));
                                    _v = SWIG_CheckState(res);
                                    if (_v) {
                                      int res = swig::asptr(argv[17], (std::vector< double,std::allocator< double > >**)(0));
                                      _v = SWIG_CheckState(res);
                                      if (_v) {
                                        int res = swig::asptr(argv[18], (std::vector< double,std::allocator< double > >**)(0));
                                        _v = SWIG_CheckState(res);
                                        if (_v) {
                                          {
                                            int res = SWIG_AsVal_int(argv[19], NULL);
                                            _v = SWIG_CheckState(res);
                                          }
                                          if (_v) {
                                            {
                                              int res = SWIG_AsVal_int(argv[20], NULL);
                                              _v = SWIG_CheckState(res);
                                            }
                                            if (_v) {
                                              return _wrap_new_FloatFloatSwap__SWIG_0(self, args);
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FloatFloatSwap'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FloatFloatSwapPtr::FloatFloatSwapPtr(VanillaSwap::Type,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,bool const,bool const,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,BusinessDayConvention,BusinessDayConvention)\n"
    "    FloatFloatSwapPtr::FloatFloatSwapPtr(VanillaSwap::Type,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,bool const,bool const,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,BusinessDayConvention)\n"
    "    FloatFloatSwapPtr::FloatFloatSwapPtr(VanillaSwap::Type,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,bool const,bool const,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &)\n"
    "    FloatFloatSwapPtr::FloatFloatSwapPtr(VanillaSwap::Type,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,bool const,bool const,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &)\n"
    "    FloatFloatSwapPtr::FloatFloatSwapPtr(VanillaSwap::Type,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,bool const,bool const,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &)\n"
    "    FloatFloatSwapPtr::FloatFloatSwapPtr(VanillaSwap::Type,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,bool const,bool const,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &)\n"
    "    FloatFloatSwapPtr::FloatFloatSwapPtr(VanillaSwap::Type,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,bool const,bool const,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &)\n"
    "    FloatFloatSwapPtr::FloatFloatSwapPtr(VanillaSwap::Type,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,bool const,bool const,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &)\n"
    "    FloatFloatSwapPtr::FloatFloatSwapPtr(VanillaSwap::Type,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,bool const,bool const,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &)\n"
    "    FloatFloatSwapPtr::FloatFloatSwapPtr(VanillaSwap::Type,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,bool const,bool const,std::vector< Real,std::allocator< Real > > const &)\n"
    "    FloatFloatSwapPtr::FloatFloatSwapPtr(VanillaSwap::Type,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,bool const,bool const)\n"
    "    FloatFloatSwapPtr::FloatFloatSwapPtr(VanillaSwap::Type,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,bool const)\n"
    "    FloatFloatSwapPtr::FloatFloatSwapPtr(VanillaSwap::Type,std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &,Schedule const &,InterestRateIndexPtr const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FloatFloatSwap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloatFloatSwapPtr *arg1 = (FloatFloatSwapPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FloatFloatSwap",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatFloatSwapPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FloatFloatSwap" "', argument " "1"" of type '" "FloatFloatSwapPtr *""'"); 
  }
  arg1 = reinterpret_cast< FloatFloatSwapPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FloatFloatSwap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FloatFloatSwapPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Pillar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Pillar *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Pillar",0,0)) SWIG_fail;
  {
    try {
      result = (Pillar *)new Pillar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Pillar, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Pillar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Pillar *arg1 = (Pillar *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Pillar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Pillar, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pillar" "', argument " "1"" of type '" "Pillar *""'"); 
  }
  arg1 = reinterpret_cast< Pillar * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Pillar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Pillar, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_RateHelper___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< RateHelper > *arg1 = (boost::shared_ptr< RateHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  RateHelper *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelper___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_RateHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelper___deref__" "', argument " "1"" of type '" "boost::shared_ptr< RateHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< RateHelper > * >(argp1);
  {
    try {
      result = (RateHelper *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RateHelper, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelper___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< RateHelper > *arg1 = (boost::shared_ptr< RateHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelper___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_RateHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelper___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< RateHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< RateHelper > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_RateHelper_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelper___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< RateHelper > *arg1 = (boost::shared_ptr< RateHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelper___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_RateHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelper___bool__" "', argument " "1"" of type '" "boost::shared_ptr< RateHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< RateHelper > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_RateHelper_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RateHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< RateHelper > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RateHelper",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< RateHelper > *)new boost::shared_ptr< RateHelper >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_RateHelper_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RateHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< RateHelper > *arg1 = (boost::shared_ptr< RateHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RateHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_RateHelper_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RateHelper" "', argument " "1"" of type '" "boost::shared_ptr< RateHelper > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< RateHelper > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelper_quote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< RateHelper > *arg1 = (boost::shared_ptr< RateHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< Quote > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelper_quote",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_RateHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelper_quote" "', argument " "1"" of type '" "boost::shared_ptr< RateHelper > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< RateHelper > * >(argp1);
  {
    try {
      result = (*arg1)->quote();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Handle< Quote >(static_cast< const Handle< Quote >& >(result))), SWIGTYPE_p_HandleT_Quote_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelper_latestDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< RateHelper > *arg1 = (boost::shared_ptr< RateHelper > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelper_latestDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_RateHelper_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelper_latestDate" "', argument " "1"" of type '" "boost::shared_ptr< RateHelper > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< RateHelper > * >(argp1);
  {
    try {
      result = (*arg1)->latestDate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RateHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_RateHelper_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DepositRateHelper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Period *arg2 = 0 ;
  Natural arg3 ;
  Calendar *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  bool arg6 ;
  DayCounter *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  DepositRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DepositRateHelper",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DepositRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DepositRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DepositRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DepositRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DepositRateHelper" "', argument " "3"" of type '" "Natural""'");
  } 
  arg3 = static_cast< Natural >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_DepositRateHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DepositRateHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DepositRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DepositRateHelper" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DepositRateHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DepositRateHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  {
    try {
      result = (DepositRateHelperPtr *)new_DepositRateHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,(Period const &)*arg2,arg3,(Calendar const &)*arg4,arg5,arg6,(DayCounter const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DepositRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DepositRateHelper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Period *arg2 = 0 ;
  Natural arg3 ;
  Calendar *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  bool arg6 ;
  DayCounter *arg7 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  DepositRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DepositRateHelper",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DepositRateHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DepositRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DepositRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DepositRateHelper" "', argument " "3"" of type '" "Natural""'");
  } 
  arg3 = static_cast< Natural >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_DepositRateHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DepositRateHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DepositRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DepositRateHelper" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DepositRateHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DepositRateHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  {
    try {
      result = (DepositRateHelperPtr *)new_DepositRateHelperPtr__SWIG_1(arg1,(Period const &)*arg2,arg3,(Calendar const &)*arg4,arg5,arg6,(DayCounter const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DepositRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DepositRateHelper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  IborIndexPtr *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DepositRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DepositRateHelper",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DepositRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DepositRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DepositRateHelper" "', argument " "2"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DepositRateHelper" "', argument " "2"" of type '" "IborIndexPtr const &""'"); 
  }
  arg2 = reinterpret_cast< IborIndexPtr * >(argp2);
  {
    try {
      result = (DepositRateHelperPtr *)new_DepositRateHelperPtr__SWIG_2((Handle< Quote > const &)*arg1,(IborIndexPtr const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DepositRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DepositRateHelper__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  IborIndexPtr *arg2 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DepositRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DepositRateHelper",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DepositRateHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DepositRateHelper" "', argument " "2"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DepositRateHelper" "', argument " "2"" of type '" "IborIndexPtr const &""'"); 
  }
  arg2 = reinterpret_cast< IborIndexPtr * >(argp2);
  {
    try {
      result = (DepositRateHelperPtr *)new_DepositRateHelperPtr__SWIG_3(arg1,(IborIndexPtr const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DepositRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DepositRateHelper(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_IborIndexPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_DepositRateHelper__SWIG_2(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_IborIndexPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_DepositRateHelper__SWIG_3(self, args);
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_DepositRateHelper__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_DepositRateHelper__SWIG_1(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DepositRateHelper'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    DepositRateHelperPtr::DepositRateHelperPtr(Handle< Quote > const &,Period const &,Natural,Calendar const &,BusinessDayConvention,bool,DayCounter const &)\n"
    "    DepositRateHelperPtr::DepositRateHelperPtr(Rate,Period const &,Natural,Calendar const &,BusinessDayConvention,bool,DayCounter const &)\n"
    "    DepositRateHelperPtr::DepositRateHelperPtr(Handle< Quote > const &,IborIndexPtr const &)\n"
    "    DepositRateHelperPtr::DepositRateHelperPtr(Rate,IborIndexPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_DepositRateHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DepositRateHelperPtr *arg1 = (DepositRateHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DepositRateHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DepositRateHelperPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DepositRateHelper" "', argument " "1"" of type '" "DepositRateHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< DepositRateHelperPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DepositRateHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DepositRateHelperPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FraRateHelper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Natural arg2 ;
  Natural arg3 ;
  Natural arg4 ;
  Calendar *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  bool arg7 ;
  DayCounter *arg8 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  FraRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FraRateHelper",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FraRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FraRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FraRateHelper" "', argument " "2"" of type '" "Natural""'");
  } 
  arg2 = static_cast< Natural >(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FraRateHelper" "', argument " "3"" of type '" "Natural""'");
  } 
  arg3 = static_cast< Natural >(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FraRateHelper" "', argument " "4"" of type '" "Natural""'");
  } 
  arg4 = static_cast< Natural >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FraRateHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FraRateHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FraRateHelper" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FraRateHelper" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FraRateHelper" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FraRateHelper" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  arg8 = reinterpret_cast< DayCounter * >(argp8);
  {
    try {
      result = (FraRateHelperPtr *)new_FraRateHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,arg2,arg3,arg4,(Calendar const &)*arg5,arg6,arg7,(DayCounter const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FraRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FraRateHelper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Natural arg2 ;
  Natural arg3 ;
  Natural arg4 ;
  Calendar *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  bool arg7 ;
  DayCounter *arg8 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  FraRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FraRateHelper",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FraRateHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FraRateHelper" "', argument " "2"" of type '" "Natural""'");
  } 
  arg2 = static_cast< Natural >(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FraRateHelper" "', argument " "3"" of type '" "Natural""'");
  } 
  arg3 = static_cast< Natural >(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FraRateHelper" "', argument " "4"" of type '" "Natural""'");
  } 
  arg4 = static_cast< Natural >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FraRateHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FraRateHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FraRateHelper" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FraRateHelper" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FraRateHelper" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FraRateHelper" "', argument " "8"" of type '" "DayCounter const &""'"); 
  }
  arg8 = reinterpret_cast< DayCounter * >(argp8);
  {
    try {
      result = (FraRateHelperPtr *)new_FraRateHelperPtr__SWIG_1(arg1,arg2,arg3,arg4,(Calendar const &)*arg5,arg6,arg7,(DayCounter const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FraRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FraRateHelper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Natural arg2 ;
  IborIndexPtr *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  FraRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FraRateHelper",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FraRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FraRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FraRateHelper" "', argument " "2"" of type '" "Natural""'");
  } 
  arg2 = static_cast< Natural >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FraRateHelper" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FraRateHelper" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  arg3 = reinterpret_cast< IborIndexPtr * >(argp3);
  {
    try {
      result = (FraRateHelperPtr *)new_FraRateHelperPtr__SWIG_2((Handle< Quote > const &)*arg1,arg2,(IborIndexPtr const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FraRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FraRateHelper__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Natural arg2 ;
  IborIndexPtr *arg3 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  FraRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FraRateHelper",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FraRateHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FraRateHelper" "', argument " "2"" of type '" "Natural""'");
  } 
  arg2 = static_cast< Natural >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FraRateHelper" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FraRateHelper" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  arg3 = reinterpret_cast< IborIndexPtr * >(argp3);
  {
    try {
      result = (FraRateHelperPtr *)new_FraRateHelperPtr__SWIG_3(arg1,arg2,(IborIndexPtr const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FraRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FraRateHelper(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[9] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 8) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_IborIndexPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_FraRateHelper__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_IborIndexPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_FraRateHelper__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_DayCounter, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_FraRateHelper__SWIG_0(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_DayCounter, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_FraRateHelper__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FraRateHelper'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FraRateHelperPtr::FraRateHelperPtr(Handle< Quote > const &,Natural,Natural,Natural,Calendar const &,BusinessDayConvention,bool,DayCounter const &)\n"
    "    FraRateHelperPtr::FraRateHelperPtr(Rate,Natural,Natural,Natural,Calendar const &,BusinessDayConvention,bool,DayCounter const &)\n"
    "    FraRateHelperPtr::FraRateHelperPtr(Handle< Quote > const &,Natural,IborIndexPtr const &)\n"
    "    FraRateHelperPtr::FraRateHelperPtr(Rate,Natural,IborIndexPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FraRateHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FraRateHelperPtr *arg1 = (FraRateHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FraRateHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FraRateHelperPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FraRateHelper" "', argument " "1"" of type '" "FraRateHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< FraRateHelperPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FraRateHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FraRateHelperPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FuturesRateHelper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Date *arg2 = 0 ;
  Natural arg3 ;
  Calendar *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  bool arg6 ;
  DayCounter *arg7 = 0 ;
  Handle< Quote > *arg8 = 0 ;
  Futures::Type arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  FuturesRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FuturesRateHelper",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "Natural""'");
  } 
  arg3 = static_cast< Natural >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FuturesRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FuturesRateHelper" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FuturesRateHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FuturesRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< Quote > * >(argp8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_FuturesRateHelper" "', argument " "9"" of type '" "Futures::Type""'");
  } 
  arg9 = static_cast< Futures::Type >(val9);
  {
    try {
      result = (FuturesRateHelperPtr *)new_FuturesRateHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,(Date const &)*arg2,arg3,(Calendar const &)*arg4,arg5,arg6,(DayCounter const &)*arg7,(Handle< Quote > const &)*arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FuturesRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FuturesRateHelper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Date *arg2 = 0 ;
  Natural arg3 ;
  Calendar *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  bool arg6 ;
  DayCounter *arg7 = 0 ;
  Handle< Quote > *arg8 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  FuturesRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FuturesRateHelper",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "Natural""'");
  } 
  arg3 = static_cast< Natural >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FuturesRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FuturesRateHelper" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FuturesRateHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_FuturesRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< Quote > * >(argp8);
  {
    try {
      result = (FuturesRateHelperPtr *)new_FuturesRateHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,(Date const &)*arg2,arg3,(Calendar const &)*arg4,arg5,arg6,(DayCounter const &)*arg7,(Handle< Quote > const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FuturesRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FuturesRateHelper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Date *arg2 = 0 ;
  Natural arg3 ;
  Calendar *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  bool arg6 ;
  DayCounter *arg7 = 0 ;
  Rate arg8 ;
  Futures::Type arg9 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  FuturesRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FuturesRateHelper",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "Natural""'");
  } 
  arg3 = static_cast< Natural >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FuturesRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FuturesRateHelper" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FuturesRateHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FuturesRateHelper" "', argument " "8"" of type '" "Rate""'");
  } 
  arg8 = static_cast< Rate >(val8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_FuturesRateHelper" "', argument " "9"" of type '" "Futures::Type""'");
  } 
  arg9 = static_cast< Futures::Type >(val9);
  {
    try {
      result = (FuturesRateHelperPtr *)new_FuturesRateHelperPtr__SWIG_2(arg1,(Date const &)*arg2,arg3,(Calendar const &)*arg4,arg5,arg6,(DayCounter const &)*arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FuturesRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FuturesRateHelper__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Date *arg2 = 0 ;
  Natural arg3 ;
  Calendar *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  bool arg6 ;
  DayCounter *arg7 = 0 ;
  Rate arg8 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  FuturesRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FuturesRateHelper",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "Natural""'");
  } 
  arg3 = static_cast< Natural >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FuturesRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FuturesRateHelper" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FuturesRateHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FuturesRateHelper" "', argument " "8"" of type '" "Rate""'");
  } 
  arg8 = static_cast< Rate >(val8);
  {
    try {
      result = (FuturesRateHelperPtr *)new_FuturesRateHelperPtr__SWIG_2(arg1,(Date const &)*arg2,arg3,(Calendar const &)*arg4,arg5,arg6,(DayCounter const &)*arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FuturesRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FuturesRateHelper__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Date *arg2 = 0 ;
  Natural arg3 ;
  Calendar *arg4 = 0 ;
  BusinessDayConvention arg5 ;
  bool arg6 ;
  DayCounter *arg7 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  FuturesRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FuturesRateHelper",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "Natural""'");
  } 
  arg3 = static_cast< Natural >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FuturesRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FuturesRateHelper" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FuturesRateHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  {
    try {
      result = (FuturesRateHelperPtr *)new_FuturesRateHelperPtr__SWIG_2(arg1,(Date const &)*arg2,arg3,(Calendar const &)*arg4,arg5,arg6,(DayCounter const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FuturesRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FuturesRateHelper__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Handle< Quote > *arg5 = 0 ;
  Futures::Type arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  FuturesRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FuturesRateHelper",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FuturesRateHelper" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< Quote > * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FuturesRateHelper" "', argument " "6"" of type '" "Futures::Type""'");
  } 
  arg6 = static_cast< Futures::Type >(val6);
  {
    try {
      result = (FuturesRateHelperPtr *)new_FuturesRateHelperPtr__SWIG_5((Handle< Quote > const &)*arg1,(Date const &)*arg2,(Date const &)*arg3,(DayCounter const &)*arg4,(Handle< Quote > const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FuturesRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FuturesRateHelper__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Handle< Quote > *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  FuturesRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FuturesRateHelper",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FuturesRateHelper" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "5"" of type '" "Handle< Quote > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< Quote > * >(argp5);
  {
    try {
      result = (FuturesRateHelperPtr *)new_FuturesRateHelperPtr__SWIG_5((Handle< Quote > const &)*arg1,(Date const &)*arg2,(Date const &)*arg3,(DayCounter const &)*arg4,(Handle< Quote > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FuturesRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FuturesRateHelper__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Rate arg5 ;
  Futures::Type arg6 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  FuturesRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FuturesRateHelper",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FuturesRateHelper" "', argument " "5"" of type '" "Rate""'");
  } 
  arg5 = static_cast< Rate >(val5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FuturesRateHelper" "', argument " "6"" of type '" "Futures::Type""'");
  } 
  arg6 = static_cast< Futures::Type >(val6);
  {
    try {
      result = (FuturesRateHelperPtr *)new_FuturesRateHelperPtr__SWIG_7(arg1,(Date const &)*arg2,(Date const &)*arg3,(DayCounter const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FuturesRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FuturesRateHelper__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  Rate arg5 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  FuturesRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FuturesRateHelper",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FuturesRateHelper" "', argument " "5"" of type '" "Rate""'");
  } 
  arg5 = static_cast< Rate >(val5);
  {
    try {
      result = (FuturesRateHelperPtr *)new_FuturesRateHelperPtr__SWIG_7(arg1,(Date const &)*arg2,(Date const &)*arg3,(DayCounter const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FuturesRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FuturesRateHelper__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FuturesRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FuturesRateHelper",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    try {
      result = (FuturesRateHelperPtr *)new_FuturesRateHelperPtr__SWIG_7(arg1,(Date const &)*arg2,(Date const &)*arg3,(DayCounter const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FuturesRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FuturesRateHelper__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Date *arg2 = 0 ;
  IborIndexPtr *arg3 = 0 ;
  Handle< Quote > *arg4 = 0 ;
  Futures::Type arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  FuturesRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FuturesRateHelper",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  arg3 = reinterpret_cast< IborIndexPtr * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< Quote > * >(argp4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FuturesRateHelper" "', argument " "5"" of type '" "Futures::Type""'");
  } 
  arg5 = static_cast< Futures::Type >(val5);
  {
    try {
      result = (FuturesRateHelperPtr *)new_FuturesRateHelperPtr__SWIG_10((Handle< Quote > const &)*arg1,(Date const &)*arg2,(IborIndexPtr const &)*arg3,(Handle< Quote > const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FuturesRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FuturesRateHelper__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Date *arg2 = 0 ;
  IborIndexPtr *arg3 = 0 ;
  Handle< Quote > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FuturesRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FuturesRateHelper",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  arg3 = reinterpret_cast< IborIndexPtr * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "Handle< Quote > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< Quote > * >(argp4);
  {
    try {
      result = (FuturesRateHelperPtr *)new_FuturesRateHelperPtr__SWIG_10((Handle< Quote > const &)*arg1,(Date const &)*arg2,(IborIndexPtr const &)*arg3,(Handle< Quote > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FuturesRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FuturesRateHelper__SWIG_12(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Date *arg2 = 0 ;
  IborIndexPtr *arg3 = 0 ;
  Real arg4 ;
  Futures::Type arg5 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  FuturesRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FuturesRateHelper",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  arg3 = reinterpret_cast< IborIndexPtr * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FuturesRateHelper" "', argument " "5"" of type '" "Futures::Type""'");
  } 
  arg5 = static_cast< Futures::Type >(val5);
  {
    try {
      result = (FuturesRateHelperPtr *)new_FuturesRateHelperPtr__SWIG_12(arg1,(Date const &)*arg2,(IborIndexPtr const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FuturesRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FuturesRateHelper__SWIG_13(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Date *arg2 = 0 ;
  IborIndexPtr *arg3 = 0 ;
  Real arg4 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FuturesRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FuturesRateHelper",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  arg3 = reinterpret_cast< IborIndexPtr * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FuturesRateHelper" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (FuturesRateHelperPtr *)new_FuturesRateHelperPtr__SWIG_12(arg1,(Date const &)*arg2,(IborIndexPtr const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FuturesRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FuturesRateHelper__SWIG_14(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Date *arg2 = 0 ;
  IborIndexPtr *arg3 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  FuturesRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FuturesRateHelper",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FuturesRateHelper" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FuturesRateHelper" "', argument " "3"" of type '" "IborIndexPtr const &""'"); 
  }
  arg3 = reinterpret_cast< IborIndexPtr * >(argp3);
  {
    try {
      result = (FuturesRateHelperPtr *)new_FuturesRateHelperPtr__SWIG_12(arg1,(Date const &)*arg2,(IborIndexPtr const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FuturesRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FuturesRateHelper(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_IborIndexPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_FuturesRateHelper__SWIG_14(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_IborIndexPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_FuturesRateHelper__SWIG_11(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_IborIndexPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_FuturesRateHelper__SWIG_13(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_FuturesRateHelper__SWIG_9(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_FuturesRateHelper__SWIG_6(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_IborIndexPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_FuturesRateHelper__SWIG_10(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_FuturesRateHelper__SWIG_8(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_IborIndexPtr, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_FuturesRateHelper__SWIG_12(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_FuturesRateHelper__SWIG_5(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_FuturesRateHelper__SWIG_7(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_FuturesRateHelper__SWIG_4(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_FuturesRateHelper__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_FuturesRateHelper__SWIG_3(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_new_FuturesRateHelper__SWIG_0(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_new_FuturesRateHelper__SWIG_2(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FuturesRateHelper'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FuturesRateHelperPtr::FuturesRateHelperPtr(Handle< Quote > const &,Date const &,Natural,Calendar const &,BusinessDayConvention,bool,DayCounter const &,Handle< Quote > const &,Futures::Type)\n"
    "    FuturesRateHelperPtr::FuturesRateHelperPtr(Handle< Quote > const &,Date const &,Natural,Calendar const &,BusinessDayConvention,bool,DayCounter const &,Handle< Quote > const &)\n"
    "    FuturesRateHelperPtr::FuturesRateHelperPtr(Real,Date const &,Natural,Calendar const &,BusinessDayConvention,bool,DayCounter const &,Rate,Futures::Type)\n"
    "    FuturesRateHelperPtr::FuturesRateHelperPtr(Real,Date const &,Natural,Calendar const &,BusinessDayConvention,bool,DayCounter const &,Rate)\n"
    "    FuturesRateHelperPtr::FuturesRateHelperPtr(Real,Date const &,Natural,Calendar const &,BusinessDayConvention,bool,DayCounter const &)\n"
    "    FuturesRateHelperPtr::FuturesRateHelperPtr(Handle< Quote > const &,Date const &,Date const &,DayCounter const &,Handle< Quote > const &,Futures::Type)\n"
    "    FuturesRateHelperPtr::FuturesRateHelperPtr(Handle< Quote > const &,Date const &,Date const &,DayCounter const &,Handle< Quote > const &)\n"
    "    FuturesRateHelperPtr::FuturesRateHelperPtr(Real,Date const &,Date const &,DayCounter const &,Rate,Futures::Type)\n"
    "    FuturesRateHelperPtr::FuturesRateHelperPtr(Real,Date const &,Date const &,DayCounter const &,Rate)\n"
    "    FuturesRateHelperPtr::FuturesRateHelperPtr(Real,Date const &,Date const &,DayCounter const &)\n"
    "    FuturesRateHelperPtr::FuturesRateHelperPtr(Handle< Quote > const &,Date const &,IborIndexPtr const &,Handle< Quote > const &,Futures::Type)\n"
    "    FuturesRateHelperPtr::FuturesRateHelperPtr(Handle< Quote > const &,Date const &,IborIndexPtr const &,Handle< Quote > const &)\n"
    "    FuturesRateHelperPtr::FuturesRateHelperPtr(Real,Date const &,IborIndexPtr const &,Real,Futures::Type)\n"
    "    FuturesRateHelperPtr::FuturesRateHelperPtr(Real,Date const &,IborIndexPtr const &,Real)\n"
    "    FuturesRateHelperPtr::FuturesRateHelperPtr(Real,Date const &,IborIndexPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FuturesRateHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FuturesRateHelperPtr *arg1 = (FuturesRateHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FuturesRateHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FuturesRateHelperPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FuturesRateHelper" "', argument " "1"" of type '" "FuturesRateHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< FuturesRateHelperPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FuturesRateHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FuturesRateHelperPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Period *arg2 = 0 ;
  Calendar *arg3 = 0 ;
  Frequency arg4 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  IborIndexPtr *arg7 = 0 ;
  Handle< Quote > *arg8 = 0 ;
  Period *arg9 = 0 ;
  Handle< YieldTermStructure > *arg10 = 0 ;
  Natural arg11 ;
  Pillar::Choice arg12 ;
  Date arg13 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  unsigned int val11 ;
  int ecode11 = 0 ;
  int val12 ;
  int ecode12 = 0 ;
  void *argp13 ;
  int res13 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",13,13,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  arg3 = reinterpret_cast< Calendar * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< IborIndexPtr * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< Quote > * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  arg9 = reinterpret_cast< Period * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SwapRateHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg10 = reinterpret_cast< Handle< YieldTermStructure > * >(argp10);
  ecode11 = SWIG_AsVal_unsigned_SS_int(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwapRateHelper" "', argument " "11"" of type '" "Natural""'");
  } 
  arg11 = static_cast< Natural >(val11);
  ecode12 = SWIG_AsVal_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_SwapRateHelper" "', argument " "12"" of type '" "Pillar::Choice""'");
  } 
  arg12 = static_cast< Pillar::Choice >(val12);
  {
    res13 = SWIG_ConvertPtr(obj12, &argp13, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res13)) {
      SWIG_exception_fail(SWIG_ArgError(res13), "in method '" "new_SwapRateHelper" "', argument " "13"" of type '" "Date""'"); 
    }  
    if (!argp13) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "13"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp13);
      arg13 = *temp;
      if (SWIG_IsNewObj(res13)) delete temp;
    }
  }
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,(Period const &)*arg2,(Calendar const &)*arg3,arg4,arg5,(DayCounter const &)*arg6,(IborIndexPtr const &)*arg7,(Handle< Quote > const &)*arg8,(Period const &)*arg9,(Handle< YieldTermStructure > const &)*arg10,arg11,arg12,arg13);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Period *arg2 = 0 ;
  Calendar *arg3 = 0 ;
  Frequency arg4 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  IborIndexPtr *arg7 = 0 ;
  Handle< Quote > *arg8 = 0 ;
  Period *arg9 = 0 ;
  Handle< YieldTermStructure > *arg10 = 0 ;
  Natural arg11 ;
  Pillar::Choice arg12 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  unsigned int val11 ;
  int ecode11 = 0 ;
  int val12 ;
  int ecode12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  arg3 = reinterpret_cast< Calendar * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< IborIndexPtr * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< Quote > * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  arg9 = reinterpret_cast< Period * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SwapRateHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg10 = reinterpret_cast< Handle< YieldTermStructure > * >(argp10);
  ecode11 = SWIG_AsVal_unsigned_SS_int(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwapRateHelper" "', argument " "11"" of type '" "Natural""'");
  } 
  arg11 = static_cast< Natural >(val11);
  ecode12 = SWIG_AsVal_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_SwapRateHelper" "', argument " "12"" of type '" "Pillar::Choice""'");
  } 
  arg12 = static_cast< Pillar::Choice >(val12);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,(Period const &)*arg2,(Calendar const &)*arg3,arg4,arg5,(DayCounter const &)*arg6,(IborIndexPtr const &)*arg7,(Handle< Quote > const &)*arg8,(Period const &)*arg9,(Handle< YieldTermStructure > const &)*arg10,arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Period *arg2 = 0 ;
  Calendar *arg3 = 0 ;
  Frequency arg4 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  IborIndexPtr *arg7 = 0 ;
  Handle< Quote > *arg8 = 0 ;
  Period *arg9 = 0 ;
  Handle< YieldTermStructure > *arg10 = 0 ;
  Natural arg11 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  unsigned int val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  arg3 = reinterpret_cast< Calendar * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< IborIndexPtr * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< Quote > * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  arg9 = reinterpret_cast< Period * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SwapRateHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg10 = reinterpret_cast< Handle< YieldTermStructure > * >(argp10);
  ecode11 = SWIG_AsVal_unsigned_SS_int(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwapRateHelper" "', argument " "11"" of type '" "Natural""'");
  } 
  arg11 = static_cast< Natural >(val11);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,(Period const &)*arg2,(Calendar const &)*arg3,arg4,arg5,(DayCounter const &)*arg6,(IborIndexPtr const &)*arg7,(Handle< Quote > const &)*arg8,(Period const &)*arg9,(Handle< YieldTermStructure > const &)*arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Period *arg2 = 0 ;
  Calendar *arg3 = 0 ;
  Frequency arg4 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  IborIndexPtr *arg7 = 0 ;
  Handle< Quote > *arg8 = 0 ;
  Period *arg9 = 0 ;
  Handle< YieldTermStructure > *arg10 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  arg3 = reinterpret_cast< Calendar * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< IborIndexPtr * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< Quote > * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  arg9 = reinterpret_cast< Period * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SwapRateHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg10 = reinterpret_cast< Handle< YieldTermStructure > * >(argp10);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,(Period const &)*arg2,(Calendar const &)*arg3,arg4,arg5,(DayCounter const &)*arg6,(IborIndexPtr const &)*arg7,(Handle< Quote > const &)*arg8,(Period const &)*arg9,(Handle< YieldTermStructure > const &)*arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Period *arg2 = 0 ;
  Calendar *arg3 = 0 ;
  Frequency arg4 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  IborIndexPtr *arg7 = 0 ;
  Handle< Quote > *arg8 = 0 ;
  Period *arg9 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  arg3 = reinterpret_cast< Calendar * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< IborIndexPtr * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< Quote > * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  arg9 = reinterpret_cast< Period * >(argp9);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,(Period const &)*arg2,(Calendar const &)*arg3,arg4,arg5,(DayCounter const &)*arg6,(IborIndexPtr const &)*arg7,(Handle< Quote > const &)*arg8,(Period const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Period *arg2 = 0 ;
  Calendar *arg3 = 0 ;
  Frequency arg4 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  IborIndexPtr *arg7 = 0 ;
  Handle< Quote > *arg8 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  arg3 = reinterpret_cast< Calendar * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< IborIndexPtr * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< Quote > * >(argp8);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,(Period const &)*arg2,(Calendar const &)*arg3,arg4,arg5,(DayCounter const &)*arg6,(IborIndexPtr const &)*arg7,(Handle< Quote > const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Period *arg2 = 0 ;
  Calendar *arg3 = 0 ;
  Frequency arg4 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  IborIndexPtr *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  arg3 = reinterpret_cast< Calendar * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< IborIndexPtr * >(argp7);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,(Period const &)*arg2,(Calendar const &)*arg3,arg4,arg5,(DayCounter const &)*arg6,(IborIndexPtr const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Period *arg2 = 0 ;
  Calendar *arg3 = 0 ;
  Frequency arg4 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  IborIndexPtr *arg7 = 0 ;
  Handle< Quote > *arg8 = 0 ;
  Period *arg9 = 0 ;
  Handle< YieldTermStructure > *arg10 = 0 ;
  Natural arg11 ;
  Pillar::Choice arg12 ;
  Date arg13 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  unsigned int val11 ;
  int ecode11 = 0 ;
  int val12 ;
  int ecode12 = 0 ;
  void *argp13 ;
  int res13 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",13,13,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  arg3 = reinterpret_cast< Calendar * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< IborIndexPtr * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< Quote > * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  arg9 = reinterpret_cast< Period * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SwapRateHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg10 = reinterpret_cast< Handle< YieldTermStructure > * >(argp10);
  ecode11 = SWIG_AsVal_unsigned_SS_int(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwapRateHelper" "', argument " "11"" of type '" "Natural""'");
  } 
  arg11 = static_cast< Natural >(val11);
  ecode12 = SWIG_AsVal_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_SwapRateHelper" "', argument " "12"" of type '" "Pillar::Choice""'");
  } 
  arg12 = static_cast< Pillar::Choice >(val12);
  {
    res13 = SWIG_ConvertPtr(obj12, &argp13, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res13)) {
      SWIG_exception_fail(SWIG_ArgError(res13), "in method '" "new_SwapRateHelper" "', argument " "13"" of type '" "Date""'"); 
    }  
    if (!argp13) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "13"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp13);
      arg13 = *temp;
      if (SWIG_IsNewObj(res13)) delete temp;
    }
  }
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_7(arg1,(Period const &)*arg2,(Calendar const &)*arg3,arg4,arg5,(DayCounter const &)*arg6,(IborIndexPtr const &)*arg7,(Handle< Quote > const &)*arg8,(Period const &)*arg9,(Handle< YieldTermStructure > const &)*arg10,arg11,arg12,arg13);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Period *arg2 = 0 ;
  Calendar *arg3 = 0 ;
  Frequency arg4 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  IborIndexPtr *arg7 = 0 ;
  Handle< Quote > *arg8 = 0 ;
  Period *arg9 = 0 ;
  Handle< YieldTermStructure > *arg10 = 0 ;
  Natural arg11 ;
  Pillar::Choice arg12 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  unsigned int val11 ;
  int ecode11 = 0 ;
  int val12 ;
  int ecode12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  arg3 = reinterpret_cast< Calendar * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< IborIndexPtr * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< Quote > * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  arg9 = reinterpret_cast< Period * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SwapRateHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg10 = reinterpret_cast< Handle< YieldTermStructure > * >(argp10);
  ecode11 = SWIG_AsVal_unsigned_SS_int(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwapRateHelper" "', argument " "11"" of type '" "Natural""'");
  } 
  arg11 = static_cast< Natural >(val11);
  ecode12 = SWIG_AsVal_int(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_SwapRateHelper" "', argument " "12"" of type '" "Pillar::Choice""'");
  } 
  arg12 = static_cast< Pillar::Choice >(val12);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_7(arg1,(Period const &)*arg2,(Calendar const &)*arg3,arg4,arg5,(DayCounter const &)*arg6,(IborIndexPtr const &)*arg7,(Handle< Quote > const &)*arg8,(Period const &)*arg9,(Handle< YieldTermStructure > const &)*arg10,arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Period *arg2 = 0 ;
  Calendar *arg3 = 0 ;
  Frequency arg4 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  IborIndexPtr *arg7 = 0 ;
  Handle< Quote > *arg8 = 0 ;
  Period *arg9 = 0 ;
  Handle< YieldTermStructure > *arg10 = 0 ;
  Natural arg11 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  unsigned int val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  arg3 = reinterpret_cast< Calendar * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< IborIndexPtr * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< Quote > * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  arg9 = reinterpret_cast< Period * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SwapRateHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg10 = reinterpret_cast< Handle< YieldTermStructure > * >(argp10);
  ecode11 = SWIG_AsVal_unsigned_SS_int(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_SwapRateHelper" "', argument " "11"" of type '" "Natural""'");
  } 
  arg11 = static_cast< Natural >(val11);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_7(arg1,(Period const &)*arg2,(Calendar const &)*arg3,arg4,arg5,(DayCounter const &)*arg6,(IborIndexPtr const &)*arg7,(Handle< Quote > const &)*arg8,(Period const &)*arg9,(Handle< YieldTermStructure > const &)*arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Period *arg2 = 0 ;
  Calendar *arg3 = 0 ;
  Frequency arg4 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  IborIndexPtr *arg7 = 0 ;
  Handle< Quote > *arg8 = 0 ;
  Period *arg9 = 0 ;
  Handle< YieldTermStructure > *arg10 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  arg3 = reinterpret_cast< Calendar * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< IborIndexPtr * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< Quote > * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  arg9 = reinterpret_cast< Period * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_SwapRateHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg10 = reinterpret_cast< Handle< YieldTermStructure > * >(argp10);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_7(arg1,(Period const &)*arg2,(Calendar const &)*arg3,arg4,arg5,(DayCounter const &)*arg6,(IborIndexPtr const &)*arg7,(Handle< Quote > const &)*arg8,(Period const &)*arg9,(Handle< YieldTermStructure > const &)*arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Period *arg2 = 0 ;
  Calendar *arg3 = 0 ;
  Frequency arg4 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  IborIndexPtr *arg7 = 0 ;
  Handle< Quote > *arg8 = 0 ;
  Period *arg9 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  arg3 = reinterpret_cast< Calendar * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< IborIndexPtr * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< Quote > * >(argp8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "9"" of type '" "Period const &""'"); 
  }
  arg9 = reinterpret_cast< Period * >(argp9);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_7(arg1,(Period const &)*arg2,(Calendar const &)*arg3,arg4,arg5,(DayCounter const &)*arg6,(IborIndexPtr const &)*arg7,(Handle< Quote > const &)*arg8,(Period const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_12(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Period *arg2 = 0 ;
  Calendar *arg3 = 0 ;
  Frequency arg4 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  IborIndexPtr *arg7 = 0 ;
  Handle< Quote > *arg8 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  arg3 = reinterpret_cast< Calendar * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< IborIndexPtr * >(argp7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "8"" of type '" "Handle< Quote > const &""'"); 
  }
  arg8 = reinterpret_cast< Handle< Quote > * >(argp8);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_7(arg1,(Period const &)*arg2,(Calendar const &)*arg3,arg4,arg5,(DayCounter const &)*arg6,(IborIndexPtr const &)*arg7,(Handle< Quote > const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_13(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  Period *arg2 = 0 ;
  Calendar *arg3 = 0 ;
  Frequency arg4 ;
  BusinessDayConvention arg5 ;
  DayCounter *arg6 = 0 ;
  IborIndexPtr *arg7 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Calendar const &""'"); 
  }
  arg3 = reinterpret_cast< Calendar * >(argp3);
  ecode4 = SWIG_AsVal_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Frequency""'");
  } 
  arg4 = static_cast< Frequency >(val4);
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "BusinessDayConvention""'");
  } 
  arg5 = static_cast< BusinessDayConvention >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "IborIndexPtr const &""'"); 
  }
  arg7 = reinterpret_cast< IborIndexPtr * >(argp7);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_7(arg1,(Period const &)*arg2,(Calendar const &)*arg3,arg4,arg5,(DayCounter const &)*arg6,(IborIndexPtr const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_14(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  SwapIndexPtr *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  Period *arg4 = 0 ;
  Handle< YieldTermStructure > *arg5 = 0 ;
  Pillar::Choice arg6 ;
  Date arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg2 = reinterpret_cast< SwapIndexPtr * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Period const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Period const &""'"); 
  }
  arg4 = reinterpret_cast< Period * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "Pillar::Choice""'");
  } 
  arg6 = static_cast< Pillar::Choice >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_14((Handle< Quote > const &)*arg1,(SwapIndexPtr const &)*arg2,(Handle< Quote > const &)*arg3,(Period const &)*arg4,(Handle< YieldTermStructure > const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_15(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  SwapIndexPtr *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  Period *arg4 = 0 ;
  Handle< YieldTermStructure > *arg5 = 0 ;
  Pillar::Choice arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg2 = reinterpret_cast< SwapIndexPtr * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Period const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Period const &""'"); 
  }
  arg4 = reinterpret_cast< Period * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "Pillar::Choice""'");
  } 
  arg6 = static_cast< Pillar::Choice >(val6);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_14((Handle< Quote > const &)*arg1,(SwapIndexPtr const &)*arg2,(Handle< Quote > const &)*arg3,(Period const &)*arg4,(Handle< YieldTermStructure > const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_16(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  SwapIndexPtr *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  Period *arg4 = 0 ;
  Handle< YieldTermStructure > *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg2 = reinterpret_cast< SwapIndexPtr * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Period const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Period const &""'"); 
  }
  arg4 = reinterpret_cast< Period * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_14((Handle< Quote > const &)*arg1,(SwapIndexPtr const &)*arg2,(Handle< Quote > const &)*arg3,(Period const &)*arg4,(Handle< YieldTermStructure > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_17(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  SwapIndexPtr *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  Period *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg2 = reinterpret_cast< SwapIndexPtr * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Period const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Period const &""'"); 
  }
  arg4 = reinterpret_cast< Period * >(argp4);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_14((Handle< Quote > const &)*arg1,(SwapIndexPtr const &)*arg2,(Handle< Quote > const &)*arg3,(Period const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_18(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  SwapIndexPtr *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg2 = reinterpret_cast< SwapIndexPtr * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_14((Handle< Quote > const &)*arg1,(SwapIndexPtr const &)*arg2,(Handle< Quote > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_19(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  SwapIndexPtr *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg2 = reinterpret_cast< SwapIndexPtr * >(argp2);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_14((Handle< Quote > const &)*arg1,(SwapIndexPtr const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_20(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  SwapIndexPtr *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  Period *arg4 = 0 ;
  Handle< YieldTermStructure > *arg5 = 0 ;
  Pillar::Choice arg6 ;
  Date arg7 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  void *argp7 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg2 = reinterpret_cast< SwapIndexPtr * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Period const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Period const &""'"); 
  }
  arg4 = reinterpret_cast< Period * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "Pillar::Choice""'");
  } 
  arg6 = static_cast< Pillar::Choice >(val6);
  {
    res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "Date""'"); 
    }  
    if (!argp7) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "7"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp7);
      arg7 = *temp;
      if (SWIG_IsNewObj(res7)) delete temp;
    }
  }
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_20(arg1,(SwapIndexPtr const &)*arg2,(Handle< Quote > const &)*arg3,(Period const &)*arg4,(Handle< YieldTermStructure > const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_21(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  SwapIndexPtr *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  Period *arg4 = 0 ;
  Handle< YieldTermStructure > *arg5 = 0 ;
  Pillar::Choice arg6 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg2 = reinterpret_cast< SwapIndexPtr * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Period const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Period const &""'"); 
  }
  arg4 = reinterpret_cast< Period * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SwapRateHelper" "', argument " "6"" of type '" "Pillar::Choice""'");
  } 
  arg6 = static_cast< Pillar::Choice >(val6);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_20(arg1,(SwapIndexPtr const &)*arg2,(Handle< Quote > const &)*arg3,(Period const &)*arg4,(Handle< YieldTermStructure > const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_22(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  SwapIndexPtr *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  Period *arg4 = 0 ;
  Handle< YieldTermStructure > *arg5 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg2 = reinterpret_cast< SwapIndexPtr * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Period const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Period const &""'"); 
  }
  arg4 = reinterpret_cast< Period * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_20(arg1,(SwapIndexPtr const &)*arg2,(Handle< Quote > const &)*arg3,(Period const &)*arg4,(Handle< YieldTermStructure > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_23(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  SwapIndexPtr *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  Period *arg4 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg2 = reinterpret_cast< SwapIndexPtr * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Period const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "4"" of type '" "Period const &""'"); 
  }
  arg4 = reinterpret_cast< Period * >(argp4);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_20(arg1,(SwapIndexPtr const &)*arg2,(Handle< Quote > const &)*arg3,(Period const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_24(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  SwapIndexPtr *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg2 = reinterpret_cast< SwapIndexPtr * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_20(arg1,(SwapIndexPtr const &)*arg2,(Handle< Quote > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper__SWIG_25(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Rate arg1 ;
  SwapIndexPtr *arg2 = 0 ;
  double val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SwapRateHelper",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SwapRateHelper" "', argument " "1"" of type '" "Rate""'");
  } 
  arg1 = static_cast< Rate >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SwapRateHelper" "', argument " "2"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg2 = reinterpret_cast< SwapIndexPtr * >(argp2);
  {
    try {
      result = (SwapRateHelperPtr *)new_SwapRateHelperPtr__SWIG_20(arg1,(SwapIndexPtr const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SwapRateHelper(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[14] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 13) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SwapIndexPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_SwapRateHelper__SWIG_19(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SwapIndexPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_SwapRateHelper__SWIG_25(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SwapIndexPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_SwapRateHelper__SWIG_18(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SwapIndexPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_SwapRateHelper__SWIG_24(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SwapIndexPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Period, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_SwapRateHelper__SWIG_17(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SwapIndexPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Period, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_SwapRateHelper__SWIG_23(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SwapIndexPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Period, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_SwapRateHelper__SWIG_16(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SwapIndexPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Period, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_SwapRateHelper__SWIG_22(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SwapIndexPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Period, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_SwapRateHelper__SWIG_15(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SwapIndexPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Period, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_SwapRateHelper__SWIG_21(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Calendar, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_IborIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_SwapRateHelper__SWIG_6(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SwapIndexPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Period, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_SwapRateHelper__SWIG_14(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SwapIndexPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Period, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_SwapRateHelper__SWIG_20(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Calendar, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_IborIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_SwapRateHelper__SWIG_13(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Calendar, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_IborIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_SwapRateHelper__SWIG_5(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Calendar, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_IborIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_SwapRateHelper__SWIG_12(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Calendar, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_IborIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Period, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap_new_SwapRateHelper__SWIG_4(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Calendar, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_IborIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Period, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap_new_SwapRateHelper__SWIG_11(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Calendar, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_IborIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Period, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        return _wrap_new_SwapRateHelper__SWIG_3(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Calendar, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_IborIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Period, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        return _wrap_new_SwapRateHelper__SWIG_10(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Calendar, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_IborIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Period, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_unsigned_SS_int(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          return _wrap_new_SwapRateHelper__SWIG_2(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Calendar, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_IborIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Period, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_unsigned_SS_int(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          return _wrap_new_SwapRateHelper__SWIG_9(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Calendar, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_IborIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Period, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_unsigned_SS_int(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            return _wrap_new_SwapRateHelper__SWIG_1(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Calendar, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_IborIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Period, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_unsigned_SS_int(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            return _wrap_new_SwapRateHelper__SWIG_8(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 13) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Calendar, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_IborIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Period, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_unsigned_SS_int(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            int res = SWIG_ConvertPtr(argv[12], 0, SWIGTYPE_p_Date, 0);
                            _v = SWIG_CheckState(res);
                            if (_v) {
                              return _wrap_new_SwapRateHelper__SWIG_0(self, args);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 13) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Calendar, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_IborIndexPtr, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Period, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        {
                          int res = SWIG_AsVal_unsigned_SS_int(argv[10], NULL);
                          _v = SWIG_CheckState(res);
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_int(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            int res = SWIG_ConvertPtr(argv[12], 0, SWIGTYPE_p_Date, 0);
                            _v = SWIG_CheckState(res);
                            if (_v) {
                              return _wrap_new_SwapRateHelper__SWIG_7(self, args);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SwapRateHelper'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Handle< Quote > const &,Period const &,Calendar const &,Frequency,BusinessDayConvention,DayCounter const &,IborIndexPtr const &,Handle< Quote > const &,Period const &,Handle< YieldTermStructure > const &,Natural,Pillar::Choice,Date)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Handle< Quote > const &,Period const &,Calendar const &,Frequency,BusinessDayConvention,DayCounter const &,IborIndexPtr const &,Handle< Quote > const &,Period const &,Handle< YieldTermStructure > const &,Natural,Pillar::Choice)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Handle< Quote > const &,Period const &,Calendar const &,Frequency,BusinessDayConvention,DayCounter const &,IborIndexPtr const &,Handle< Quote > const &,Period const &,Handle< YieldTermStructure > const &,Natural)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Handle< Quote > const &,Period const &,Calendar const &,Frequency,BusinessDayConvention,DayCounter const &,IborIndexPtr const &,Handle< Quote > const &,Period const &,Handle< YieldTermStructure > const &)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Handle< Quote > const &,Period const &,Calendar const &,Frequency,BusinessDayConvention,DayCounter const &,IborIndexPtr const &,Handle< Quote > const &,Period const &)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Handle< Quote > const &,Period const &,Calendar const &,Frequency,BusinessDayConvention,DayCounter const &,IborIndexPtr const &,Handle< Quote > const &)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Handle< Quote > const &,Period const &,Calendar const &,Frequency,BusinessDayConvention,DayCounter const &,IborIndexPtr const &)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Rate,Period const &,Calendar const &,Frequency,BusinessDayConvention,DayCounter const &,IborIndexPtr const &,Handle< Quote > const &,Period const &,Handle< YieldTermStructure > const &,Natural,Pillar::Choice,Date)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Rate,Period const &,Calendar const &,Frequency,BusinessDayConvention,DayCounter const &,IborIndexPtr const &,Handle< Quote > const &,Period const &,Handle< YieldTermStructure > const &,Natural,Pillar::Choice)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Rate,Period const &,Calendar const &,Frequency,BusinessDayConvention,DayCounter const &,IborIndexPtr const &,Handle< Quote > const &,Period const &,Handle< YieldTermStructure > const &,Natural)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Rate,Period const &,Calendar const &,Frequency,BusinessDayConvention,DayCounter const &,IborIndexPtr const &,Handle< Quote > const &,Period const &,Handle< YieldTermStructure > const &)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Rate,Period const &,Calendar const &,Frequency,BusinessDayConvention,DayCounter const &,IborIndexPtr const &,Handle< Quote > const &,Period const &)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Rate,Period const &,Calendar const &,Frequency,BusinessDayConvention,DayCounter const &,IborIndexPtr const &,Handle< Quote > const &)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Rate,Period const &,Calendar const &,Frequency,BusinessDayConvention,DayCounter const &,IborIndexPtr const &)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Handle< Quote > const &,SwapIndexPtr const &,Handle< Quote > const &,Period const &,Handle< YieldTermStructure > const &,Pillar::Choice,Date)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Handle< Quote > const &,SwapIndexPtr const &,Handle< Quote > const &,Period const &,Handle< YieldTermStructure > const &,Pillar::Choice)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Handle< Quote > const &,SwapIndexPtr const &,Handle< Quote > const &,Period const &,Handle< YieldTermStructure > const &)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Handle< Quote > const &,SwapIndexPtr const &,Handle< Quote > const &,Period const &)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Handle< Quote > const &,SwapIndexPtr const &,Handle< Quote > const &)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Handle< Quote > const &,SwapIndexPtr const &)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Rate,SwapIndexPtr const &,Handle< Quote > const &,Period const &,Handle< YieldTermStructure > const &,Pillar::Choice,Date)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Rate,SwapIndexPtr const &,Handle< Quote > const &,Period const &,Handle< YieldTermStructure > const &,Pillar::Choice)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Rate,SwapIndexPtr const &,Handle< Quote > const &,Period const &,Handle< YieldTermStructure > const &)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Rate,SwapIndexPtr const &,Handle< Quote > const &,Period const &)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Rate,SwapIndexPtr const &,Handle< Quote > const &)\n"
    "    SwapRateHelperPtr::SwapRateHelperPtr(Rate,SwapIndexPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_SwapRateHelper_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwapRateHelperPtr *arg1 = (SwapRateHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< VanillaSwapPtr > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SwapRateHelper_swap",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwapRateHelperPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwapRateHelper_swap" "', argument " "1"" of type '" "SwapRateHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< SwapRateHelperPtr * >(argp1);
  {
    try {
      result = SwapRateHelperPtr_swap(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new VanillaSwapPtr(static_cast< const VanillaSwapPtr& >(result))), SWIGTYPE_p_VanillaSwapPtr, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SwapRateHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwapRateHelperPtr *arg1 = (SwapRateHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SwapRateHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwapRateHelperPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwapRateHelper" "', argument " "1"" of type '" "SwapRateHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< SwapRateHelperPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SwapRateHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SwapRateHelperPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BondHelper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  BondPtr *arg2 = 0 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  BondHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BondHelper",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BondHelper" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BondHelper" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BondHelper" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (BondHelperPtr *)new_BondHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,(BondPtr const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BondHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BondHelper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  BondPtr *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BondHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BondHelper",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BondPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BondHelper" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BondHelper" "', argument " "2"" of type '" "BondPtr const &""'"); 
  }
  arg2 = reinterpret_cast< BondPtr * >(argp2);
  {
    try {
      result = (BondHelperPtr *)new_BondHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,(BondPtr const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BondHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BondHelper(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_BondHelper__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BondPtr, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_BondHelper__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BondHelper'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BondHelperPtr::BondHelperPtr(Handle< Quote > const &,BondPtr const &,bool)\n"
    "    BondHelperPtr::BondHelperPtr(Handle< Quote > const &,BondPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BondHelper_bond(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondHelperPtr *arg1 = (BondHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< BondPtr > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BondHelper_bond",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondHelperPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BondHelper_bond" "', argument " "1"" of type '" "BondHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondHelperPtr * >(argp1);
  {
    try {
      result = BondHelperPtr_bond(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new BondPtr(static_cast< const BondPtr& >(result))), SWIGTYPE_p_BondPtr, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BondHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BondHelperPtr *arg1 = (BondHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BondHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BondHelperPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BondHelper" "', argument " "1"" of type '" "BondHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< BondHelperPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BondHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BondHelperPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FixedRateBondHelper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Size arg2 ;
  Real arg3 ;
  Schedule *arg4 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  BusinessDayConvention arg7 ;
  Real arg8 ;
  Date *arg9 = 0 ;
  Calendar *arg10 = 0 ;
  Period *arg11 = 0 ;
  Calendar *arg12 = 0 ;
  BusinessDayConvention arg13 ;
  bool arg14 ;
  bool arg15 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  void *argp12 = 0 ;
  int res12 = 0 ;
  int val13 ;
  int ecode13 = 0 ;
  bool val14 ;
  int ecode14 = 0 ;
  bool val15 ;
  int ecode15 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  PyObject * obj14 = 0 ;
  FixedRateBondHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBondHelper",15,15,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBondHelper" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FixedRateBondHelper" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FixedRateBondHelper" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FixedRateBondHelper" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBondHelper" "', argument " "9"" of type '" "Date const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "9"" of type '" "Date const &""'"); 
  }
  arg9 = reinterpret_cast< Date * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_FixedRateBondHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  arg10 = reinterpret_cast< Calendar * >(argp10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_FixedRateBondHelper" "', argument " "11"" of type '" "Period const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "11"" of type '" "Period const &""'"); 
  }
  arg11 = reinterpret_cast< Period * >(argp11);
  res12 = SWIG_ConvertPtr(obj11, &argp12, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res12)) {
    SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_FixedRateBondHelper" "', argument " "12"" of type '" "Calendar const &""'"); 
  }
  if (!argp12) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "12"" of type '" "Calendar const &""'"); 
  }
  arg12 = reinterpret_cast< Calendar * >(argp12);
  ecode13 = SWIG_AsVal_int(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_FixedRateBondHelper" "', argument " "13"" of type '" "BusinessDayConvention""'");
  } 
  arg13 = static_cast< BusinessDayConvention >(val13);
  ecode14 = SWIG_AsVal_bool(obj13, &val14);
  if (!SWIG_IsOK(ecode14)) {
    SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "new_FixedRateBondHelper" "', argument " "14"" of type '" "bool""'");
  } 
  arg14 = static_cast< bool >(val14);
  ecode15 = SWIG_AsVal_bool(obj14, &val15);
  if (!SWIG_IsOK(ecode15)) {
    SWIG_exception_fail(SWIG_ArgError(ecode15), "in method '" "new_FixedRateBondHelper" "', argument " "15"" of type '" "bool""'");
  } 
  arg15 = static_cast< bool >(val15);
  {
    try {
      result = (FixedRateBondHelperPtr *)new_FixedRateBondHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,arg2,arg3,(Schedule const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(DayCounter const &)*arg6,arg7,arg8,(Date const &)*arg9,(Calendar const &)*arg10,(Period const &)*arg11,(Calendar const &)*arg12,arg13,arg14,arg15);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondHelperPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBondHelper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Size arg2 ;
  Real arg3 ;
  Schedule *arg4 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  BusinessDayConvention arg7 ;
  Real arg8 ;
  Date *arg9 = 0 ;
  Calendar *arg10 = 0 ;
  Period *arg11 = 0 ;
  Calendar *arg12 = 0 ;
  BusinessDayConvention arg13 ;
  bool arg14 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  void *argp12 = 0 ;
  int res12 = 0 ;
  int val13 ;
  int ecode13 = 0 ;
  bool val14 ;
  int ecode14 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  FixedRateBondHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBondHelper",14,14,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBondHelper" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FixedRateBondHelper" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FixedRateBondHelper" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FixedRateBondHelper" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBondHelper" "', argument " "9"" of type '" "Date const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "9"" of type '" "Date const &""'"); 
  }
  arg9 = reinterpret_cast< Date * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_FixedRateBondHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  arg10 = reinterpret_cast< Calendar * >(argp10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_FixedRateBondHelper" "', argument " "11"" of type '" "Period const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "11"" of type '" "Period const &""'"); 
  }
  arg11 = reinterpret_cast< Period * >(argp11);
  res12 = SWIG_ConvertPtr(obj11, &argp12, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res12)) {
    SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_FixedRateBondHelper" "', argument " "12"" of type '" "Calendar const &""'"); 
  }
  if (!argp12) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "12"" of type '" "Calendar const &""'"); 
  }
  arg12 = reinterpret_cast< Calendar * >(argp12);
  ecode13 = SWIG_AsVal_int(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_FixedRateBondHelper" "', argument " "13"" of type '" "BusinessDayConvention""'");
  } 
  arg13 = static_cast< BusinessDayConvention >(val13);
  ecode14 = SWIG_AsVal_bool(obj13, &val14);
  if (!SWIG_IsOK(ecode14)) {
    SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "new_FixedRateBondHelper" "', argument " "14"" of type '" "bool""'");
  } 
  arg14 = static_cast< bool >(val14);
  {
    try {
      result = (FixedRateBondHelperPtr *)new_FixedRateBondHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,arg2,arg3,(Schedule const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(DayCounter const &)*arg6,arg7,arg8,(Date const &)*arg9,(Calendar const &)*arg10,(Period const &)*arg11,(Calendar const &)*arg12,arg13,arg14);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondHelperPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBondHelper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Size arg2 ;
  Real arg3 ;
  Schedule *arg4 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  BusinessDayConvention arg7 ;
  Real arg8 ;
  Date *arg9 = 0 ;
  Calendar *arg10 = 0 ;
  Period *arg11 = 0 ;
  Calendar *arg12 = 0 ;
  BusinessDayConvention arg13 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  void *argp12 = 0 ;
  int res12 = 0 ;
  int val13 ;
  int ecode13 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  FixedRateBondHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBondHelper",13,13,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBondHelper" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FixedRateBondHelper" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FixedRateBondHelper" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FixedRateBondHelper" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBondHelper" "', argument " "9"" of type '" "Date const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "9"" of type '" "Date const &""'"); 
  }
  arg9 = reinterpret_cast< Date * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_FixedRateBondHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  arg10 = reinterpret_cast< Calendar * >(argp10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_FixedRateBondHelper" "', argument " "11"" of type '" "Period const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "11"" of type '" "Period const &""'"); 
  }
  arg11 = reinterpret_cast< Period * >(argp11);
  res12 = SWIG_ConvertPtr(obj11, &argp12, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res12)) {
    SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_FixedRateBondHelper" "', argument " "12"" of type '" "Calendar const &""'"); 
  }
  if (!argp12) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "12"" of type '" "Calendar const &""'"); 
  }
  arg12 = reinterpret_cast< Calendar * >(argp12);
  ecode13 = SWIG_AsVal_int(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_FixedRateBondHelper" "', argument " "13"" of type '" "BusinessDayConvention""'");
  } 
  arg13 = static_cast< BusinessDayConvention >(val13);
  {
    try {
      result = (FixedRateBondHelperPtr *)new_FixedRateBondHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,arg2,arg3,(Schedule const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(DayCounter const &)*arg6,arg7,arg8,(Date const &)*arg9,(Calendar const &)*arg10,(Period const &)*arg11,(Calendar const &)*arg12,arg13);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondHelperPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBondHelper__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Size arg2 ;
  Real arg3 ;
  Schedule *arg4 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  BusinessDayConvention arg7 ;
  Real arg8 ;
  Date *arg9 = 0 ;
  Calendar *arg10 = 0 ;
  Period *arg11 = 0 ;
  Calendar *arg12 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  void *argp12 = 0 ;
  int res12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  FixedRateBondHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBondHelper",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBondHelper" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FixedRateBondHelper" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FixedRateBondHelper" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FixedRateBondHelper" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBondHelper" "', argument " "9"" of type '" "Date const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "9"" of type '" "Date const &""'"); 
  }
  arg9 = reinterpret_cast< Date * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_FixedRateBondHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  arg10 = reinterpret_cast< Calendar * >(argp10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_FixedRateBondHelper" "', argument " "11"" of type '" "Period const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "11"" of type '" "Period const &""'"); 
  }
  arg11 = reinterpret_cast< Period * >(argp11);
  res12 = SWIG_ConvertPtr(obj11, &argp12, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res12)) {
    SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "new_FixedRateBondHelper" "', argument " "12"" of type '" "Calendar const &""'"); 
  }
  if (!argp12) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "12"" of type '" "Calendar const &""'"); 
  }
  arg12 = reinterpret_cast< Calendar * >(argp12);
  {
    try {
      result = (FixedRateBondHelperPtr *)new_FixedRateBondHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,arg2,arg3,(Schedule const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(DayCounter const &)*arg6,arg7,arg8,(Date const &)*arg9,(Calendar const &)*arg10,(Period const &)*arg11,(Calendar const &)*arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondHelperPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBondHelper__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Size arg2 ;
  Real arg3 ;
  Schedule *arg4 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  BusinessDayConvention arg7 ;
  Real arg8 ;
  Date *arg9 = 0 ;
  Calendar *arg10 = 0 ;
  Period *arg11 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  FixedRateBondHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBondHelper",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBondHelper" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FixedRateBondHelper" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FixedRateBondHelper" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FixedRateBondHelper" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBondHelper" "', argument " "9"" of type '" "Date const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "9"" of type '" "Date const &""'"); 
  }
  arg9 = reinterpret_cast< Date * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_FixedRateBondHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  arg10 = reinterpret_cast< Calendar * >(argp10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_FixedRateBondHelper" "', argument " "11"" of type '" "Period const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "11"" of type '" "Period const &""'"); 
  }
  arg11 = reinterpret_cast< Period * >(argp11);
  {
    try {
      result = (FixedRateBondHelperPtr *)new_FixedRateBondHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,arg2,arg3,(Schedule const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(DayCounter const &)*arg6,arg7,arg8,(Date const &)*arg9,(Calendar const &)*arg10,(Period const &)*arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondHelperPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBondHelper__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Size arg2 ;
  Real arg3 ;
  Schedule *arg4 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  BusinessDayConvention arg7 ;
  Real arg8 ;
  Date *arg9 = 0 ;
  Calendar *arg10 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  FixedRateBondHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBondHelper",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBondHelper" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FixedRateBondHelper" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FixedRateBondHelper" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FixedRateBondHelper" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBondHelper" "', argument " "9"" of type '" "Date const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "9"" of type '" "Date const &""'"); 
  }
  arg9 = reinterpret_cast< Date * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_FixedRateBondHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  arg10 = reinterpret_cast< Calendar * >(argp10);
  {
    try {
      result = (FixedRateBondHelperPtr *)new_FixedRateBondHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,arg2,arg3,(Schedule const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(DayCounter const &)*arg6,arg7,arg8,(Date const &)*arg9,(Calendar const &)*arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondHelperPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBondHelper__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Size arg2 ;
  Real arg3 ;
  Schedule *arg4 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  BusinessDayConvention arg7 ;
  Real arg8 ;
  Date *arg9 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  FixedRateBondHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBondHelper",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBondHelper" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FixedRateBondHelper" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FixedRateBondHelper" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FixedRateBondHelper" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBondHelper" "', argument " "9"" of type '" "Date const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "9"" of type '" "Date const &""'"); 
  }
  arg9 = reinterpret_cast< Date * >(argp9);
  {
    try {
      result = (FixedRateBondHelperPtr *)new_FixedRateBondHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,arg2,arg3,(Schedule const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(DayCounter const &)*arg6,arg7,arg8,(Date const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondHelperPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBondHelper__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Size arg2 ;
  Real arg3 ;
  Schedule *arg4 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  BusinessDayConvention arg7 ;
  Real arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  FixedRateBondHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBondHelper",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBondHelper" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FixedRateBondHelper" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FixedRateBondHelper" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FixedRateBondHelper" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  {
    try {
      result = (FixedRateBondHelperPtr *)new_FixedRateBondHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,arg2,arg3,(Schedule const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(DayCounter const &)*arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondHelperPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBondHelper__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Size arg2 ;
  Real arg3 ;
  Schedule *arg4 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  BusinessDayConvention arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  FixedRateBondHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBondHelper",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBondHelper" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FixedRateBondHelper" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FixedRateBondHelper" "', argument " "7"" of type '" "BusinessDayConvention""'");
  } 
  arg7 = static_cast< BusinessDayConvention >(val7);
  {
    try {
      result = (FixedRateBondHelperPtr *)new_FixedRateBondHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,arg2,arg3,(Schedule const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(DayCounter const &)*arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondHelperPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBondHelper__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Size arg2 ;
  Real arg3 ;
  Schedule *arg4 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  FixedRateBondHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBondHelper",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FixedRateBondHelper" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FixedRateBondHelper" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Schedule,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "4"" of type '" "Schedule const &""'"); 
  }
  arg4 = reinterpret_cast< Schedule * >(argp4);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondHelper" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  {
    try {
      result = (FixedRateBondHelperPtr *)new_FixedRateBondHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,arg2,arg3,(Schedule const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(DayCounter const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondHelperPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBondHelper(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[16] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 15) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_FixedRateBondHelper__SWIG_9(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_FixedRateBondHelper__SWIG_8(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_FixedRateBondHelper__SWIG_7(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Date, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap_new_FixedRateBondHelper__SWIG_6(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Date, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Calendar, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        return _wrap_new_FixedRateBondHelper__SWIG_5(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Date, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Calendar, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_Period, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          return _wrap_new_FixedRateBondHelper__SWIG_4(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Date, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Calendar, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_Period, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          int res = SWIG_ConvertPtr(argv[11], 0, SWIGTYPE_p_Calendar, 0);
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            return _wrap_new_FixedRateBondHelper__SWIG_3(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 13) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Date, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Calendar, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_Period, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          int res = SWIG_ConvertPtr(argv[11], 0, SWIGTYPE_p_Calendar, 0);
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            {
                              int res = SWIG_AsVal_int(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              return _wrap_new_FixedRateBondHelper__SWIG_2(self, args);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 14) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Date, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Calendar, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_Period, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          int res = SWIG_ConvertPtr(argv[11], 0, SWIGTYPE_p_Calendar, 0);
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            {
                              int res = SWIG_AsVal_int(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              {
                                int res = SWIG_AsVal_bool(argv[13], NULL);
                                _v = SWIG_CheckState(res);
                              }
                              if (_v) {
                                return _wrap_new_FixedRateBondHelper__SWIG_1(self, args);
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 15) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Schedule, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_Date, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Calendar, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_Period, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          int res = SWIG_ConvertPtr(argv[11], 0, SWIGTYPE_p_Calendar, 0);
                          _v = SWIG_CheckState(res);
                          if (_v) {
                            {
                              int res = SWIG_AsVal_int(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              {
                                int res = SWIG_AsVal_bool(argv[13], NULL);
                                _v = SWIG_CheckState(res);
                              }
                              if (_v) {
                                {
                                  int res = SWIG_AsVal_bool(argv[14], NULL);
                                  _v = SWIG_CheckState(res);
                                }
                                if (_v) {
                                  return _wrap_new_FixedRateBondHelper__SWIG_0(self, args);
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FixedRateBondHelper'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FixedRateBondHelperPtr::FixedRateBondHelperPtr(Handle< Quote > const &,Size,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,BusinessDayConvention,Real,Date const &,Calendar const &,Period const &,Calendar const &,BusinessDayConvention,bool,bool)\n"
    "    FixedRateBondHelperPtr::FixedRateBondHelperPtr(Handle< Quote > const &,Size,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,BusinessDayConvention,Real,Date const &,Calendar const &,Period const &,Calendar const &,BusinessDayConvention,bool)\n"
    "    FixedRateBondHelperPtr::FixedRateBondHelperPtr(Handle< Quote > const &,Size,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,BusinessDayConvention,Real,Date const &,Calendar const &,Period const &,Calendar const &,BusinessDayConvention)\n"
    "    FixedRateBondHelperPtr::FixedRateBondHelperPtr(Handle< Quote > const &,Size,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,BusinessDayConvention,Real,Date const &,Calendar const &,Period const &,Calendar const &)\n"
    "    FixedRateBondHelperPtr::FixedRateBondHelperPtr(Handle< Quote > const &,Size,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,BusinessDayConvention,Real,Date const &,Calendar const &,Period const &)\n"
    "    FixedRateBondHelperPtr::FixedRateBondHelperPtr(Handle< Quote > const &,Size,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,BusinessDayConvention,Real,Date const &,Calendar const &)\n"
    "    FixedRateBondHelperPtr::FixedRateBondHelperPtr(Handle< Quote > const &,Size,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,BusinessDayConvention,Real,Date const &)\n"
    "    FixedRateBondHelperPtr::FixedRateBondHelperPtr(Handle< Quote > const &,Size,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,BusinessDayConvention,Real)\n"
    "    FixedRateBondHelperPtr::FixedRateBondHelperPtr(Handle< Quote > const &,Size,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,BusinessDayConvention)\n"
    "    FixedRateBondHelperPtr::FixedRateBondHelperPtr(Handle< Quote > const &,Size,Real,Schedule const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_FixedRateBondHelper_bond(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FixedRateBondHelperPtr *arg1 = (FixedRateBondHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< FixedRateBondPtr > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FixedRateBondHelper_bond",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FixedRateBondHelperPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedRateBondHelper_bond" "', argument " "1"" of type '" "FixedRateBondHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< FixedRateBondHelperPtr * >(argp1);
  {
    try {
      result = FixedRateBondHelperPtr_bond(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new FixedRateBondPtr(static_cast< const FixedRateBondPtr& >(result))), SWIGTYPE_p_FixedRateBondPtr, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_FixedRateBondHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FixedRateBondHelperPtr *arg1 = (FixedRateBondHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FixedRateBondHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FixedRateBondHelperPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FixedRateBondHelper" "', argument " "1"" of type '" "FixedRateBondHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< FixedRateBondHelperPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FixedRateBondHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FixedRateBondHelperPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_OISRateHelper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  OvernightIndexPtr *arg4 = 0 ;
  Handle< YieldTermStructure > *arg5 = 0 ;
  bool arg6 ;
  Natural arg7 ;
  BusinessDayConvention arg8 ;
  Frequency arg9 ;
  Calendar *arg10 = 0 ;
  Period *arg11 = 0 ;
  Spread arg12 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  unsigned int val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  double val12 ;
  int ecode12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  OISRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_OISRateHelper",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_OISRateHelper" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_OISRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_OISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_OvernightIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_OISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< OvernightIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_OISRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_OISRateHelper" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_OISRateHelper" "', argument " "7"" of type '" "Natural""'");
  } 
  arg7 = static_cast< Natural >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_OISRateHelper" "', argument " "8"" of type '" "BusinessDayConvention""'");
  } 
  arg8 = static_cast< BusinessDayConvention >(val8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_OISRateHelper" "', argument " "9"" of type '" "Frequency""'");
  } 
  arg9 = static_cast< Frequency >(val9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_OISRateHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  arg10 = reinterpret_cast< Calendar * >(argp10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_OISRateHelper" "', argument " "11"" of type '" "Period const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "11"" of type '" "Period const &""'"); 
  }
  arg11 = reinterpret_cast< Period * >(argp11);
  ecode12 = SWIG_AsVal_double(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_OISRateHelper" "', argument " "12"" of type '" "Spread""'");
  } 
  arg12 = static_cast< Spread >(val12);
  {
    try {
      result = (OISRateHelperPtr *)new_OISRateHelperPtr__SWIG_0(arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(OvernightIndexPtr const &)*arg4,(Handle< YieldTermStructure > const &)*arg5,arg6,arg7,arg8,arg9,(Calendar const &)*arg10,(Period const &)*arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OISRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OISRateHelper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  OvernightIndexPtr *arg4 = 0 ;
  Handle< YieldTermStructure > *arg5 = 0 ;
  bool arg6 ;
  Natural arg7 ;
  BusinessDayConvention arg8 ;
  Frequency arg9 ;
  Calendar *arg10 = 0 ;
  Period *arg11 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  unsigned int val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  OISRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_OISRateHelper",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_OISRateHelper" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_OISRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_OISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_OvernightIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_OISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< OvernightIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_OISRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_OISRateHelper" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_OISRateHelper" "', argument " "7"" of type '" "Natural""'");
  } 
  arg7 = static_cast< Natural >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_OISRateHelper" "', argument " "8"" of type '" "BusinessDayConvention""'");
  } 
  arg8 = static_cast< BusinessDayConvention >(val8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_OISRateHelper" "', argument " "9"" of type '" "Frequency""'");
  } 
  arg9 = static_cast< Frequency >(val9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_OISRateHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  arg10 = reinterpret_cast< Calendar * >(argp10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_OISRateHelper" "', argument " "11"" of type '" "Period const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "11"" of type '" "Period const &""'"); 
  }
  arg11 = reinterpret_cast< Period * >(argp11);
  {
    try {
      result = (OISRateHelperPtr *)new_OISRateHelperPtr__SWIG_0(arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(OvernightIndexPtr const &)*arg4,(Handle< YieldTermStructure > const &)*arg5,arg6,arg7,arg8,arg9,(Calendar const &)*arg10,(Period const &)*arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OISRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OISRateHelper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  OvernightIndexPtr *arg4 = 0 ;
  Handle< YieldTermStructure > *arg5 = 0 ;
  bool arg6 ;
  Natural arg7 ;
  BusinessDayConvention arg8 ;
  Frequency arg9 ;
  Calendar *arg10 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  unsigned int val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  OISRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_OISRateHelper",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_OISRateHelper" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_OISRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_OISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_OvernightIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_OISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< OvernightIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_OISRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_OISRateHelper" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_OISRateHelper" "', argument " "7"" of type '" "Natural""'");
  } 
  arg7 = static_cast< Natural >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_OISRateHelper" "', argument " "8"" of type '" "BusinessDayConvention""'");
  } 
  arg8 = static_cast< BusinessDayConvention >(val8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_OISRateHelper" "', argument " "9"" of type '" "Frequency""'");
  } 
  arg9 = static_cast< Frequency >(val9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_OISRateHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  arg10 = reinterpret_cast< Calendar * >(argp10);
  {
    try {
      result = (OISRateHelperPtr *)new_OISRateHelperPtr__SWIG_0(arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(OvernightIndexPtr const &)*arg4,(Handle< YieldTermStructure > const &)*arg5,arg6,arg7,arg8,arg9,(Calendar const &)*arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OISRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OISRateHelper__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  OvernightIndexPtr *arg4 = 0 ;
  Handle< YieldTermStructure > *arg5 = 0 ;
  bool arg6 ;
  Natural arg7 ;
  BusinessDayConvention arg8 ;
  Frequency arg9 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  unsigned int val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  OISRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_OISRateHelper",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_OISRateHelper" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_OISRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_OISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_OvernightIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_OISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< OvernightIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_OISRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_OISRateHelper" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_OISRateHelper" "', argument " "7"" of type '" "Natural""'");
  } 
  arg7 = static_cast< Natural >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_OISRateHelper" "', argument " "8"" of type '" "BusinessDayConvention""'");
  } 
  arg8 = static_cast< BusinessDayConvention >(val8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_OISRateHelper" "', argument " "9"" of type '" "Frequency""'");
  } 
  arg9 = static_cast< Frequency >(val9);
  {
    try {
      result = (OISRateHelperPtr *)new_OISRateHelperPtr__SWIG_0(arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(OvernightIndexPtr const &)*arg4,(Handle< YieldTermStructure > const &)*arg5,arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OISRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OISRateHelper__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  OvernightIndexPtr *arg4 = 0 ;
  Handle< YieldTermStructure > *arg5 = 0 ;
  bool arg6 ;
  Natural arg7 ;
  BusinessDayConvention arg8 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  unsigned int val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  OISRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_OISRateHelper",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_OISRateHelper" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_OISRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_OISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_OvernightIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_OISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< OvernightIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_OISRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_OISRateHelper" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_OISRateHelper" "', argument " "7"" of type '" "Natural""'");
  } 
  arg7 = static_cast< Natural >(val7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_OISRateHelper" "', argument " "8"" of type '" "BusinessDayConvention""'");
  } 
  arg8 = static_cast< BusinessDayConvention >(val8);
  {
    try {
      result = (OISRateHelperPtr *)new_OISRateHelperPtr__SWIG_0(arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(OvernightIndexPtr const &)*arg4,(Handle< YieldTermStructure > const &)*arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OISRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OISRateHelper__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  OvernightIndexPtr *arg4 = 0 ;
  Handle< YieldTermStructure > *arg5 = 0 ;
  bool arg6 ;
  Natural arg7 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  unsigned int val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  OISRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_OISRateHelper",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_OISRateHelper" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_OISRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_OISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_OvernightIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_OISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< OvernightIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_OISRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_OISRateHelper" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_OISRateHelper" "', argument " "7"" of type '" "Natural""'");
  } 
  arg7 = static_cast< Natural >(val7);
  {
    try {
      result = (OISRateHelperPtr *)new_OISRateHelperPtr__SWIG_0(arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(OvernightIndexPtr const &)*arg4,(Handle< YieldTermStructure > const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OISRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OISRateHelper__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  OvernightIndexPtr *arg4 = 0 ;
  Handle< YieldTermStructure > *arg5 = 0 ;
  bool arg6 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  bool val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  OISRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_OISRateHelper",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_OISRateHelper" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_OISRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_OISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_OvernightIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_OISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< OvernightIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_OISRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
  ecode6 = SWIG_AsVal_bool(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_OISRateHelper" "', argument " "6"" of type '" "bool""'");
  } 
  arg6 = static_cast< bool >(val6);
  {
    try {
      result = (OISRateHelperPtr *)new_OISRateHelperPtr__SWIG_0(arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(OvernightIndexPtr const &)*arg4,(Handle< YieldTermStructure > const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OISRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OISRateHelper__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  OvernightIndexPtr *arg4 = 0 ;
  Handle< YieldTermStructure > *arg5 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  OISRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_OISRateHelper",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_OISRateHelper" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_OISRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_OISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_OvernightIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_OISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< OvernightIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_OISRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
  {
    try {
      result = (OISRateHelperPtr *)new_OISRateHelperPtr__SWIG_0(arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(OvernightIndexPtr const &)*arg4,(Handle< YieldTermStructure > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OISRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OISRateHelper__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Period *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  OvernightIndexPtr *arg4 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  OISRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_OISRateHelper",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_OISRateHelper" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_OISRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_OISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_OvernightIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_OISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< OvernightIndexPtr * >(argp4);
  {
    try {
      result = (OISRateHelperPtr *)new_OISRateHelperPtr__SWIG_0(arg1,(Period const &)*arg2,(Handle< Quote > const &)*arg3,(OvernightIndexPtr const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OISRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OISRateHelper(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[13] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 12) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_OvernightIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_OISRateHelper__SWIG_8(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_OvernightIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_OISRateHelper__SWIG_7(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_OvernightIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_OISRateHelper__SWIG_6(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_OvernightIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_unsigned_SS_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_OISRateHelper__SWIG_5(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_OvernightIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_unsigned_SS_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_OISRateHelper__SWIG_4(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_OvernightIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_unsigned_SS_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_new_OISRateHelper__SWIG_3(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_OvernightIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_unsigned_SS_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Calendar, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        return _wrap_new_OISRateHelper__SWIG_2(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_OvernightIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_unsigned_SS_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Calendar, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_Period, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          return _wrap_new_OISRateHelper__SWIG_1(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_OvernightIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_bool(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_unsigned_SS_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Calendar, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_Period, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          {
                            int res = SWIG_AsVal_double(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            return _wrap_new_OISRateHelper__SWIG_0(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_OISRateHelper'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    OISRateHelperPtr::OISRateHelperPtr(Natural,Period const &,Handle< Quote > const &,OvernightIndexPtr const &,Handle< YieldTermStructure > const &,bool,Natural,BusinessDayConvention,Frequency,Calendar const &,Period const &,Spread const)\n"
    "    OISRateHelperPtr::OISRateHelperPtr(Natural,Period const &,Handle< Quote > const &,OvernightIndexPtr const &,Handle< YieldTermStructure > const &,bool,Natural,BusinessDayConvention,Frequency,Calendar const &,Period const &)\n"
    "    OISRateHelperPtr::OISRateHelperPtr(Natural,Period const &,Handle< Quote > const &,OvernightIndexPtr const &,Handle< YieldTermStructure > const &,bool,Natural,BusinessDayConvention,Frequency,Calendar const &)\n"
    "    OISRateHelperPtr::OISRateHelperPtr(Natural,Period const &,Handle< Quote > const &,OvernightIndexPtr const &,Handle< YieldTermStructure > const &,bool,Natural,BusinessDayConvention,Frequency)\n"
    "    OISRateHelperPtr::OISRateHelperPtr(Natural,Period const &,Handle< Quote > const &,OvernightIndexPtr const &,Handle< YieldTermStructure > const &,bool,Natural,BusinessDayConvention)\n"
    "    OISRateHelperPtr::OISRateHelperPtr(Natural,Period const &,Handle< Quote > const &,OvernightIndexPtr const &,Handle< YieldTermStructure > const &,bool,Natural)\n"
    "    OISRateHelperPtr::OISRateHelperPtr(Natural,Period const &,Handle< Quote > const &,OvernightIndexPtr const &,Handle< YieldTermStructure > const &,bool)\n"
    "    OISRateHelperPtr::OISRateHelperPtr(Natural,Period const &,Handle< Quote > const &,OvernightIndexPtr const &,Handle< YieldTermStructure > const &)\n"
    "    OISRateHelperPtr::OISRateHelperPtr(Natural,Period const &,Handle< Quote > const &,OvernightIndexPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_OISRateHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  OISRateHelperPtr *arg1 = (OISRateHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_OISRateHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OISRateHelperPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OISRateHelper" "', argument " "1"" of type '" "OISRateHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< OISRateHelperPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *OISRateHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_OISRateHelperPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DatedOISRateHelper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Date *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  OvernightIndexPtr *arg4 = 0 ;
  Handle< YieldTermStructure > *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  DatedOISRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DatedOISRateHelper",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatedOISRateHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatedOISRateHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatedOISRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatedOISRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatedOISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatedOISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_OvernightIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_DatedOISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatedOISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< OvernightIndexPtr * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_DatedOISRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatedOISRateHelper" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
  {
    try {
      result = (DatedOISRateHelperPtr *)new_DatedOISRateHelperPtr__SWIG_0((Date const &)*arg1,(Date const &)*arg2,(Handle< Quote > const &)*arg3,(OvernightIndexPtr const &)*arg4,(Handle< YieldTermStructure > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DatedOISRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DatedOISRateHelper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Date *arg2 = 0 ;
  Handle< Quote > *arg3 = 0 ;
  OvernightIndexPtr *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  DatedOISRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DatedOISRateHelper",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatedOISRateHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatedOISRateHelper" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DatedOISRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatedOISRateHelper" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatedOISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatedOISRateHelper" "', argument " "3"" of type '" "Handle< Quote > const &""'"); 
  }
  arg3 = reinterpret_cast< Handle< Quote > * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_OvernightIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_DatedOISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatedOISRateHelper" "', argument " "4"" of type '" "OvernightIndexPtr const &""'"); 
  }
  arg4 = reinterpret_cast< OvernightIndexPtr * >(argp4);
  {
    try {
      result = (DatedOISRateHelperPtr *)new_DatedOISRateHelperPtr__SWIG_0((Date const &)*arg1,(Date const &)*arg2,(Handle< Quote > const &)*arg3,(OvernightIndexPtr const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DatedOISRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DatedOISRateHelper(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_OvernightIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_DatedOISRateHelper__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_OvernightIndexPtr, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_DatedOISRateHelper__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_DatedOISRateHelper'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    DatedOISRateHelperPtr::DatedOISRateHelperPtr(Date const &,Date const &,Handle< Quote > const &,OvernightIndexPtr const &,Handle< YieldTermStructure > const &)\n"
    "    DatedOISRateHelperPtr::DatedOISRateHelperPtr(Date const &,Date const &,Handle< Quote > const &,OvernightIndexPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_DatedOISRateHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DatedOISRateHelperPtr *arg1 = (DatedOISRateHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DatedOISRateHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DatedOISRateHelperPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DatedOISRateHelper" "', argument " "1"" of type '" "DatedOISRateHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< DatedOISRateHelperPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DatedOISRateHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DatedOISRateHelperPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FxSwapRateHelper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  Period *arg3 = 0 ;
  Natural arg4 ;
  Calendar *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  bool arg7 ;
  bool arg8 ;
  Handle< YieldTermStructure > *arg9 = 0 ;
  Calendar *arg10 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  bool val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  FxSwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FxSwapRateHelper",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FxSwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FxSwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FxSwapRateHelper" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FxSwapRateHelper" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FxSwapRateHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FxSwapRateHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FxSwapRateHelper" "', argument " "4"" of type '" "Natural""'");
  } 
  arg4 = static_cast< Natural >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FxSwapRateHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FxSwapRateHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FxSwapRateHelper" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FxSwapRateHelper" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FxSwapRateHelper" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FxSwapRateHelper" "', argument " "9"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FxSwapRateHelper" "', argument " "9"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg9 = reinterpret_cast< Handle< YieldTermStructure > * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_FxSwapRateHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FxSwapRateHelper" "', argument " "10"" of type '" "Calendar const &""'"); 
  }
  arg10 = reinterpret_cast< Calendar * >(argp10);
  {
    try {
      result = (FxSwapRateHelperPtr *)new_FxSwapRateHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,(Handle< Quote > const &)*arg2,(Period const &)*arg3,arg4,(Calendar const &)*arg5,arg6,arg7,arg8,(Handle< YieldTermStructure > const &)*arg9,(Calendar const &)*arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FxSwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FxSwapRateHelper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  Period *arg3 = 0 ;
  Natural arg4 ;
  Calendar *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  bool arg7 ;
  bool arg8 ;
  Handle< YieldTermStructure > *arg9 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  bool val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  FxSwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FxSwapRateHelper",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FxSwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FxSwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FxSwapRateHelper" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FxSwapRateHelper" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FxSwapRateHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FxSwapRateHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FxSwapRateHelper" "', argument " "4"" of type '" "Natural""'");
  } 
  arg4 = static_cast< Natural >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FxSwapRateHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FxSwapRateHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FxSwapRateHelper" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FxSwapRateHelper" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FxSwapRateHelper" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FxSwapRateHelper" "', argument " "9"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FxSwapRateHelper" "', argument " "9"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg9 = reinterpret_cast< Handle< YieldTermStructure > * >(argp9);
  {
    try {
      result = (FxSwapRateHelperPtr *)new_FxSwapRateHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,(Handle< Quote > const &)*arg2,(Period const &)*arg3,arg4,(Calendar const &)*arg5,arg6,arg7,arg8,(Handle< YieldTermStructure > const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FxSwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FxSwapRateHelper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< Quote > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  Period *arg3 = 0 ;
  Natural arg4 ;
  Calendar *arg5 = 0 ;
  BusinessDayConvention arg6 ;
  bool arg7 ;
  bool arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  bool val7 ;
  int ecode7 = 0 ;
  bool val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  FxSwapRateHelperPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FxSwapRateHelper",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FxSwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FxSwapRateHelper" "', argument " "1"" of type '" "Handle< Quote > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< Quote > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FxSwapRateHelper" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FxSwapRateHelper" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FxSwapRateHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FxSwapRateHelper" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FxSwapRateHelper" "', argument " "4"" of type '" "Natural""'");
  } 
  arg4 = static_cast< Natural >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FxSwapRateHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FxSwapRateHelper" "', argument " "5"" of type '" "Calendar const &""'"); 
  }
  arg5 = reinterpret_cast< Calendar * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FxSwapRateHelper" "', argument " "6"" of type '" "BusinessDayConvention""'");
  } 
  arg6 = static_cast< BusinessDayConvention >(val6);
  ecode7 = SWIG_AsVal_bool(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FxSwapRateHelper" "', argument " "7"" of type '" "bool""'");
  } 
  arg7 = static_cast< bool >(val7);
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FxSwapRateHelper" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  {
    try {
      result = (FxSwapRateHelperPtr *)new_FxSwapRateHelperPtr__SWIG_0((Handle< Quote > const &)*arg1,(Handle< Quote > const &)*arg2,(Period const &)*arg3,arg4,(Calendar const &)*arg5,arg6,arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FxSwapRateHelperPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FxSwapRateHelper(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[11] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 10) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_FxSwapRateHelper__SWIG_2(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap_new_FxSwapRateHelper__SWIG_1(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Calendar, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_bool(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_Calendar, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        return _wrap_new_FxSwapRateHelper__SWIG_0(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FxSwapRateHelper'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FxSwapRateHelperPtr::FxSwapRateHelperPtr(Handle< Quote > const &,Handle< Quote > const &,Period const &,Natural,Calendar const &,BusinessDayConvention,bool,bool,Handle< YieldTermStructure > const &,Calendar const &)\n"
    "    FxSwapRateHelperPtr::FxSwapRateHelperPtr(Handle< Quote > const &,Handle< Quote > const &,Period const &,Natural,Calendar const &,BusinessDayConvention,bool,bool,Handle< YieldTermStructure > const &)\n"
    "    FxSwapRateHelperPtr::FxSwapRateHelperPtr(Handle< Quote > const &,Handle< Quote > const &,Period const &,Natural,Calendar const &,BusinessDayConvention,bool,bool)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_FxSwapRateHelper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FxSwapRateHelperPtr *arg1 = (FxSwapRateHelperPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FxSwapRateHelper",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FxSwapRateHelperPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FxSwapRateHelper" "', argument " "1"" of type '" "FxSwapRateHelperPtr *""'"); 
  }
  arg1 = reinterpret_cast< FxSwapRateHelperPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FxSwapRateHelper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FxSwapRateHelperPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_RateHelperVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  PyObject **arg2 = (PyObject **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &obj0;
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_iterator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_iterator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    try {
      result = (swig::SwigPyIterator *)std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg__iterator(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector___nonzero__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____nonzero__((std::vector< boost::shared_ptr< RateHelper > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector___bool__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    try {
      result = (bool)std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____bool__((std::vector< boost::shared_ptr< RateHelper > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector___len__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____len__((std::vector< boost::shared_ptr< RateHelper > > const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< RateHelper > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector___getslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector___getslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RateHelperVector___getslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< RateHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RateHelperVector___getslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< RateHelper > >::difference_type >(val3);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____getslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< RateHelper > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector___setslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RateHelperVector___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< RateHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RateHelperVector___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< RateHelper > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< RateHelper > >::difference_type arg3 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector___setslice__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector___setslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RateHelperVector___setslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< RateHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RateHelperVector___setslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< RateHelper > >::difference_type >(val3);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RateHelperVector___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RateHelperVector___setslice__" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____setslice____SWIG_1(arg1,arg2,arg3,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg4);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(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_RateHelperVector___setslice____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(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< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_RateHelperVector___setslice____SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RateHelperVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::__setslice__(std::vector< boost::shared_ptr< RateHelper > >::difference_type,std::vector< boost::shared_ptr< RateHelper > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::__setslice__(std::vector< boost::shared_ptr< RateHelper > >::difference_type,std::vector< boost::shared_ptr< RateHelper > >::difference_type,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RateHelperVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< RateHelper > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector___delslice__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector___delslice__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RateHelperVector___delslice__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< RateHelper > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RateHelperVector___delslice__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< RateHelper > >::difference_type >(val3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____delslice__(arg1,arg2,arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RateHelperVector___delitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< RateHelper > >::difference_type >(val2);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____delitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RateHelperVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RateHelperVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RateHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RateHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector___setitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RateHelperVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  PySliceObject *arg2 = (PySliceObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector___delitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector___delitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    if (!PySlice_Check(obj1)) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RateHelperVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'");
    }
    arg2 = (PySliceObject *) obj1;
  }
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      }
      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());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_RateHelperVector___delitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_RateHelperVector___delitem____SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RateHelperVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::__delitem__(std::vector< boost::shared_ptr< RateHelper > >::difference_type)\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::__delitem__(PySliceObject *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RateHelperVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector___getitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RateHelperVector___getitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< RateHelper > >::difference_type >(val2);
  {
    try {
      try {
        result = (std::vector< boost::shared_ptr< RateHelper > >::value_type *) &std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____getitem____SWIG_1((std::vector< boost::shared_ptr< RateHelper > > const *)arg1,arg2);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_RateHelper_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_RateHelperVector___getitem____SWIG_0(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_RateHelperVector___getitem____SWIG_1(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RateHelperVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::__getitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::__getitem__(std::vector< boost::shared_ptr< RateHelper > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RateHelperVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::difference_type arg2 ;
  std::vector< boost::shared_ptr< RateHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector___setitem__",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector___setitem__" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RateHelperVector___setitem__" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< RateHelper > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_RateHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RateHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RateHelperVector___setitem__" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > >::value_type * >(argp3);
  {
    try {
      try {
        std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg____setitem____SWIG_2(arg1,arg2,(boost::shared_ptr< RateHelper > const &)*arg3);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_RateHelperVector___setitem____SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_RateHelperVector___setitem____SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(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_boost__shared_ptrT_RateHelper_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_RateHelperVector___setitem____SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RateHelperVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::__setitem__(PySliceObject *,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::__setitem__(PySliceObject *)\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::__setitem__(std::vector< boost::shared_ptr< RateHelper > >::difference_type,std::vector< boost::shared_ptr< RateHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::value_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_pop",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_pop" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    try {
      try {
        result = std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg__pop(arg1);
      }
      catch(std::out_of_range &_e) {
        SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
      }
      
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< RateHelper > >::value_type(static_cast< const std::vector< boost::shared_ptr< RateHelper > >::value_type& >(result))), SWIGTYPE_p_boost__shared_ptrT_RateHelper_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_append",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_append" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_RateHelper_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RateHelperVector_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RateHelperVector_append" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > >::value_type * >(argp2);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg__append(arg1,(boost::shared_ptr< RateHelper > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RateHelperVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RateHelperVector",0,0)) SWIG_fail;
  {
    try {
      result = (std::vector< boost::shared_ptr< RateHelper > > *)new std::vector< boost::shared_ptr< RateHelper > >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RateHelperVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< RateHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RateHelperVector",1,1,&obj0)) SWIG_fail;
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RateHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RateHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (std::vector< boost::shared_ptr< RateHelper > > *)new std::vector< boost::shared_ptr< RateHelper > >((std::vector< boost::shared_ptr< RateHelper > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_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_RateHelperVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_empty" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    try {
      result = (bool)((std::vector< boost::shared_ptr< RateHelper > > const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_size" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< RateHelper > > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  std::vector< boost::shared_ptr< RateHelper > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_swap" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RateHelperVector_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RateHelperVector_swap" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_begin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_begin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    try {
      result = (arg1)->begin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< RateHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_end",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_end" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    try {
      result = (arg1)->end();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< RateHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_rbegin",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_rbegin" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    try {
      result = (arg1)->rbegin();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< RateHelper > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::reverse_iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_rend",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_rend" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    try {
      result = (arg1)->rend();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< RateHelper > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_clear",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_clear" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    try {
      (arg1)->clear();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< std::allocator< boost::shared_ptr< RateHelper > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_get_allocator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_get_allocator" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< RateHelper > > const *)arg1)->get_allocator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< boost::shared_ptr< RateHelper > >::allocator_type(static_cast< const std::vector< boost::shared_ptr< RateHelper > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_boost__shared_ptrT_RateHelper_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RateHelperVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< RateHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RateHelperVector",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RateHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< RateHelper > >::size_type >(val1);
  {
    try {
      result = (std::vector< boost::shared_ptr< RateHelper > > *)new std::vector< boost::shared_ptr< RateHelper > >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_pop_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_pop_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    try {
      (arg1)->pop_back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_resize",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RateHelperVector_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< RateHelper > >::size_type >(val2);
  {
    try {
      (arg1)->resize(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_erase",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RateHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< RateHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< RateHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RateHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg__erase__SWIG_0(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< RateHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::iterator arg2 ;
  std::vector< boost::shared_ptr< RateHelper > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_erase",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_erase" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RateHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< RateHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< RateHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RateHelperVector_erase" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RateHelperVector_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< RateHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< RateHelper > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RateHelperVector_erase" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::iterator""'");
    }
  }
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg__erase__SWIG_1(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< RateHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(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< boost::shared_ptr< RateHelper > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_RateHelperVector_erase__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(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< boost::shared_ptr< RateHelper > >::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< boost::shared_ptr< RateHelper > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_RateHelperVector_erase__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RateHelperVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::erase(std::vector< boost::shared_ptr< RateHelper > >::iterator)\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::erase(std::vector< boost::shared_ptr< RateHelper > >::iterator,std::vector< boost::shared_ptr< RateHelper > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_RateHelperVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > >::size_type arg1 ;
  std::vector< boost::shared_ptr< RateHelper > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RateHelperVector",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RateHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< boost::shared_ptr< RateHelper > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_RateHelper_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_RateHelperVector" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RateHelperVector" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > >::value_type * >(argp2);
  {
    try {
      result = (std::vector< boost::shared_ptr< RateHelper > > *)new std::vector< boost::shared_ptr< RateHelper > >(arg1,(std::vector< boost::shared_ptr< RateHelper > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RateHelperVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_RateHelperVector__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_RateHelperVector__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_RateHelperVector__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_RateHelper_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_RateHelperVector__SWIG_3(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RateHelperVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::vector()\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::vector(std::vector< boost::shared_ptr< RateHelper > > const &)\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::vector(std::vector< boost::shared_ptr< RateHelper > >::size_type)\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::vector(std::vector< boost::shared_ptr< RateHelper > >::size_type,std::vector< boost::shared_ptr< RateHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_push_back",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_push_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_RateHelper_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RateHelperVector_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RateHelperVector_push_back" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > >::value_type * >(argp2);
  {
    try {
      (arg1)->push_back((std::vector< boost::shared_ptr< RateHelper > >::value_type const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_front" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< RateHelper > >::value_type *) &((std::vector< boost::shared_ptr< RateHelper > > const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_RateHelper_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::value_type *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_back" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    try {
      result = (std::vector< boost::shared_ptr< RateHelper > >::value_type *) &((std::vector< boost::shared_ptr< RateHelper > > const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_RateHelper_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::size_type arg2 ;
  std::vector< boost::shared_ptr< RateHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_assign",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_assign" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RateHelperVector_assign" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< RateHelper > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_RateHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RateHelperVector_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RateHelperVector_assign" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > >::value_type * >(argp3);
  {
    try {
      (arg1)->assign(arg2,(std::vector< boost::shared_ptr< RateHelper > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::size_type arg2 ;
  std::vector< boost::shared_ptr< RateHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_resize",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_resize" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RateHelperVector_resize" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< RateHelper > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_RateHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RateHelperVector_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RateHelperVector_resize" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > >::value_type * >(argp3);
  {
    try {
      (arg1)->resize(arg2,(std::vector< boost::shared_ptr< RateHelper > >::value_type const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_RateHelperVector_resize__SWIG_0(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(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_boost__shared_ptrT_RateHelper_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_RateHelperVector_resize__SWIG_1(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RateHelperVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::resize(std::vector< boost::shared_ptr< RateHelper > >::size_type)\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::resize(std::vector< boost::shared_ptr< RateHelper > >::size_type,std::vector< boost::shared_ptr< RateHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::iterator arg2 ;
  std::vector< boost::shared_ptr< RateHelper > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::iterator result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RateHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< RateHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< RateHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RateHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_RateHelper_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RateHelperVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RateHelperVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > >::value_type * >(argp3);
  {
    try {
      result = std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg__insert__SWIG_0(arg1,arg2,(boost::shared_ptr< RateHelper > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< boost::shared_ptr< RateHelper > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::iterator arg2 ;
  std::vector< boost::shared_ptr< RateHelper > >::size_type arg3 ;
  std::vector< boost::shared_ptr< RateHelper > >::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 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_insert",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_insert" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RateHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< boost::shared_ptr< RateHelper > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< boost::shared_ptr< RateHelper > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "RateHelperVector_insert" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RateHelperVector_insert" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< boost::shared_ptr< RateHelper > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_boost__shared_ptrT_RateHelper_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RateHelperVector_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RateHelperVector_insert" "', argument " "4"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > >::value_type * >(argp4);
  {
    try {
      std_vector_Sl_boost_shared_ptr_Sl_RateHelper_Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(boost::shared_ptr< RateHelper > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(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< boost::shared_ptr< RateHelper > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_boost__shared_ptrT_RateHelper_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_RateHelperVector_insert__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(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< boost::shared_ptr< RateHelper > >::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_boost__shared_ptrT_RateHelper_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_RateHelperVector_insert__SWIG_1(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RateHelperVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::insert(std::vector< boost::shared_ptr< RateHelper > >::iterator,std::vector< boost::shared_ptr< RateHelper > >::value_type const &)\n"
    "    std::vector< boost::shared_ptr< RateHelper > >::insert(std::vector< boost::shared_ptr< RateHelper > >::iterator,std::vector< boost::shared_ptr< RateHelper > >::size_type,std::vector< boost::shared_ptr< RateHelper > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_reserve",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_reserve" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RateHelperVector_reserve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< boost::shared_ptr< RateHelper > >::size_type >(val2);
  {
    try {
      (arg1)->reserve(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RateHelperVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< boost::shared_ptr< RateHelper > >::size_type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RateHelperVector_capacity",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RateHelperVector_capacity" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    try {
      result = ((std::vector< boost::shared_ptr< RateHelper > > const *)arg1)->capacity();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RateHelperVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< boost::shared_ptr< RateHelper > > *arg1 = (std::vector< boost::shared_ptr< RateHelper > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RateHelperVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RateHelperVector" "', argument " "1"" of type '" "std::vector< boost::shared_ptr< RateHelper > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< boost::shared_ptr< RateHelper > > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RateHelperVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_delete_FittingMethod(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FittingMethod *arg1 = (FittingMethod *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FittingMethod",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FittingMethod, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FittingMethod" "', argument " "1"" of type '" "FittingMethod *""'"); 
  }
  arg1 = reinterpret_cast< FittingMethod * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FittingMethod_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FittingMethod *arg1 = (FittingMethod *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FittingMethod_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FittingMethod, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FittingMethod_size" "', argument " "1"" of type '" "FittingMethod const *""'"); 
  }
  arg1 = reinterpret_cast< FittingMethod * >(argp1);
  {
    try {
      result = ((FittingMethod const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FittingMethod_solution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FittingMethod *arg1 = (FittingMethod *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FittingMethod_solution",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FittingMethod, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FittingMethod_solution" "', argument " "1"" of type '" "FittingMethod const *""'"); 
  }
  arg1 = reinterpret_cast< FittingMethod * >(argp1);
  {
    try {
      result = ((FittingMethod const *)arg1)->solution();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FittingMethod_numberOfIterations(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FittingMethod *arg1 = (FittingMethod *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Integer result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FittingMethod_numberOfIterations",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FittingMethod, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FittingMethod_numberOfIterations" "', argument " "1"" of type '" "FittingMethod const *""'"); 
  }
  arg1 = reinterpret_cast< FittingMethod * >(argp1);
  {
    try {
      result = (Integer)((FittingMethod const *)arg1)->numberOfIterations();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FittingMethod_minimumCostValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FittingMethod *arg1 = (FittingMethod *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FittingMethod_minimumCostValue",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FittingMethod, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FittingMethod_minimumCostValue" "', argument " "1"" of type '" "FittingMethod const *""'"); 
  }
  arg1 = reinterpret_cast< FittingMethod * >(argp1);
  {
    try {
      result = (Real)((FittingMethod const *)arg1)->minimumCostValue();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FittingMethod_constrainAtZero(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FittingMethod *arg1 = (FittingMethod *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FittingMethod_constrainAtZero",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FittingMethod, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FittingMethod_constrainAtZero" "', argument " "1"" of type '" "FittingMethod const *""'"); 
  }
  arg1 = reinterpret_cast< FittingMethod * >(argp1);
  {
    try {
      result = (bool)((FittingMethod const *)arg1)->constrainAtZero();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FittingMethod_weights(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FittingMethod *arg1 = (FittingMethod *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FittingMethod_weights",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FittingMethod, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FittingMethod_weights" "', argument " "1"" of type '" "FittingMethod const *""'"); 
  }
  arg1 = reinterpret_cast< FittingMethod * >(argp1);
  {
    try {
      result = ((FittingMethod const *)arg1)->weights();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FittingMethod_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FittingMethod, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FittedBondDiscountCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  FittingMethod *arg5 = 0 ;
  Real arg6 ;
  Size arg7 ;
  Array *arg8 = 0 ;
  Real arg9 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  size_t val7 ;
  int ecode7 = 0 ;
  Array temp8 ;
  double val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  FittedBondDiscountCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FittedBondDiscountCurve",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FittedBondDiscountCurve" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_FittingMethod,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FittedBondDiscountCurve" "', argument " "5"" of type '" "FittingMethod const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "5"" of type '" "FittingMethod const &""'"); 
  }
  arg5 = reinterpret_cast< FittingMethod * >(argp5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FittedBondDiscountCurve" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  ecode7 = SWIG_AsVal_size_t(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FittedBondDiscountCurve" "', argument " "7"" of type '" "Size""'");
  } 
  arg7 = static_cast< Size >(val7);
  {
    if (extractArray(obj7,&temp8)) {
      arg8 = &temp8;
    } else {
      SWIG_ConvertPtr(obj7,(void **) &arg8,SWIGTYPE_p_Array,1);
    }
  }
  ecode9 = SWIG_AsVal_double(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_FittedBondDiscountCurve" "', argument " "9"" of type '" "Real""'");
  } 
  arg9 = static_cast< Real >(val9);
  {
    try {
      result = (FittedBondDiscountCurvePtr *)new_FittedBondDiscountCurvePtr__SWIG_0(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(FittingMethod const &)*arg5,arg6,arg7,(Array const &)*arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FittedBondDiscountCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FittedBondDiscountCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  FittingMethod *arg5 = 0 ;
  Real arg6 ;
  Size arg7 ;
  Array *arg8 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  size_t val7 ;
  int ecode7 = 0 ;
  Array temp8 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  FittedBondDiscountCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FittedBondDiscountCurve",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FittedBondDiscountCurve" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_FittingMethod,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FittedBondDiscountCurve" "', argument " "5"" of type '" "FittingMethod const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "5"" of type '" "FittingMethod const &""'"); 
  }
  arg5 = reinterpret_cast< FittingMethod * >(argp5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FittedBondDiscountCurve" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  ecode7 = SWIG_AsVal_size_t(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FittedBondDiscountCurve" "', argument " "7"" of type '" "Size""'");
  } 
  arg7 = static_cast< Size >(val7);
  {
    if (extractArray(obj7,&temp8)) {
      arg8 = &temp8;
    } else {
      SWIG_ConvertPtr(obj7,(void **) &arg8,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (FittedBondDiscountCurvePtr *)new_FittedBondDiscountCurvePtr__SWIG_0(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(FittingMethod const &)*arg5,arg6,arg7,(Array const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FittedBondDiscountCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FittedBondDiscountCurve__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  FittingMethod *arg5 = 0 ;
  Real arg6 ;
  Size arg7 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  size_t val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  FittedBondDiscountCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FittedBondDiscountCurve",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FittedBondDiscountCurve" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_FittingMethod,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FittedBondDiscountCurve" "', argument " "5"" of type '" "FittingMethod const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "5"" of type '" "FittingMethod const &""'"); 
  }
  arg5 = reinterpret_cast< FittingMethod * >(argp5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FittedBondDiscountCurve" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  ecode7 = SWIG_AsVal_size_t(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FittedBondDiscountCurve" "', argument " "7"" of type '" "Size""'");
  } 
  arg7 = static_cast< Size >(val7);
  {
    try {
      result = (FittedBondDiscountCurvePtr *)new_FittedBondDiscountCurvePtr__SWIG_0(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(FittingMethod const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FittedBondDiscountCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FittedBondDiscountCurve__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  FittingMethod *arg5 = 0 ;
  Real arg6 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  FittedBondDiscountCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FittedBondDiscountCurve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FittedBondDiscountCurve" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_FittingMethod,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FittedBondDiscountCurve" "', argument " "5"" of type '" "FittingMethod const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "5"" of type '" "FittingMethod const &""'"); 
  }
  arg5 = reinterpret_cast< FittingMethod * >(argp5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FittedBondDiscountCurve" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (FittedBondDiscountCurvePtr *)new_FittedBondDiscountCurvePtr__SWIG_0(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(FittingMethod const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FittedBondDiscountCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FittedBondDiscountCurve__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  FittingMethod *arg5 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  FittedBondDiscountCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FittedBondDiscountCurve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FittedBondDiscountCurve" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_FittingMethod,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FittedBondDiscountCurve" "', argument " "5"" of type '" "FittingMethod const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "5"" of type '" "FittingMethod const &""'"); 
  }
  arg5 = reinterpret_cast< FittingMethod * >(argp5);
  {
    try {
      result = (FittedBondDiscountCurvePtr *)new_FittedBondDiscountCurvePtr__SWIG_0(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(FittingMethod const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FittedBondDiscountCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FittedBondDiscountCurve__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  FittingMethod *arg4 = 0 ;
  Real arg5 ;
  Size arg6 ;
  Array *arg7 = 0 ;
  Real arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  size_t val6 ;
  int ecode6 = 0 ;
  Array temp7 ;
  double val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  FittedBondDiscountCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FittedBondDiscountCurve",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FittedBondDiscountCurve" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_FittingMethod,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "FittingMethod const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "FittingMethod const &""'"); 
  }
  arg4 = reinterpret_cast< FittingMethod * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FittedBondDiscountCurve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_size_t(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FittedBondDiscountCurve" "', argument " "6"" of type '" "Size""'");
  } 
  arg6 = static_cast< Size >(val6);
  {
    if (extractArray(obj6,&temp7)) {
      arg7 = &temp7;
    } else {
      SWIG_ConvertPtr(obj6,(void **) &arg7,SWIGTYPE_p_Array,1);
    }
  }
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FittedBondDiscountCurve" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  {
    try {
      result = (FittedBondDiscountCurvePtr *)new_FittedBondDiscountCurvePtr__SWIG_5((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(FittingMethod const &)*arg4,arg5,arg6,(Array const &)*arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FittedBondDiscountCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FittedBondDiscountCurve__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  FittingMethod *arg4 = 0 ;
  Real arg5 ;
  Size arg6 ;
  Array *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  size_t val6 ;
  int ecode6 = 0 ;
  Array temp7 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  FittedBondDiscountCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FittedBondDiscountCurve",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FittedBondDiscountCurve" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_FittingMethod,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "FittingMethod const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "FittingMethod const &""'"); 
  }
  arg4 = reinterpret_cast< FittingMethod * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FittedBondDiscountCurve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_size_t(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FittedBondDiscountCurve" "', argument " "6"" of type '" "Size""'");
  } 
  arg6 = static_cast< Size >(val6);
  {
    if (extractArray(obj6,&temp7)) {
      arg7 = &temp7;
    } else {
      SWIG_ConvertPtr(obj6,(void **) &arg7,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (FittedBondDiscountCurvePtr *)new_FittedBondDiscountCurvePtr__SWIG_5((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(FittingMethod const &)*arg4,arg5,arg6,(Array const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FittedBondDiscountCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FittedBondDiscountCurve__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  FittingMethod *arg4 = 0 ;
  Real arg5 ;
  Size arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  size_t val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  FittedBondDiscountCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FittedBondDiscountCurve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FittedBondDiscountCurve" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_FittingMethod,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "FittingMethod const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "FittingMethod const &""'"); 
  }
  arg4 = reinterpret_cast< FittingMethod * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FittedBondDiscountCurve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  ecode6 = SWIG_AsVal_size_t(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FittedBondDiscountCurve" "', argument " "6"" of type '" "Size""'");
  } 
  arg6 = static_cast< Size >(val6);
  {
    try {
      result = (FittedBondDiscountCurvePtr *)new_FittedBondDiscountCurvePtr__SWIG_5((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(FittingMethod const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FittedBondDiscountCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FittedBondDiscountCurve__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  FittingMethod *arg4 = 0 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  FittedBondDiscountCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FittedBondDiscountCurve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FittedBondDiscountCurve" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_FittingMethod,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "FittingMethod const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "FittingMethod const &""'"); 
  }
  arg4 = reinterpret_cast< FittingMethod * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FittedBondDiscountCurve" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (FittedBondDiscountCurvePtr *)new_FittedBondDiscountCurvePtr__SWIG_5((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(FittingMethod const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FittedBondDiscountCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FittedBondDiscountCurve__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  FittingMethod *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  FittedBondDiscountCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FittedBondDiscountCurve",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FittedBondDiscountCurve" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_FittingMethod,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "FittingMethod const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FittedBondDiscountCurve" "', argument " "4"" of type '" "FittingMethod const &""'"); 
  }
  arg4 = reinterpret_cast< FittingMethod * >(argp4);
  {
    try {
      result = (FittedBondDiscountCurvePtr *)new_FittedBondDiscountCurvePtr__SWIG_5((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(FittingMethod const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FittedBondDiscountCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FittedBondDiscountCurve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_FittingMethod, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_FittedBondDiscountCurve__SWIG_9(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_FittingMethod, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_FittedBondDiscountCurve__SWIG_8(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_FittingMethod, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_FittedBondDiscountCurve__SWIG_4(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_FittingMethod, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
              }
              if (_v) {
                return _wrap_new_FittedBondDiscountCurve__SWIG_7(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_FittingMethod, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_FittedBondDiscountCurve__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_FittingMethod, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
              }
              if (_v) {
                {
                  /* native sequence? */
                  if (PyTuple_Check(argv[6]) || PyList_Check(argv[6])) {
                    Size size = PySequence_Size(argv[6]);
                    if (size == 0) {
                      _v = 1;
                    } else {
                      PyObject* o = PySequence_GetItem(argv[6],0);
                      if (PyNumber_Check(o))
                      _v = 1;
                      else
                      _v = 0;
                      Py_DECREF(o);
                    }
                  } else {
                    /* wrapped Array? */
                    Array* v;
                    if (SWIG_ConvertPtr(argv[6],(void **) &v,
                        SWIGTYPE_p_Array,0) != -1)
                    _v = 1;
                    else
                    _v = 0;
                  }
                }
                if (_v) {
                  return _wrap_new_FittedBondDiscountCurve__SWIG_6(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_FittingMethod, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0;
                }
                if (_v) {
                  return _wrap_new_FittedBondDiscountCurve__SWIG_2(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_FittingMethod, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              {
                _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
              }
              if (_v) {
                {
                  /* native sequence? */
                  if (PyTuple_Check(argv[6]) || PyList_Check(argv[6])) {
                    Size size = PySequence_Size(argv[6]);
                    if (size == 0) {
                      _v = 1;
                    } else {
                      PyObject* o = PySequence_GetItem(argv[6],0);
                      if (PyNumber_Check(o))
                      _v = 1;
                      else
                      _v = 0;
                      Py_DECREF(o);
                    }
                  } else {
                    /* wrapped Array? */
                    Array* v;
                    if (SWIG_ConvertPtr(argv[6],(void **) &v,
                        SWIGTYPE_p_Array,0) != -1)
                    _v = 1;
                    else
                    _v = 0;
                  }
                }
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_FittedBondDiscountCurve__SWIG_5(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_FittingMethod, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0;
                }
                if (_v) {
                  {
                    /* native sequence? */
                    if (PyTuple_Check(argv[7]) || PyList_Check(argv[7])) {
                      Size size = PySequence_Size(argv[7]);
                      if (size == 0) {
                        _v = 1;
                      } else {
                        PyObject* o = PySequence_GetItem(argv[7],0);
                        if (PyNumber_Check(o))
                        _v = 1;
                        else
                        _v = 0;
                        Py_DECREF(o);
                      }
                    } else {
                      /* wrapped Array? */
                      Array* v;
                      if (SWIG_ConvertPtr(argv[7],(void **) &v,
                          SWIGTYPE_p_Array,0) != -1)
                      _v = 1;
                      else
                      _v = 0;
                    }
                  }
                  if (_v) {
                    return _wrap_new_FittedBondDiscountCurve__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_FittingMethod, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  _v = (PyInt_Check(argv[6]) || PyLong_Check(argv[6])) ? 1 : 0;
                }
                if (_v) {
                  {
                    /* native sequence? */
                    if (PyTuple_Check(argv[7]) || PyList_Check(argv[7])) {
                      Size size = PySequence_Size(argv[7]);
                      if (size == 0) {
                        _v = 1;
                      } else {
                        PyObject* o = PySequence_GetItem(argv[7],0);
                        if (PyNumber_Check(o))
                        _v = 1;
                        else
                        _v = 0;
                        Py_DECREF(o);
                      }
                    } else {
                      /* wrapped Array? */
                      Array* v;
                      if (SWIG_ConvertPtr(argv[7],(void **) &v,
                          SWIGTYPE_p_Array,0) != -1)
                      _v = 1;
                      else
                      _v = 0;
                    }
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_double(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_new_FittedBondDiscountCurve__SWIG_0(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FittedBondDiscountCurve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FittedBondDiscountCurvePtr::FittedBondDiscountCurvePtr(Natural,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,FittingMethod const &,Real,Size,Array const &,Real)\n"
    "    FittedBondDiscountCurvePtr::FittedBondDiscountCurvePtr(Natural,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,FittingMethod const &,Real,Size,Array const &)\n"
    "    FittedBondDiscountCurvePtr::FittedBondDiscountCurvePtr(Natural,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,FittingMethod const &,Real,Size)\n"
    "    FittedBondDiscountCurvePtr::FittedBondDiscountCurvePtr(Natural,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,FittingMethod const &,Real)\n"
    "    FittedBondDiscountCurvePtr::FittedBondDiscountCurvePtr(Natural,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,FittingMethod const &)\n"
    "    FittedBondDiscountCurvePtr::FittedBondDiscountCurvePtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,FittingMethod const &,Real,Size,Array const &,Real)\n"
    "    FittedBondDiscountCurvePtr::FittedBondDiscountCurvePtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,FittingMethod const &,Real,Size,Array const &)\n"
    "    FittedBondDiscountCurvePtr::FittedBondDiscountCurvePtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,FittingMethod const &,Real,Size)\n"
    "    FittedBondDiscountCurvePtr::FittedBondDiscountCurvePtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,FittingMethod const &,Real)\n"
    "    FittedBondDiscountCurvePtr::FittedBondDiscountCurvePtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,FittingMethod const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_FittedBondDiscountCurve_fitResults(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FittedBondDiscountCurvePtr *arg1 = (FittedBondDiscountCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  FittingMethod *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"FittedBondDiscountCurve_fitResults",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FittedBondDiscountCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FittedBondDiscountCurve_fitResults" "', argument " "1"" of type '" "FittedBondDiscountCurvePtr const *""'"); 
  }
  arg1 = reinterpret_cast< FittedBondDiscountCurvePtr * >(argp1);
  {
    try {
      result = (FittingMethod *) &FittedBondDiscountCurvePtr_fitResults((FittedBondDiscountCurvePtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FittingMethod, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_FittedBondDiscountCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FittedBondDiscountCurvePtr *arg1 = (FittedBondDiscountCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FittedBondDiscountCurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FittedBondDiscountCurvePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FittedBondDiscountCurve" "', argument " "1"" of type '" "FittedBondDiscountCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< FittedBondDiscountCurvePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FittedBondDiscountCurve_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FittedBondDiscountCurvePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ExponentialSplinesFitting__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  Array *arg2 = 0 ;
  bool val1 ;
  int ecode1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  ExponentialSplinesFitting *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ExponentialSplinesFitting",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ExponentialSplinesFitting" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (ExponentialSplinesFitting *)new ExponentialSplinesFitting(arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ExponentialSplinesFitting, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ExponentialSplinesFitting__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  bool arg1 ;
  bool val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  ExponentialSplinesFitting *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ExponentialSplinesFitting",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_bool(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ExponentialSplinesFitting" "', argument " "1"" of type '" "bool""'");
  } 
  arg1 = static_cast< bool >(val1);
  {
    try {
      result = (ExponentialSplinesFitting *)new ExponentialSplinesFitting(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ExponentialSplinesFitting, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ExponentialSplinesFitting__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ExponentialSplinesFitting *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ExponentialSplinesFitting",0,0)) SWIG_fail;
  {
    try {
      result = (ExponentialSplinesFitting *)new ExponentialSplinesFitting();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ExponentialSplinesFitting, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ExponentialSplinesFitting(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_ExponentialSplinesFitting__SWIG_2(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_ExponentialSplinesFitting__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_bool(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        /* native sequence? */
        if (PyTuple_Check(argv[1]) || PyList_Check(argv[1])) {
          Size size = PySequence_Size(argv[1]);
          if (size == 0) {
            _v = 1;
          } else {
            PyObject* o = PySequence_GetItem(argv[1],0);
            if (PyNumber_Check(o))
            _v = 1;
            else
            _v = 0;
            Py_DECREF(o);
          }
        } else {
          /* wrapped Array? */
          Array* v;
          if (SWIG_ConvertPtr(argv[1],(void **) &v,
              SWIGTYPE_p_Array,0) != -1)
          _v = 1;
          else
          _v = 0;
        }
      }
      if (_v) {
        return _wrap_new_ExponentialSplinesFitting__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ExponentialSplinesFitting'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ExponentialSplinesFitting::ExponentialSplinesFitting(bool,Array const &)\n"
    "    ExponentialSplinesFitting::ExponentialSplinesFitting(bool)\n"
    "    ExponentialSplinesFitting::ExponentialSplinesFitting()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_ExponentialSplinesFitting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ExponentialSplinesFitting *arg1 = (ExponentialSplinesFitting *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ExponentialSplinesFitting",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ExponentialSplinesFitting, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ExponentialSplinesFitting" "', argument " "1"" of type '" "ExponentialSplinesFitting *""'"); 
  }
  arg1 = reinterpret_cast< ExponentialSplinesFitting * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ExponentialSplinesFitting_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ExponentialSplinesFitting, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_NelsonSiegelFitting__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array temp1 ;
  PyObject * obj0 = 0 ;
  NelsonSiegelFitting *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NelsonSiegelFitting",1,1,&obj0)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (NelsonSiegelFitting *)new NelsonSiegelFitting((Array const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NelsonSiegelFitting, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NelsonSiegelFitting__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NelsonSiegelFitting *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NelsonSiegelFitting",0,0)) SWIG_fail;
  {
    try {
      result = (NelsonSiegelFitting *)new NelsonSiegelFitting();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NelsonSiegelFitting, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NelsonSiegelFitting(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_NelsonSiegelFitting__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      /* native sequence? */
      if (PyTuple_Check(argv[0]) || PyList_Check(argv[0])) {
        Size size = PySequence_Size(argv[0]);
        if (size == 0) {
          _v = 1;
        } else {
          PyObject* o = PySequence_GetItem(argv[0],0);
          if (PyNumber_Check(o))
          _v = 1;
          else
          _v = 0;
          Py_DECREF(o);
        }
      } else {
        /* wrapped Array? */
        Array* v;
        if (SWIG_ConvertPtr(argv[0],(void **) &v,
            SWIGTYPE_p_Array,0) != -1)
        _v = 1;
        else
        _v = 0;
      }
    }
    if (_v) {
      return _wrap_new_NelsonSiegelFitting__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_NelsonSiegelFitting'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    NelsonSiegelFitting::NelsonSiegelFitting(Array const &)\n"
    "    NelsonSiegelFitting::NelsonSiegelFitting()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_NelsonSiegelFitting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NelsonSiegelFitting *arg1 = (NelsonSiegelFitting *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NelsonSiegelFitting",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NelsonSiegelFitting, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NelsonSiegelFitting" "', argument " "1"" of type '" "NelsonSiegelFitting *""'"); 
  }
  arg1 = reinterpret_cast< NelsonSiegelFitting * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NelsonSiegelFitting_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_NelsonSiegelFitting, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SvenssonFitting__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array temp1 ;
  PyObject * obj0 = 0 ;
  SvenssonFitting *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SvenssonFitting",1,1,&obj0)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SvenssonFitting *)new SvenssonFitting((Array const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SvenssonFitting, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SvenssonFitting__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SvenssonFitting *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SvenssonFitting",0,0)) SWIG_fail;
  {
    try {
      result = (SvenssonFitting *)new SvenssonFitting();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SvenssonFitting, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SvenssonFitting(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_SvenssonFitting__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      /* native sequence? */
      if (PyTuple_Check(argv[0]) || PyList_Check(argv[0])) {
        Size size = PySequence_Size(argv[0]);
        if (size == 0) {
          _v = 1;
        } else {
          PyObject* o = PySequence_GetItem(argv[0],0);
          if (PyNumber_Check(o))
          _v = 1;
          else
          _v = 0;
          Py_DECREF(o);
        }
      } else {
        /* wrapped Array? */
        Array* v;
        if (SWIG_ConvertPtr(argv[0],(void **) &v,
            SWIGTYPE_p_Array,0) != -1)
        _v = 1;
        else
        _v = 0;
      }
    }
    if (_v) {
      return _wrap_new_SvenssonFitting__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SvenssonFitting'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SvenssonFitting::SvenssonFitting(Array const &)\n"
    "    SvenssonFitting::SvenssonFitting()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_SvenssonFitting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SvenssonFitting *arg1 = (SvenssonFitting *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SvenssonFitting",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SvenssonFitting, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SvenssonFitting" "', argument " "1"" of type '" "SvenssonFitting *""'"); 
  }
  arg1 = reinterpret_cast< SvenssonFitting * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SvenssonFitting_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SvenssonFitting, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CubicBSplinesFitting__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Time,std::allocator< Time > > *arg1 = 0 ;
  bool arg2 ;
  Array *arg3 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  bool val2 ;
  int ecode2 = 0 ;
  Array temp3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  CubicBSplinesFitting *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CubicBSplinesFitting",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CubicBSplinesFitting" "', argument " "1"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicBSplinesFitting" "', argument " "1"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CubicBSplinesFitting" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    if (extractArray(obj2,&temp3)) {
      arg3 = &temp3;
    } else {
      SWIG_ConvertPtr(obj2,(void **) &arg3,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (CubicBSplinesFitting *)new CubicBSplinesFitting((std::vector< Time,std::allocator< Time > > const &)*arg1,arg2,(Array const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CubicBSplinesFitting, 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_CubicBSplinesFitting__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Time,std::allocator< Time > > *arg1 = 0 ;
  bool arg2 ;
  int res1 = SWIG_OLDOBJ ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  CubicBSplinesFitting *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CubicBSplinesFitting",2,2,&obj0,&obj1)) SWIG_fail;
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CubicBSplinesFitting" "', argument " "1"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicBSplinesFitting" "', argument " "1"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    arg1 = ptr;
  }
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CubicBSplinesFitting" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      result = (CubicBSplinesFitting *)new CubicBSplinesFitting((std::vector< Time,std::allocator< Time > > const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CubicBSplinesFitting, 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_CubicBSplinesFitting__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Time,std::allocator< Time > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  CubicBSplinesFitting *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CubicBSplinesFitting",1,1,&obj0)) SWIG_fail;
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CubicBSplinesFitting" "', argument " "1"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicBSplinesFitting" "', argument " "1"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (CubicBSplinesFitting *)new CubicBSplinesFitting((std::vector< Time,std::allocator< Time > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CubicBSplinesFitting, 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_CubicBSplinesFitting(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_CubicBSplinesFitting__SWIG_2(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_CubicBSplinesFitting__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          /* native sequence? */
          if (PyTuple_Check(argv[2]) || PyList_Check(argv[2])) {
            Size size = PySequence_Size(argv[2]);
            if (size == 0) {
              _v = 1;
            } else {
              PyObject* o = PySequence_GetItem(argv[2],0);
              if (PyNumber_Check(o))
              _v = 1;
              else
              _v = 0;
              Py_DECREF(o);
            }
          } else {
            /* wrapped Array? */
            Array* v;
            if (SWIG_ConvertPtr(argv[2],(void **) &v,
                SWIGTYPE_p_Array,0) != -1)
            _v = 1;
            else
            _v = 0;
          }
        }
        if (_v) {
          return _wrap_new_CubicBSplinesFitting__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CubicBSplinesFitting'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CubicBSplinesFitting::CubicBSplinesFitting(std::vector< Time,std::allocator< Time > > const &,bool,Array const &)\n"
    "    CubicBSplinesFitting::CubicBSplinesFitting(std::vector< Time,std::allocator< Time > > const &,bool)\n"
    "    CubicBSplinesFitting::CubicBSplinesFitting(std::vector< Time,std::allocator< Time > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CubicBSplinesFitting_basisFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CubicBSplinesFitting *arg1 = (CubicBSplinesFitting *) 0 ;
  Integer arg2 ;
  Time arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CubicBSplinesFitting_basisFunction",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CubicBSplinesFitting, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CubicBSplinesFitting_basisFunction" "', argument " "1"" of type '" "CubicBSplinesFitting *""'"); 
  }
  arg1 = reinterpret_cast< CubicBSplinesFitting * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CubicBSplinesFitting_basisFunction" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CubicBSplinesFitting_basisFunction" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  {
    try {
      result = (Real)(arg1)->basisFunction(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CubicBSplinesFitting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CubicBSplinesFitting *arg1 = (CubicBSplinesFitting *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CubicBSplinesFitting",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CubicBSplinesFitting, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CubicBSplinesFitting" "', argument " "1"" of type '" "CubicBSplinesFitting *""'"); 
  }
  arg1 = reinterpret_cast< CubicBSplinesFitting * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CubicBSplinesFitting_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CubicBSplinesFitting, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SimplePolynomialFitting__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  bool arg2 ;
  Array *arg3 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  Array temp3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  SimplePolynomialFitting *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SimplePolynomialFitting",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SimplePolynomialFitting" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SimplePolynomialFitting" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    if (extractArray(obj2,&temp3)) {
      arg3 = &temp3;
    } else {
      SWIG_ConvertPtr(obj2,(void **) &arg3,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SimplePolynomialFitting *)new SimplePolynomialFitting(arg1,arg2,(Array const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SimplePolynomialFitting, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SimplePolynomialFitting__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  bool arg2 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SimplePolynomialFitting *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SimplePolynomialFitting",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SimplePolynomialFitting" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SimplePolynomialFitting" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      result = (SimplePolynomialFitting *)new SimplePolynomialFitting(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SimplePolynomialFitting, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SimplePolynomialFitting__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  SimplePolynomialFitting *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SimplePolynomialFitting",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SimplePolynomialFitting" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  {
    try {
      result = (SimplePolynomialFitting *)new SimplePolynomialFitting(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SimplePolynomialFitting, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SimplePolynomialFitting(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_SimplePolynomialFitting__SWIG_2(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_SimplePolynomialFitting__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_bool(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          /* native sequence? */
          if (PyTuple_Check(argv[2]) || PyList_Check(argv[2])) {
            Size size = PySequence_Size(argv[2]);
            if (size == 0) {
              _v = 1;
            } else {
              PyObject* o = PySequence_GetItem(argv[2],0);
              if (PyNumber_Check(o))
              _v = 1;
              else
              _v = 0;
              Py_DECREF(o);
            }
          } else {
            /* wrapped Array? */
            Array* v;
            if (SWIG_ConvertPtr(argv[2],(void **) &v,
                SWIGTYPE_p_Array,0) != -1)
            _v = 1;
            else
            _v = 0;
          }
        }
        if (_v) {
          return _wrap_new_SimplePolynomialFitting__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SimplePolynomialFitting'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SimplePolynomialFitting::SimplePolynomialFitting(Natural,bool,Array const &)\n"
    "    SimplePolynomialFitting::SimplePolynomialFitting(Natural,bool)\n"
    "    SimplePolynomialFitting::SimplePolynomialFitting(Natural)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_SimplePolynomialFitting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SimplePolynomialFitting *arg1 = (SimplePolynomialFitting *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SimplePolynomialFitting",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SimplePolynomialFitting, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SimplePolynomialFitting" "', argument " "1"" of type '" "SimplePolynomialFitting *""'"); 
  }
  arg1 = reinterpret_cast< SimplePolynomialFitting * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SimplePolynomialFitting_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SimplePolynomialFitting, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ForwardCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  BackwardFlat *arg5 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  ForwardCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ForwardCurve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ForwardCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ForwardCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ForwardCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ForwardCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_BackwardFlat,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ForwardCurve" "', argument " "5"" of type '" "BackwardFlat const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardCurve" "', argument " "5"" of type '" "BackwardFlat const &""'"); 
  }
  arg5 = reinterpret_cast< BackwardFlat * >(argp5);
  {
    try {
      result = (ForwardCurvePtr *)new_ForwardCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(BackwardFlat const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ForwardCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ForwardCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  ForwardCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ForwardCurve",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ForwardCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ForwardCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ForwardCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ForwardCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  {
    try {
      result = (ForwardCurvePtr *)new_ForwardCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ForwardCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ForwardCurve__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  ForwardCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ForwardCurve",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ForwardCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ForwardCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ForwardCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (ForwardCurvePtr *)new_ForwardCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ForwardCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ForwardCurve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_ForwardCurve__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_ForwardCurve__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_BackwardFlat, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_ForwardCurve__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ForwardCurve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ForwardCurvePtr::ForwardCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,BackwardFlat const &)\n"
    "    ForwardCurvePtr::ForwardCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &)\n"
    "    ForwardCurvePtr::ForwardCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ForwardCurve_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardCurvePtr *arg1 = (ForwardCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ForwardCurve_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ForwardCurve_dates" "', argument " "1"" of type '" "ForwardCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< ForwardCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &ForwardCurvePtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ForwardCurve_forwards(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardCurvePtr *arg1 = (ForwardCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ForwardCurve_forwards",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ForwardCurve_forwards" "', argument " "1"" of type '" "ForwardCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< ForwardCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Rate,std::allocator< Rate > > *) &ForwardCurvePtr_forwards(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ForwardCurve_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardCurvePtr *arg1 = (ForwardCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,Rate >,std::allocator< std::pair< Date,Rate > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ForwardCurve_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ForwardCurve_nodes" "', argument " "1"" of type '" "ForwardCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< ForwardCurvePtr * >(argp1);
  {
    try {
      result = ForwardCurvePtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ForwardCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardCurvePtr *arg1 = (ForwardCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ForwardCurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardCurvePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ForwardCurve" "', argument " "1"" of type '" "ForwardCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< ForwardCurvePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ForwardCurve_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ForwardCurvePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Position(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Position *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Position",0,0)) SWIG_fail;
  {
    try {
      result = (Position *)new Position();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Position, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Position(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Position *arg1 = (Position *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Position",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Position, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Position" "', argument " "1"" of type '" "Position *""'"); 
  }
  arg1 = reinterpret_cast< Position * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Position_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Position, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ForwardRateAgreement__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Date *arg2 = 0 ;
  Position::Type arg3 ;
  Rate arg4 ;
  Real arg5 ;
  IborIndexPtr *arg6 = 0 ;
  Handle< YieldTermStructure > *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  ForwardRateAgreementPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ForwardRateAgreement",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ForwardRateAgreement" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardRateAgreement" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ForwardRateAgreement" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardRateAgreement" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ForwardRateAgreement" "', argument " "3"" of type '" "Position::Type""'");
  } 
  arg3 = static_cast< Position::Type >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ForwardRateAgreement" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ForwardRateAgreement" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ForwardRateAgreement" "', argument " "6"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardRateAgreement" "', argument " "6"" of type '" "IborIndexPtr const &""'"); 
  }
  arg6 = reinterpret_cast< IborIndexPtr * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ForwardRateAgreement" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardRateAgreement" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg7 = reinterpret_cast< Handle< YieldTermStructure > * >(argp7);
  {
    try {
      result = (ForwardRateAgreementPtr *)new_ForwardRateAgreementPtr__SWIG_0((Date const &)*arg1,(Date const &)*arg2,arg3,arg4,arg5,(IborIndexPtr const &)*arg6,(Handle< YieldTermStructure > const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ForwardRateAgreementPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ForwardRateAgreement__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Date *arg2 = 0 ;
  Position::Type arg3 ;
  Rate arg4 ;
  Real arg5 ;
  IborIndexPtr *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  ForwardRateAgreementPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ForwardRateAgreement",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ForwardRateAgreement" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardRateAgreement" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ForwardRateAgreement" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardRateAgreement" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ForwardRateAgreement" "', argument " "3"" of type '" "Position::Type""'");
  } 
  arg3 = static_cast< Position::Type >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ForwardRateAgreement" "', argument " "4"" of type '" "Rate""'");
  } 
  arg4 = static_cast< Rate >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ForwardRateAgreement" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ForwardRateAgreement" "', argument " "6"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardRateAgreement" "', argument " "6"" of type '" "IborIndexPtr const &""'"); 
  }
  arg6 = reinterpret_cast< IborIndexPtr * >(argp6);
  {
    try {
      result = (ForwardRateAgreementPtr *)new_ForwardRateAgreementPtr__SWIG_0((Date const &)*arg1,(Date const &)*arg2,arg3,arg4,arg5,(IborIndexPtr const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ForwardRateAgreementPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ForwardRateAgreement(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_IborIndexPtr, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_ForwardRateAgreement__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_IborIndexPtr, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_ForwardRateAgreement__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ForwardRateAgreement'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ForwardRateAgreementPtr::ForwardRateAgreementPtr(Date const &,Date const &,Position::Type,Rate,Real,IborIndexPtr const &,Handle< YieldTermStructure > const &)\n"
    "    ForwardRateAgreementPtr::ForwardRateAgreementPtr(Date const &,Date const &,Position::Type,Rate,Real,IborIndexPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ForwardRateAgreement_spotIncome(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardRateAgreementPtr *arg1 = (ForwardRateAgreementPtr *) 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ForwardRateAgreement_spotIncome",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardRateAgreementPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ForwardRateAgreement_spotIncome" "', argument " "1"" of type '" "ForwardRateAgreementPtr const *""'"); 
  }
  arg1 = reinterpret_cast< ForwardRateAgreementPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ForwardRateAgreement_spotIncome" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ForwardRateAgreement_spotIncome" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (Real)ForwardRateAgreementPtr_spotIncome((ForwardRateAgreementPtr const *)arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ForwardRateAgreement_spotValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardRateAgreementPtr *arg1 = (ForwardRateAgreementPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ForwardRateAgreement_spotValue",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardRateAgreementPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ForwardRateAgreement_spotValue" "', argument " "1"" of type '" "ForwardRateAgreementPtr const *""'"); 
  }
  arg1 = reinterpret_cast< ForwardRateAgreementPtr * >(argp1);
  {
    try {
      result = (Real)ForwardRateAgreementPtr_spotValue((ForwardRateAgreementPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ForwardRateAgreement_forwardRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardRateAgreementPtr *arg1 = (ForwardRateAgreementPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ForwardRateAgreement_forwardRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardRateAgreementPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ForwardRateAgreement_forwardRate" "', argument " "1"" of type '" "ForwardRateAgreementPtr const *""'"); 
  }
  arg1 = reinterpret_cast< ForwardRateAgreementPtr * >(argp1);
  {
    try {
      result = ForwardRateAgreementPtr_forwardRate((ForwardRateAgreementPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ForwardRateAgreement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardRateAgreementPtr *arg1 = (ForwardRateAgreementPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ForwardRateAgreement",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardRateAgreementPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ForwardRateAgreement" "', argument " "1"" of type '" "ForwardRateAgreementPtr *""'"); 
  }
  arg1 = reinterpret_cast< ForwardRateAgreementPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ForwardRateAgreement_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ForwardRateAgreementPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Gaussian1dModel___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Gaussian1dModel *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel___deref__" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  {
    try {
      result = (Gaussian1dModel *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dModel, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Gaussian1dModel_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel___bool__" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_Gaussian1dModel_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dModel",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< Gaussian1dModel > *)new boost::shared_ptr< Gaussian1dModel >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Gaussian1dModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Gaussian1dModel",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Gaussian1dModel" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_stateProcess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< StochasticProcess1DPtr > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_stateProcess",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_stateProcess" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  {
    try {
      result = (*arg1)->stateProcess();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new StochasticProcess1DPtr(static_cast< const StochasticProcess1DPtr& >(result))), SWIGTYPE_p_StochasticProcess1DPtr, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_numeraire__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Time arg2 ;
  Real arg3 ;
  Handle< YieldTermStructure > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_numeraire",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_numeraire" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gaussian1dModel_numeraire" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gaussian1dModel_numeraire" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gaussian1dModel_numeraire" "', argument " "4"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_numeraire" "', argument " "4"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< YieldTermStructure > * >(argp4);
  {
    try {
      result = (Real)(*arg1)->numeraire(arg2,arg3,(Handle< YieldTermStructure > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_numeraire__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Time arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_numeraire",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_numeraire" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gaussian1dModel_numeraire" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gaussian1dModel_numeraire" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Real)(*arg1)->numeraire(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_numeraire__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_numeraire",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_numeraire" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gaussian1dModel_numeraire" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)(*arg1)->numeraire(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_numeraire__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  Handle< YieldTermStructure > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_numeraire",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_numeraire" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_numeraire" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_numeraire" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gaussian1dModel_numeraire" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gaussian1dModel_numeraire" "', argument " "4"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_numeraire" "', argument " "4"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg4 = reinterpret_cast< Handle< YieldTermStructure > * >(argp4);
  {
    try {
      result = (Real)(*arg1)->numeraire((Date const &)*arg2,arg3,(Handle< YieldTermStructure > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_numeraire__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_numeraire",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_numeraire" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_numeraire" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_numeraire" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gaussian1dModel_numeraire" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Real)(*arg1)->numeraire((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_numeraire__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_numeraire",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_numeraire" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_numeraire" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_numeraire" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Real)(*arg1)->numeraire((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_numeraire(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_Gaussian1dModel_numeraire__SWIG_5(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_Gaussian1dModel_numeraire__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_Gaussian1dModel_numeraire__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_Gaussian1dModel_numeraire__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_Gaussian1dModel_numeraire__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_Gaussian1dModel_numeraire__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Gaussian1dModel_numeraire'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Gaussian1dModel::numeraire(Time const,Real const,Handle< YieldTermStructure > const &) const\n"
    "    Gaussian1dModel::numeraire(Time const,Real const) const\n"
    "    Gaussian1dModel::numeraire(Time const) const\n"
    "    Gaussian1dModel::numeraire(Date const &,Real const,Handle< YieldTermStructure > const &) const\n"
    "    Gaussian1dModel::numeraire(Date const &,Real const) const\n"
    "    Gaussian1dModel::numeraire(Date const &) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_zerobond__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Real arg4 ;
  Handle< YieldTermStructure > *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_zerobond",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_zerobond" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gaussian1dModel_zerobond" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gaussian1dModel_zerobond" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gaussian1dModel_zerobond" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Gaussian1dModel_zerobond" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobond" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
  {
    try {
      result = (Real)(*arg1)->zerobond(arg2,arg3,arg4,(Handle< YieldTermStructure > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_zerobond__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_zerobond",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_zerobond" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gaussian1dModel_zerobond" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gaussian1dModel_zerobond" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gaussian1dModel_zerobond" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)(*arg1)->zerobond(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_zerobond__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Time arg2 ;
  Time arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_zerobond",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_zerobond" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gaussian1dModel_zerobond" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gaussian1dModel_zerobond" "', argument " "3"" of type '" "Time""'");
  } 
  arg3 = static_cast< Time >(val3);
  {
    try {
      result = (Real)(*arg1)->zerobond(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_zerobond__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Time arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_zerobond",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_zerobond" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gaussian1dModel_zerobond" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  {
    try {
      result = (Real)(*arg1)->zerobond(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_zerobond__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  Real arg4 ;
  Handle< YieldTermStructure > *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_zerobond",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_zerobond" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_zerobond" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobond" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_zerobond" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobond" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gaussian1dModel_zerobond" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Gaussian1dModel_zerobond" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobond" "', argument " "5"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< YieldTermStructure > * >(argp5);
  {
    try {
      result = (Real)(*arg1)->zerobond((Date const &)*arg2,(Date const &)*arg3,arg4,(Handle< YieldTermStructure > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_zerobond__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_zerobond",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_zerobond" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_zerobond" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobond" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_zerobond" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobond" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gaussian1dModel_zerobond" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)(*arg1)->zerobond((Date const &)*arg2,(Date const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_zerobond__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_zerobond",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_zerobond" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_zerobond" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobond" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_zerobond" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobond" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  {
    try {
      result = (Real)(*arg1)->zerobond((Date const &)*arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_zerobond__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_zerobond",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_zerobond" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_zerobond" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobond" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Real)(*arg1)->zerobond((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_zerobond(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_Gaussian1dModel_zerobond__SWIG_7(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_Gaussian1dModel_zerobond__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_Gaussian1dModel_zerobond__SWIG_6(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_Gaussian1dModel_zerobond__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_Gaussian1dModel_zerobond__SWIG_5(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_Gaussian1dModel_zerobond__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_Gaussian1dModel_zerobond__SWIG_4(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_Gaussian1dModel_zerobond__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Gaussian1dModel_zerobond'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Gaussian1dModel::zerobond(Time const,Time const,Real const,Handle< YieldTermStructure > const &)\n"
    "    Gaussian1dModel::zerobond(Time const,Time const,Real const)\n"
    "    Gaussian1dModel::zerobond(Time const,Time const)\n"
    "    Gaussian1dModel::zerobond(Time const)\n"
    "    Gaussian1dModel::zerobond(Date const &,Date const &,Real const,Handle< YieldTermStructure > const &) const\n"
    "    Gaussian1dModel::zerobond(Date const &,Date const &,Real const) const\n"
    "    Gaussian1dModel::zerobond(Date const &,Date const &) const\n"
    "    Gaussian1dModel::zerobond(Date const &) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_zerobondOption__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Option::Type *arg2 = 0 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Date *arg5 = 0 ;
  Rate arg6 ;
  Date *arg7 = 0 ;
  Real arg8 ;
  Handle< YieldTermStructure > *arg9 = 0 ;
  Real arg10 ;
  Size arg11 ;
  bool arg12 ;
  bool arg13 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 ;
  Option::Type temp2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  size_t val11 ;
  int ecode11 = 0 ;
  bool val12 ;
  int ecode12 = 0 ;
  bool val13 ;
  int ecode13 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_zerobondOption",13,13,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int (obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "2"" of type '" "Option::Type const &""'");
  } else {
    temp2 = static_cast< Option::Type >(val2);
    arg2 = &temp2;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "6"" of type '" "Rate""'");
  } 
  arg6 = static_cast< Rate >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "9"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "9"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg9 = reinterpret_cast< Handle< YieldTermStructure > * >(argp9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_size_t(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "11"" of type '" "Size""'");
  } 
  arg11 = static_cast< Size >(val11);
  ecode12 = SWIG_AsVal_bool(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "12"" of type '" "bool""'");
  } 
  arg12 = static_cast< bool >(val12);
  ecode13 = SWIG_AsVal_bool(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "13"" of type '" "bool""'");
  } 
  arg13 = static_cast< bool >(val13);
  {
    try {
      result = (Real)(*arg1)->zerobondOption((Option::Type const &)*arg2,(Date const &)*arg3,(Date const &)*arg4,(Date const &)*arg5,arg6,(Date const &)*arg7,arg8,(Handle< YieldTermStructure > const &)*arg9,arg10,arg11,arg12,arg13);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_zerobondOption__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Option::Type *arg2 = 0 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Date *arg5 = 0 ;
  Rate arg6 ;
  Date *arg7 = 0 ;
  Real arg8 ;
  Handle< YieldTermStructure > *arg9 = 0 ;
  Real arg10 ;
  Size arg11 ;
  bool arg12 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 ;
  Option::Type temp2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  size_t val11 ;
  int ecode11 = 0 ;
  bool val12 ;
  int ecode12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_zerobondOption",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int (obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "2"" of type '" "Option::Type const &""'");
  } else {
    temp2 = static_cast< Option::Type >(val2);
    arg2 = &temp2;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "6"" of type '" "Rate""'");
  } 
  arg6 = static_cast< Rate >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "9"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "9"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg9 = reinterpret_cast< Handle< YieldTermStructure > * >(argp9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_size_t(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "11"" of type '" "Size""'");
  } 
  arg11 = static_cast< Size >(val11);
  ecode12 = SWIG_AsVal_bool(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "12"" of type '" "bool""'");
  } 
  arg12 = static_cast< bool >(val12);
  {
    try {
      result = (Real)(*arg1)->zerobondOption((Option::Type const &)*arg2,(Date const &)*arg3,(Date const &)*arg4,(Date const &)*arg5,arg6,(Date const &)*arg7,arg8,(Handle< YieldTermStructure > const &)*arg9,arg10,arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_zerobondOption__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Option::Type *arg2 = 0 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Date *arg5 = 0 ;
  Rate arg6 ;
  Date *arg7 = 0 ;
  Real arg8 ;
  Handle< YieldTermStructure > *arg9 = 0 ;
  Real arg10 ;
  Size arg11 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 ;
  Option::Type temp2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  size_t val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_zerobondOption",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int (obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "2"" of type '" "Option::Type const &""'");
  } else {
    temp2 = static_cast< Option::Type >(val2);
    arg2 = &temp2;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "6"" of type '" "Rate""'");
  } 
  arg6 = static_cast< Rate >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "9"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "9"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg9 = reinterpret_cast< Handle< YieldTermStructure > * >(argp9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_size_t(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "11"" of type '" "Size""'");
  } 
  arg11 = static_cast< Size >(val11);
  {
    try {
      result = (Real)(*arg1)->zerobondOption((Option::Type const &)*arg2,(Date const &)*arg3,(Date const &)*arg4,(Date const &)*arg5,arg6,(Date const &)*arg7,arg8,(Handle< YieldTermStructure > const &)*arg9,arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_zerobondOption__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Option::Type *arg2 = 0 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Date *arg5 = 0 ;
  Rate arg6 ;
  Date *arg7 = 0 ;
  Real arg8 ;
  Handle< YieldTermStructure > *arg9 = 0 ;
  Real arg10 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 ;
  Option::Type temp2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_zerobondOption",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int (obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "2"" of type '" "Option::Type const &""'");
  } else {
    temp2 = static_cast< Option::Type >(val2);
    arg2 = &temp2;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "6"" of type '" "Rate""'");
  } 
  arg6 = static_cast< Rate >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "9"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "9"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg9 = reinterpret_cast< Handle< YieldTermStructure > * >(argp9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  {
    try {
      result = (Real)(*arg1)->zerobondOption((Option::Type const &)*arg2,(Date const &)*arg3,(Date const &)*arg4,(Date const &)*arg5,arg6,(Date const &)*arg7,arg8,(Handle< YieldTermStructure > const &)*arg9,arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_zerobondOption__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Option::Type *arg2 = 0 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Date *arg5 = 0 ;
  Rate arg6 ;
  Date *arg7 = 0 ;
  Real arg8 ;
  Handle< YieldTermStructure > *arg9 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 ;
  Option::Type temp2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_zerobondOption",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int (obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "2"" of type '" "Option::Type const &""'");
  } else {
    temp2 = static_cast< Option::Type >(val2);
    arg2 = &temp2;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "6"" of type '" "Rate""'");
  } 
  arg6 = static_cast< Rate >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "9"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "9"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg9 = reinterpret_cast< Handle< YieldTermStructure > * >(argp9);
  {
    try {
      result = (Real)(*arg1)->zerobondOption((Option::Type const &)*arg2,(Date const &)*arg3,(Date const &)*arg4,(Date const &)*arg5,arg6,(Date const &)*arg7,arg8,(Handle< YieldTermStructure > const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_zerobondOption__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Option::Type *arg2 = 0 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Date *arg5 = 0 ;
  Rate arg6 ;
  Date *arg7 = 0 ;
  Real arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 ;
  Option::Type temp2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_zerobondOption",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int (obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "2"" of type '" "Option::Type const &""'");
  } else {
    temp2 = static_cast< Option::Type >(val2);
    arg2 = &temp2;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "6"" of type '" "Rate""'");
  } 
  arg6 = static_cast< Rate >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  ecode8 = SWIG_AsVal_double(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "8"" of type '" "Real""'");
  } 
  arg8 = static_cast< Real >(val8);
  {
    try {
      result = (Real)(*arg1)->zerobondOption((Option::Type const &)*arg2,(Date const &)*arg3,(Date const &)*arg4,(Date const &)*arg5,arg6,(Date const &)*arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_zerobondOption__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Option::Type *arg2 = 0 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Date *arg5 = 0 ;
  Rate arg6 ;
  Date *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 ;
  Option::Type temp2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_zerobondOption",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int (obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "2"" of type '" "Option::Type const &""'");
  } else {
    temp2 = static_cast< Option::Type >(val2);
    arg2 = &temp2;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "6"" of type '" "Rate""'");
  } 
  arg6 = static_cast< Rate >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "7"" of type '" "Date const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "7"" of type '" "Date const &""'"); 
  }
  arg7 = reinterpret_cast< Date * >(argp7);
  {
    try {
      result = (Real)(*arg1)->zerobondOption((Option::Type const &)*arg2,(Date const &)*arg3,(Date const &)*arg4,(Date const &)*arg5,arg6,(Date const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_zerobondOption__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Option::Type *arg2 = 0 ;
  Date *arg3 = 0 ;
  Date *arg4 = 0 ;
  Date *arg5 = 0 ;
  Rate arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 ;
  Option::Type temp2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_zerobondOption",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int (obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "2"" of type '" "Option::Type const &""'");
  } else {
    temp2 = static_cast< Option::Type >(val2);
    arg2 = &temp2;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "5"" of type '" "Date const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_zerobondOption" "', argument " "5"" of type '" "Date const &""'"); 
  }
  arg5 = reinterpret_cast< Date * >(argp5);
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Gaussian1dModel_zerobondOption" "', argument " "6"" of type '" "Rate""'");
  } 
  arg6 = static_cast< Rate >(val6);
  {
    try {
      result = (Real)(*arg1)->zerobondOption((Option::Type const &)*arg2,(Date const &)*arg3,(Date const &)*arg4,(Date const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_zerobondOption(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[14] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 13) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_Gaussian1dModel_zerobondOption__SWIG_7(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_Gaussian1dModel_zerobondOption__SWIG_6(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_Gaussian1dModel_zerobondOption__SWIG_5(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap_Gaussian1dModel_zerobondOption__SWIG_4(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        return _wrap_Gaussian1dModel_zerobondOption__SWIG_3(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          _v = (PyInt_Check(argv[10]) || PyLong_Check(argv[10])) ? 1 : 0;
                        }
                        if (_v) {
                          return _wrap_Gaussian1dModel_zerobondOption__SWIG_2(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          _v = (PyInt_Check(argv[10]) || PyLong_Check(argv[10])) ? 1 : 0;
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_bool(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            return _wrap_Gaussian1dModel_zerobondOption__SWIG_1(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 13) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Date, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Date, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_double(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          _v = (PyInt_Check(argv[10]) || PyLong_Check(argv[10])) ? 1 : 0;
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_bool(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            {
                              int res = SWIG_AsVal_bool(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              return _wrap_Gaussian1dModel_zerobondOption__SWIG_0(self, args);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Gaussian1dModel_zerobondOption'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Gaussian1dModel::zerobondOption(Option::Type const &,Date const &,Date const &,Date const &,Rate const,Date const &,Real const,Handle< YieldTermStructure > const &,Real const,Size const,bool const,bool const) const\n"
    "    Gaussian1dModel::zerobondOption(Option::Type const &,Date const &,Date const &,Date const &,Rate const,Date const &,Real const,Handle< YieldTermStructure > const &,Real const,Size const,bool const) const\n"
    "    Gaussian1dModel::zerobondOption(Option::Type const &,Date const &,Date const &,Date const &,Rate const,Date const &,Real const,Handle< YieldTermStructure > const &,Real const,Size const) const\n"
    "    Gaussian1dModel::zerobondOption(Option::Type const &,Date const &,Date const &,Date const &,Rate const,Date const &,Real const,Handle< YieldTermStructure > const &,Real const) const\n"
    "    Gaussian1dModel::zerobondOption(Option::Type const &,Date const &,Date const &,Date const &,Rate const,Date const &,Real const,Handle< YieldTermStructure > const &) const\n"
    "    Gaussian1dModel::zerobondOption(Option::Type const &,Date const &,Date const &,Date const &,Rate const,Date const &,Real const) const\n"
    "    Gaussian1dModel::zerobondOption(Option::Type const &,Date const &,Date const &,Date const &,Rate const,Date const &) const\n"
    "    Gaussian1dModel::zerobondOption(Option::Type const &,Date const &,Date const &,Date const &,Rate const) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_forwardRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  Real arg4 ;
  SwigValueWrapper< boost::shared_ptr< IborIndex > > arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  void *argp5 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_forwardRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_forwardRate" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_forwardRate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_forwardRate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gaussian1dModel_forwardRate" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_boost__shared_ptrT_IborIndex_t,  0  | 0);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Gaussian1dModel_forwardRate" "', argument " "5"" of type '" "boost::shared_ptr< IborIndex >""'"); 
    }  
    if (!argp5) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_forwardRate" "', argument " "5"" of type '" "boost::shared_ptr< IborIndex >""'");
    } else {
      boost::shared_ptr< IborIndex > * temp = reinterpret_cast< boost::shared_ptr< IborIndex > * >(argp5);
      arg5 = *temp;
      if (SWIG_IsNewObj(res5)) delete temp;
    }
  }
  {
    try {
      result = (Real)(*arg1)->forwardRate((Date const &)*arg2,(Date const &)*arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_forwardRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_forwardRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_forwardRate" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_forwardRate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_forwardRate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gaussian1dModel_forwardRate" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)(*arg1)->forwardRate((Date const &)*arg2,(Date const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_forwardRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  Date *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_forwardRate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_forwardRate" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_forwardRate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_forwardRate" "', argument " "3"" of type '" "Date const &""'"); 
  }
  arg3 = reinterpret_cast< Date * >(argp3);
  {
    try {
      result = (Real)(*arg1)->forwardRate((Date const &)*arg2,(Date const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_forwardRate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_forwardRate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_forwardRate" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_forwardRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      result = (Real)(*arg1)->forwardRate((Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_forwardRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_Gaussian1dModel_forwardRate__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_Gaussian1dModel_forwardRate__SWIG_2(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_Gaussian1dModel_forwardRate__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Date, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_boost__shared_ptrT_IborIndex_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_Gaussian1dModel_forwardRate__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Gaussian1dModel_forwardRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Gaussian1dModel::forwardRate(Date const &,Date const &,Real const,boost::shared_ptr< IborIndex >) const\n"
    "    Gaussian1dModel::forwardRate(Date const &,Date const &,Real const) const\n"
    "    Gaussian1dModel::forwardRate(Date const &,Date const &) const\n"
    "    Gaussian1dModel::forwardRate(Date const &) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_swapRate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  Date *arg4 = 0 ;
  Real arg5 ;
  SwigValueWrapper< boost::shared_ptr< SwapIndex > > arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  void *argp6 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_swapRate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_swapRate" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_swapRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_swapRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gaussian1dModel_swapRate" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapRate" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Gaussian1dModel_swapRate" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_boost__shared_ptrT_SwapIndex_t,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Gaussian1dModel_swapRate" "', argument " "6"" of type '" "boost::shared_ptr< SwapIndex >""'"); 
    }  
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapRate" "', argument " "6"" of type '" "boost::shared_ptr< SwapIndex >""'");
    } else {
      boost::shared_ptr< SwapIndex > * temp = reinterpret_cast< boost::shared_ptr< SwapIndex > * >(argp6);
      arg6 = *temp;
      if (SWIG_IsNewObj(res6)) delete temp;
    }
  }
  {
    try {
      result = (Real)(*arg1)->swapRate((Date const &)*arg2,(Period const &)*arg3,(Date const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_swapRate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  Date *arg4 = 0 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_swapRate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_swapRate" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_swapRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_swapRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gaussian1dModel_swapRate" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapRate" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Gaussian1dModel_swapRate" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Real)(*arg1)->swapRate((Date const &)*arg2,(Period const &)*arg3,(Date const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_swapRate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  Date *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_swapRate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_swapRate" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_swapRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_swapRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gaussian1dModel_swapRate" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapRate" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  {
    try {
      result = (Real)(*arg1)->swapRate((Date const &)*arg2,(Period const &)*arg3,(Date const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_swapRate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_swapRate",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_swapRate" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_swapRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapRate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_swapRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapRate" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  {
    try {
      result = (Real)(*arg1)->swapRate((Date const &)*arg2,(Period const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_swapRate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_Gaussian1dModel_swapRate__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_Gaussian1dModel_swapRate__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_Gaussian1dModel_swapRate__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_boost__shared_ptrT_SwapIndex_t, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_Gaussian1dModel_swapRate__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Gaussian1dModel_swapRate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Gaussian1dModel::swapRate(Date const &,Period const &,Date const &,Real const,boost::shared_ptr< SwapIndex >) const\n"
    "    Gaussian1dModel::swapRate(Date const &,Period const &,Date const &,Real const) const\n"
    "    Gaussian1dModel::swapRate(Date const &,Period const &,Date const &) const\n"
    "    Gaussian1dModel::swapRate(Date const &,Period const &) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_swapAnnuity__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  Date *arg4 = 0 ;
  Real arg5 ;
  SwigValueWrapper< boost::shared_ptr< SwapIndex > > arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  void *argp6 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_swapAnnuity",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_boost__shared_ptrT_SwapIndex_t,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "6"" of type '" "boost::shared_ptr< SwapIndex >""'"); 
    }  
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "6"" of type '" "boost::shared_ptr< SwapIndex >""'");
    } else {
      boost::shared_ptr< SwapIndex > * temp = reinterpret_cast< boost::shared_ptr< SwapIndex > * >(argp6);
      arg6 = *temp;
      if (SWIG_IsNewObj(res6)) delete temp;
    }
  }
  {
    try {
      result = (Real)(*arg1)->swapAnnuity((Date const &)*arg2,(Period const &)*arg3,(Date const &)*arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_swapAnnuity__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  Date *arg4 = 0 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_swapAnnuity",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (Real)(*arg1)->swapAnnuity((Date const &)*arg2,(Period const &)*arg3,(Date const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_swapAnnuity__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  Date *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_swapAnnuity",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "4"" of type '" "Date const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "4"" of type '" "Date const &""'"); 
  }
  arg4 = reinterpret_cast< Date * >(argp4);
  {
    try {
      result = (Real)(*arg1)->swapAnnuity((Date const &)*arg2,(Period const &)*arg3,(Date const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_swapAnnuity__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = (boost::shared_ptr< Gaussian1dModel > *) 0 ;
  Date *arg2 = 0 ;
  Period *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gaussian1dModel_swapAnnuity",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "3"" of type '" "Period const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gaussian1dModel_swapAnnuity" "', argument " "3"" of type '" "Period const &""'"); 
  }
  arg3 = reinterpret_cast< Period * >(argp3);
  {
    try {
      result = (Real)(*arg1)->swapAnnuity((Date const &)*arg2,(Period const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gaussian1dModel_swapAnnuity(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_Gaussian1dModel_swapAnnuity__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_Gaussian1dModel_swapAnnuity__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_Gaussian1dModel_swapAnnuity__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Period, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Date, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_boost__shared_ptrT_SwapIndex_t, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_Gaussian1dModel_swapAnnuity__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Gaussian1dModel_swapAnnuity'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Gaussian1dModel::swapAnnuity(Date const &,Period const &,Date const &,Real const,boost::shared_ptr< SwapIndex >) const\n"
    "    Gaussian1dModel::swapAnnuity(Date const &,Period const &,Date const &,Real const) const\n"
    "    Gaussian1dModel::swapAnnuity(Date const &,Period const &,Date const &) const\n"
    "    Gaussian1dModel::swapAnnuity(Date const &,Period const &) const\n");
  return 0;
}


SWIGINTERN PyObject *Gaussian1dModel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Gsr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg2 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  GsrPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gsr",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gsr" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gsr" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Gsr" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gsr" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Gsr" "', argument " "3"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gsr" "', argument " "3"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Gsr" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gsr" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Gsr" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      result = (GsrPtr *)new_GsrPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(std::vector< Date,std::allocator< Date > > const &)*arg2,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GsrPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gsr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg2 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  GsrPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gsr",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gsr" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gsr" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Gsr" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gsr" "', argument " "2"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Gsr" "', argument " "3"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gsr" "', argument " "3"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Gsr" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gsr" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      result = (GsrPtr *)new_GsrPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(std::vector< Date,std::allocator< Date > > const &)*arg2,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GsrPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gsr(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 5) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< Date,std::allocator< Date > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_Gsr__SWIG_1(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< Date,std::allocator< Date > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            {
              int res = SWIG_AsVal_double(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_Gsr__SWIG_0(self, args);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Gsr'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    GsrPtr::GsrPtr(Handle< YieldTermStructure > const &,std::vector< Date,std::allocator< Date > > const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,Real const)\n"
    "    GsrPtr::GsrPtr(Handle< YieldTermStructure > const &,std::vector< Date,std::allocator< Date > > const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Gsr_calibrateVolatilitiesIterative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrPtr *arg1 = (GsrPtr *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  Constraint *arg5 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gsr_calibrateVolatilitiesIterative",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "1"" of type '" "GsrPtr *""'"); 
  }
  arg1 = reinterpret_cast< GsrPtr * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  arg5 = reinterpret_cast< Constraint * >(argp5);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    try {
      GsrPtr_calibrateVolatilitiesIterative__SWIG_0(arg1,(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4,(Constraint const &)*arg5,(std::vector< double,std::allocator< double > > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gsr_calibrateVolatilitiesIterative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrPtr *arg1 = (GsrPtr *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  Constraint *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gsr_calibrateVolatilitiesIterative",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "1"" of type '" "GsrPtr *""'"); 
  }
  arg1 = reinterpret_cast< GsrPtr * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  arg5 = reinterpret_cast< Constraint * >(argp5);
  {
    try {
      GsrPtr_calibrateVolatilitiesIterative__SWIG_0(arg1,(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4,(Constraint const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gsr_calibrateVolatilitiesIterative__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrPtr *arg1 = (GsrPtr *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gsr_calibrateVolatilitiesIterative",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "1"" of type '" "GsrPtr *""'"); 
  }
  arg1 = reinterpret_cast< GsrPtr * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrateVolatilitiesIterative" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  {
    try {
      GsrPtr_calibrateVolatilitiesIterative__SWIG_0(arg1,(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gsr_calibrateVolatilitiesIterative(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GsrPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_Gsr_calibrateVolatilitiesIterative__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GsrPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Constraint, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_Gsr_calibrateVolatilitiesIterative__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GsrPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Constraint, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< double,std::allocator< double > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_Gsr_calibrateVolatilitiesIterative__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Gsr_calibrateVolatilitiesIterative'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    GsrPtr::calibrateVolatilitiesIterative(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &,Constraint const &,std::vector< Real,std::allocator< Real > > const &)\n"
    "    GsrPtr::calibrateVolatilitiesIterative(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &,Constraint const &)\n"
    "    GsrPtr::calibrateVolatilitiesIterative(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Gsr_calibrate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrPtr *arg1 = (GsrPtr *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  Constraint *arg5 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg6 = 0 ;
  std::vector< bool,std::allocator< bool > > *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  int res7 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gsr_calibrate",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gsr_calibrate" "', argument " "1"" of type '" "GsrPtr *""'"); 
  }
  arg1 = reinterpret_cast< GsrPtr * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gsr_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gsr_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gsr_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Gsr_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  arg5 = reinterpret_cast< Constraint * >(argp5);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Gsr_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    std::vector<bool,std::allocator< bool > > *ptr = (std::vector<bool,std::allocator< bool > > *)0;
    res7 = swig::asptr(obj6, &ptr);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Gsr_calibrate" "', argument " "7"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrate" "', argument " "7"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    arg7 = ptr;
  }
  {
    try {
      GsrPtr_calibrate__SWIG_0(arg1,(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4,(Constraint const &)*arg5,(std::vector< double,std::allocator< double > > const &)*arg6,(std::vector< bool,std::allocator< bool > > const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gsr_calibrate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrPtr *arg1 = (GsrPtr *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  Constraint *arg5 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gsr_calibrate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gsr_calibrate" "', argument " "1"" of type '" "GsrPtr *""'"); 
  }
  arg1 = reinterpret_cast< GsrPtr * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gsr_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gsr_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gsr_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Gsr_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  arg5 = reinterpret_cast< Constraint * >(argp5);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Gsr_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    try {
      GsrPtr_calibrate__SWIG_0(arg1,(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4,(Constraint const &)*arg5,(std::vector< double,std::allocator< double > > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gsr_calibrate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrPtr *arg1 = (GsrPtr *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  Constraint *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gsr_calibrate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gsr_calibrate" "', argument " "1"" of type '" "GsrPtr *""'"); 
  }
  arg1 = reinterpret_cast< GsrPtr * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gsr_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gsr_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gsr_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Gsr_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  arg5 = reinterpret_cast< Constraint * >(argp5);
  {
    try {
      GsrPtr_calibrate__SWIG_0(arg1,(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4,(Constraint const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gsr_calibrate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrPtr *arg1 = (GsrPtr *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gsr_calibrate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gsr_calibrate" "', argument " "1"" of type '" "GsrPtr *""'"); 
  }
  arg1 = reinterpret_cast< GsrPtr * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gsr_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gsr_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Gsr_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  {
    try {
      GsrPtr_calibrate__SWIG_0(arg1,(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gsr_calibrate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GsrPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_Gsr_calibrate__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GsrPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Constraint, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_Gsr_calibrate__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GsrPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Constraint, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< double,std::allocator< double > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_Gsr_calibrate__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GsrPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Constraint, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< double,std::allocator< double > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = swig::asptr(argv[6], (std::vector<bool,std::allocator< bool > >**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_Gsr_calibrate__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Gsr_calibrate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    GsrPtr::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &,Constraint const &,std::vector< Real,std::allocator< Real > > const &,std::vector< bool,std::allocator< bool > > const &)\n"
    "    GsrPtr::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &,Constraint const &,std::vector< Real,std::allocator< Real > > const &)\n"
    "    GsrPtr::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &,Constraint const &)\n"
    "    GsrPtr::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Gsr_params(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrPtr *arg1 = (GsrPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gsr_params",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gsr_params" "', argument " "1"" of type '" "GsrPtr const *""'"); 
  }
  arg1 = reinterpret_cast< GsrPtr * >(argp1);
  {
    try {
      result = GsrPtr_params((GsrPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gsr_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrPtr *arg1 = (GsrPtr *) 0 ;
  Array *arg2 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gsr_value",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gsr_value" "', argument " "1"" of type '" "GsrPtr *""'"); 
  }
  arg1 = reinterpret_cast< GsrPtr * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Gsr_value" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gsr_value" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      result = (Real)GsrPtr_value(arg1,(Array const &)*arg2,(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gsr_endCriteria(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrPtr *arg1 = (GsrPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  EndCriteria::Type result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gsr_endCriteria",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gsr_endCriteria" "', argument " "1"" of type '" "GsrPtr const *""'"); 
  }
  arg1 = reinterpret_cast< GsrPtr * >(argp1);
  {
    try {
      result = (EndCriteria::Type)GsrPtr_endCriteria((GsrPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gsr_setParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrPtr *arg1 = (GsrPtr *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gsr_setParams",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gsr_setParams" "', argument " "1"" of type '" "GsrPtr *""'"); 
  }
  arg1 = reinterpret_cast< GsrPtr * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      GsrPtr_setParams(arg1,(Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gsr_functionEvaluation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrPtr *arg1 = (GsrPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Integer result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gsr_functionEvaluation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gsr_functionEvaluation" "', argument " "1"" of type '" "GsrPtr const *""'"); 
  }
  arg1 = reinterpret_cast< GsrPtr * >(argp1);
  {
    try {
      result = (Integer)GsrPtr_functionEvaluation((GsrPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gsr_reversion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrPtr *arg1 = (GsrPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Array *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gsr_reversion",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gsr_reversion" "', argument " "1"" of type '" "GsrPtr const *""'"); 
  }
  arg1 = reinterpret_cast< GsrPtr * >(argp1);
  {
    try {
      result = (Array *) &GsrPtr_reversion((GsrPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Array, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Gsr_volatility(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrPtr *arg1 = (GsrPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Array *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Gsr_volatility",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gsr_volatility" "', argument " "1"" of type '" "GsrPtr const *""'"); 
  }
  arg1 = reinterpret_cast< GsrPtr * >(argp1);
  {
    try {
      result = (Array *) &GsrPtr_volatility((GsrPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Array, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Gsr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GsrPtr *arg1 = (GsrPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Gsr",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GsrPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Gsr" "', argument " "1"" of type '" "GsrPtr *""'"); 
  }
  arg1 = reinterpret_cast< GsrPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Gsr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GsrPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MarkovFunctionalSettings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MarkovFunctional::ModelSettings *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MarkovFunctionalSettings",0,0)) SWIG_fail;
  {
    try {
      result = (MarkovFunctional::ModelSettings *)new MarkovFunctional::ModelSettings();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MarkovFunctional__ModelSettings, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MarkovFunctionalSettings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MarkovFunctional::ModelSettings *arg1 = (MarkovFunctional::ModelSettings *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MarkovFunctionalSettings",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MarkovFunctional__ModelSettings, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MarkovFunctionalSettings" "', argument " "1"" of type '" "MarkovFunctional::ModelSettings *""'"); 
  }
  arg1 = reinterpret_cast< MarkovFunctional::ModelSettings * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MarkovFunctionalSettings_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MarkovFunctional__ModelSettings, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MarkovFunctional__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  std::vector< Date,std::allocator< Date > > *arg3 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg4 = 0 ;
  Handle< SwaptionVolatilityStructure > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg7 = 0 ;
  SwapIndexPtr *arg8 = 0 ;
  Size arg9 ;
  Real arg10 ;
  Size arg11 ;
  Real arg12 ;
  Real arg13 ;
  Real arg14 ;
  Real arg15 ;
  int arg16 ;
  std::vector< Real,std::allocator< Real > > *arg17 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  int res7 = SWIG_OLDOBJ ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  size_t val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  size_t val11 ;
  int ecode11 = 0 ;
  double val12 ;
  int ecode12 = 0 ;
  double val13 ;
  int ecode13 = 0 ;
  double val14 ;
  int ecode14 = 0 ;
  double val15 ;
  int ecode15 = 0 ;
  int val16 ;
  int ecode16 = 0 ;
  int res17 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  PyObject * obj14 = 0 ;
  PyObject * obj15 = 0 ;
  PyObject * obj16 = 0 ;
  MarkovFunctionalPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MarkovFunctional",17,17,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15,&obj16)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MarkovFunctional" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp5);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res7 = swig::asptr(obj6, &ptr);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg7 = ptr;
  }
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< SwapIndexPtr * >(argp8);
  ecode9 = SWIG_AsVal_size_t(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_MarkovFunctional" "', argument " "9"" of type '" "Size""'");
  } 
  arg9 = static_cast< Size >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_MarkovFunctional" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_size_t(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_MarkovFunctional" "', argument " "11"" of type '" "Size""'");
  } 
  arg11 = static_cast< Size >(val11);
  ecode12 = SWIG_AsVal_double(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_MarkovFunctional" "', argument " "12"" of type '" "Real""'");
  } 
  arg12 = static_cast< Real >(val12);
  ecode13 = SWIG_AsVal_double(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_MarkovFunctional" "', argument " "13"" of type '" "Real""'");
  } 
  arg13 = static_cast< Real >(val13);
  ecode14 = SWIG_AsVal_double(obj13, &val14);
  if (!SWIG_IsOK(ecode14)) {
    SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "new_MarkovFunctional" "', argument " "14"" of type '" "Real""'");
  } 
  arg14 = static_cast< Real >(val14);
  ecode15 = SWIG_AsVal_double(obj14, &val15);
  if (!SWIG_IsOK(ecode15)) {
    SWIG_exception_fail(SWIG_ArgError(ecode15), "in method '" "new_MarkovFunctional" "', argument " "15"" of type '" "Real""'");
  } 
  arg15 = static_cast< Real >(val15);
  ecode16 = SWIG_AsVal_int(obj15, &val16);
  if (!SWIG_IsOK(ecode16)) {
    SWIG_exception_fail(SWIG_ArgError(ecode16), "in method '" "new_MarkovFunctional" "', argument " "16"" of type '" "int""'");
  } 
  arg16 = static_cast< int >(val16);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res17 = swig::asptr(obj16, &ptr);
    if (!SWIG_IsOK(res17)) {
      SWIG_exception_fail(SWIG_ArgError(res17), "in method '" "new_MarkovFunctional" "', argument " "17"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "17"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg17 = ptr;
  }
  {
    try {
      result = (MarkovFunctionalPtr *)new_MarkovFunctionalPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2,(std::vector< Date,std::allocator< Date > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(Handle< SwaptionVolatilityStructure > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,(std::vector< Period,std::allocator< Period > > const &)*arg7,(SwapIndexPtr const &)*arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,(std::vector< double,std::allocator< double > > const &)*arg17);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MarkovFunctionalPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  if (SWIG_IsNewObj(res17)) delete arg17;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  if (SWIG_IsNewObj(res17)) delete arg17;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MarkovFunctional__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  std::vector< Date,std::allocator< Date > > *arg3 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg4 = 0 ;
  Handle< SwaptionVolatilityStructure > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg7 = 0 ;
  SwapIndexPtr *arg8 = 0 ;
  Size arg9 ;
  Real arg10 ;
  Size arg11 ;
  Real arg12 ;
  Real arg13 ;
  Real arg14 ;
  Real arg15 ;
  int arg16 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  int res7 = SWIG_OLDOBJ ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  size_t val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  size_t val11 ;
  int ecode11 = 0 ;
  double val12 ;
  int ecode12 = 0 ;
  double val13 ;
  int ecode13 = 0 ;
  double val14 ;
  int ecode14 = 0 ;
  double val15 ;
  int ecode15 = 0 ;
  int val16 ;
  int ecode16 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  PyObject * obj14 = 0 ;
  PyObject * obj15 = 0 ;
  MarkovFunctionalPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MarkovFunctional",16,16,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MarkovFunctional" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp5);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res7 = swig::asptr(obj6, &ptr);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg7 = ptr;
  }
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< SwapIndexPtr * >(argp8);
  ecode9 = SWIG_AsVal_size_t(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_MarkovFunctional" "', argument " "9"" of type '" "Size""'");
  } 
  arg9 = static_cast< Size >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_MarkovFunctional" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_size_t(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_MarkovFunctional" "', argument " "11"" of type '" "Size""'");
  } 
  arg11 = static_cast< Size >(val11);
  ecode12 = SWIG_AsVal_double(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_MarkovFunctional" "', argument " "12"" of type '" "Real""'");
  } 
  arg12 = static_cast< Real >(val12);
  ecode13 = SWIG_AsVal_double(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_MarkovFunctional" "', argument " "13"" of type '" "Real""'");
  } 
  arg13 = static_cast< Real >(val13);
  ecode14 = SWIG_AsVal_double(obj13, &val14);
  if (!SWIG_IsOK(ecode14)) {
    SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "new_MarkovFunctional" "', argument " "14"" of type '" "Real""'");
  } 
  arg14 = static_cast< Real >(val14);
  ecode15 = SWIG_AsVal_double(obj14, &val15);
  if (!SWIG_IsOK(ecode15)) {
    SWIG_exception_fail(SWIG_ArgError(ecode15), "in method '" "new_MarkovFunctional" "', argument " "15"" of type '" "Real""'");
  } 
  arg15 = static_cast< Real >(val15);
  ecode16 = SWIG_AsVal_int(obj15, &val16);
  if (!SWIG_IsOK(ecode16)) {
    SWIG_exception_fail(SWIG_ArgError(ecode16), "in method '" "new_MarkovFunctional" "', argument " "16"" of type '" "int""'");
  } 
  arg16 = static_cast< int >(val16);
  {
    try {
      result = (MarkovFunctionalPtr *)new_MarkovFunctionalPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2,(std::vector< Date,std::allocator< Date > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(Handle< SwaptionVolatilityStructure > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,(std::vector< Period,std::allocator< Period > > const &)*arg7,(SwapIndexPtr const &)*arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MarkovFunctionalPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MarkovFunctional__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  std::vector< Date,std::allocator< Date > > *arg3 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg4 = 0 ;
  Handle< SwaptionVolatilityStructure > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg7 = 0 ;
  SwapIndexPtr *arg8 = 0 ;
  Size arg9 ;
  Real arg10 ;
  Size arg11 ;
  Real arg12 ;
  Real arg13 ;
  Real arg14 ;
  Real arg15 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  int res7 = SWIG_OLDOBJ ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  size_t val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  size_t val11 ;
  int ecode11 = 0 ;
  double val12 ;
  int ecode12 = 0 ;
  double val13 ;
  int ecode13 = 0 ;
  double val14 ;
  int ecode14 = 0 ;
  double val15 ;
  int ecode15 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  PyObject * obj14 = 0 ;
  MarkovFunctionalPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MarkovFunctional",15,15,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MarkovFunctional" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp5);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res7 = swig::asptr(obj6, &ptr);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg7 = ptr;
  }
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< SwapIndexPtr * >(argp8);
  ecode9 = SWIG_AsVal_size_t(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_MarkovFunctional" "', argument " "9"" of type '" "Size""'");
  } 
  arg9 = static_cast< Size >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_MarkovFunctional" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_size_t(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_MarkovFunctional" "', argument " "11"" of type '" "Size""'");
  } 
  arg11 = static_cast< Size >(val11);
  ecode12 = SWIG_AsVal_double(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_MarkovFunctional" "', argument " "12"" of type '" "Real""'");
  } 
  arg12 = static_cast< Real >(val12);
  ecode13 = SWIG_AsVal_double(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_MarkovFunctional" "', argument " "13"" of type '" "Real""'");
  } 
  arg13 = static_cast< Real >(val13);
  ecode14 = SWIG_AsVal_double(obj13, &val14);
  if (!SWIG_IsOK(ecode14)) {
    SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "new_MarkovFunctional" "', argument " "14"" of type '" "Real""'");
  } 
  arg14 = static_cast< Real >(val14);
  ecode15 = SWIG_AsVal_double(obj14, &val15);
  if (!SWIG_IsOK(ecode15)) {
    SWIG_exception_fail(SWIG_ArgError(ecode15), "in method '" "new_MarkovFunctional" "', argument " "15"" of type '" "Real""'");
  } 
  arg15 = static_cast< Real >(val15);
  {
    try {
      result = (MarkovFunctionalPtr *)new_MarkovFunctionalPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2,(std::vector< Date,std::allocator< Date > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(Handle< SwaptionVolatilityStructure > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,(std::vector< Period,std::allocator< Period > > const &)*arg7,(SwapIndexPtr const &)*arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MarkovFunctionalPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MarkovFunctional__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  std::vector< Date,std::allocator< Date > > *arg3 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg4 = 0 ;
  Handle< SwaptionVolatilityStructure > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg7 = 0 ;
  SwapIndexPtr *arg8 = 0 ;
  Size arg9 ;
  Real arg10 ;
  Size arg11 ;
  Real arg12 ;
  Real arg13 ;
  Real arg14 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  int res7 = SWIG_OLDOBJ ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  size_t val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  size_t val11 ;
  int ecode11 = 0 ;
  double val12 ;
  int ecode12 = 0 ;
  double val13 ;
  int ecode13 = 0 ;
  double val14 ;
  int ecode14 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  PyObject * obj13 = 0 ;
  MarkovFunctionalPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MarkovFunctional",14,14,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MarkovFunctional" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp5);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res7 = swig::asptr(obj6, &ptr);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg7 = ptr;
  }
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< SwapIndexPtr * >(argp8);
  ecode9 = SWIG_AsVal_size_t(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_MarkovFunctional" "', argument " "9"" of type '" "Size""'");
  } 
  arg9 = static_cast< Size >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_MarkovFunctional" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_size_t(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_MarkovFunctional" "', argument " "11"" of type '" "Size""'");
  } 
  arg11 = static_cast< Size >(val11);
  ecode12 = SWIG_AsVal_double(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_MarkovFunctional" "', argument " "12"" of type '" "Real""'");
  } 
  arg12 = static_cast< Real >(val12);
  ecode13 = SWIG_AsVal_double(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_MarkovFunctional" "', argument " "13"" of type '" "Real""'");
  } 
  arg13 = static_cast< Real >(val13);
  ecode14 = SWIG_AsVal_double(obj13, &val14);
  if (!SWIG_IsOK(ecode14)) {
    SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "new_MarkovFunctional" "', argument " "14"" of type '" "Real""'");
  } 
  arg14 = static_cast< Real >(val14);
  {
    try {
      result = (MarkovFunctionalPtr *)new_MarkovFunctionalPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2,(std::vector< Date,std::allocator< Date > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(Handle< SwaptionVolatilityStructure > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,(std::vector< Period,std::allocator< Period > > const &)*arg7,(SwapIndexPtr const &)*arg8,arg9,arg10,arg11,arg12,arg13,arg14);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MarkovFunctionalPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MarkovFunctional__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  std::vector< Date,std::allocator< Date > > *arg3 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg4 = 0 ;
  Handle< SwaptionVolatilityStructure > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg7 = 0 ;
  SwapIndexPtr *arg8 = 0 ;
  Size arg9 ;
  Real arg10 ;
  Size arg11 ;
  Real arg12 ;
  Real arg13 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  int res7 = SWIG_OLDOBJ ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  size_t val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  size_t val11 ;
  int ecode11 = 0 ;
  double val12 ;
  int ecode12 = 0 ;
  double val13 ;
  int ecode13 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  PyObject * obj12 = 0 ;
  MarkovFunctionalPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MarkovFunctional",13,13,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MarkovFunctional" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp5);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res7 = swig::asptr(obj6, &ptr);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg7 = ptr;
  }
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< SwapIndexPtr * >(argp8);
  ecode9 = SWIG_AsVal_size_t(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_MarkovFunctional" "', argument " "9"" of type '" "Size""'");
  } 
  arg9 = static_cast< Size >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_MarkovFunctional" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_size_t(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_MarkovFunctional" "', argument " "11"" of type '" "Size""'");
  } 
  arg11 = static_cast< Size >(val11);
  ecode12 = SWIG_AsVal_double(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_MarkovFunctional" "', argument " "12"" of type '" "Real""'");
  } 
  arg12 = static_cast< Real >(val12);
  ecode13 = SWIG_AsVal_double(obj12, &val13);
  if (!SWIG_IsOK(ecode13)) {
    SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "new_MarkovFunctional" "', argument " "13"" of type '" "Real""'");
  } 
  arg13 = static_cast< Real >(val13);
  {
    try {
      result = (MarkovFunctionalPtr *)new_MarkovFunctionalPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2,(std::vector< Date,std::allocator< Date > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(Handle< SwaptionVolatilityStructure > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,(std::vector< Period,std::allocator< Period > > const &)*arg7,(SwapIndexPtr const &)*arg8,arg9,arg10,arg11,arg12,arg13);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MarkovFunctionalPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MarkovFunctional__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  std::vector< Date,std::allocator< Date > > *arg3 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg4 = 0 ;
  Handle< SwaptionVolatilityStructure > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg7 = 0 ;
  SwapIndexPtr *arg8 = 0 ;
  Size arg9 ;
  Real arg10 ;
  Size arg11 ;
  Real arg12 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  int res7 = SWIG_OLDOBJ ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  size_t val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  size_t val11 ;
  int ecode11 = 0 ;
  double val12 ;
  int ecode12 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  PyObject * obj11 = 0 ;
  MarkovFunctionalPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MarkovFunctional",12,12,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MarkovFunctional" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp5);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res7 = swig::asptr(obj6, &ptr);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg7 = ptr;
  }
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< SwapIndexPtr * >(argp8);
  ecode9 = SWIG_AsVal_size_t(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_MarkovFunctional" "', argument " "9"" of type '" "Size""'");
  } 
  arg9 = static_cast< Size >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_MarkovFunctional" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_size_t(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_MarkovFunctional" "', argument " "11"" of type '" "Size""'");
  } 
  arg11 = static_cast< Size >(val11);
  ecode12 = SWIG_AsVal_double(obj11, &val12);
  if (!SWIG_IsOK(ecode12)) {
    SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "new_MarkovFunctional" "', argument " "12"" of type '" "Real""'");
  } 
  arg12 = static_cast< Real >(val12);
  {
    try {
      result = (MarkovFunctionalPtr *)new_MarkovFunctionalPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2,(std::vector< Date,std::allocator< Date > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(Handle< SwaptionVolatilityStructure > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,(std::vector< Period,std::allocator< Period > > const &)*arg7,(SwapIndexPtr const &)*arg8,arg9,arg10,arg11,arg12);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MarkovFunctionalPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MarkovFunctional__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  std::vector< Date,std::allocator< Date > > *arg3 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg4 = 0 ;
  Handle< SwaptionVolatilityStructure > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg7 = 0 ;
  SwapIndexPtr *arg8 = 0 ;
  Size arg9 ;
  Real arg10 ;
  Size arg11 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  int res7 = SWIG_OLDOBJ ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  size_t val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  size_t val11 ;
  int ecode11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  MarkovFunctionalPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MarkovFunctional",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MarkovFunctional" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp5);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res7 = swig::asptr(obj6, &ptr);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg7 = ptr;
  }
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< SwapIndexPtr * >(argp8);
  ecode9 = SWIG_AsVal_size_t(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_MarkovFunctional" "', argument " "9"" of type '" "Size""'");
  } 
  arg9 = static_cast< Size >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_MarkovFunctional" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  ecode11 = SWIG_AsVal_size_t(obj10, &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "new_MarkovFunctional" "', argument " "11"" of type '" "Size""'");
  } 
  arg11 = static_cast< Size >(val11);
  {
    try {
      result = (MarkovFunctionalPtr *)new_MarkovFunctionalPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2,(std::vector< Date,std::allocator< Date > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(Handle< SwaptionVolatilityStructure > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,(std::vector< Period,std::allocator< Period > > const &)*arg7,(SwapIndexPtr const &)*arg8,arg9,arg10,arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MarkovFunctionalPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MarkovFunctional__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  std::vector< Date,std::allocator< Date > > *arg3 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg4 = 0 ;
  Handle< SwaptionVolatilityStructure > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg7 = 0 ;
  SwapIndexPtr *arg8 = 0 ;
  Size arg9 ;
  Real arg10 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  int res7 = SWIG_OLDOBJ ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  size_t val9 ;
  int ecode9 = 0 ;
  double val10 ;
  int ecode10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  MarkovFunctionalPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MarkovFunctional",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MarkovFunctional" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp5);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res7 = swig::asptr(obj6, &ptr);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg7 = ptr;
  }
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< SwapIndexPtr * >(argp8);
  ecode9 = SWIG_AsVal_size_t(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_MarkovFunctional" "', argument " "9"" of type '" "Size""'");
  } 
  arg9 = static_cast< Size >(val9);
  ecode10 = SWIG_AsVal_double(obj9, &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "new_MarkovFunctional" "', argument " "10"" of type '" "Real""'");
  } 
  arg10 = static_cast< Real >(val10);
  {
    try {
      result = (MarkovFunctionalPtr *)new_MarkovFunctionalPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2,(std::vector< Date,std::allocator< Date > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(Handle< SwaptionVolatilityStructure > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,(std::vector< Period,std::allocator< Period > > const &)*arg7,(SwapIndexPtr const &)*arg8,arg9,arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MarkovFunctionalPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MarkovFunctional__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  std::vector< Date,std::allocator< Date > > *arg3 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg4 = 0 ;
  Handle< SwaptionVolatilityStructure > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg7 = 0 ;
  SwapIndexPtr *arg8 = 0 ;
  Size arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  int res7 = SWIG_OLDOBJ ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  size_t val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  MarkovFunctionalPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MarkovFunctional",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MarkovFunctional" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp5);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res7 = swig::asptr(obj6, &ptr);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg7 = ptr;
  }
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< SwapIndexPtr * >(argp8);
  ecode9 = SWIG_AsVal_size_t(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_MarkovFunctional" "', argument " "9"" of type '" "Size""'");
  } 
  arg9 = static_cast< Size >(val9);
  {
    try {
      result = (MarkovFunctionalPtr *)new_MarkovFunctionalPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2,(std::vector< Date,std::allocator< Date > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(Handle< SwaptionVolatilityStructure > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,(std::vector< Period,std::allocator< Period > > const &)*arg7,(SwapIndexPtr const &)*arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MarkovFunctionalPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MarkovFunctional__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Real arg2 ;
  std::vector< Date,std::allocator< Date > > *arg3 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg4 = 0 ;
  Handle< SwaptionVolatilityStructure > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  std::vector< Period,std::allocator< Period > > *arg7 = 0 ;
  SwapIndexPtr *arg8 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  int res4 = SWIG_OLDOBJ ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  int res7 = SWIG_OLDOBJ ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  MarkovFunctionalPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MarkovFunctional",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MarkovFunctional" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "3"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "4"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg4 = ptr;
  }
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "5"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg5 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp5);
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res7 = swig::asptr(obj6, &ptr);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "7"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg7 = ptr;
  }
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_SwapIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MarkovFunctional" "', argument " "8"" of type '" "SwapIndexPtr const &""'"); 
  }
  arg8 = reinterpret_cast< SwapIndexPtr * >(argp8);
  {
    try {
      result = (MarkovFunctionalPtr *)new_MarkovFunctionalPtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,arg2,(std::vector< Date,std::allocator< Date > > const &)*arg3,(std::vector< double,std::allocator< double > > const &)*arg4,(Handle< SwaptionVolatilityStructure > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,(std::vector< Period,std::allocator< Period > > const &)*arg7,(SwapIndexPtr const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MarkovFunctionalPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MarkovFunctional(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[18] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 17) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Date,std::allocator< Date > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = swig::asptr(argv[6], (std::vector< Period,std::allocator< Period > >**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_SwapIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_MarkovFunctional__SWIG_9(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Date,std::allocator< Date > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = swig::asptr(argv[6], (std::vector< Period,std::allocator< Period > >**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_SwapIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
                    }
                    if (_v) {
                      return _wrap_new_MarkovFunctional__SWIG_8(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Date,std::allocator< Date > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = swig::asptr(argv[6], (std::vector< Period,std::allocator< Period > >**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_SwapIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        return _wrap_new_MarkovFunctional__SWIG_7(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Date,std::allocator< Date > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = swig::asptr(argv[6], (std::vector< Period,std::allocator< Period > >**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_SwapIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          _v = (PyInt_Check(argv[10]) || PyLong_Check(argv[10])) ? 1 : 0;
                        }
                        if (_v) {
                          return _wrap_new_MarkovFunctional__SWIG_6(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 12) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Date,std::allocator< Date > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = swig::asptr(argv[6], (std::vector< Period,std::allocator< Period > >**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_SwapIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          _v = (PyInt_Check(argv[10]) || PyLong_Check(argv[10])) ? 1 : 0;
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_double(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            return _wrap_new_MarkovFunctional__SWIG_5(self, args);
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 13) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Date,std::allocator< Date > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = swig::asptr(argv[6], (std::vector< Period,std::allocator< Period > >**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_SwapIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          _v = (PyInt_Check(argv[10]) || PyLong_Check(argv[10])) ? 1 : 0;
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_double(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            {
                              int res = SWIG_AsVal_double(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              return _wrap_new_MarkovFunctional__SWIG_4(self, args);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 14) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Date,std::allocator< Date > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = swig::asptr(argv[6], (std::vector< Period,std::allocator< Period > >**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_SwapIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          _v = (PyInt_Check(argv[10]) || PyLong_Check(argv[10])) ? 1 : 0;
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_double(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            {
                              int res = SWIG_AsVal_double(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              {
                                int res = SWIG_AsVal_double(argv[13], NULL);
                                _v = SWIG_CheckState(res);
                              }
                              if (_v) {
                                return _wrap_new_MarkovFunctional__SWIG_3(self, args);
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 15) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Date,std::allocator< Date > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = swig::asptr(argv[6], (std::vector< Period,std::allocator< Period > >**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_SwapIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          _v = (PyInt_Check(argv[10]) || PyLong_Check(argv[10])) ? 1 : 0;
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_double(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            {
                              int res = SWIG_AsVal_double(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              {
                                int res = SWIG_AsVal_double(argv[13], NULL);
                                _v = SWIG_CheckState(res);
                              }
                              if (_v) {
                                {
                                  int res = SWIG_AsVal_double(argv[14], NULL);
                                  _v = SWIG_CheckState(res);
                                }
                                if (_v) {
                                  return _wrap_new_MarkovFunctional__SWIG_2(self, args);
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 16) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Date,std::allocator< Date > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = swig::asptr(argv[6], (std::vector< Period,std::allocator< Period > >**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_SwapIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          _v = (PyInt_Check(argv[10]) || PyLong_Check(argv[10])) ? 1 : 0;
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_double(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            {
                              int res = SWIG_AsVal_double(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              {
                                int res = SWIG_AsVal_double(argv[13], NULL);
                                _v = SWIG_CheckState(res);
                              }
                              if (_v) {
                                {
                                  int res = SWIG_AsVal_double(argv[14], NULL);
                                  _v = SWIG_CheckState(res);
                                }
                                if (_v) {
                                  {
                                    int res = SWIG_AsVal_int(argv[15], NULL);
                                    _v = SWIG_CheckState(res);
                                  }
                                  if (_v) {
                                    return _wrap_new_MarkovFunctional__SWIG_1(self, args);
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 17) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Date,std::allocator< Date > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< double,std::allocator< double > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = swig::asptr(argv[6], (std::vector< Period,std::allocator< Period > >**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_SwapIndexPtr, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    {
                      _v = (PyInt_Check(argv[8]) || PyLong_Check(argv[8])) ? 1 : 0;
                    }
                    if (_v) {
                      {
                        int res = SWIG_AsVal_double(argv[9], NULL);
                        _v = SWIG_CheckState(res);
                      }
                      if (_v) {
                        {
                          _v = (PyInt_Check(argv[10]) || PyLong_Check(argv[10])) ? 1 : 0;
                        }
                        if (_v) {
                          {
                            int res = SWIG_AsVal_double(argv[11], NULL);
                            _v = SWIG_CheckState(res);
                          }
                          if (_v) {
                            {
                              int res = SWIG_AsVal_double(argv[12], NULL);
                              _v = SWIG_CheckState(res);
                            }
                            if (_v) {
                              {
                                int res = SWIG_AsVal_double(argv[13], NULL);
                                _v = SWIG_CheckState(res);
                              }
                              if (_v) {
                                {
                                  int res = SWIG_AsVal_double(argv[14], NULL);
                                  _v = SWIG_CheckState(res);
                                }
                                if (_v) {
                                  {
                                    int res = SWIG_AsVal_int(argv[15], NULL);
                                    _v = SWIG_CheckState(res);
                                  }
                                  if (_v) {
                                    int res = swig::asptr(argv[16], (std::vector< double,std::allocator< double > >**)(0));
                                    _v = SWIG_CheckState(res);
                                    if (_v) {
                                      return _wrap_new_MarkovFunctional__SWIG_0(self, args);
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_MarkovFunctional'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    MarkovFunctionalPtr::MarkovFunctionalPtr(Handle< YieldTermStructure > const &,Real const,std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &,Handle< SwaptionVolatilityStructure > const &,std::vector< Date,std::allocator< Date > > const &,std::vector< Period,std::allocator< Period > > const &,SwapIndexPtr const &,Size const,Real const,Size const,Real const,Real const,Real const,Real const,int const,std::vector< Real,std::allocator< Real > > const &)\n"
    "    MarkovFunctionalPtr::MarkovFunctionalPtr(Handle< YieldTermStructure > const &,Real const,std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &,Handle< SwaptionVolatilityStructure > const &,std::vector< Date,std::allocator< Date > > const &,std::vector< Period,std::allocator< Period > > const &,SwapIndexPtr const &,Size const,Real const,Size const,Real const,Real const,Real const,Real const,int const)\n"
    "    MarkovFunctionalPtr::MarkovFunctionalPtr(Handle< YieldTermStructure > const &,Real const,std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &,Handle< SwaptionVolatilityStructure > const &,std::vector< Date,std::allocator< Date > > const &,std::vector< Period,std::allocator< Period > > const &,SwapIndexPtr const &,Size const,Real const,Size const,Real const,Real const,Real const,Real const)\n"
    "    MarkovFunctionalPtr::MarkovFunctionalPtr(Handle< YieldTermStructure > const &,Real const,std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &,Handle< SwaptionVolatilityStructure > const &,std::vector< Date,std::allocator< Date > > const &,std::vector< Period,std::allocator< Period > > const &,SwapIndexPtr const &,Size const,Real const,Size const,Real const,Real const,Real const)\n"
    "    MarkovFunctionalPtr::MarkovFunctionalPtr(Handle< YieldTermStructure > const &,Real const,std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &,Handle< SwaptionVolatilityStructure > const &,std::vector< Date,std::allocator< Date > > const &,std::vector< Period,std::allocator< Period > > const &,SwapIndexPtr const &,Size const,Real const,Size const,Real const,Real const)\n"
    "    MarkovFunctionalPtr::MarkovFunctionalPtr(Handle< YieldTermStructure > const &,Real const,std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &,Handle< SwaptionVolatilityStructure > const &,std::vector< Date,std::allocator< Date > > const &,std::vector< Period,std::allocator< Period > > const &,SwapIndexPtr const &,Size const,Real const,Size const,Real const)\n"
    "    MarkovFunctionalPtr::MarkovFunctionalPtr(Handle< YieldTermStructure > const &,Real const,std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &,Handle< SwaptionVolatilityStructure > const &,std::vector< Date,std::allocator< Date > > const &,std::vector< Period,std::allocator< Period > > const &,SwapIndexPtr const &,Size const,Real const,Size const)\n"
    "    MarkovFunctionalPtr::MarkovFunctionalPtr(Handle< YieldTermStructure > const &,Real const,std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &,Handle< SwaptionVolatilityStructure > const &,std::vector< Date,std::allocator< Date > > const &,std::vector< Period,std::allocator< Period > > const &,SwapIndexPtr const &,Size const,Real const)\n"
    "    MarkovFunctionalPtr::MarkovFunctionalPtr(Handle< YieldTermStructure > const &,Real const,std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &,Handle< SwaptionVolatilityStructure > const &,std::vector< Date,std::allocator< Date > > const &,std::vector< Period,std::allocator< Period > > const &,SwapIndexPtr const &,Size const)\n"
    "    MarkovFunctionalPtr::MarkovFunctionalPtr(Handle< YieldTermStructure > const &,Real const,std::vector< Date,std::allocator< Date > > const &,std::vector< Real,std::allocator< Real > > const &,Handle< SwaptionVolatilityStructure > const &,std::vector< Date,std::allocator< Date > > const &,std::vector< Period,std::allocator< Period > > const &,SwapIndexPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_MarkovFunctional_calibrate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MarkovFunctionalPtr *arg1 = (MarkovFunctionalPtr *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  Constraint *arg5 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg6 = 0 ;
  std::vector< bool,std::allocator< bool > > *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  int res7 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MarkovFunctional_calibrate",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MarkovFunctionalPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MarkovFunctional_calibrate" "', argument " "1"" of type '" "MarkovFunctionalPtr *""'"); 
  }
  arg1 = reinterpret_cast< MarkovFunctionalPtr * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MarkovFunctional_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MarkovFunctional_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MarkovFunctional_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MarkovFunctional_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MarkovFunctional_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MarkovFunctional_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "MarkovFunctional_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MarkovFunctional_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  arg5 = reinterpret_cast< Constraint * >(argp5);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "MarkovFunctional_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MarkovFunctional_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    std::vector<bool,std::allocator< bool > > *ptr = (std::vector<bool,std::allocator< bool > > *)0;
    res7 = swig::asptr(obj6, &ptr);
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "MarkovFunctional_calibrate" "', argument " "7"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MarkovFunctional_calibrate" "', argument " "7"" of type '" "std::vector< bool,std::allocator< bool > > const &""'"); 
    }
    arg7 = ptr;
  }
  {
    try {
      MarkovFunctionalPtr_calibrate__SWIG_0(arg1,(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4,(Constraint const &)*arg5,(std::vector< double,std::allocator< double > > const &)*arg6,(std::vector< bool,std::allocator< bool > > const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  if (SWIG_IsNewObj(res7)) delete arg7;
  return NULL;
}


SWIGINTERN PyObject *_wrap_MarkovFunctional_calibrate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MarkovFunctionalPtr *arg1 = (MarkovFunctionalPtr *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  Constraint *arg5 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MarkovFunctional_calibrate",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MarkovFunctionalPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MarkovFunctional_calibrate" "', argument " "1"" of type '" "MarkovFunctionalPtr *""'"); 
  }
  arg1 = reinterpret_cast< MarkovFunctionalPtr * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MarkovFunctional_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MarkovFunctional_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MarkovFunctional_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MarkovFunctional_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MarkovFunctional_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MarkovFunctional_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "MarkovFunctional_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MarkovFunctional_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  arg5 = reinterpret_cast< Constraint * >(argp5);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "MarkovFunctional_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MarkovFunctional_calibrate" "', argument " "6"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    try {
      MarkovFunctionalPtr_calibrate__SWIG_0(arg1,(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4,(Constraint const &)*arg5,(std::vector< double,std::allocator< double > > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_MarkovFunctional_calibrate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MarkovFunctionalPtr *arg1 = (MarkovFunctionalPtr *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  Constraint *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MarkovFunctional_calibrate",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MarkovFunctionalPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MarkovFunctional_calibrate" "', argument " "1"" of type '" "MarkovFunctionalPtr *""'"); 
  }
  arg1 = reinterpret_cast< MarkovFunctionalPtr * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MarkovFunctional_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MarkovFunctional_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MarkovFunctional_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MarkovFunctional_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MarkovFunctional_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MarkovFunctional_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Constraint,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "MarkovFunctional_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MarkovFunctional_calibrate" "', argument " "5"" of type '" "Constraint const &""'"); 
  }
  arg5 = reinterpret_cast< Constraint * >(argp5);
  {
    try {
      MarkovFunctionalPtr_calibrate__SWIG_0(arg1,(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4,(Constraint const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_MarkovFunctional_calibrate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MarkovFunctionalPtr *arg1 = (MarkovFunctionalPtr *) 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *arg2 = 0 ;
  OptimizationMethod *arg3 = 0 ;
  EndCriteria *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MarkovFunctional_calibrate",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MarkovFunctionalPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MarkovFunctional_calibrate" "', argument " "1"" of type '" "MarkovFunctionalPtr *""'"); 
  }
  arg1 = reinterpret_cast< MarkovFunctionalPtr * >(argp1);
  {
    std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *ptr = (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MarkovFunctional_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MarkovFunctional_calibrate" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_OptimizationMethod,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MarkovFunctional_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MarkovFunctional_calibrate" "', argument " "3"" of type '" "OptimizationMethod &""'"); 
  }
  arg3 = reinterpret_cast< OptimizationMethod * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_EndCriteria,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MarkovFunctional_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MarkovFunctional_calibrate" "', argument " "4"" of type '" "EndCriteria const &""'"); 
  }
  arg4 = reinterpret_cast< EndCriteria * >(argp4);
  {
    try {
      MarkovFunctionalPtr_calibrate__SWIG_0(arg1,(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &)*arg2,*arg3,(EndCriteria const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_MarkovFunctional_calibrate(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_MarkovFunctionalPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_MarkovFunctional_calibrate__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_MarkovFunctionalPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Constraint, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_MarkovFunctional_calibrate__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_MarkovFunctionalPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Constraint, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< double,std::allocator< double > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_MarkovFunctional_calibrate__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_MarkovFunctionalPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_OptimizationMethod, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_EndCriteria, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Constraint, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< double,std::allocator< double > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = swig::asptr(argv[6], (std::vector<bool,std::allocator< bool > >**)(0));
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_MarkovFunctional_calibrate__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MarkovFunctional_calibrate'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    MarkovFunctionalPtr::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &,Constraint const &,std::vector< Real,std::allocator< Real > > const &,std::vector< bool,std::allocator< bool > > const &)\n"
    "    MarkovFunctionalPtr::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &,Constraint const &,std::vector< Real,std::allocator< Real > > const &)\n"
    "    MarkovFunctionalPtr::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &,Constraint const &)\n"
    "    MarkovFunctionalPtr::calibrate(std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > const &,OptimizationMethod &,EndCriteria const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_MarkovFunctional_volatility(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MarkovFunctionalPtr *arg1 = (MarkovFunctionalPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Array *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MarkovFunctional_volatility",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MarkovFunctionalPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MarkovFunctional_volatility" "', argument " "1"" of type '" "MarkovFunctionalPtr const *""'"); 
  }
  arg1 = reinterpret_cast< MarkovFunctionalPtr * >(argp1);
  {
    try {
      result = (Array *) &MarkovFunctionalPtr_volatility((MarkovFunctionalPtr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Array, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MarkovFunctional(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MarkovFunctionalPtr *arg1 = (MarkovFunctionalPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MarkovFunctional",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MarkovFunctionalPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MarkovFunctional" "', argument " "1"" of type '" "MarkovFunctionalPtr *""'"); 
  }
  arg1 = reinterpret_cast< MarkovFunctionalPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MarkovFunctional_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MarkovFunctionalPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Gaussian1dSwaptionEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  Real arg3 ;
  bool arg4 ;
  bool arg5 ;
  Handle< YieldTermStructure > *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Gaussian1dSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dSwaptionEngine",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "6"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "6"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg6 = reinterpret_cast< Handle< YieldTermStructure > * >(argp6);
  {
    try {
      result = (Gaussian1dSwaptionEnginePtr *)new_Gaussian1dSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2,arg3,arg4,arg5,(Handle< YieldTermStructure > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dSwaptionEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  Real arg3 ;
  bool arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Gaussian1dSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dSwaptionEngine",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Gaussian1dSwaptionEnginePtr *)new_Gaussian1dSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dSwaptionEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Gaussian1dSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dSwaptionEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Gaussian1dSwaptionEnginePtr *)new_Gaussian1dSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dSwaptionEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Gaussian1dSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dSwaptionEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Gaussian1dSwaptionEnginePtr *)new_Gaussian1dSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dSwaptionEngine__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Gaussian1dSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dSwaptionEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  {
    try {
      result = (Gaussian1dSwaptionEnginePtr *)new_Gaussian1dSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dSwaptionEngine__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Gaussian1dSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dSwaptionEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  {
    try {
      result = (Gaussian1dSwaptionEnginePtr *)new_Gaussian1dSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dSwaptionEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Gaussian1dSwaptionEngine__SWIG_5(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_Gaussian1dSwaptionEngine__SWIG_4(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_Gaussian1dSwaptionEngine__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_Gaussian1dSwaptionEngine__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_Gaussian1dSwaptionEngine__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_Gaussian1dSwaptionEngine__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Gaussian1dSwaptionEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Gaussian1dSwaptionEnginePtr::Gaussian1dSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const,Real const,bool const,bool const,Handle< YieldTermStructure > const &)\n"
    "    Gaussian1dSwaptionEnginePtr::Gaussian1dSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const,Real const,bool const,bool const)\n"
    "    Gaussian1dSwaptionEnginePtr::Gaussian1dSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const,Real const,bool const)\n"
    "    Gaussian1dSwaptionEnginePtr::Gaussian1dSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const,Real const)\n"
    "    Gaussian1dSwaptionEnginePtr::Gaussian1dSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const)\n"
    "    Gaussian1dSwaptionEnginePtr::Gaussian1dSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Gaussian1dSwaptionEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Gaussian1dSwaptionEnginePtr *arg1 = (Gaussian1dSwaptionEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Gaussian1dSwaptionEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Gaussian1dSwaptionEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Gaussian1dSwaptionEngine" "', argument " "1"" of type '" "Gaussian1dSwaptionEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< Gaussian1dSwaptionEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Gaussian1dSwaptionEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Gaussian1dSwaptionEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Gaussian1dJamshidianSwaptionEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Gaussian1dJamshidianSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dJamshidianSwaptionEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dJamshidianSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dJamshidianSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  {
    try {
      result = (Gaussian1dJamshidianSwaptionEnginePtr *)new_Gaussian1dJamshidianSwaptionEnginePtr((boost::shared_ptr< Gaussian1dModel > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dJamshidianSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Gaussian1dJamshidianSwaptionEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Gaussian1dJamshidianSwaptionEnginePtr *arg1 = (Gaussian1dJamshidianSwaptionEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Gaussian1dJamshidianSwaptionEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Gaussian1dJamshidianSwaptionEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Gaussian1dJamshidianSwaptionEngine" "', argument " "1"" of type '" "Gaussian1dJamshidianSwaptionEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< Gaussian1dJamshidianSwaptionEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Gaussian1dJamshidianSwaptionEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Gaussian1dJamshidianSwaptionEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Gaussian1dNonstandardSwaptionEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  Real arg3 ;
  bool arg4 ;
  bool arg5 ;
  Handle< Quote > *arg6 = 0 ;
  Handle< YieldTermStructure > *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Gaussian1dNonstandardSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dNonstandardSwaptionEngine",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "6"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "6"" of type '" "Handle< Quote > const &""'"); 
  }
  arg6 = reinterpret_cast< Handle< Quote > * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg7 = reinterpret_cast< Handle< YieldTermStructure > * >(argp7);
  {
    try {
      result = (Gaussian1dNonstandardSwaptionEnginePtr *)new_Gaussian1dNonstandardSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2,arg3,arg4,arg5,(Handle< Quote > const &)*arg6,(Handle< YieldTermStructure > const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dNonstandardSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dNonstandardSwaptionEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  Real arg3 ;
  bool arg4 ;
  bool arg5 ;
  Handle< Quote > *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Gaussian1dNonstandardSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dNonstandardSwaptionEngine",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "6"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "6"" of type '" "Handle< Quote > const &""'"); 
  }
  arg6 = reinterpret_cast< Handle< Quote > * >(argp6);
  {
    try {
      result = (Gaussian1dNonstandardSwaptionEnginePtr *)new_Gaussian1dNonstandardSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2,arg3,arg4,arg5,(Handle< Quote > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dNonstandardSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dNonstandardSwaptionEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  Real arg3 ;
  bool arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Gaussian1dNonstandardSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dNonstandardSwaptionEngine",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Gaussian1dNonstandardSwaptionEnginePtr *)new_Gaussian1dNonstandardSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dNonstandardSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dNonstandardSwaptionEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Gaussian1dNonstandardSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dNonstandardSwaptionEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Gaussian1dNonstandardSwaptionEnginePtr *)new_Gaussian1dNonstandardSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dNonstandardSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dNonstandardSwaptionEngine__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Gaussian1dNonstandardSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dNonstandardSwaptionEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Gaussian1dNonstandardSwaptionEnginePtr *)new_Gaussian1dNonstandardSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dNonstandardSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dNonstandardSwaptionEngine__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Gaussian1dNonstandardSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dNonstandardSwaptionEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  {
    try {
      result = (Gaussian1dNonstandardSwaptionEnginePtr *)new_Gaussian1dNonstandardSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dNonstandardSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dNonstandardSwaptionEngine__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Gaussian1dNonstandardSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dNonstandardSwaptionEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dNonstandardSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  {
    try {
      result = (Gaussian1dNonstandardSwaptionEnginePtr *)new_Gaussian1dNonstandardSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dNonstandardSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dNonstandardSwaptionEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Gaussian1dNonstandardSwaptionEngine__SWIG_6(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_Gaussian1dNonstandardSwaptionEngine__SWIG_5(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_Gaussian1dNonstandardSwaptionEngine__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_Gaussian1dNonstandardSwaptionEngine__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_Gaussian1dNonstandardSwaptionEngine__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_Gaussian1dNonstandardSwaptionEngine__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_Gaussian1dNonstandardSwaptionEngine__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Gaussian1dNonstandardSwaptionEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Gaussian1dNonstandardSwaptionEnginePtr::Gaussian1dNonstandardSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const,Real const,bool const,bool const,Handle< Quote > const &,Handle< YieldTermStructure > const &)\n"
    "    Gaussian1dNonstandardSwaptionEnginePtr::Gaussian1dNonstandardSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const,Real const,bool const,bool const,Handle< Quote > const &)\n"
    "    Gaussian1dNonstandardSwaptionEnginePtr::Gaussian1dNonstandardSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const,Real const,bool const,bool const)\n"
    "    Gaussian1dNonstandardSwaptionEnginePtr::Gaussian1dNonstandardSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const,Real const,bool const)\n"
    "    Gaussian1dNonstandardSwaptionEnginePtr::Gaussian1dNonstandardSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const,Real const)\n"
    "    Gaussian1dNonstandardSwaptionEnginePtr::Gaussian1dNonstandardSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const)\n"
    "    Gaussian1dNonstandardSwaptionEnginePtr::Gaussian1dNonstandardSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Gaussian1dNonstandardSwaptionEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Gaussian1dNonstandardSwaptionEnginePtr *arg1 = (Gaussian1dNonstandardSwaptionEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Gaussian1dNonstandardSwaptionEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Gaussian1dNonstandardSwaptionEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Gaussian1dNonstandardSwaptionEngine" "', argument " "1"" of type '" "Gaussian1dNonstandardSwaptionEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< Gaussian1dNonstandardSwaptionEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Gaussian1dNonstandardSwaptionEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Gaussian1dNonstandardSwaptionEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Gaussian1dFloatFloatSwaptionEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  Real arg3 ;
  bool arg4 ;
  bool arg5 ;
  Handle< Quote > *arg6 = 0 ;
  Handle< YieldTermStructure > *arg7 = 0 ;
  bool arg8 ;
  Gaussian1dFloatFloatSwaptionEngine::Probabilities arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  bool val8 ;
  int ecode8 = 0 ;
  int val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  Gaussian1dFloatFloatSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dFloatFloatSwaptionEngine",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "6"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "6"" of type '" "Handle< Quote > const &""'"); 
  }
  arg6 = reinterpret_cast< Handle< Quote > * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg7 = reinterpret_cast< Handle< YieldTermStructure > * >(argp7);
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  ecode9 = SWIG_AsVal_int(obj8, &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "9"" of type '" "Gaussian1dFloatFloatSwaptionEngine::Probabilities""'");
  } 
  arg9 = static_cast< Gaussian1dFloatFloatSwaptionEngine::Probabilities >(val9);
  {
    try {
      result = (Gaussian1dFloatFloatSwaptionEnginePtr *)new_Gaussian1dFloatFloatSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2,arg3,arg4,arg5,(Handle< Quote > const &)*arg6,(Handle< YieldTermStructure > const &)*arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dFloatFloatSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dFloatFloatSwaptionEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  Real arg3 ;
  bool arg4 ;
  bool arg5 ;
  Handle< Quote > *arg6 = 0 ;
  Handle< YieldTermStructure > *arg7 = 0 ;
  bool arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  bool val8 ;
  int ecode8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  Gaussian1dFloatFloatSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dFloatFloatSwaptionEngine",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "6"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "6"" of type '" "Handle< Quote > const &""'"); 
  }
  arg6 = reinterpret_cast< Handle< Quote > * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg7 = reinterpret_cast< Handle< YieldTermStructure > * >(argp7);
  ecode8 = SWIG_AsVal_bool(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "8"" of type '" "bool""'");
  } 
  arg8 = static_cast< bool >(val8);
  {
    try {
      result = (Gaussian1dFloatFloatSwaptionEnginePtr *)new_Gaussian1dFloatFloatSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2,arg3,arg4,arg5,(Handle< Quote > const &)*arg6,(Handle< YieldTermStructure > const &)*arg7,arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dFloatFloatSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dFloatFloatSwaptionEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  Real arg3 ;
  bool arg4 ;
  bool arg5 ;
  Handle< Quote > *arg6 = 0 ;
  Handle< YieldTermStructure > *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  Gaussian1dFloatFloatSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dFloatFloatSwaptionEngine",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "6"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "6"" of type '" "Handle< Quote > const &""'"); 
  }
  arg6 = reinterpret_cast< Handle< Quote > * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "7"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg7 = reinterpret_cast< Handle< YieldTermStructure > * >(argp7);
  {
    try {
      result = (Gaussian1dFloatFloatSwaptionEnginePtr *)new_Gaussian1dFloatFloatSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2,arg3,arg4,arg5,(Handle< Quote > const &)*arg6,(Handle< YieldTermStructure > const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dFloatFloatSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dFloatFloatSwaptionEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  Real arg3 ;
  bool arg4 ;
  bool arg5 ;
  Handle< Quote > *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  Gaussian1dFloatFloatSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dFloatFloatSwaptionEngine",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "6"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "6"" of type '" "Handle< Quote > const &""'"); 
  }
  arg6 = reinterpret_cast< Handle< Quote > * >(argp6);
  {
    try {
      result = (Gaussian1dFloatFloatSwaptionEnginePtr *)new_Gaussian1dFloatFloatSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2,arg3,arg4,arg5,(Handle< Quote > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dFloatFloatSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dFloatFloatSwaptionEngine__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  Real arg3 ;
  bool arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  Gaussian1dFloatFloatSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dFloatFloatSwaptionEngine",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (Gaussian1dFloatFloatSwaptionEnginePtr *)new_Gaussian1dFloatFloatSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dFloatFloatSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dFloatFloatSwaptionEngine__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  Real arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Gaussian1dFloatFloatSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dFloatFloatSwaptionEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Gaussian1dFloatFloatSwaptionEnginePtr *)new_Gaussian1dFloatFloatSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dFloatFloatSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dFloatFloatSwaptionEngine__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Gaussian1dFloatFloatSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dFloatFloatSwaptionEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (Gaussian1dFloatFloatSwaptionEnginePtr *)new_Gaussian1dFloatFloatSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dFloatFloatSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dFloatFloatSwaptionEngine__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Gaussian1dFloatFloatSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dFloatFloatSwaptionEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = static_cast< int >(val2);
  {
    try {
      result = (Gaussian1dFloatFloatSwaptionEnginePtr *)new_Gaussian1dFloatFloatSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dFloatFloatSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dFloatFloatSwaptionEngine__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< Gaussian1dModel > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Gaussian1dFloatFloatSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Gaussian1dFloatFloatSwaptionEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "boost::shared_ptr< Gaussian1dModel > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< Gaussian1dModel > * >(argp1);
  {
    try {
      result = (Gaussian1dFloatFloatSwaptionEnginePtr *)new_Gaussian1dFloatFloatSwaptionEnginePtr__SWIG_0((boost::shared_ptr< Gaussian1dModel > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gaussian1dFloatFloatSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Gaussian1dFloatFloatSwaptionEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[10] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 9) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Gaussian1dFloatFloatSwaptionEngine__SWIG_8(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_Gaussian1dFloatFloatSwaptionEngine__SWIG_7(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_Gaussian1dFloatFloatSwaptionEngine__SWIG_6(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_Gaussian1dFloatFloatSwaptionEngine__SWIG_5(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_new_Gaussian1dFloatFloatSwaptionEngine__SWIG_4(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_Gaussian1dFloatFloatSwaptionEngine__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_Gaussian1dFloatFloatSwaptionEngine__SWIG_2(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    return _wrap_new_Gaussian1dFloatFloatSwaptionEngine__SWIG_1(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_Gaussian1dModel_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_bool(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    {
                      int res = SWIG_AsVal_int(argv[8], NULL);
                      _v = SWIG_CheckState(res);
                    }
                    if (_v) {
                      return _wrap_new_Gaussian1dFloatFloatSwaptionEngine__SWIG_0(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Gaussian1dFloatFloatSwaptionEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Gaussian1dFloatFloatSwaptionEnginePtr::Gaussian1dFloatFloatSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const,Real const,bool const,bool const,Handle< Quote > const &,Handle< YieldTermStructure > const &,bool const,Gaussian1dFloatFloatSwaptionEngine::Probabilities const)\n"
    "    Gaussian1dFloatFloatSwaptionEnginePtr::Gaussian1dFloatFloatSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const,Real const,bool const,bool const,Handle< Quote > const &,Handle< YieldTermStructure > const &,bool const)\n"
    "    Gaussian1dFloatFloatSwaptionEnginePtr::Gaussian1dFloatFloatSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const,Real const,bool const,bool const,Handle< Quote > const &,Handle< YieldTermStructure > const &)\n"
    "    Gaussian1dFloatFloatSwaptionEnginePtr::Gaussian1dFloatFloatSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const,Real const,bool const,bool const,Handle< Quote > const &)\n"
    "    Gaussian1dFloatFloatSwaptionEnginePtr::Gaussian1dFloatFloatSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const,Real const,bool const,bool const)\n"
    "    Gaussian1dFloatFloatSwaptionEnginePtr::Gaussian1dFloatFloatSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const,Real const,bool const)\n"
    "    Gaussian1dFloatFloatSwaptionEnginePtr::Gaussian1dFloatFloatSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const,Real const)\n"
    "    Gaussian1dFloatFloatSwaptionEnginePtr::Gaussian1dFloatFloatSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &,int const)\n"
    "    Gaussian1dFloatFloatSwaptionEnginePtr::Gaussian1dFloatFloatSwaptionEnginePtr(boost::shared_ptr< Gaussian1dModel > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Gaussian1dFloatFloatSwaptionEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Gaussian1dFloatFloatSwaptionEnginePtr *arg1 = (Gaussian1dFloatFloatSwaptionEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Gaussian1dFloatFloatSwaptionEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Gaussian1dFloatFloatSwaptionEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Gaussian1dFloatFloatSwaptionEngine" "', argument " "1"" of type '" "Gaussian1dFloatFloatSwaptionEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< Gaussian1dFloatFloatSwaptionEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Gaussian1dFloatFloatSwaptionEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Gaussian1dFloatFloatSwaptionEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SegmentIntegral(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  SegmentIntegral *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SegmentIntegral",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SegmentIntegral" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  {
    try {
      result = (SegmentIntegral *)new SegmentIntegral(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SegmentIntegral, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SegmentIntegral___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SegmentIntegral *arg1 = (SegmentIntegral *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SegmentIntegral___call__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SegmentIntegral, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SegmentIntegral___call__" "', argument " "1"" of type '" "SegmentIntegral *""'"); 
  }
  arg1 = reinterpret_cast< SegmentIntegral * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SegmentIntegral___call__" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SegmentIntegral___call__" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)SegmentIntegral___call__(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SegmentIntegral(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SegmentIntegral *arg1 = (SegmentIntegral *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SegmentIntegral",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SegmentIntegral, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SegmentIntegral" "', argument " "1"" of type '" "SegmentIntegral *""'"); 
  }
  arg1 = reinterpret_cast< SegmentIntegral * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SegmentIntegral_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SegmentIntegral, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_TrapezoidIntegralDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Size arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TrapezoidIntegral< Default > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TrapezoidIntegralDefault",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TrapezoidIntegralDefault" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TrapezoidIntegralDefault" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (TrapezoidIntegral< Default > *)new TrapezoidIntegral< Default >(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TrapezoidIntegralT_Default_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TrapezoidIntegralDefault___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TrapezoidIntegral< Default > *arg1 = (TrapezoidIntegral< Default > *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TrapezoidIntegralDefault___call__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TrapezoidIntegralT_Default_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TrapezoidIntegralDefault___call__" "', argument " "1"" of type '" "TrapezoidIntegral< Default > *""'"); 
  }
  arg1 = reinterpret_cast< TrapezoidIntegral< Default > * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TrapezoidIntegralDefault___call__" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TrapezoidIntegralDefault___call__" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)TrapezoidIntegral_Sl_Default_Sg____call__(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_TrapezoidIntegralDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TrapezoidIntegral< Default > *arg1 = (TrapezoidIntegral< Default > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_TrapezoidIntegralDefault",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TrapezoidIntegralT_Default_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TrapezoidIntegralDefault" "', argument " "1"" of type '" "TrapezoidIntegral< Default > *""'"); 
  }
  arg1 = reinterpret_cast< TrapezoidIntegral< Default > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TrapezoidIntegralDefault_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_TrapezoidIntegralT_Default_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_TrapezoidIntegralMidPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Size arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TrapezoidIntegral< MidPoint > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TrapezoidIntegralMidPoint",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TrapezoidIntegralMidPoint" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TrapezoidIntegralMidPoint" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (TrapezoidIntegral< MidPoint > *)new TrapezoidIntegral< MidPoint >(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TrapezoidIntegralT_MidPoint_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TrapezoidIntegralMidPoint___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TrapezoidIntegral< MidPoint > *arg1 = (TrapezoidIntegral< MidPoint > *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TrapezoidIntegralMidPoint___call__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TrapezoidIntegralT_MidPoint_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TrapezoidIntegralMidPoint___call__" "', argument " "1"" of type '" "TrapezoidIntegral< MidPoint > *""'"); 
  }
  arg1 = reinterpret_cast< TrapezoidIntegral< MidPoint > * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TrapezoidIntegralMidPoint___call__" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TrapezoidIntegralMidPoint___call__" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)TrapezoidIntegral_Sl_MidPoint_Sg____call__(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_TrapezoidIntegralMidPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TrapezoidIntegral< MidPoint > *arg1 = (TrapezoidIntegral< MidPoint > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_TrapezoidIntegralMidPoint",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TrapezoidIntegralT_MidPoint_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TrapezoidIntegralMidPoint" "', argument " "1"" of type '" "TrapezoidIntegral< MidPoint > *""'"); 
  }
  arg1 = reinterpret_cast< TrapezoidIntegral< MidPoint > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TrapezoidIntegralMidPoint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_TrapezoidIntegralT_MidPoint_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SimpsonIntegral(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Size arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SimpsonIntegral *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SimpsonIntegral",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SimpsonIntegral" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SimpsonIntegral" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (SimpsonIntegral *)new SimpsonIntegral(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SimpsonIntegral, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SimpsonIntegral___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SimpsonIntegral *arg1 = (SimpsonIntegral *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SimpsonIntegral___call__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SimpsonIntegral, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimpsonIntegral___call__" "', argument " "1"" of type '" "SimpsonIntegral *""'"); 
  }
  arg1 = reinterpret_cast< SimpsonIntegral * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SimpsonIntegral___call__" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SimpsonIntegral___call__" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)SimpsonIntegral___call__(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SimpsonIntegral(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SimpsonIntegral *arg1 = (SimpsonIntegral *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SimpsonIntegral",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SimpsonIntegral, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SimpsonIntegral" "', argument " "1"" of type '" "SimpsonIntegral *""'"); 
  }
  arg1 = reinterpret_cast< SimpsonIntegral * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SimpsonIntegral_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SimpsonIntegral, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GaussKronrodAdaptive__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Size arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  GaussKronrodAdaptive *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussKronrodAdaptive",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GaussKronrodAdaptive" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GaussKronrodAdaptive" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (GaussKronrodAdaptive *)new GaussKronrodAdaptive(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussKronrodAdaptive, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GaussKronrodAdaptive__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  GaussKronrodAdaptive *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussKronrodAdaptive",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GaussKronrodAdaptive" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (GaussKronrodAdaptive *)new GaussKronrodAdaptive(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussKronrodAdaptive, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GaussKronrodAdaptive(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_GaussKronrodAdaptive__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
      }
      if (_v) {
        return _wrap_new_GaussKronrodAdaptive__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GaussKronrodAdaptive'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    GaussKronrodAdaptive::GaussKronrodAdaptive(Real,Size)\n"
    "    GaussKronrodAdaptive::GaussKronrodAdaptive(Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_GaussKronrodAdaptive___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussKronrodAdaptive *arg1 = (GaussKronrodAdaptive *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussKronrodAdaptive___call__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussKronrodAdaptive, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussKronrodAdaptive___call__" "', argument " "1"" of type '" "GaussKronrodAdaptive *""'"); 
  }
  arg1 = reinterpret_cast< GaussKronrodAdaptive * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GaussKronrodAdaptive___call__" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GaussKronrodAdaptive___call__" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)GaussKronrodAdaptive___call__(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GaussKronrodAdaptive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussKronrodAdaptive *arg1 = (GaussKronrodAdaptive *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GaussKronrodAdaptive",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussKronrodAdaptive, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GaussKronrodAdaptive" "', argument " "1"" of type '" "GaussKronrodAdaptive *""'"); 
  }
  arg1 = reinterpret_cast< GaussKronrodAdaptive * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GaussKronrodAdaptive_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GaussKronrodAdaptive, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GaussKronrodNonAdaptive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Size arg2 ;
  Real arg3 ;
  double val1 ;
  int ecode1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  GaussKronrodNonAdaptive *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussKronrodNonAdaptive",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GaussKronrodNonAdaptive" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GaussKronrodNonAdaptive" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GaussKronrodNonAdaptive" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (GaussKronrodNonAdaptive *)new GaussKronrodNonAdaptive(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussKronrodNonAdaptive, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GaussKronrodNonAdaptive___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussKronrodNonAdaptive *arg1 = (GaussKronrodNonAdaptive *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussKronrodNonAdaptive___call__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussKronrodNonAdaptive, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussKronrodNonAdaptive___call__" "', argument " "1"" of type '" "GaussKronrodNonAdaptive *""'"); 
  }
  arg1 = reinterpret_cast< GaussKronrodNonAdaptive * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GaussKronrodNonAdaptive___call__" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GaussKronrodNonAdaptive___call__" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)GaussKronrodNonAdaptive___call__(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GaussKronrodNonAdaptive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussKronrodNonAdaptive *arg1 = (GaussKronrodNonAdaptive *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GaussKronrodNonAdaptive",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussKronrodNonAdaptive, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GaussKronrodNonAdaptive" "', argument " "1"" of type '" "GaussKronrodNonAdaptive *""'"); 
  }
  arg1 = reinterpret_cast< GaussKronrodNonAdaptive * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GaussKronrodNonAdaptive_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GaussKronrodNonAdaptive, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GaussLobattoIntegral__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Real arg2 ;
  Real arg3 ;
  bool arg4 ;
  size_t val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  GaussLobattoIntegral *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussLobattoIntegral",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GaussLobattoIntegral" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GaussLobattoIntegral" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GaussLobattoIntegral" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GaussLobattoIntegral" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (GaussLobattoIntegral *)new GaussLobattoIntegral(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussLobattoIntegral, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GaussLobattoIntegral__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Real arg2 ;
  Real arg3 ;
  size_t val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  GaussLobattoIntegral *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussLobattoIntegral",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GaussLobattoIntegral" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GaussLobattoIntegral" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GaussLobattoIntegral" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (GaussLobattoIntegral *)new GaussLobattoIntegral(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussLobattoIntegral, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GaussLobattoIntegral__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Real arg2 ;
  size_t val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  GaussLobattoIntegral *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussLobattoIntegral",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GaussLobattoIntegral" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GaussLobattoIntegral" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (GaussLobattoIntegral *)new GaussLobattoIntegral(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussLobattoIntegral, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GaussLobattoIntegral(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_GaussLobattoIntegral__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_GaussLobattoIntegral__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_GaussLobattoIntegral__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GaussLobattoIntegral'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    GaussLobattoIntegral::GaussLobattoIntegral(Size,Real,Real,bool)\n"
    "    GaussLobattoIntegral::GaussLobattoIntegral(Size,Real,Real)\n"
    "    GaussLobattoIntegral::GaussLobattoIntegral(Size,Real)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_GaussLobattoIntegral___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussLobattoIntegral *arg1 = (GaussLobattoIntegral *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  Real arg3 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussLobattoIntegral___call__",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussLobattoIntegral, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussLobattoIntegral___call__" "', argument " "1"" of type '" "GaussLobattoIntegral *""'"); 
  }
  arg1 = reinterpret_cast< GaussLobattoIntegral * >(argp1);
  arg2 = obj1;
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GaussLobattoIntegral___call__" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GaussLobattoIntegral___call__" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (Real)GaussLobattoIntegral___call__(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GaussLobattoIntegral(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussLobattoIntegral *arg1 = (GaussLobattoIntegral *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GaussLobattoIntegral",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussLobattoIntegral, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GaussLobattoIntegral" "', argument " "1"" of type '" "GaussLobattoIntegral *""'"); 
  }
  arg1 = reinterpret_cast< GaussLobattoIntegral * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GaussLobattoIntegral_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GaussLobattoIntegral, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GaussLaguerreIntegration__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Real arg2 ;
  size_t val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  GaussLaguerreIntegration *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussLaguerreIntegration",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GaussLaguerreIntegration" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GaussLaguerreIntegration" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (GaussLaguerreIntegration *)new GaussLaguerreIntegration(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussLaguerreIntegration, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GaussLaguerreIntegration__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  GaussLaguerreIntegration *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussLaguerreIntegration",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GaussLaguerreIntegration" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  {
    try {
      result = (GaussLaguerreIntegration *)new GaussLaguerreIntegration(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussLaguerreIntegration, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GaussLaguerreIntegration(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      return _wrap_new_GaussLaguerreIntegration__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_GaussLaguerreIntegration__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GaussLaguerreIntegration'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    GaussLaguerreIntegration::GaussLaguerreIntegration(Size,Real)\n"
    "    GaussLaguerreIntegration::GaussLaguerreIntegration(Size)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_GaussLaguerreIntegration___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussLaguerreIntegration *arg1 = (GaussLaguerreIntegration *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussLaguerreIntegration___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussLaguerreIntegration, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussLaguerreIntegration___call__" "', argument " "1"" of type '" "GaussLaguerreIntegration *""'"); 
  }
  arg1 = reinterpret_cast< GaussLaguerreIntegration * >(argp1);
  arg2 = obj1;
  {
    try {
      result = (Real)GaussLaguerreIntegration___call__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GaussLaguerreIntegration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussLaguerreIntegration *arg1 = (GaussLaguerreIntegration *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GaussLaguerreIntegration",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussLaguerreIntegration, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GaussLaguerreIntegration" "', argument " "1"" of type '" "GaussLaguerreIntegration *""'"); 
  }
  arg1 = reinterpret_cast< GaussLaguerreIntegration * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GaussLaguerreIntegration_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GaussLaguerreIntegration, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GaussHermiteIntegration__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Real arg2 ;
  size_t val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  GaussHermiteIntegration *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussHermiteIntegration",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GaussHermiteIntegration" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GaussHermiteIntegration" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (GaussHermiteIntegration *)new GaussHermiteIntegration(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussHermiteIntegration, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GaussHermiteIntegration__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  GaussHermiteIntegration *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussHermiteIntegration",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GaussHermiteIntegration" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  {
    try {
      result = (GaussHermiteIntegration *)new GaussHermiteIntegration(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussHermiteIntegration, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GaussHermiteIntegration(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      return _wrap_new_GaussHermiteIntegration__SWIG_1(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_GaussHermiteIntegration__SWIG_0(self, args);
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GaussHermiteIntegration'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    GaussHermiteIntegration::GaussHermiteIntegration(Size,Real)\n"
    "    GaussHermiteIntegration::GaussHermiteIntegration(Size)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_GaussHermiteIntegration___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussHermiteIntegration *arg1 = (GaussHermiteIntegration *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussHermiteIntegration___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussHermiteIntegration, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussHermiteIntegration___call__" "', argument " "1"" of type '" "GaussHermiteIntegration *""'"); 
  }
  arg1 = reinterpret_cast< GaussHermiteIntegration * >(argp1);
  arg2 = obj1;
  {
    try {
      result = (Real)GaussHermiteIntegration___call__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GaussHermiteIntegration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussHermiteIntegration *arg1 = (GaussHermiteIntegration *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GaussHermiteIntegration",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussHermiteIntegration, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GaussHermiteIntegration" "', argument " "1"" of type '" "GaussHermiteIntegration *""'"); 
  }
  arg1 = reinterpret_cast< GaussHermiteIntegration * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GaussHermiteIntegration_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GaussHermiteIntegration, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GaussJacobiIntegration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Real arg2 ;
  Real arg3 ;
  size_t val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  GaussJacobiIntegration *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussJacobiIntegration",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GaussJacobiIntegration" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GaussJacobiIntegration" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GaussJacobiIntegration" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      result = (GaussJacobiIntegration *)new GaussJacobiIntegration(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussJacobiIntegration, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GaussJacobiIntegration___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussJacobiIntegration *arg1 = (GaussJacobiIntegration *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussJacobiIntegration___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussJacobiIntegration, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussJacobiIntegration___call__" "', argument " "1"" of type '" "GaussJacobiIntegration *""'"); 
  }
  arg1 = reinterpret_cast< GaussJacobiIntegration * >(argp1);
  arg2 = obj1;
  {
    try {
      result = (Real)GaussJacobiIntegration___call__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GaussJacobiIntegration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussJacobiIntegration *arg1 = (GaussJacobiIntegration *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GaussJacobiIntegration",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussJacobiIntegration, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GaussJacobiIntegration" "', argument " "1"" of type '" "GaussJacobiIntegration *""'"); 
  }
  arg1 = reinterpret_cast< GaussJacobiIntegration * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GaussJacobiIntegration_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GaussJacobiIntegration, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GaussHyperbolicIntegration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  GaussHyperbolicIntegration *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussHyperbolicIntegration",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GaussHyperbolicIntegration" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  {
    try {
      result = (GaussHyperbolicIntegration *)new GaussHyperbolicIntegration(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussHyperbolicIntegration, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GaussHyperbolicIntegration___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussHyperbolicIntegration *arg1 = (GaussHyperbolicIntegration *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussHyperbolicIntegration___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussHyperbolicIntegration, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussHyperbolicIntegration___call__" "', argument " "1"" of type '" "GaussHyperbolicIntegration *""'"); 
  }
  arg1 = reinterpret_cast< GaussHyperbolicIntegration * >(argp1);
  arg2 = obj1;
  {
    try {
      result = (Real)GaussHyperbolicIntegration___call__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GaussHyperbolicIntegration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussHyperbolicIntegration *arg1 = (GaussHyperbolicIntegration *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GaussHyperbolicIntegration",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussHyperbolicIntegration, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GaussHyperbolicIntegration" "', argument " "1"" of type '" "GaussHyperbolicIntegration *""'"); 
  }
  arg1 = reinterpret_cast< GaussHyperbolicIntegration * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GaussHyperbolicIntegration_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GaussHyperbolicIntegration, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GaussLegendreIntegration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  GaussLegendreIntegration *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussLegendreIntegration",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GaussLegendreIntegration" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  {
    try {
      result = (GaussLegendreIntegration *)new GaussLegendreIntegration(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussLegendreIntegration, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GaussLegendreIntegration___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussLegendreIntegration *arg1 = (GaussLegendreIntegration *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussLegendreIntegration___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussLegendreIntegration, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussLegendreIntegration___call__" "', argument " "1"" of type '" "GaussLegendreIntegration *""'"); 
  }
  arg1 = reinterpret_cast< GaussLegendreIntegration * >(argp1);
  arg2 = obj1;
  {
    try {
      result = (Real)GaussLegendreIntegration___call__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GaussLegendreIntegration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussLegendreIntegration *arg1 = (GaussLegendreIntegration *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GaussLegendreIntegration",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussLegendreIntegration, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GaussLegendreIntegration" "', argument " "1"" of type '" "GaussLegendreIntegration *""'"); 
  }
  arg1 = reinterpret_cast< GaussLegendreIntegration * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GaussLegendreIntegration_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GaussLegendreIntegration, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GaussChebyshevIntegration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  GaussChebyshevIntegration *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussChebyshevIntegration",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GaussChebyshevIntegration" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  {
    try {
      result = (GaussChebyshevIntegration *)new GaussChebyshevIntegration(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussChebyshevIntegration, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GaussChebyshevIntegration___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussChebyshevIntegration *arg1 = (GaussChebyshevIntegration *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussChebyshevIntegration___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussChebyshevIntegration, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussChebyshevIntegration___call__" "', argument " "1"" of type '" "GaussChebyshevIntegration *""'"); 
  }
  arg1 = reinterpret_cast< GaussChebyshevIntegration * >(argp1);
  arg2 = obj1;
  {
    try {
      result = (Real)GaussChebyshevIntegration___call__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GaussChebyshevIntegration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussChebyshevIntegration *arg1 = (GaussChebyshevIntegration *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GaussChebyshevIntegration",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussChebyshevIntegration, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GaussChebyshevIntegration" "', argument " "1"" of type '" "GaussChebyshevIntegration *""'"); 
  }
  arg1 = reinterpret_cast< GaussChebyshevIntegration * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GaussChebyshevIntegration_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GaussChebyshevIntegration, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GaussChebyshev2ndIntegration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  GaussChebyshev2ndIntegration *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussChebyshev2ndIntegration",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GaussChebyshev2ndIntegration" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  {
    try {
      result = (GaussChebyshev2ndIntegration *)new GaussChebyshev2ndIntegration(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussChebyshev2ndIntegration, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GaussChebyshev2ndIntegration___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussChebyshev2ndIntegration *arg1 = (GaussChebyshev2ndIntegration *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussChebyshev2ndIntegration___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussChebyshev2ndIntegration, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussChebyshev2ndIntegration___call__" "', argument " "1"" of type '" "GaussChebyshev2ndIntegration *""'"); 
  }
  arg1 = reinterpret_cast< GaussChebyshev2ndIntegration * >(argp1);
  arg2 = obj1;
  {
    try {
      result = (Real)GaussChebyshev2ndIntegration___call__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GaussChebyshev2ndIntegration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussChebyshev2ndIntegration *arg1 = (GaussChebyshev2ndIntegration *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GaussChebyshev2ndIntegration",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussChebyshev2ndIntegration, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GaussChebyshev2ndIntegration" "', argument " "1"" of type '" "GaussChebyshev2ndIntegration *""'"); 
  }
  arg1 = reinterpret_cast< GaussChebyshev2ndIntegration * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GaussChebyshev2ndIntegration_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GaussChebyshev2ndIntegration, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GaussGegenbauerIntegration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Real arg2 ;
  size_t val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  GaussGegenbauerIntegration *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussGegenbauerIntegration",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GaussGegenbauerIntegration" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GaussGegenbauerIntegration" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (GaussGegenbauerIntegration *)new GaussGegenbauerIntegration(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussGegenbauerIntegration, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GaussGegenbauerIntegration___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussGegenbauerIntegration *arg1 = (GaussGegenbauerIntegration *) 0 ;
  PyObject *arg2 = (PyObject *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussGegenbauerIntegration___call__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussGegenbauerIntegration, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussGegenbauerIntegration___call__" "', argument " "1"" of type '" "GaussGegenbauerIntegration *""'"); 
  }
  arg1 = reinterpret_cast< GaussGegenbauerIntegration * >(argp1);
  arg2 = obj1;
  {
    try {
      result = (Real)GaussGegenbauerIntegration___call__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GaussGegenbauerIntegration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussGegenbauerIntegration *arg1 = (GaussGegenbauerIntegration *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GaussGegenbauerIntegration",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussGegenbauerIntegration, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GaussGegenbauerIntegration" "', argument " "1"" of type '" "GaussGegenbauerIntegration *""'"); 
  }
  arg1 = reinterpret_cast< GaussGegenbauerIntegration * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GaussGegenbauerIntegration_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GaussGegenbauerIntegration, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_SampleNumber_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Sample< Real > *arg1 = (Sample< Real > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  double result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampleNumber_value",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampleT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampleNumber_value" "', argument " "1"" of type '" "Sample< Real > *""'"); 
  }
  arg1 = reinterpret_cast< Sample< Real > * >(argp1);
  {
    try {
      result = (double)Sample_Sl_Real_Sg__value(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SampleNumber_weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Sample< Real > *arg1 = (Sample< Real > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampleNumber_weight",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampleT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampleNumber_weight" "', argument " "1"" of type '" "Sample< Real > *""'"); 
  }
  arg1 = reinterpret_cast< Sample< Real > * >(argp1);
  {
    try {
      result = (Real)Sample_Sl_Real_Sg__weight(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SampleNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Sample< Real > *arg1 = (Sample< Real > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SampleNumber",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampleT_double_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SampleNumber" "', argument " "1"" of type '" "Sample< Real > *""'"); 
  }
  arg1 = reinterpret_cast< Sample< Real > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SampleNumber_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SampleT_double_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_SampleArray_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Sample< Array > *arg1 = (Sample< Array > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampleArray_value",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampleT_Array_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampleArray_value" "', argument " "1"" of type '" "Sample< Array > *""'"); 
  }
  arg1 = reinterpret_cast< Sample< Array > * >(argp1);
  {
    try {
      result = Sample_Sl_Array_Sg__value(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SampleArray_weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Sample< Array > *arg1 = (Sample< Array > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampleArray_weight",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampleT_Array_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampleArray_weight" "', argument " "1"" of type '" "Sample< Array > *""'"); 
  }
  arg1 = reinterpret_cast< Sample< Array > * >(argp1);
  {
    try {
      result = (Real)Sample_Sl_Array_Sg__weight(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SampleArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Sample< Array > *arg1 = (Sample< Array > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SampleArray",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampleT_Array_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SampleArray" "', argument " "1"" of type '" "Sample< Array > *""'"); 
  }
  arg1 = reinterpret_cast< Sample< Array > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SampleArray_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SampleT_Array_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_SampleRealVector_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Sample< std::vector< Real > > *arg1 = (Sample< std::vector< Real > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< double,std::allocator< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampleRealVector_value",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampleRealVector_value" "', argument " "1"" of type '" "Sample< std::vector< Real > > *""'"); 
  }
  arg1 = reinterpret_cast< Sample< std::vector< Real > > * >(argp1);
  {
    try {
      result = Sample_Sl_std_vector_Sl_Real_Sg__Sg__value(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SampleRealVector_weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Sample< std::vector< Real > > *arg1 = (Sample< std::vector< Real > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampleRealVector_weight",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampleRealVector_weight" "', argument " "1"" of type '" "Sample< std::vector< Real > > *""'"); 
  }
  arg1 = reinterpret_cast< Sample< std::vector< Real > > * >(argp1);
  {
    try {
      result = (Real)Sample_Sl_std_vector_Sl_Real_Sg__Sg__weight(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SampleRealVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Sample< std::vector< Real > > *arg1 = (Sample< std::vector< Real > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SampleRealVector",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SampleRealVector" "', argument " "1"" of type '" "Sample< std::vector< Real > > *""'"); 
  }
  arg1 = reinterpret_cast< Sample< std::vector< Real > > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SampleRealVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_LecuyerUniformRng__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BigInteger arg1 ;
  long val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  LecuyerUniformRng *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LecuyerUniformRng",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_long(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LecuyerUniformRng" "', argument " "1"" of type '" "BigInteger""'");
  } 
  arg1 = static_cast< BigInteger >(val1);
  {
    try {
      result = (LecuyerUniformRng *)new LecuyerUniformRng(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LecuyerUniformRng, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LecuyerUniformRng__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LecuyerUniformRng *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LecuyerUniformRng",0,0)) SWIG_fail;
  {
    try {
      result = (LecuyerUniformRng *)new LecuyerUniformRng();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LecuyerUniformRng, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LecuyerUniformRng(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_LecuyerUniformRng__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_long(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_LecuyerUniformRng__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LecuyerUniformRng'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    LecuyerUniformRng::LecuyerUniformRng(BigInteger)\n"
    "    LecuyerUniformRng::LecuyerUniformRng()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_LecuyerUniformRng_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LecuyerUniformRng *arg1 = (LecuyerUniformRng *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LecuyerUniformRng_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LecuyerUniformRng, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LecuyerUniformRng_next" "', argument " "1"" of type '" "LecuyerUniformRng const *""'"); 
  }
  arg1 = reinterpret_cast< LecuyerUniformRng * >(argp1);
  {
    try {
      result = ((LecuyerUniformRng const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Real >(static_cast< const Sample< Real >& >(result))), SWIGTYPE_p_SampleT_double_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_LecuyerUniformRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LecuyerUniformRng *arg1 = (LecuyerUniformRng *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LecuyerUniformRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LecuyerUniformRng, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LecuyerUniformRng" "', argument " "1"" of type '" "LecuyerUniformRng *""'"); 
  }
  arg1 = reinterpret_cast< LecuyerUniformRng * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LecuyerUniformRng_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_LecuyerUniformRng, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_KnuthUniformRng__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BigInteger arg1 ;
  long val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  KnuthUniformRng *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_KnuthUniformRng",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_long(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_KnuthUniformRng" "', argument " "1"" of type '" "BigInteger""'");
  } 
  arg1 = static_cast< BigInteger >(val1);
  {
    try {
      result = (KnuthUniformRng *)new KnuthUniformRng(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_KnuthUniformRng, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_KnuthUniformRng__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  KnuthUniformRng *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_KnuthUniformRng",0,0)) SWIG_fail;
  {
    try {
      result = (KnuthUniformRng *)new KnuthUniformRng();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_KnuthUniformRng, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_KnuthUniformRng(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_KnuthUniformRng__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_long(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_KnuthUniformRng__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_KnuthUniformRng'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    KnuthUniformRng::KnuthUniformRng(BigInteger)\n"
    "    KnuthUniformRng::KnuthUniformRng()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_KnuthUniformRng_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  KnuthUniformRng *arg1 = (KnuthUniformRng *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"KnuthUniformRng_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_KnuthUniformRng, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KnuthUniformRng_next" "', argument " "1"" of type '" "KnuthUniformRng const *""'"); 
  }
  arg1 = reinterpret_cast< KnuthUniformRng * >(argp1);
  {
    try {
      result = ((KnuthUniformRng const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Real >(static_cast< const Sample< Real >& >(result))), SWIGTYPE_p_SampleT_double_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_KnuthUniformRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  KnuthUniformRng *arg1 = (KnuthUniformRng *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_KnuthUniformRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_KnuthUniformRng, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_KnuthUniformRng" "', argument " "1"" of type '" "KnuthUniformRng *""'"); 
  }
  arg1 = reinterpret_cast< KnuthUniformRng * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *KnuthUniformRng_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_KnuthUniformRng, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MersenneTwisterUniformRng__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BigInteger arg1 ;
  long val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  MersenneTwisterUniformRng *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MersenneTwisterUniformRng",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_long(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MersenneTwisterUniformRng" "', argument " "1"" of type '" "BigInteger""'");
  } 
  arg1 = static_cast< BigInteger >(val1);
  {
    try {
      result = (MersenneTwisterUniformRng *)new MersenneTwisterUniformRng(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MersenneTwisterUniformRng, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MersenneTwisterUniformRng__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MersenneTwisterUniformRng *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MersenneTwisterUniformRng",0,0)) SWIG_fail;
  {
    try {
      result = (MersenneTwisterUniformRng *)new MersenneTwisterUniformRng();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MersenneTwisterUniformRng, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MersenneTwisterUniformRng(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_MersenneTwisterUniformRng__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_long(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_MersenneTwisterUniformRng__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_MersenneTwisterUniformRng'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    MersenneTwisterUniformRng::MersenneTwisterUniformRng(BigInteger)\n"
    "    MersenneTwisterUniformRng::MersenneTwisterUniformRng()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_MersenneTwisterUniformRng_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MersenneTwisterUniformRng *arg1 = (MersenneTwisterUniformRng *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MersenneTwisterUniformRng_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MersenneTwisterUniformRng, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MersenneTwisterUniformRng_next" "', argument " "1"" of type '" "MersenneTwisterUniformRng const *""'"); 
  }
  arg1 = reinterpret_cast< MersenneTwisterUniformRng * >(argp1);
  {
    try {
      result = ((MersenneTwisterUniformRng const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Real >(static_cast< const Sample< Real >& >(result))), SWIGTYPE_p_SampleT_double_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MersenneTwisterUniformRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MersenneTwisterUniformRng *arg1 = (MersenneTwisterUniformRng *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MersenneTwisterUniformRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MersenneTwisterUniformRng, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MersenneTwisterUniformRng" "', argument " "1"" of type '" "MersenneTwisterUniformRng *""'"); 
  }
  arg1 = reinterpret_cast< MersenneTwisterUniformRng * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MersenneTwisterUniformRng_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MersenneTwisterUniformRng, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_UniformRandomGenerator__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BigInteger arg1 ;
  long val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  UniformRandomGenerator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UniformRandomGenerator",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_long(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UniformRandomGenerator" "', argument " "1"" of type '" "BigInteger""'");
  } 
  arg1 = static_cast< BigInteger >(val1);
  {
    try {
      result = (UniformRandomGenerator *)new UniformRandomGenerator(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UniformRandomGenerator, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UniformRandomGenerator__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  UniformRandomGenerator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UniformRandomGenerator",0,0)) SWIG_fail;
  {
    try {
      result = (UniformRandomGenerator *)new UniformRandomGenerator();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UniformRandomGenerator, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_UniformRandomGenerator(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_UniformRandomGenerator__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_long(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_UniformRandomGenerator__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_UniformRandomGenerator'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    UniformRandomGenerator::UniformRandomGenerator(BigInteger)\n"
    "    UniformRandomGenerator::UniformRandomGenerator()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_UniformRandomGenerator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  UniformRandomGenerator *arg1 = (UniformRandomGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UniformRandomGenerator_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UniformRandomGenerator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UniformRandomGenerator_next" "', argument " "1"" of type '" "UniformRandomGenerator const *""'"); 
  }
  arg1 = reinterpret_cast< UniformRandomGenerator * >(argp1);
  {
    try {
      result = ((UniformRandomGenerator const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Real >(static_cast< const Sample< Real >& >(result))), SWIGTYPE_p_SampleT_double_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UniformRandomGenerator_nextValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  UniformRandomGenerator *arg1 = (UniformRandomGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UniformRandomGenerator_nextValue",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UniformRandomGenerator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UniformRandomGenerator_nextValue" "', argument " "1"" of type '" "UniformRandomGenerator const *""'"); 
  }
  arg1 = reinterpret_cast< UniformRandomGenerator * >(argp1);
  {
    try {
      result = (Real)UniformRandomGenerator_nextValue((UniformRandomGenerator const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_UniformRandomGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  UniformRandomGenerator *arg1 = (UniformRandomGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_UniformRandomGenerator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UniformRandomGenerator, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_UniformRandomGenerator" "', argument " "1"" of type '" "UniformRandomGenerator *""'"); 
  }
  arg1 = reinterpret_cast< UniformRandomGenerator * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *UniformRandomGenerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_UniformRandomGenerator, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CentralLimitLecuyerGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LecuyerUniformRng *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  CLGaussianRng< LecuyerUniformRng > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CentralLimitLecuyerGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_LecuyerUniformRng,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CentralLimitLecuyerGaussianRng" "', argument " "1"" of type '" "LecuyerUniformRng const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CentralLimitLecuyerGaussianRng" "', argument " "1"" of type '" "LecuyerUniformRng const &""'"); 
  }
  arg1 = reinterpret_cast< LecuyerUniformRng * >(argp1);
  {
    try {
      result = (CLGaussianRng< LecuyerUniformRng > *)new CLGaussianRng< LecuyerUniformRng >((LecuyerUniformRng const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CLGaussianRngT_LecuyerUniformRng_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CentralLimitLecuyerGaussianRng_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CLGaussianRng< LecuyerUniformRng > *arg1 = (CLGaussianRng< LecuyerUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CentralLimitLecuyerGaussianRng_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CLGaussianRngT_LecuyerUniformRng_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CentralLimitLecuyerGaussianRng_next" "', argument " "1"" of type '" "CLGaussianRng< LecuyerUniformRng > const *""'"); 
  }
  arg1 = reinterpret_cast< CLGaussianRng< LecuyerUniformRng > * >(argp1);
  {
    try {
      result = ((CLGaussianRng< LecuyerUniformRng > const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Real >(static_cast< const Sample< Real >& >(result))), SWIGTYPE_p_SampleT_double_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CentralLimitLecuyerGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CLGaussianRng< LecuyerUniformRng > *arg1 = (CLGaussianRng< LecuyerUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CentralLimitLecuyerGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CLGaussianRngT_LecuyerUniformRng_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CentralLimitLecuyerGaussianRng" "', argument " "1"" of type '" "CLGaussianRng< LecuyerUniformRng > *""'"); 
  }
  arg1 = reinterpret_cast< CLGaussianRng< LecuyerUniformRng > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CentralLimitLecuyerGaussianRng_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CLGaussianRngT_LecuyerUniformRng_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CentralLimitKnuthGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  KnuthUniformRng *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  CLGaussianRng< KnuthUniformRng > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CentralLimitKnuthGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_KnuthUniformRng,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CentralLimitKnuthGaussianRng" "', argument " "1"" of type '" "KnuthUniformRng const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CentralLimitKnuthGaussianRng" "', argument " "1"" of type '" "KnuthUniformRng const &""'"); 
  }
  arg1 = reinterpret_cast< KnuthUniformRng * >(argp1);
  {
    try {
      result = (CLGaussianRng< KnuthUniformRng > *)new CLGaussianRng< KnuthUniformRng >((KnuthUniformRng const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CLGaussianRngT_KnuthUniformRng_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CentralLimitKnuthGaussianRng_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CLGaussianRng< KnuthUniformRng > *arg1 = (CLGaussianRng< KnuthUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CentralLimitKnuthGaussianRng_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CLGaussianRngT_KnuthUniformRng_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CentralLimitKnuthGaussianRng_next" "', argument " "1"" of type '" "CLGaussianRng< KnuthUniformRng > const *""'"); 
  }
  arg1 = reinterpret_cast< CLGaussianRng< KnuthUniformRng > * >(argp1);
  {
    try {
      result = ((CLGaussianRng< KnuthUniformRng > const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Real >(static_cast< const Sample< Real >& >(result))), SWIGTYPE_p_SampleT_double_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CentralLimitKnuthGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CLGaussianRng< KnuthUniformRng > *arg1 = (CLGaussianRng< KnuthUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CentralLimitKnuthGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CLGaussianRngT_KnuthUniformRng_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CentralLimitKnuthGaussianRng" "', argument " "1"" of type '" "CLGaussianRng< KnuthUniformRng > *""'"); 
  }
  arg1 = reinterpret_cast< CLGaussianRng< KnuthUniformRng > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CentralLimitKnuthGaussianRng_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CLGaussianRngT_KnuthUniformRng_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CentralLimitMersenneTwisterGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MersenneTwisterUniformRng *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  CLGaussianRng< MersenneTwisterUniformRng > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CentralLimitMersenneTwisterGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_MersenneTwisterUniformRng,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CentralLimitMersenneTwisterGaussianRng" "', argument " "1"" of type '" "MersenneTwisterUniformRng const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CentralLimitMersenneTwisterGaussianRng" "', argument " "1"" of type '" "MersenneTwisterUniformRng const &""'"); 
  }
  arg1 = reinterpret_cast< MersenneTwisterUniformRng * >(argp1);
  {
    try {
      result = (CLGaussianRng< MersenneTwisterUniformRng > *)new CLGaussianRng< MersenneTwisterUniformRng >((MersenneTwisterUniformRng const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CLGaussianRngT_MersenneTwisterUniformRng_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CentralLimitMersenneTwisterGaussianRng_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CLGaussianRng< MersenneTwisterUniformRng > *arg1 = (CLGaussianRng< MersenneTwisterUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CentralLimitMersenneTwisterGaussianRng_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CLGaussianRngT_MersenneTwisterUniformRng_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CentralLimitMersenneTwisterGaussianRng_next" "', argument " "1"" of type '" "CLGaussianRng< MersenneTwisterUniformRng > const *""'"); 
  }
  arg1 = reinterpret_cast< CLGaussianRng< MersenneTwisterUniformRng > * >(argp1);
  {
    try {
      result = ((CLGaussianRng< MersenneTwisterUniformRng > const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Real >(static_cast< const Sample< Real >& >(result))), SWIGTYPE_p_SampleT_double_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CentralLimitMersenneTwisterGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CLGaussianRng< MersenneTwisterUniformRng > *arg1 = (CLGaussianRng< MersenneTwisterUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CentralLimitMersenneTwisterGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CLGaussianRngT_MersenneTwisterUniformRng_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CentralLimitMersenneTwisterGaussianRng" "', argument " "1"" of type '" "CLGaussianRng< MersenneTwisterUniformRng > *""'"); 
  }
  arg1 = reinterpret_cast< CLGaussianRng< MersenneTwisterUniformRng > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CentralLimitMersenneTwisterGaussianRng_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CLGaussianRngT_MersenneTwisterUniformRng_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BoxMullerLecuyerGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LecuyerUniformRng *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BoxMullerGaussianRng< LecuyerUniformRng > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BoxMullerLecuyerGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_LecuyerUniformRng,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BoxMullerLecuyerGaussianRng" "', argument " "1"" of type '" "LecuyerUniformRng const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BoxMullerLecuyerGaussianRng" "', argument " "1"" of type '" "LecuyerUniformRng const &""'"); 
  }
  arg1 = reinterpret_cast< LecuyerUniformRng * >(argp1);
  {
    try {
      result = (BoxMullerGaussianRng< LecuyerUniformRng > *)new BoxMullerGaussianRng< LecuyerUniformRng >((LecuyerUniformRng const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BoxMullerGaussianRngT_LecuyerUniformRng_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoxMullerLecuyerGaussianRng_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BoxMullerGaussianRng< LecuyerUniformRng > *arg1 = (BoxMullerGaussianRng< LecuyerUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoxMullerLecuyerGaussianRng_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BoxMullerGaussianRngT_LecuyerUniformRng_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoxMullerLecuyerGaussianRng_next" "', argument " "1"" of type '" "BoxMullerGaussianRng< LecuyerUniformRng > const *""'"); 
  }
  arg1 = reinterpret_cast< BoxMullerGaussianRng< LecuyerUniformRng > * >(argp1);
  {
    try {
      result = ((BoxMullerGaussianRng< LecuyerUniformRng > const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Real >(static_cast< const Sample< Real >& >(result))), SWIGTYPE_p_SampleT_double_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BoxMullerLecuyerGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BoxMullerGaussianRng< LecuyerUniformRng > *arg1 = (BoxMullerGaussianRng< LecuyerUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BoxMullerLecuyerGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BoxMullerGaussianRngT_LecuyerUniformRng_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BoxMullerLecuyerGaussianRng" "', argument " "1"" of type '" "BoxMullerGaussianRng< LecuyerUniformRng > *""'"); 
  }
  arg1 = reinterpret_cast< BoxMullerGaussianRng< LecuyerUniformRng > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BoxMullerLecuyerGaussianRng_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BoxMullerGaussianRngT_LecuyerUniformRng_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BoxMullerKnuthGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  KnuthUniformRng *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BoxMullerGaussianRng< KnuthUniformRng > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BoxMullerKnuthGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_KnuthUniformRng,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BoxMullerKnuthGaussianRng" "', argument " "1"" of type '" "KnuthUniformRng const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BoxMullerKnuthGaussianRng" "', argument " "1"" of type '" "KnuthUniformRng const &""'"); 
  }
  arg1 = reinterpret_cast< KnuthUniformRng * >(argp1);
  {
    try {
      result = (BoxMullerGaussianRng< KnuthUniformRng > *)new BoxMullerGaussianRng< KnuthUniformRng >((KnuthUniformRng const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BoxMullerGaussianRngT_KnuthUniformRng_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoxMullerKnuthGaussianRng_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BoxMullerGaussianRng< KnuthUniformRng > *arg1 = (BoxMullerGaussianRng< KnuthUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoxMullerKnuthGaussianRng_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BoxMullerGaussianRngT_KnuthUniformRng_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoxMullerKnuthGaussianRng_next" "', argument " "1"" of type '" "BoxMullerGaussianRng< KnuthUniformRng > const *""'"); 
  }
  arg1 = reinterpret_cast< BoxMullerGaussianRng< KnuthUniformRng > * >(argp1);
  {
    try {
      result = ((BoxMullerGaussianRng< KnuthUniformRng > const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Real >(static_cast< const Sample< Real >& >(result))), SWIGTYPE_p_SampleT_double_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BoxMullerKnuthGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BoxMullerGaussianRng< KnuthUniformRng > *arg1 = (BoxMullerGaussianRng< KnuthUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BoxMullerKnuthGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BoxMullerGaussianRngT_KnuthUniformRng_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BoxMullerKnuthGaussianRng" "', argument " "1"" of type '" "BoxMullerGaussianRng< KnuthUniformRng > *""'"); 
  }
  arg1 = reinterpret_cast< BoxMullerGaussianRng< KnuthUniformRng > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BoxMullerKnuthGaussianRng_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BoxMullerGaussianRngT_KnuthUniformRng_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BoxMullerMersenneTwisterGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MersenneTwisterUniformRng *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BoxMullerGaussianRng< MersenneTwisterUniformRng > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BoxMullerMersenneTwisterGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_MersenneTwisterUniformRng,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BoxMullerMersenneTwisterGaussianRng" "', argument " "1"" of type '" "MersenneTwisterUniformRng const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BoxMullerMersenneTwisterGaussianRng" "', argument " "1"" of type '" "MersenneTwisterUniformRng const &""'"); 
  }
  arg1 = reinterpret_cast< MersenneTwisterUniformRng * >(argp1);
  {
    try {
      result = (BoxMullerGaussianRng< MersenneTwisterUniformRng > *)new BoxMullerGaussianRng< MersenneTwisterUniformRng >((MersenneTwisterUniformRng const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BoxMullerGaussianRngT_MersenneTwisterUniformRng_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoxMullerMersenneTwisterGaussianRng_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BoxMullerGaussianRng< MersenneTwisterUniformRng > *arg1 = (BoxMullerGaussianRng< MersenneTwisterUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoxMullerMersenneTwisterGaussianRng_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BoxMullerGaussianRngT_MersenneTwisterUniformRng_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoxMullerMersenneTwisterGaussianRng_next" "', argument " "1"" of type '" "BoxMullerGaussianRng< MersenneTwisterUniformRng > const *""'"); 
  }
  arg1 = reinterpret_cast< BoxMullerGaussianRng< MersenneTwisterUniformRng > * >(argp1);
  {
    try {
      result = ((BoxMullerGaussianRng< MersenneTwisterUniformRng > const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Real >(static_cast< const Sample< Real >& >(result))), SWIGTYPE_p_SampleT_double_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BoxMullerMersenneTwisterGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BoxMullerGaussianRng< MersenneTwisterUniformRng > *arg1 = (BoxMullerGaussianRng< MersenneTwisterUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BoxMullerMersenneTwisterGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BoxMullerGaussianRngT_MersenneTwisterUniformRng_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BoxMullerMersenneTwisterGaussianRng" "', argument " "1"" of type '" "BoxMullerGaussianRng< MersenneTwisterUniformRng > *""'"); 
  }
  arg1 = reinterpret_cast< BoxMullerGaussianRng< MersenneTwisterUniformRng > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BoxMullerMersenneTwisterGaussianRng_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BoxMullerGaussianRngT_MersenneTwisterUniformRng_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MoroInvCumulativeLecuyerGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LecuyerUniformRng *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativeRng< LecuyerUniformRng,MoroInverseCumulativeNormal > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MoroInvCumulativeLecuyerGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_LecuyerUniformRng,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MoroInvCumulativeLecuyerGaussianRng" "', argument " "1"" of type '" "LecuyerUniformRng const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MoroInvCumulativeLecuyerGaussianRng" "', argument " "1"" of type '" "LecuyerUniformRng const &""'"); 
  }
  arg1 = reinterpret_cast< LecuyerUniformRng * >(argp1);
  {
    try {
      result = (InverseCumulativeRng< LecuyerUniformRng,MoroInverseCumulativeNormal > *)new InverseCumulativeRng< LecuyerUniformRng,MoroInverseCumulativeNormal >((LecuyerUniformRng const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeRngT_LecuyerUniformRng_MoroInverseCumulativeNormal_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MoroInvCumulativeLecuyerGaussianRng_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRng< LecuyerUniformRng,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRng< LecuyerUniformRng,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MoroInvCumulativeLecuyerGaussianRng_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRngT_LecuyerUniformRng_MoroInverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoroInvCumulativeLecuyerGaussianRng_next" "', argument " "1"" of type '" "InverseCumulativeRng< LecuyerUniformRng,MoroInverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRng< LecuyerUniformRng,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      result = ((InverseCumulativeRng< LecuyerUniformRng,MoroInverseCumulativeNormal > const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Real >(static_cast< const Sample< Real >& >(result))), SWIGTYPE_p_SampleT_double_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MoroInvCumulativeLecuyerGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRng< LecuyerUniformRng,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRng< LecuyerUniformRng,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MoroInvCumulativeLecuyerGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRngT_LecuyerUniformRng_MoroInverseCumulativeNormal_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MoroInvCumulativeLecuyerGaussianRng" "', argument " "1"" of type '" "InverseCumulativeRng< LecuyerUniformRng,MoroInverseCumulativeNormal > *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRng< LecuyerUniformRng,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MoroInvCumulativeLecuyerGaussianRng_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativeRngT_LecuyerUniformRng_MoroInverseCumulativeNormal_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MoroInvCumulativeKnuthGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  KnuthUniformRng *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativeRng< KnuthUniformRng,MoroInverseCumulativeNormal > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MoroInvCumulativeKnuthGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_KnuthUniformRng,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MoroInvCumulativeKnuthGaussianRng" "', argument " "1"" of type '" "KnuthUniformRng const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MoroInvCumulativeKnuthGaussianRng" "', argument " "1"" of type '" "KnuthUniformRng const &""'"); 
  }
  arg1 = reinterpret_cast< KnuthUniformRng * >(argp1);
  {
    try {
      result = (InverseCumulativeRng< KnuthUniformRng,MoroInverseCumulativeNormal > *)new InverseCumulativeRng< KnuthUniformRng,MoroInverseCumulativeNormal >((KnuthUniformRng const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeRngT_KnuthUniformRng_MoroInverseCumulativeNormal_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MoroInvCumulativeKnuthGaussianRng_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRng< KnuthUniformRng,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRng< KnuthUniformRng,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MoroInvCumulativeKnuthGaussianRng_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRngT_KnuthUniformRng_MoroInverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoroInvCumulativeKnuthGaussianRng_next" "', argument " "1"" of type '" "InverseCumulativeRng< KnuthUniformRng,MoroInverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRng< KnuthUniformRng,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      result = ((InverseCumulativeRng< KnuthUniformRng,MoroInverseCumulativeNormal > const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Real >(static_cast< const Sample< Real >& >(result))), SWIGTYPE_p_SampleT_double_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MoroInvCumulativeKnuthGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRng< KnuthUniformRng,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRng< KnuthUniformRng,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MoroInvCumulativeKnuthGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRngT_KnuthUniformRng_MoroInverseCumulativeNormal_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MoroInvCumulativeKnuthGaussianRng" "', argument " "1"" of type '" "InverseCumulativeRng< KnuthUniformRng,MoroInverseCumulativeNormal > *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRng< KnuthUniformRng,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MoroInvCumulativeKnuthGaussianRng_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativeRngT_KnuthUniformRng_MoroInverseCumulativeNormal_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MoroInvCumulativeMersenneTwisterGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MersenneTwisterUniformRng *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativeRng< MersenneTwisterUniformRng,MoroInverseCumulativeNormal > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MoroInvCumulativeMersenneTwisterGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_MersenneTwisterUniformRng,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MoroInvCumulativeMersenneTwisterGaussianRng" "', argument " "1"" of type '" "MersenneTwisterUniformRng const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MoroInvCumulativeMersenneTwisterGaussianRng" "', argument " "1"" of type '" "MersenneTwisterUniformRng const &""'"); 
  }
  arg1 = reinterpret_cast< MersenneTwisterUniformRng * >(argp1);
  {
    try {
      result = (InverseCumulativeRng< MersenneTwisterUniformRng,MoroInverseCumulativeNormal > *)new InverseCumulativeRng< MersenneTwisterUniformRng,MoroInverseCumulativeNormal >((MersenneTwisterUniformRng const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeRngT_MersenneTwisterUniformRng_MoroInverseCumulativeNormal_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MoroInvCumulativeMersenneTwisterGaussianRng_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRng< MersenneTwisterUniformRng,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRng< MersenneTwisterUniformRng,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MoroInvCumulativeMersenneTwisterGaussianRng_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRngT_MersenneTwisterUniformRng_MoroInverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoroInvCumulativeMersenneTwisterGaussianRng_next" "', argument " "1"" of type '" "InverseCumulativeRng< MersenneTwisterUniformRng,MoroInverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRng< MersenneTwisterUniformRng,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      result = ((InverseCumulativeRng< MersenneTwisterUniformRng,MoroInverseCumulativeNormal > const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Real >(static_cast< const Sample< Real >& >(result))), SWIGTYPE_p_SampleT_double_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MoroInvCumulativeMersenneTwisterGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRng< MersenneTwisterUniformRng,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRng< MersenneTwisterUniformRng,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MoroInvCumulativeMersenneTwisterGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRngT_MersenneTwisterUniformRng_MoroInverseCumulativeNormal_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MoroInvCumulativeMersenneTwisterGaussianRng" "', argument " "1"" of type '" "InverseCumulativeRng< MersenneTwisterUniformRng,MoroInverseCumulativeNormal > *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRng< MersenneTwisterUniformRng,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MoroInvCumulativeMersenneTwisterGaussianRng_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativeRngT_MersenneTwisterUniformRng_MoroInverseCumulativeNormal_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_InvCumulativeLecuyerGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LecuyerUniformRng *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativeRng< LecuyerUniformRng,InverseCumulativeNormal > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InvCumulativeLecuyerGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_LecuyerUniformRng,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvCumulativeLecuyerGaussianRng" "', argument " "1"" of type '" "LecuyerUniformRng const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvCumulativeLecuyerGaussianRng" "', argument " "1"" of type '" "LecuyerUniformRng const &""'"); 
  }
  arg1 = reinterpret_cast< LecuyerUniformRng * >(argp1);
  {
    try {
      result = (InverseCumulativeRng< LecuyerUniformRng,InverseCumulativeNormal > *)new InverseCumulativeRng< LecuyerUniformRng,InverseCumulativeNormal >((LecuyerUniformRng const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeRngT_LecuyerUniformRng_InverseCumulativeNormal_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InvCumulativeLecuyerGaussianRng_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRng< LecuyerUniformRng,InverseCumulativeNormal > *arg1 = (InverseCumulativeRng< LecuyerUniformRng,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InvCumulativeLecuyerGaussianRng_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRngT_LecuyerUniformRng_InverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InvCumulativeLecuyerGaussianRng_next" "', argument " "1"" of type '" "InverseCumulativeRng< LecuyerUniformRng,InverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRng< LecuyerUniformRng,InverseCumulativeNormal > * >(argp1);
  {
    try {
      result = ((InverseCumulativeRng< LecuyerUniformRng,InverseCumulativeNormal > const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Real >(static_cast< const Sample< Real >& >(result))), SWIGTYPE_p_SampleT_double_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InvCumulativeLecuyerGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRng< LecuyerUniformRng,InverseCumulativeNormal > *arg1 = (InverseCumulativeRng< LecuyerUniformRng,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_InvCumulativeLecuyerGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRngT_LecuyerUniformRng_InverseCumulativeNormal_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InvCumulativeLecuyerGaussianRng" "', argument " "1"" of type '" "InverseCumulativeRng< LecuyerUniformRng,InverseCumulativeNormal > *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRng< LecuyerUniformRng,InverseCumulativeNormal > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InvCumulativeLecuyerGaussianRng_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativeRngT_LecuyerUniformRng_InverseCumulativeNormal_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_InvCumulativeKnuthGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  KnuthUniformRng *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativeRng< KnuthUniformRng,InverseCumulativeNormal > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InvCumulativeKnuthGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_KnuthUniformRng,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvCumulativeKnuthGaussianRng" "', argument " "1"" of type '" "KnuthUniformRng const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvCumulativeKnuthGaussianRng" "', argument " "1"" of type '" "KnuthUniformRng const &""'"); 
  }
  arg1 = reinterpret_cast< KnuthUniformRng * >(argp1);
  {
    try {
      result = (InverseCumulativeRng< KnuthUniformRng,InverseCumulativeNormal > *)new InverseCumulativeRng< KnuthUniformRng,InverseCumulativeNormal >((KnuthUniformRng const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeRngT_KnuthUniformRng_InverseCumulativeNormal_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InvCumulativeKnuthGaussianRng_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRng< KnuthUniformRng,InverseCumulativeNormal > *arg1 = (InverseCumulativeRng< KnuthUniformRng,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InvCumulativeKnuthGaussianRng_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRngT_KnuthUniformRng_InverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InvCumulativeKnuthGaussianRng_next" "', argument " "1"" of type '" "InverseCumulativeRng< KnuthUniformRng,InverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRng< KnuthUniformRng,InverseCumulativeNormal > * >(argp1);
  {
    try {
      result = ((InverseCumulativeRng< KnuthUniformRng,InverseCumulativeNormal > const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Real >(static_cast< const Sample< Real >& >(result))), SWIGTYPE_p_SampleT_double_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InvCumulativeKnuthGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRng< KnuthUniformRng,InverseCumulativeNormal > *arg1 = (InverseCumulativeRng< KnuthUniformRng,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_InvCumulativeKnuthGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRngT_KnuthUniformRng_InverseCumulativeNormal_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InvCumulativeKnuthGaussianRng" "', argument " "1"" of type '" "InverseCumulativeRng< KnuthUniformRng,InverseCumulativeNormal > *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRng< KnuthUniformRng,InverseCumulativeNormal > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InvCumulativeKnuthGaussianRng_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativeRngT_KnuthUniformRng_InverseCumulativeNormal_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_InvCumulativeMersenneTwisterGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MersenneTwisterUniformRng *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativeRng< MersenneTwisterUniformRng,InverseCumulativeNormal > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InvCumulativeMersenneTwisterGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_MersenneTwisterUniformRng,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvCumulativeMersenneTwisterGaussianRng" "', argument " "1"" of type '" "MersenneTwisterUniformRng const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvCumulativeMersenneTwisterGaussianRng" "', argument " "1"" of type '" "MersenneTwisterUniformRng const &""'"); 
  }
  arg1 = reinterpret_cast< MersenneTwisterUniformRng * >(argp1);
  {
    try {
      result = (InverseCumulativeRng< MersenneTwisterUniformRng,InverseCumulativeNormal > *)new InverseCumulativeRng< MersenneTwisterUniformRng,InverseCumulativeNormal >((MersenneTwisterUniformRng const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeRngT_MersenneTwisterUniformRng_InverseCumulativeNormal_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InvCumulativeMersenneTwisterGaussianRng_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRng< MersenneTwisterUniformRng,InverseCumulativeNormal > *arg1 = (InverseCumulativeRng< MersenneTwisterUniformRng,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InvCumulativeMersenneTwisterGaussianRng_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRngT_MersenneTwisterUniformRng_InverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InvCumulativeMersenneTwisterGaussianRng_next" "', argument " "1"" of type '" "InverseCumulativeRng< MersenneTwisterUniformRng,InverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRng< MersenneTwisterUniformRng,InverseCumulativeNormal > * >(argp1);
  {
    try {
      result = ((InverseCumulativeRng< MersenneTwisterUniformRng,InverseCumulativeNormal > const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Real >(static_cast< const Sample< Real >& >(result))), SWIGTYPE_p_SampleT_double_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InvCumulativeMersenneTwisterGaussianRng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRng< MersenneTwisterUniformRng,InverseCumulativeNormal > *arg1 = (InverseCumulativeRng< MersenneTwisterUniformRng,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_InvCumulativeMersenneTwisterGaussianRng",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRngT_MersenneTwisterUniformRng_InverseCumulativeNormal_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InvCumulativeMersenneTwisterGaussianRng" "', argument " "1"" of type '" "InverseCumulativeRng< MersenneTwisterUniformRng,InverseCumulativeNormal > *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRng< MersenneTwisterUniformRng,InverseCumulativeNormal > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InvCumulativeMersenneTwisterGaussianRng_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativeRngT_MersenneTwisterUniformRng_InverseCumulativeNormal_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GaussianRandomGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  UniformRandomGenerator *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  GaussianRandomGenerator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussianRandomGenerator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_UniformRandomGenerator,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GaussianRandomGenerator" "', argument " "1"" of type '" "UniformRandomGenerator const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianRandomGenerator" "', argument " "1"" of type '" "UniformRandomGenerator const &""'"); 
  }
  arg1 = reinterpret_cast< UniformRandomGenerator * >(argp1);
  {
    try {
      result = (GaussianRandomGenerator *)new GaussianRandomGenerator((UniformRandomGenerator const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussianRandomGenerator, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GaussianRandomGenerator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianRandomGenerator *arg1 = (GaussianRandomGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< double > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussianRandomGenerator_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianRandomGenerator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussianRandomGenerator_next" "', argument " "1"" of type '" "GaussianRandomGenerator const *""'"); 
  }
  arg1 = reinterpret_cast< GaussianRandomGenerator * >(argp1);
  {
    try {
      result = ((GaussianRandomGenerator const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Real >(static_cast< const Sample< Real >& >(result))), SWIGTYPE_p_SampleT_double_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GaussianRandomGenerator_nextValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianRandomGenerator *arg1 = (GaussianRandomGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussianRandomGenerator_nextValue",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianRandomGenerator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussianRandomGenerator_nextValue" "', argument " "1"" of type '" "GaussianRandomGenerator const *""'"); 
  }
  arg1 = reinterpret_cast< GaussianRandomGenerator * >(argp1);
  {
    try {
      result = (Real)GaussianRandomGenerator_nextValue((GaussianRandomGenerator const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GaussianRandomGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianRandomGenerator *arg1 = (GaussianRandomGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GaussianRandomGenerator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianRandomGenerator, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GaussianRandomGenerator" "', argument " "1"" of type '" "GaussianRandomGenerator *""'"); 
  }
  arg1 = reinterpret_cast< GaussianRandomGenerator * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GaussianRandomGenerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GaussianRandomGenerator, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_HaltonRsg__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  unsigned long arg2 ;
  bool arg3 ;
  bool arg4 ;
  size_t val1 ;
  int ecode1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  HaltonRsg *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HaltonRsg",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HaltonRsg" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HaltonRsg" "', argument " "2"" of type '" "unsigned long""'");
  } 
  arg2 = static_cast< unsigned long >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_HaltonRsg" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HaltonRsg" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (HaltonRsg *)new HaltonRsg(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HaltonRsg, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_HaltonRsg__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  unsigned long arg2 ;
  bool arg3 ;
  size_t val1 ;
  int ecode1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  HaltonRsg *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HaltonRsg",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HaltonRsg" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HaltonRsg" "', argument " "2"" of type '" "unsigned long""'");
  } 
  arg2 = static_cast< unsigned long >(val2);
  ecode3 = SWIG_AsVal_bool(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_HaltonRsg" "', argument " "3"" of type '" "bool""'");
  } 
  arg3 = static_cast< bool >(val3);
  {
    try {
      result = (HaltonRsg *)new HaltonRsg(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HaltonRsg, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_HaltonRsg__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  unsigned long arg2 ;
  size_t val1 ;
  int ecode1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  HaltonRsg *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HaltonRsg",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HaltonRsg" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HaltonRsg" "', argument " "2"" of type '" "unsigned long""'");
  } 
  arg2 = static_cast< unsigned long >(val2);
  {
    try {
      result = (HaltonRsg *)new HaltonRsg(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HaltonRsg, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_HaltonRsg__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  HaltonRsg *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_HaltonRsg",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HaltonRsg" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  {
    try {
      result = (HaltonRsg *)new HaltonRsg(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HaltonRsg, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_HaltonRsg(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      return _wrap_new_HaltonRsg__SWIG_3(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      {
        int res = SWIG_AsVal_unsigned_SS_long(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_HaltonRsg__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      {
        int res = SWIG_AsVal_unsigned_SS_long(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_HaltonRsg__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      {
        int res = SWIG_AsVal_unsigned_SS_long(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_HaltonRsg__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_HaltonRsg'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    HaltonRsg::HaltonRsg(Size,unsigned long,bool,bool)\n"
    "    HaltonRsg::HaltonRsg(Size,unsigned long,bool)\n"
    "    HaltonRsg::HaltonRsg(Size,unsigned long)\n"
    "    HaltonRsg::HaltonRsg(Size)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_HaltonRsg_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HaltonRsg *arg1 = (HaltonRsg *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"HaltonRsg_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HaltonRsg, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HaltonRsg_nextSequence" "', argument " "1"" of type '" "HaltonRsg const *""'"); 
  }
  arg1 = reinterpret_cast< HaltonRsg * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((HaltonRsg const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HaltonRsg_lastSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HaltonRsg *arg1 = (HaltonRsg *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"HaltonRsg_lastSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HaltonRsg, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HaltonRsg_lastSequence" "', argument " "1"" of type '" "HaltonRsg const *""'"); 
  }
  arg1 = reinterpret_cast< HaltonRsg * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((HaltonRsg const *)arg1)->lastSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HaltonRsg_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HaltonRsg *arg1 = (HaltonRsg *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"HaltonRsg_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HaltonRsg, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HaltonRsg_dimension" "', argument " "1"" of type '" "HaltonRsg const *""'"); 
  }
  arg1 = reinterpret_cast< HaltonRsg * >(argp1);
  {
    try {
      result = ((HaltonRsg const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_HaltonRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HaltonRsg *arg1 = (HaltonRsg *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_HaltonRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HaltonRsg, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HaltonRsg" "', argument " "1"" of type '" "HaltonRsg *""'"); 
  }
  arg1 = reinterpret_cast< HaltonRsg * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *HaltonRsg_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HaltonRsg, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SobolRsg__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  BigInteger arg2 ;
  SobolRsg::DirectionIntegers arg3 ;
  size_t val1 ;
  int ecode1 = 0 ;
  long val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  SobolRsg *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SobolRsg",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SobolRsg" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_long(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SobolRsg" "', argument " "2"" of type '" "BigInteger""'");
  } 
  arg2 = static_cast< BigInteger >(val2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SobolRsg" "', argument " "3"" of type '" "SobolRsg::DirectionIntegers""'");
  } 
  arg3 = static_cast< SobolRsg::DirectionIntegers >(val3);
  {
    try {
      result = (SobolRsg *)new SobolRsg(arg1,arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SobolRsg, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SobolRsg__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  BigInteger arg2 ;
  size_t val1 ;
  int ecode1 = 0 ;
  long val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SobolRsg *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SobolRsg",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SobolRsg" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_long(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SobolRsg" "', argument " "2"" of type '" "BigInteger""'");
  } 
  arg2 = static_cast< BigInteger >(val2);
  {
    try {
      result = (SobolRsg *)new SobolRsg(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SobolRsg, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SobolRsg__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  SobolRsg *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SobolRsg",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SobolRsg" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  {
    try {
      result = (SobolRsg *)new SobolRsg(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SobolRsg, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SobolRsg(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      return _wrap_new_SobolRsg__SWIG_2(self, args);
    }
  }
  if (argc == 2) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      {
        int res = SWIG_AsVal_long(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_SobolRsg__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      {
        int res = SWIG_AsVal_long(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_SobolRsg__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SobolRsg'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SobolRsg::SobolRsg(Size,BigInteger,SobolRsg::DirectionIntegers)\n"
    "    SobolRsg::SobolRsg(Size,BigInteger)\n"
    "    SobolRsg::SobolRsg(Size)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_SobolRsg_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SobolRsg *arg1 = (SobolRsg *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SobolRsg_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SobolRsg, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SobolRsg_nextSequence" "', argument " "1"" of type '" "SobolRsg const *""'"); 
  }
  arg1 = reinterpret_cast< SobolRsg * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((SobolRsg const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SobolRsg_lastSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SobolRsg *arg1 = (SobolRsg *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SobolRsg_lastSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SobolRsg, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SobolRsg_lastSequence" "', argument " "1"" of type '" "SobolRsg const *""'"); 
  }
  arg1 = reinterpret_cast< SobolRsg * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((SobolRsg const *)arg1)->lastSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SobolRsg_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SobolRsg *arg1 = (SobolRsg *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SobolRsg_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SobolRsg, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SobolRsg_dimension" "', argument " "1"" of type '" "SobolRsg const *""'"); 
  }
  arg1 = reinterpret_cast< SobolRsg * >(argp1);
  {
    try {
      result = ((SobolRsg const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SobolRsg_skipTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SobolRsg *arg1 = (SobolRsg *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SobolRsg_skipTo",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SobolRsg, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SobolRsg_skipTo" "', argument " "1"" of type '" "SobolRsg *""'"); 
  }
  arg1 = reinterpret_cast< SobolRsg * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SobolRsg_skipTo" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      (arg1)->skipTo(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SobolRsg_nextInt32Sequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SobolRsg *arg1 = (SobolRsg *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< unsigned int,std::allocator< unsigned int > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SobolRsg_nextInt32Sequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SobolRsg, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SobolRsg_nextInt32Sequence" "', argument " "1"" of type '" "SobolRsg *""'"); 
  }
  arg1 = reinterpret_cast< SobolRsg * >(argp1);
  {
    try {
      result = SobolRsg_nextInt32Sequence(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< unsigned int,std::allocator< unsigned int > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SobolRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SobolRsg *arg1 = (SobolRsg *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SobolRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SobolRsg, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SobolRsg" "', argument " "1"" of type '" "SobolRsg *""'"); 
  }
  arg1 = reinterpret_cast< SobolRsg * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SobolRsg_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SobolRsg, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SobolBrownianBridgeRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Size arg2 ;
  size_t val1 ;
  int ecode1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SobolBrownianBridgeRsg *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SobolBrownianBridgeRsg",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SobolBrownianBridgeRsg" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SobolBrownianBridgeRsg" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (SobolBrownianBridgeRsg *)new SobolBrownianBridgeRsg(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SobolBrownianBridgeRsg, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SobolBrownianBridgeRsg_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SobolBrownianBridgeRsg *arg1 = (SobolBrownianBridgeRsg *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SobolBrownianBridgeRsg_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SobolBrownianBridgeRsg, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SobolBrownianBridgeRsg_nextSequence" "', argument " "1"" of type '" "SobolBrownianBridgeRsg const *""'"); 
  }
  arg1 = reinterpret_cast< SobolBrownianBridgeRsg * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((SobolBrownianBridgeRsg const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SobolBrownianBridgeRsg_lastSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SobolBrownianBridgeRsg *arg1 = (SobolBrownianBridgeRsg *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SobolBrownianBridgeRsg_lastSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SobolBrownianBridgeRsg, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SobolBrownianBridgeRsg_lastSequence" "', argument " "1"" of type '" "SobolBrownianBridgeRsg const *""'"); 
  }
  arg1 = reinterpret_cast< SobolBrownianBridgeRsg * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((SobolBrownianBridgeRsg const *)arg1)->lastSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SobolBrownianBridgeRsg_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SobolBrownianBridgeRsg *arg1 = (SobolBrownianBridgeRsg *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SobolBrownianBridgeRsg_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SobolBrownianBridgeRsg, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SobolBrownianBridgeRsg_dimension" "', argument " "1"" of type '" "SobolBrownianBridgeRsg const *""'"); 
  }
  arg1 = reinterpret_cast< SobolBrownianBridgeRsg * >(argp1);
  {
    try {
      result = ((SobolBrownianBridgeRsg const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SobolBrownianBridgeRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SobolBrownianBridgeRsg *arg1 = (SobolBrownianBridgeRsg *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SobolBrownianBridgeRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SobolBrownianBridgeRsg, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SobolBrownianBridgeRsg" "', argument " "1"" of type '" "SobolBrownianBridgeRsg *""'"); 
  }
  arg1 = reinterpret_cast< SobolBrownianBridgeRsg * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SobolBrownianBridgeRsg_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SobolBrownianBridgeRsg, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_LecuyerUniformRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  LecuyerUniformRng *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  RandomSequenceGenerator< LecuyerUniformRng > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LecuyerUniformRsg",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LecuyerUniformRsg" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_LecuyerUniformRng,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LecuyerUniformRsg" "', argument " "2"" of type '" "LecuyerUniformRng const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LecuyerUniformRsg" "', argument " "2"" of type '" "LecuyerUniformRng const &""'"); 
  }
  arg2 = reinterpret_cast< LecuyerUniformRng * >(argp2);
  {
    try {
      result = (RandomSequenceGenerator< LecuyerUniformRng > *)new RandomSequenceGenerator< LecuyerUniformRng >(arg1,(LecuyerUniformRng const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RandomSequenceGeneratorT_LecuyerUniformRng_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LecuyerUniformRsg_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RandomSequenceGenerator< LecuyerUniformRng > *arg1 = (RandomSequenceGenerator< LecuyerUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"LecuyerUniformRsg_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RandomSequenceGeneratorT_LecuyerUniformRng_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LecuyerUniformRsg_nextSequence" "', argument " "1"" of type '" "RandomSequenceGenerator< LecuyerUniformRng > const *""'"); 
  }
  arg1 = reinterpret_cast< RandomSequenceGenerator< LecuyerUniformRng > * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((RandomSequenceGenerator< LecuyerUniformRng > const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LecuyerUniformRsg_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RandomSequenceGenerator< LecuyerUniformRng > *arg1 = (RandomSequenceGenerator< LecuyerUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LecuyerUniformRsg_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RandomSequenceGeneratorT_LecuyerUniformRng_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LecuyerUniformRsg_dimension" "', argument " "1"" of type '" "RandomSequenceGenerator< LecuyerUniformRng > const *""'"); 
  }
  arg1 = reinterpret_cast< RandomSequenceGenerator< LecuyerUniformRng > * >(argp1);
  {
    try {
      result = ((RandomSequenceGenerator< LecuyerUniformRng > const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_LecuyerUniformRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RandomSequenceGenerator< LecuyerUniformRng > *arg1 = (RandomSequenceGenerator< LecuyerUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LecuyerUniformRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RandomSequenceGeneratorT_LecuyerUniformRng_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LecuyerUniformRsg" "', argument " "1"" of type '" "RandomSequenceGenerator< LecuyerUniformRng > *""'"); 
  }
  arg1 = reinterpret_cast< RandomSequenceGenerator< LecuyerUniformRng > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LecuyerUniformRsg_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RandomSequenceGeneratorT_LecuyerUniformRng_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_KnuthUniformRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  KnuthUniformRng *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  RandomSequenceGenerator< KnuthUniformRng > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_KnuthUniformRsg",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_KnuthUniformRsg" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_KnuthUniformRng,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_KnuthUniformRsg" "', argument " "2"" of type '" "KnuthUniformRng const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_KnuthUniformRsg" "', argument " "2"" of type '" "KnuthUniformRng const &""'"); 
  }
  arg2 = reinterpret_cast< KnuthUniformRng * >(argp2);
  {
    try {
      result = (RandomSequenceGenerator< KnuthUniformRng > *)new RandomSequenceGenerator< KnuthUniformRng >(arg1,(KnuthUniformRng const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RandomSequenceGeneratorT_KnuthUniformRng_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KnuthUniformRsg_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RandomSequenceGenerator< KnuthUniformRng > *arg1 = (RandomSequenceGenerator< KnuthUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"KnuthUniformRsg_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RandomSequenceGeneratorT_KnuthUniformRng_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KnuthUniformRsg_nextSequence" "', argument " "1"" of type '" "RandomSequenceGenerator< KnuthUniformRng > const *""'"); 
  }
  arg1 = reinterpret_cast< RandomSequenceGenerator< KnuthUniformRng > * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((RandomSequenceGenerator< KnuthUniformRng > const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_KnuthUniformRsg_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RandomSequenceGenerator< KnuthUniformRng > *arg1 = (RandomSequenceGenerator< KnuthUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"KnuthUniformRsg_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RandomSequenceGeneratorT_KnuthUniformRng_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KnuthUniformRsg_dimension" "', argument " "1"" of type '" "RandomSequenceGenerator< KnuthUniformRng > const *""'"); 
  }
  arg1 = reinterpret_cast< RandomSequenceGenerator< KnuthUniformRng > * >(argp1);
  {
    try {
      result = ((RandomSequenceGenerator< KnuthUniformRng > const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_KnuthUniformRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RandomSequenceGenerator< KnuthUniformRng > *arg1 = (RandomSequenceGenerator< KnuthUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_KnuthUniformRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RandomSequenceGeneratorT_KnuthUniformRng_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_KnuthUniformRsg" "', argument " "1"" of type '" "RandomSequenceGenerator< KnuthUniformRng > *""'"); 
  }
  arg1 = reinterpret_cast< RandomSequenceGenerator< KnuthUniformRng > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *KnuthUniformRsg_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RandomSequenceGeneratorT_KnuthUniformRng_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MersenneTwisterUniformRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  MersenneTwisterUniformRng *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  RandomSequenceGenerator< MersenneTwisterUniformRng > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MersenneTwisterUniformRsg",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MersenneTwisterUniformRsg" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MersenneTwisterUniformRng,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MersenneTwisterUniformRsg" "', argument " "2"" of type '" "MersenneTwisterUniformRng const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MersenneTwisterUniformRsg" "', argument " "2"" of type '" "MersenneTwisterUniformRng const &""'"); 
  }
  arg2 = reinterpret_cast< MersenneTwisterUniformRng * >(argp2);
  {
    try {
      result = (RandomSequenceGenerator< MersenneTwisterUniformRng > *)new RandomSequenceGenerator< MersenneTwisterUniformRng >(arg1,(MersenneTwisterUniformRng const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MersenneTwisterUniformRsg_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RandomSequenceGenerator< MersenneTwisterUniformRng > *arg1 = (RandomSequenceGenerator< MersenneTwisterUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MersenneTwisterUniformRsg_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MersenneTwisterUniformRsg_nextSequence" "', argument " "1"" of type '" "RandomSequenceGenerator< MersenneTwisterUniformRng > const *""'"); 
  }
  arg1 = reinterpret_cast< RandomSequenceGenerator< MersenneTwisterUniformRng > * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((RandomSequenceGenerator< MersenneTwisterUniformRng > const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MersenneTwisterUniformRsg_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RandomSequenceGenerator< MersenneTwisterUniformRng > *arg1 = (RandomSequenceGenerator< MersenneTwisterUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MersenneTwisterUniformRsg_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MersenneTwisterUniformRsg_dimension" "', argument " "1"" of type '" "RandomSequenceGenerator< MersenneTwisterUniformRng > const *""'"); 
  }
  arg1 = reinterpret_cast< RandomSequenceGenerator< MersenneTwisterUniformRng > * >(argp1);
  {
    try {
      result = ((RandomSequenceGenerator< MersenneTwisterUniformRng > const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MersenneTwisterUniformRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RandomSequenceGenerator< MersenneTwisterUniformRng > *arg1 = (RandomSequenceGenerator< MersenneTwisterUniformRng > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MersenneTwisterUniformRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MersenneTwisterUniformRsg" "', argument " "1"" of type '" "RandomSequenceGenerator< MersenneTwisterUniformRng > *""'"); 
  }
  arg1 = reinterpret_cast< RandomSequenceGenerator< MersenneTwisterUniformRng > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MersenneTwisterUniformRsg_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_UniformRandomSequenceGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  UniformRandomGenerator *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  UniformRandomSequenceGenerator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UniformRandomSequenceGenerator",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UniformRandomSequenceGenerator" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_UniformRandomGenerator,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_UniformRandomSequenceGenerator" "', argument " "2"" of type '" "UniformRandomGenerator const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UniformRandomSequenceGenerator" "', argument " "2"" of type '" "UniformRandomGenerator const &""'"); 
  }
  arg2 = reinterpret_cast< UniformRandomGenerator * >(argp2);
  {
    try {
      result = (UniformRandomSequenceGenerator *)new UniformRandomSequenceGenerator(arg1,(UniformRandomGenerator const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UniformRandomSequenceGenerator, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UniformRandomSequenceGenerator_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  UniformRandomSequenceGenerator *arg1 = (UniformRandomSequenceGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UniformRandomSequenceGenerator_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UniformRandomSequenceGenerator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UniformRandomSequenceGenerator_nextSequence" "', argument " "1"" of type '" "UniformRandomSequenceGenerator const *""'"); 
  }
  arg1 = reinterpret_cast< UniformRandomSequenceGenerator * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((UniformRandomSequenceGenerator const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UniformRandomSequenceGenerator_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  UniformRandomSequenceGenerator *arg1 = (UniformRandomSequenceGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UniformRandomSequenceGenerator_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UniformRandomSequenceGenerator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UniformRandomSequenceGenerator_dimension" "', argument " "1"" of type '" "UniformRandomSequenceGenerator const *""'"); 
  }
  arg1 = reinterpret_cast< UniformRandomSequenceGenerator * >(argp1);
  {
    try {
      result = ((UniformRandomSequenceGenerator const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_UniformRandomSequenceGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  UniformRandomSequenceGenerator *arg1 = (UniformRandomSequenceGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_UniformRandomSequenceGenerator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UniformRandomSequenceGenerator, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_UniformRandomSequenceGenerator" "', argument " "1"" of type '" "UniformRandomSequenceGenerator *""'"); 
  }
  arg1 = reinterpret_cast< UniformRandomSequenceGenerator * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *UniformRandomSequenceGenerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_UniformRandomSequenceGenerator, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_UniformLowDiscrepancySequenceGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  UniformLowDiscrepancySequenceGenerator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_UniformLowDiscrepancySequenceGenerator",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UniformLowDiscrepancySequenceGenerator" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  {
    try {
      result = (UniformLowDiscrepancySequenceGenerator *)new UniformLowDiscrepancySequenceGenerator(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UniformLowDiscrepancySequenceGenerator, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UniformLowDiscrepancySequenceGenerator_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  UniformLowDiscrepancySequenceGenerator *arg1 = (UniformLowDiscrepancySequenceGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"UniformLowDiscrepancySequenceGenerator_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UniformLowDiscrepancySequenceGenerator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UniformLowDiscrepancySequenceGenerator_nextSequence" "', argument " "1"" of type '" "UniformLowDiscrepancySequenceGenerator const *""'"); 
  }
  arg1 = reinterpret_cast< UniformLowDiscrepancySequenceGenerator * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((UniformLowDiscrepancySequenceGenerator const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_UniformLowDiscrepancySequenceGenerator_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  UniformLowDiscrepancySequenceGenerator *arg1 = (UniformLowDiscrepancySequenceGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"UniformLowDiscrepancySequenceGenerator_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UniformLowDiscrepancySequenceGenerator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UniformLowDiscrepancySequenceGenerator_dimension" "', argument " "1"" of type '" "UniformLowDiscrepancySequenceGenerator const *""'"); 
  }
  arg1 = reinterpret_cast< UniformLowDiscrepancySequenceGenerator * >(argp1);
  {
    try {
      result = ((UniformLowDiscrepancySequenceGenerator const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_UniformLowDiscrepancySequenceGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  UniformLowDiscrepancySequenceGenerator *arg1 = (UniformLowDiscrepancySequenceGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_UniformLowDiscrepancySequenceGenerator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UniformLowDiscrepancySequenceGenerator, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_UniformLowDiscrepancySequenceGenerator" "', argument " "1"" of type '" "UniformLowDiscrepancySequenceGenerator *""'"); 
  }
  arg1 = reinterpret_cast< UniformLowDiscrepancySequenceGenerator * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *UniformLowDiscrepancySequenceGenerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_UniformLowDiscrepancySequenceGenerator, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MoroInvCumulativeLecuyerGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RandomSequenceGenerator< LecuyerUniformRng > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,MoroInverseCumulativeNormal > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MoroInvCumulativeLecuyerGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_RandomSequenceGeneratorT_LecuyerUniformRng_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MoroInvCumulativeLecuyerGaussianRsg" "', argument " "1"" of type '" "RandomSequenceGenerator< LecuyerUniformRng > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MoroInvCumulativeLecuyerGaussianRsg" "', argument " "1"" of type '" "RandomSequenceGenerator< LecuyerUniformRng > const &""'"); 
  }
  arg1 = reinterpret_cast< RandomSequenceGenerator< LecuyerUniformRng > * >(argp1);
  {
    try {
      result = (InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,MoroInverseCumulativeNormal > *)new InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,MoroInverseCumulativeNormal >((RandomSequenceGenerator< LecuyerUniformRng > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_MoroInverseCumulativeNormal_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MoroInvCumulativeLecuyerGaussianRsg_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MoroInvCumulativeLecuyerGaussianRsg_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_MoroInverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoroInvCumulativeLecuyerGaussianRsg_nextSequence" "', argument " "1"" of type '" "InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,MoroInverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,MoroInverseCumulativeNormal > const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MoroInvCumulativeLecuyerGaussianRsg_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MoroInvCumulativeLecuyerGaussianRsg_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_MoroInverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoroInvCumulativeLecuyerGaussianRsg_dimension" "', argument " "1"" of type '" "InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,MoroInverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      result = ((InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,MoroInverseCumulativeNormal > const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MoroInvCumulativeLecuyerGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MoroInvCumulativeLecuyerGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_MoroInverseCumulativeNormal_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MoroInvCumulativeLecuyerGaussianRsg" "', argument " "1"" of type '" "InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,MoroInverseCumulativeNormal > *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MoroInvCumulativeLecuyerGaussianRsg_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_MoroInverseCumulativeNormal_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MoroInvCumulativeKnuthGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RandomSequenceGenerator< KnuthUniformRng > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,MoroInverseCumulativeNormal > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MoroInvCumulativeKnuthGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_RandomSequenceGeneratorT_KnuthUniformRng_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MoroInvCumulativeKnuthGaussianRsg" "', argument " "1"" of type '" "RandomSequenceGenerator< KnuthUniformRng > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MoroInvCumulativeKnuthGaussianRsg" "', argument " "1"" of type '" "RandomSequenceGenerator< KnuthUniformRng > const &""'"); 
  }
  arg1 = reinterpret_cast< RandomSequenceGenerator< KnuthUniformRng > * >(argp1);
  {
    try {
      result = (InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,MoroInverseCumulativeNormal > *)new InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,MoroInverseCumulativeNormal >((RandomSequenceGenerator< KnuthUniformRng > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_MoroInverseCumulativeNormal_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MoroInvCumulativeKnuthGaussianRsg_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MoroInvCumulativeKnuthGaussianRsg_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_MoroInverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoroInvCumulativeKnuthGaussianRsg_nextSequence" "', argument " "1"" of type '" "InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,MoroInverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,MoroInverseCumulativeNormal > const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MoroInvCumulativeKnuthGaussianRsg_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MoroInvCumulativeKnuthGaussianRsg_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_MoroInverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoroInvCumulativeKnuthGaussianRsg_dimension" "', argument " "1"" of type '" "InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,MoroInverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      result = ((InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,MoroInverseCumulativeNormal > const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MoroInvCumulativeKnuthGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MoroInvCumulativeKnuthGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_MoroInverseCumulativeNormal_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MoroInvCumulativeKnuthGaussianRsg" "', argument " "1"" of type '" "InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,MoroInverseCumulativeNormal > *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MoroInvCumulativeKnuthGaussianRsg_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_MoroInverseCumulativeNormal_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MoroInvCumulativeMersenneTwisterGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RandomSequenceGenerator< MersenneTwisterUniformRng > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,MoroInverseCumulativeNormal > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MoroInvCumulativeMersenneTwisterGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MoroInvCumulativeMersenneTwisterGaussianRsg" "', argument " "1"" of type '" "RandomSequenceGenerator< MersenneTwisterUniformRng > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MoroInvCumulativeMersenneTwisterGaussianRsg" "', argument " "1"" of type '" "RandomSequenceGenerator< MersenneTwisterUniformRng > const &""'"); 
  }
  arg1 = reinterpret_cast< RandomSequenceGenerator< MersenneTwisterUniformRng > * >(argp1);
  {
    try {
      result = (InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,MoroInverseCumulativeNormal > *)new InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,MoroInverseCumulativeNormal >((RandomSequenceGenerator< MersenneTwisterUniformRng > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_MoroInverseCumulativeNormal_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MoroInvCumulativeMersenneTwisterGaussianRsg_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MoroInvCumulativeMersenneTwisterGaussianRsg_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_MoroInverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoroInvCumulativeMersenneTwisterGaussianRsg_nextSequence" "', argument " "1"" of type '" "InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,MoroInverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,MoroInverseCumulativeNormal > const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MoroInvCumulativeMersenneTwisterGaussianRsg_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MoroInvCumulativeMersenneTwisterGaussianRsg_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_MoroInverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoroInvCumulativeMersenneTwisterGaussianRsg_dimension" "', argument " "1"" of type '" "InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,MoroInverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      result = ((InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,MoroInverseCumulativeNormal > const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MoroInvCumulativeMersenneTwisterGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MoroInvCumulativeMersenneTwisterGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_MoroInverseCumulativeNormal_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MoroInvCumulativeMersenneTwisterGaussianRsg" "', argument " "1"" of type '" "InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,MoroInverseCumulativeNormal > *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MoroInvCumulativeMersenneTwisterGaussianRsg_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_MoroInverseCumulativeNormal_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MoroInvCumulativeHaltonGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HaltonRsg *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativeRsg< HaltonRsg,MoroInverseCumulativeNormal > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MoroInvCumulativeHaltonGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HaltonRsg,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MoroInvCumulativeHaltonGaussianRsg" "', argument " "1"" of type '" "HaltonRsg const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MoroInvCumulativeHaltonGaussianRsg" "', argument " "1"" of type '" "HaltonRsg const &""'"); 
  }
  arg1 = reinterpret_cast< HaltonRsg * >(argp1);
  {
    try {
      result = (InverseCumulativeRsg< HaltonRsg,MoroInverseCumulativeNormal > *)new InverseCumulativeRsg< HaltonRsg,MoroInverseCumulativeNormal >((HaltonRsg const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeRsgT_HaltonRsg_MoroInverseCumulativeNormal_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MoroInvCumulativeHaltonGaussianRsg_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< HaltonRsg,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< HaltonRsg,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MoroInvCumulativeHaltonGaussianRsg_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_HaltonRsg_MoroInverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoroInvCumulativeHaltonGaussianRsg_nextSequence" "', argument " "1"" of type '" "InverseCumulativeRsg< HaltonRsg,MoroInverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< HaltonRsg,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((InverseCumulativeRsg< HaltonRsg,MoroInverseCumulativeNormal > const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MoroInvCumulativeHaltonGaussianRsg_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< HaltonRsg,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< HaltonRsg,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MoroInvCumulativeHaltonGaussianRsg_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_HaltonRsg_MoroInverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoroInvCumulativeHaltonGaussianRsg_dimension" "', argument " "1"" of type '" "InverseCumulativeRsg< HaltonRsg,MoroInverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< HaltonRsg,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      result = ((InverseCumulativeRsg< HaltonRsg,MoroInverseCumulativeNormal > const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MoroInvCumulativeHaltonGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< HaltonRsg,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< HaltonRsg,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MoroInvCumulativeHaltonGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_HaltonRsg_MoroInverseCumulativeNormal_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MoroInvCumulativeHaltonGaussianRsg" "', argument " "1"" of type '" "InverseCumulativeRsg< HaltonRsg,MoroInverseCumulativeNormal > *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< HaltonRsg,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MoroInvCumulativeHaltonGaussianRsg_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativeRsgT_HaltonRsg_MoroInverseCumulativeNormal_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MoroInvCumulativeSobolGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SobolRsg *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativeRsg< SobolRsg,MoroInverseCumulativeNormal > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MoroInvCumulativeSobolGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SobolRsg,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MoroInvCumulativeSobolGaussianRsg" "', argument " "1"" of type '" "SobolRsg const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MoroInvCumulativeSobolGaussianRsg" "', argument " "1"" of type '" "SobolRsg const &""'"); 
  }
  arg1 = reinterpret_cast< SobolRsg * >(argp1);
  {
    try {
      result = (InverseCumulativeRsg< SobolRsg,MoroInverseCumulativeNormal > *)new InverseCumulativeRsg< SobolRsg,MoroInverseCumulativeNormal >((SobolRsg const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeRsgT_SobolRsg_MoroInverseCumulativeNormal_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MoroInvCumulativeSobolGaussianRsg_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< SobolRsg,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< SobolRsg,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MoroInvCumulativeSobolGaussianRsg_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_SobolRsg_MoroInverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoroInvCumulativeSobolGaussianRsg_nextSequence" "', argument " "1"" of type '" "InverseCumulativeRsg< SobolRsg,MoroInverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< SobolRsg,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((InverseCumulativeRsg< SobolRsg,MoroInverseCumulativeNormal > const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MoroInvCumulativeSobolGaussianRsg_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< SobolRsg,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< SobolRsg,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MoroInvCumulativeSobolGaussianRsg_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_SobolRsg_MoroInverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoroInvCumulativeSobolGaussianRsg_dimension" "', argument " "1"" of type '" "InverseCumulativeRsg< SobolRsg,MoroInverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< SobolRsg,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      result = ((InverseCumulativeRsg< SobolRsg,MoroInverseCumulativeNormal > const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MoroInvCumulativeSobolGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< SobolRsg,MoroInverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< SobolRsg,MoroInverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MoroInvCumulativeSobolGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_SobolRsg_MoroInverseCumulativeNormal_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MoroInvCumulativeSobolGaussianRsg" "', argument " "1"" of type '" "InverseCumulativeRsg< SobolRsg,MoroInverseCumulativeNormal > *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< SobolRsg,MoroInverseCumulativeNormal > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MoroInvCumulativeSobolGaussianRsg_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativeRsgT_SobolRsg_MoroInverseCumulativeNormal_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_InvCumulativeLecuyerGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RandomSequenceGenerator< LecuyerUniformRng > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,InverseCumulativeNormal > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InvCumulativeLecuyerGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_RandomSequenceGeneratorT_LecuyerUniformRng_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvCumulativeLecuyerGaussianRsg" "', argument " "1"" of type '" "RandomSequenceGenerator< LecuyerUniformRng > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvCumulativeLecuyerGaussianRsg" "', argument " "1"" of type '" "RandomSequenceGenerator< LecuyerUniformRng > const &""'"); 
  }
  arg1 = reinterpret_cast< RandomSequenceGenerator< LecuyerUniformRng > * >(argp1);
  {
    try {
      result = (InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,InverseCumulativeNormal > *)new InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,InverseCumulativeNormal >((RandomSequenceGenerator< LecuyerUniformRng > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_InverseCumulativeNormal_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InvCumulativeLecuyerGaussianRsg_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,InverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InvCumulativeLecuyerGaussianRsg_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_InverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InvCumulativeLecuyerGaussianRsg_nextSequence" "', argument " "1"" of type '" "InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,InverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,InverseCumulativeNormal > * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,InverseCumulativeNormal > const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InvCumulativeLecuyerGaussianRsg_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,InverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InvCumulativeLecuyerGaussianRsg_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_InverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InvCumulativeLecuyerGaussianRsg_dimension" "', argument " "1"" of type '" "InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,InverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,InverseCumulativeNormal > * >(argp1);
  {
    try {
      result = ((InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,InverseCumulativeNormal > const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InvCumulativeLecuyerGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,InverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_InvCumulativeLecuyerGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_InverseCumulativeNormal_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InvCumulativeLecuyerGaussianRsg" "', argument " "1"" of type '" "InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,InverseCumulativeNormal > *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,InverseCumulativeNormal > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InvCumulativeLecuyerGaussianRsg_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_InverseCumulativeNormal_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_InvCumulativeKnuthGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RandomSequenceGenerator< KnuthUniformRng > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,InverseCumulativeNormal > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InvCumulativeKnuthGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_RandomSequenceGeneratorT_KnuthUniformRng_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvCumulativeKnuthGaussianRsg" "', argument " "1"" of type '" "RandomSequenceGenerator< KnuthUniformRng > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvCumulativeKnuthGaussianRsg" "', argument " "1"" of type '" "RandomSequenceGenerator< KnuthUniformRng > const &""'"); 
  }
  arg1 = reinterpret_cast< RandomSequenceGenerator< KnuthUniformRng > * >(argp1);
  {
    try {
      result = (InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,InverseCumulativeNormal > *)new InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,InverseCumulativeNormal >((RandomSequenceGenerator< KnuthUniformRng > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_InverseCumulativeNormal_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InvCumulativeKnuthGaussianRsg_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,InverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InvCumulativeKnuthGaussianRsg_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_InverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InvCumulativeKnuthGaussianRsg_nextSequence" "', argument " "1"" of type '" "InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,InverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,InverseCumulativeNormal > * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,InverseCumulativeNormal > const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InvCumulativeKnuthGaussianRsg_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,InverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InvCumulativeKnuthGaussianRsg_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_InverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InvCumulativeKnuthGaussianRsg_dimension" "', argument " "1"" of type '" "InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,InverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,InverseCumulativeNormal > * >(argp1);
  {
    try {
      result = ((InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,InverseCumulativeNormal > const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InvCumulativeKnuthGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,InverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_InvCumulativeKnuthGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_InverseCumulativeNormal_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InvCumulativeKnuthGaussianRsg" "', argument " "1"" of type '" "InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,InverseCumulativeNormal > *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,InverseCumulativeNormal > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InvCumulativeKnuthGaussianRsg_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_InverseCumulativeNormal_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_InvCumulativeMersenneTwisterGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RandomSequenceGenerator< MersenneTwisterUniformRng > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,InverseCumulativeNormal > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InvCumulativeMersenneTwisterGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvCumulativeMersenneTwisterGaussianRsg" "', argument " "1"" of type '" "RandomSequenceGenerator< MersenneTwisterUniformRng > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvCumulativeMersenneTwisterGaussianRsg" "', argument " "1"" of type '" "RandomSequenceGenerator< MersenneTwisterUniformRng > const &""'"); 
  }
  arg1 = reinterpret_cast< RandomSequenceGenerator< MersenneTwisterUniformRng > * >(argp1);
  {
    try {
      result = (InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,InverseCumulativeNormal > *)new InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,InverseCumulativeNormal >((RandomSequenceGenerator< MersenneTwisterUniformRng > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_InverseCumulativeNormal_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InvCumulativeMersenneTwisterGaussianRsg_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,InverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InvCumulativeMersenneTwisterGaussianRsg_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_InverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InvCumulativeMersenneTwisterGaussianRsg_nextSequence" "', argument " "1"" of type '" "InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,InverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,InverseCumulativeNormal > * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,InverseCumulativeNormal > const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InvCumulativeMersenneTwisterGaussianRsg_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,InverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InvCumulativeMersenneTwisterGaussianRsg_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_InverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InvCumulativeMersenneTwisterGaussianRsg_dimension" "', argument " "1"" of type '" "InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,InverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,InverseCumulativeNormal > * >(argp1);
  {
    try {
      result = ((InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,InverseCumulativeNormal > const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InvCumulativeMersenneTwisterGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,InverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_InvCumulativeMersenneTwisterGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_InverseCumulativeNormal_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InvCumulativeMersenneTwisterGaussianRsg" "', argument " "1"" of type '" "InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,InverseCumulativeNormal > *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,InverseCumulativeNormal > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InvCumulativeMersenneTwisterGaussianRsg_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_InverseCumulativeNormal_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_InvCumulativeHaltonGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  HaltonRsg *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativeRsg< HaltonRsg,InverseCumulativeNormal > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InvCumulativeHaltonGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HaltonRsg,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvCumulativeHaltonGaussianRsg" "', argument " "1"" of type '" "HaltonRsg const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvCumulativeHaltonGaussianRsg" "', argument " "1"" of type '" "HaltonRsg const &""'"); 
  }
  arg1 = reinterpret_cast< HaltonRsg * >(argp1);
  {
    try {
      result = (InverseCumulativeRsg< HaltonRsg,InverseCumulativeNormal > *)new InverseCumulativeRsg< HaltonRsg,InverseCumulativeNormal >((HaltonRsg const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeRsgT_HaltonRsg_InverseCumulativeNormal_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InvCumulativeHaltonGaussianRsg_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< HaltonRsg,InverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< HaltonRsg,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InvCumulativeHaltonGaussianRsg_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_HaltonRsg_InverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InvCumulativeHaltonGaussianRsg_nextSequence" "', argument " "1"" of type '" "InverseCumulativeRsg< HaltonRsg,InverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< HaltonRsg,InverseCumulativeNormal > * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((InverseCumulativeRsg< HaltonRsg,InverseCumulativeNormal > const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InvCumulativeHaltonGaussianRsg_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< HaltonRsg,InverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< HaltonRsg,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InvCumulativeHaltonGaussianRsg_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_HaltonRsg_InverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InvCumulativeHaltonGaussianRsg_dimension" "', argument " "1"" of type '" "InverseCumulativeRsg< HaltonRsg,InverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< HaltonRsg,InverseCumulativeNormal > * >(argp1);
  {
    try {
      result = ((InverseCumulativeRsg< HaltonRsg,InverseCumulativeNormal > const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InvCumulativeHaltonGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< HaltonRsg,InverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< HaltonRsg,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_InvCumulativeHaltonGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_HaltonRsg_InverseCumulativeNormal_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InvCumulativeHaltonGaussianRsg" "', argument " "1"" of type '" "InverseCumulativeRsg< HaltonRsg,InverseCumulativeNormal > *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< HaltonRsg,InverseCumulativeNormal > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InvCumulativeHaltonGaussianRsg_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativeRsgT_HaltonRsg_InverseCumulativeNormal_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_InvCumulativeSobolGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SobolRsg *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  InverseCumulativeRsg< SobolRsg,InverseCumulativeNormal > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_InvCumulativeSobolGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SobolRsg,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InvCumulativeSobolGaussianRsg" "', argument " "1"" of type '" "SobolRsg const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_InvCumulativeSobolGaussianRsg" "', argument " "1"" of type '" "SobolRsg const &""'"); 
  }
  arg1 = reinterpret_cast< SobolRsg * >(argp1);
  {
    try {
      result = (InverseCumulativeRsg< SobolRsg,InverseCumulativeNormal > *)new InverseCumulativeRsg< SobolRsg,InverseCumulativeNormal >((SobolRsg const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InverseCumulativeRsgT_SobolRsg_InverseCumulativeNormal_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InvCumulativeSobolGaussianRsg_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< SobolRsg,InverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< SobolRsg,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"InvCumulativeSobolGaussianRsg_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_SobolRsg_InverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InvCumulativeSobolGaussianRsg_nextSequence" "', argument " "1"" of type '" "InverseCumulativeRsg< SobolRsg,InverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< SobolRsg,InverseCumulativeNormal > * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((InverseCumulativeRsg< SobolRsg,InverseCumulativeNormal > const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InvCumulativeSobolGaussianRsg_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< SobolRsg,InverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< SobolRsg,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"InvCumulativeSobolGaussianRsg_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_SobolRsg_InverseCumulativeNormal_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InvCumulativeSobolGaussianRsg_dimension" "', argument " "1"" of type '" "InverseCumulativeRsg< SobolRsg,InverseCumulativeNormal > const *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< SobolRsg,InverseCumulativeNormal > * >(argp1);
  {
    try {
      result = ((InverseCumulativeRsg< SobolRsg,InverseCumulativeNormal > const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InvCumulativeSobolGaussianRsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  InverseCumulativeRsg< SobolRsg,InverseCumulativeNormal > *arg1 = (InverseCumulativeRsg< SobolRsg,InverseCumulativeNormal > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_InvCumulativeSobolGaussianRsg",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InverseCumulativeRsgT_SobolRsg_InverseCumulativeNormal_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InvCumulativeSobolGaussianRsg" "', argument " "1"" of type '" "InverseCumulativeRsg< SobolRsg,InverseCumulativeNormal > *""'"); 
  }
  arg1 = reinterpret_cast< InverseCumulativeRsg< SobolRsg,InverseCumulativeNormal > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InvCumulativeSobolGaussianRsg_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_InverseCumulativeRsgT_SobolRsg_InverseCumulativeNormal_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GaussianRandomSequenceGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  UniformRandomSequenceGenerator *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  GaussianRandomSequenceGenerator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussianRandomSequenceGenerator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_UniformRandomSequenceGenerator,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GaussianRandomSequenceGenerator" "', argument " "1"" of type '" "UniformRandomSequenceGenerator const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianRandomSequenceGenerator" "', argument " "1"" of type '" "UniformRandomSequenceGenerator const &""'"); 
  }
  arg1 = reinterpret_cast< UniformRandomSequenceGenerator * >(argp1);
  {
    try {
      result = (GaussianRandomSequenceGenerator *)new GaussianRandomSequenceGenerator((UniformRandomSequenceGenerator const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussianRandomSequenceGenerator, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GaussianRandomSequenceGenerator_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianRandomSequenceGenerator *arg1 = (GaussianRandomSequenceGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussianRandomSequenceGenerator_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianRandomSequenceGenerator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussianRandomSequenceGenerator_nextSequence" "', argument " "1"" of type '" "GaussianRandomSequenceGenerator const *""'"); 
  }
  arg1 = reinterpret_cast< GaussianRandomSequenceGenerator * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((GaussianRandomSequenceGenerator const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GaussianRandomSequenceGenerator_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianRandomSequenceGenerator *arg1 = (GaussianRandomSequenceGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussianRandomSequenceGenerator_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianRandomSequenceGenerator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussianRandomSequenceGenerator_dimension" "', argument " "1"" of type '" "GaussianRandomSequenceGenerator const *""'"); 
  }
  arg1 = reinterpret_cast< GaussianRandomSequenceGenerator * >(argp1);
  {
    try {
      result = ((GaussianRandomSequenceGenerator const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GaussianRandomSequenceGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianRandomSequenceGenerator *arg1 = (GaussianRandomSequenceGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GaussianRandomSequenceGenerator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianRandomSequenceGenerator, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GaussianRandomSequenceGenerator" "', argument " "1"" of type '" "GaussianRandomSequenceGenerator *""'"); 
  }
  arg1 = reinterpret_cast< GaussianRandomSequenceGenerator * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GaussianRandomSequenceGenerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GaussianRandomSequenceGenerator, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GaussianLowDiscrepancySequenceGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  UniformLowDiscrepancySequenceGenerator *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  GaussianLowDiscrepancySequenceGenerator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussianLowDiscrepancySequenceGenerator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_UniformLowDiscrepancySequenceGenerator,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GaussianLowDiscrepancySequenceGenerator" "', argument " "1"" of type '" "UniformLowDiscrepancySequenceGenerator const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianLowDiscrepancySequenceGenerator" "', argument " "1"" of type '" "UniformLowDiscrepancySequenceGenerator const &""'"); 
  }
  arg1 = reinterpret_cast< UniformLowDiscrepancySequenceGenerator * >(argp1);
  {
    try {
      result = (GaussianLowDiscrepancySequenceGenerator *)new GaussianLowDiscrepancySequenceGenerator((UniformLowDiscrepancySequenceGenerator const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussianLowDiscrepancySequenceGenerator, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GaussianLowDiscrepancySequenceGenerator_nextSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianLowDiscrepancySequenceGenerator *arg1 = (GaussianLowDiscrepancySequenceGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Sample< std::vector< Real,std::allocator< Real > > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussianLowDiscrepancySequenceGenerator_nextSequence",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianLowDiscrepancySequenceGenerator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussianLowDiscrepancySequenceGenerator_nextSequence" "', argument " "1"" of type '" "GaussianLowDiscrepancySequenceGenerator const *""'"); 
  }
  arg1 = reinterpret_cast< GaussianLowDiscrepancySequenceGenerator * >(argp1);
  {
    try {
      result = (Sample< std::vector< Real,std::allocator< Real > > > *) &((GaussianLowDiscrepancySequenceGenerator const *)arg1)->nextSequence();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GaussianLowDiscrepancySequenceGenerator_dimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianLowDiscrepancySequenceGenerator *arg1 = (GaussianLowDiscrepancySequenceGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussianLowDiscrepancySequenceGenerator_dimension",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianLowDiscrepancySequenceGenerator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussianLowDiscrepancySequenceGenerator_dimension" "', argument " "1"" of type '" "GaussianLowDiscrepancySequenceGenerator const *""'"); 
  }
  arg1 = reinterpret_cast< GaussianLowDiscrepancySequenceGenerator * >(argp1);
  {
    try {
      result = ((GaussianLowDiscrepancySequenceGenerator const *)arg1)->dimension();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GaussianLowDiscrepancySequenceGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianLowDiscrepancySequenceGenerator *arg1 = (GaussianLowDiscrepancySequenceGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GaussianLowDiscrepancySequenceGenerator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianLowDiscrepancySequenceGenerator, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GaussianLowDiscrepancySequenceGenerator" "', argument " "1"" of type '" "GaussianLowDiscrepancySequenceGenerator *""'"); 
  }
  arg1 = reinterpret_cast< GaussianLowDiscrepancySequenceGenerator * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GaussianLowDiscrepancySequenceGenerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GaussianLowDiscrepancySequenceGenerator, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_getCovariance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Matrix *arg2 = 0 ;
  Array temp1 ;
  Matrix temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"getCovariance",2,2,&obj0,&obj1)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (PyTuple_Check(obj1) || PyList_Check(obj1)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj1) ?
      PyTuple_Size(obj1) :
        PyList_Size(obj1));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj1,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp2 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj1,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp2[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp2[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Matrix,1);
    }
  }
  {
    try {
      result = getCovariance((Array const &)*arg1,(Matrix const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Path___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Path *arg1 = (Path *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Path___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Path, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Path___len__" "', argument " "1"" of type '" "Path const *""'"); 
  }
  arg1 = reinterpret_cast< Path * >(argp1);
  {
    try {
      result = ((Path const *)arg1)->length();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Path_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Path *arg1 = (Path *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Path_value",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Path, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Path_value" "', argument " "1"" of type '" "Path const *""'"); 
  }
  arg1 = reinterpret_cast< Path * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Path_value" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (Real)((Path const *)arg1)->value(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Path_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Path *arg1 = (Path *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Path_front",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Path, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Path_front" "', argument " "1"" of type '" "Path const *""'"); 
  }
  arg1 = reinterpret_cast< Path * >(argp1);
  {
    try {
      result = (Real)((Path const *)arg1)->front();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Path_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Path *arg1 = (Path *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Path_back",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Path, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Path_back" "', argument " "1"" of type '" "Path const *""'"); 
  }
  arg1 = reinterpret_cast< Path * >(argp1);
  {
    try {
      result = (Real)((Path const *)arg1)->back();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Path_time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Path *arg1 = (Path *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Time result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Path_time",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Path, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Path_time" "', argument " "1"" of type '" "Path const *""'"); 
  }
  arg1 = reinterpret_cast< Path * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Path_time" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (Time)((Path const *)arg1)->time(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Path___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Path *arg1 = (Path *) 0 ;
  Integer arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Path___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Path, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Path___getitem__" "', argument " "1"" of type '" "Path *""'"); 
  }
  arg1 = reinterpret_cast< Path * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Path___getitem__" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  {
    try {
      result = (Real)Path___getitem__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Path(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Path *arg1 = (Path *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Path",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Path, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Path" "', argument " "1"" of type '" "Path *""'"); 
  }
  arg1 = reinterpret_cast< Path * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Path_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Path, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_SamplePath_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Sample< Path > *arg1 = (Sample< Path > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Path > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SamplePath_value",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampleT_Path_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SamplePath_value" "', argument " "1"" of type '" "Sample< Path > *""'"); 
  }
  arg1 = reinterpret_cast< Sample< Path > * >(argp1);
  {
    try {
      result = Sample_Sl_Path_Sg__value(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Path(static_cast< const Path& >(result))), SWIGTYPE_p_Path, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SamplePath_weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Sample< Path > *arg1 = (Sample< Path > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SamplePath_weight",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampleT_Path_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SamplePath_weight" "', argument " "1"" of type '" "Sample< Path > *""'"); 
  }
  arg1 = reinterpret_cast< Sample< Path > * >(argp1);
  {
    try {
      result = (Real)Sample_Sl_Path_Sg__weight(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SamplePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Sample< Path > *arg1 = (Sample< Path > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SamplePath",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampleT_Path_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SamplePath" "', argument " "1"" of type '" "Sample< Path > *""'"); 
  }
  arg1 = reinterpret_cast< Sample< Path > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SamplePath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SampleT_Path_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GaussianPathGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  StochasticProcess1DPtr *arg1 = 0 ;
  Time arg2 ;
  Size arg3 ;
  GaussianRandomSequenceGenerator *arg4 = 0 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  GaussianPathGenerator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussianPathGenerator",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_StochasticProcess1DPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GaussianPathGenerator" "', argument " "1"" of type '" "StochasticProcess1DPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianPathGenerator" "', argument " "1"" of type '" "StochasticProcess1DPtr const &""'"); 
  }
  arg1 = reinterpret_cast< StochasticProcess1DPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GaussianPathGenerator" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GaussianPathGenerator" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GaussianRandomSequenceGenerator,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_GaussianPathGenerator" "', argument " "4"" of type '" "GaussianRandomSequenceGenerator const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianPathGenerator" "', argument " "4"" of type '" "GaussianRandomSequenceGenerator const &""'"); 
  }
  arg4 = reinterpret_cast< GaussianRandomSequenceGenerator * >(argp4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GaussianPathGenerator" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (GaussianPathGenerator *)new_GaussianPathGenerator((StochasticProcess1DPtr const &)*arg1,arg2,arg3,(GaussianRandomSequenceGenerator const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussianPathGenerator, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GaussianPathGenerator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianPathGenerator *arg1 = (GaussianPathGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< Path > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussianPathGenerator_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianPathGenerator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussianPathGenerator_next" "', argument " "1"" of type '" "GaussianPathGenerator const *""'"); 
  }
  arg1 = reinterpret_cast< GaussianPathGenerator * >(argp1);
  {
    try {
      result = ((GaussianPathGenerator const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Path >(static_cast< const Sample< Path >& >(result))), SWIGTYPE_p_SampleT_Path_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GaussianPathGenerator_antithetic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianPathGenerator *arg1 = (GaussianPathGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< Path > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussianPathGenerator_antithetic",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianPathGenerator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussianPathGenerator_antithetic" "', argument " "1"" of type '" "GaussianPathGenerator const *""'"); 
  }
  arg1 = reinterpret_cast< GaussianPathGenerator * >(argp1);
  {
    try {
      result = ((GaussianPathGenerator const *)arg1)->antithetic();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Path >(static_cast< const Sample< Path >& >(result))), SWIGTYPE_p_SampleT_Path_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GaussianPathGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianPathGenerator *arg1 = (GaussianPathGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GaussianPathGenerator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianPathGenerator, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GaussianPathGenerator" "', argument " "1"" of type '" "GaussianPathGenerator *""'"); 
  }
  arg1 = reinterpret_cast< GaussianPathGenerator * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GaussianPathGenerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GaussianPathGenerator, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GaussianSobolPathGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  StochasticProcess1DPtr *arg1 = 0 ;
  Time arg2 ;
  Size arg3 ;
  GaussianLowDiscrepancySequenceGenerator *arg4 = 0 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  GaussianSobolPathGenerator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussianSobolPathGenerator",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_StochasticProcess1DPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GaussianSobolPathGenerator" "', argument " "1"" of type '" "StochasticProcess1DPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSobolPathGenerator" "', argument " "1"" of type '" "StochasticProcess1DPtr const &""'"); 
  }
  arg1 = reinterpret_cast< StochasticProcess1DPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GaussianSobolPathGenerator" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_size_t(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GaussianSobolPathGenerator" "', argument " "3"" of type '" "Size""'");
  } 
  arg3 = static_cast< Size >(val3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GaussianLowDiscrepancySequenceGenerator,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_GaussianSobolPathGenerator" "', argument " "4"" of type '" "GaussianLowDiscrepancySequenceGenerator const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianSobolPathGenerator" "', argument " "4"" of type '" "GaussianLowDiscrepancySequenceGenerator const &""'"); 
  }
  arg4 = reinterpret_cast< GaussianLowDiscrepancySequenceGenerator * >(argp4);
  ecode5 = SWIG_AsVal_bool(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GaussianSobolPathGenerator" "', argument " "5"" of type '" "bool""'");
  } 
  arg5 = static_cast< bool >(val5);
  {
    try {
      result = (GaussianSobolPathGenerator *)new_GaussianSobolPathGenerator((StochasticProcess1DPtr const &)*arg1,arg2,arg3,(GaussianLowDiscrepancySequenceGenerator const &)*arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussianSobolPathGenerator, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GaussianSobolPathGenerator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianSobolPathGenerator *arg1 = (GaussianSobolPathGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< Path > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussianSobolPathGenerator_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianSobolPathGenerator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussianSobolPathGenerator_next" "', argument " "1"" of type '" "GaussianSobolPathGenerator const *""'"); 
  }
  arg1 = reinterpret_cast< GaussianSobolPathGenerator * >(argp1);
  {
    try {
      result = ((GaussianSobolPathGenerator const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Path >(static_cast< const Sample< Path >& >(result))), SWIGTYPE_p_SampleT_Path_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GaussianSobolPathGenerator_antithetic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianSobolPathGenerator *arg1 = (GaussianSobolPathGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< Path > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussianSobolPathGenerator_antithetic",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianSobolPathGenerator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussianSobolPathGenerator_antithetic" "', argument " "1"" of type '" "GaussianSobolPathGenerator const *""'"); 
  }
  arg1 = reinterpret_cast< GaussianSobolPathGenerator * >(argp1);
  {
    try {
      result = ((GaussianSobolPathGenerator const *)arg1)->antithetic();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< Path >(static_cast< const Sample< Path >& >(result))), SWIGTYPE_p_SampleT_Path_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GaussianSobolPathGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianSobolPathGenerator *arg1 = (GaussianSobolPathGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GaussianSobolPathGenerator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianSobolPathGenerator, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GaussianSobolPathGenerator" "', argument " "1"" of type '" "GaussianSobolPathGenerator *""'"); 
  }
  arg1 = reinterpret_cast< GaussianSobolPathGenerator * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GaussianSobolPathGenerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GaussianSobolPathGenerator, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_MultiPath___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MultiPath *arg1 = (MultiPath *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultiPath___len__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MultiPath, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiPath___len__" "', argument " "1"" of type '" "MultiPath const *""'"); 
  }
  arg1 = reinterpret_cast< MultiPath * >(argp1);
  {
    try {
      result = ((MultiPath const *)arg1)->pathSize();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultiPath_assetNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MultiPath *arg1 = (MultiPath *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultiPath_assetNumber",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MultiPath, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiPath_assetNumber" "', argument " "1"" of type '" "MultiPath const *""'"); 
  }
  arg1 = reinterpret_cast< MultiPath * >(argp1);
  {
    try {
      result = ((MultiPath const *)arg1)->assetNumber();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultiPath_at(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MultiPath *arg1 = (MultiPath *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Path *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultiPath_at",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MultiPath, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiPath_at" "', argument " "1"" of type '" "MultiPath *""'"); 
  }
  arg1 = reinterpret_cast< MultiPath * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MultiPath_at" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (Path *) &(arg1)->at(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Path, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultiPath___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MultiPath *arg1 = (MultiPath *) 0 ;
  Integer arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Path *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultiPath___getitem__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MultiPath, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiPath___getitem__" "', argument " "1"" of type '" "MultiPath *""'"); 
  }
  arg1 = reinterpret_cast< MultiPath * >(argp1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MultiPath___getitem__" "', argument " "2"" of type '" "Integer""'");
  } 
  arg2 = static_cast< Integer >(val2);
  {
    try {
      result = (Path *) &MultiPath___getitem__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Path, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MultiPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MultiPath *arg1 = (MultiPath *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MultiPath",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MultiPath, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MultiPath" "', argument " "1"" of type '" "MultiPath *""'"); 
  }
  arg1 = reinterpret_cast< MultiPath * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MultiPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MultiPath, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_SampleMultiPath_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Sample< MultiPath > *arg1 = (Sample< MultiPath > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< MultiPath > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampleMultiPath_value",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampleT_MultiPath_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampleMultiPath_value" "', argument " "1"" of type '" "Sample< MultiPath > *""'"); 
  }
  arg1 = reinterpret_cast< Sample< MultiPath > * >(argp1);
  {
    try {
      result = Sample_Sl_MultiPath_Sg__value(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new MultiPath(static_cast< const MultiPath& >(result))), SWIGTYPE_p_MultiPath, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SampleMultiPath_weight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Sample< MultiPath > *arg1 = (Sample< MultiPath > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampleMultiPath_weight",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampleT_MultiPath_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampleMultiPath_weight" "', argument " "1"" of type '" "Sample< MultiPath > *""'"); 
  }
  arg1 = reinterpret_cast< Sample< MultiPath > * >(argp1);
  {
    try {
      result = (Real)Sample_Sl_MultiPath_Sg__weight(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SampleMultiPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Sample< MultiPath > *arg1 = (Sample< MultiPath > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SampleMultiPath",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampleT_MultiPath_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SampleMultiPath" "', argument " "1"" of type '" "Sample< MultiPath > *""'"); 
  }
  arg1 = reinterpret_cast< Sample< MultiPath > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SampleMultiPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SampleT_MultiPath_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GaussianMultiPathGenerator__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StochasticProcess > *arg1 = 0 ;
  std::vector< Time,std::allocator< Time > > *arg2 = 0 ;
  GaussianRandomSequenceGenerator *arg3 = 0 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  GaussianMultiPathGenerator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussianMultiPathGenerator",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GaussianMultiPathGenerator" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianMultiPathGenerator" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StochasticProcess > * >(argp1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GaussianMultiPathGenerator" "', argument " "2"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianMultiPathGenerator" "', argument " "2"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GaussianRandomSequenceGenerator,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GaussianMultiPathGenerator" "', argument " "3"" of type '" "GaussianRandomSequenceGenerator const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianMultiPathGenerator" "', argument " "3"" of type '" "GaussianRandomSequenceGenerator const &""'"); 
  }
  arg3 = reinterpret_cast< GaussianRandomSequenceGenerator * >(argp3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GaussianMultiPathGenerator" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (GaussianMultiPathGenerator *)new_GaussianMultiPathGenerator__SWIG_0((boost::shared_ptr< StochasticProcess > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(GaussianRandomSequenceGenerator const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussianMultiPathGenerator, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GaussianMultiPathGenerator__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StochasticProcess > *arg1 = 0 ;
  std::vector< Time,std::allocator< Time > > *arg2 = 0 ;
  GaussianRandomSequenceGenerator *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  GaussianMultiPathGenerator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GaussianMultiPathGenerator",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GaussianMultiPathGenerator" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianMultiPathGenerator" "', argument " "1"" of type '" "boost::shared_ptr< StochasticProcess > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StochasticProcess > * >(argp1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GaussianMultiPathGenerator" "', argument " "2"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianMultiPathGenerator" "', argument " "2"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GaussianRandomSequenceGenerator,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GaussianMultiPathGenerator" "', argument " "3"" of type '" "GaussianRandomSequenceGenerator const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GaussianMultiPathGenerator" "', argument " "3"" of type '" "GaussianRandomSequenceGenerator const &""'"); 
  }
  arg3 = reinterpret_cast< GaussianRandomSequenceGenerator * >(argp3);
  {
    try {
      result = (GaussianMultiPathGenerator *)new_GaussianMultiPathGenerator__SWIG_0((boost::shared_ptr< StochasticProcess > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(GaussianRandomSequenceGenerator const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GaussianMultiPathGenerator, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_GaussianMultiPathGenerator(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GaussianRandomSequenceGenerator, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_GaussianMultiPathGenerator__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_StochasticProcess_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GaussianRandomSequenceGenerator, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_GaussianMultiPathGenerator__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GaussianMultiPathGenerator'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    GaussianMultiPathGenerator::GaussianMultiPathGenerator(boost::shared_ptr< StochasticProcess > const &,std::vector< Time,std::allocator< Time > > const &,GaussianRandomSequenceGenerator const &,bool)\n"
    "    GaussianMultiPathGenerator::GaussianMultiPathGenerator(boost::shared_ptr< StochasticProcess > const &,std::vector< Time,std::allocator< Time > > const &,GaussianRandomSequenceGenerator const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_GaussianMultiPathGenerator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianMultiPathGenerator *arg1 = (GaussianMultiPathGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< MultiPath > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussianMultiPathGenerator_next",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianMultiPathGenerator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussianMultiPathGenerator_next" "', argument " "1"" of type '" "GaussianMultiPathGenerator const *""'"); 
  }
  arg1 = reinterpret_cast< GaussianMultiPathGenerator * >(argp1);
  {
    try {
      result = ((GaussianMultiPathGenerator const *)arg1)->next();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< MultiPath >(static_cast< const Sample< MultiPath >& >(result))), SWIGTYPE_p_SampleT_MultiPath_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GaussianMultiPathGenerator_antithetic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianMultiPathGenerator *arg1 = (GaussianMultiPathGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Sample< MultiPath > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GaussianMultiPathGenerator_antithetic",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianMultiPathGenerator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GaussianMultiPathGenerator_antithetic" "', argument " "1"" of type '" "GaussianMultiPathGenerator const *""'"); 
  }
  arg1 = reinterpret_cast< GaussianMultiPathGenerator * >(argp1);
  {
    try {
      result = ((GaussianMultiPathGenerator const *)arg1)->antithetic();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Sample< MultiPath >(static_cast< const Sample< MultiPath >& >(result))), SWIGTYPE_p_SampleT_MultiPath_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GaussianMultiPathGenerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GaussianMultiPathGenerator *arg1 = (GaussianMultiPathGenerator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GaussianMultiPathGenerator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GaussianMultiPathGenerator, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GaussianMultiPathGenerator" "', argument " "1"" of type '" "GaussianMultiPathGenerator *""'"); 
  }
  arg1 = reinterpret_cast< GaussianMultiPathGenerator * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GaussianMultiPathGenerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GaussianMultiPathGenerator, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BrownianBridge__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  BrownianBridge *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BrownianBridge",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BrownianBridge" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  {
    try {
      result = (BrownianBridge *)new BrownianBridge(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BrownianBridge, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BrownianBridge__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Time,std::allocator< Time > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  BrownianBridge *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BrownianBridge",1,1,&obj0)) SWIG_fail;
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrownianBridge" "', argument " "1"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrownianBridge" "', argument " "1"" of type '" "std::vector< Time,std::allocator< Time > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    try {
      result = (BrownianBridge *)new BrownianBridge((std::vector< Time,std::allocator< Time > > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BrownianBridge, 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_BrownianBridge__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TimeGrid *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BrownianBridge *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BrownianBridge",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_TimeGrid,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrownianBridge" "', argument " "1"" of type '" "TimeGrid const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrownianBridge" "', argument " "1"" of type '" "TimeGrid const &""'"); 
  }
  arg1 = reinterpret_cast< TimeGrid * >(argp1);
  {
    try {
      result = (BrownianBridge *)new BrownianBridge((TimeGrid const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BrownianBridge, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BrownianBridge(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_TimeGrid, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_BrownianBridge__SWIG_2(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    {
      _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
    }
    if (_v) {
      return _wrap_new_BrownianBridge__SWIG_0(self, args);
    }
  }
  if (argc == 1) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< double,std::allocator< double > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_BrownianBridge__SWIG_1(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BrownianBridge'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BrownianBridge::BrownianBridge(Size)\n"
    "    BrownianBridge::BrownianBridge(std::vector< Time,std::allocator< Time > > const &)\n"
    "    BrownianBridge::BrownianBridge(TimeGrid const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BrownianBridge_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BrownianBridge *arg1 = (BrownianBridge *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BrownianBridge_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BrownianBridge, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrownianBridge_size" "', argument " "1"" of type '" "BrownianBridge const *""'"); 
  }
  arg1 = reinterpret_cast< BrownianBridge * >(argp1);
  {
    try {
      result = ((BrownianBridge const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BrownianBridge_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BrownianBridge *arg1 = (BrownianBridge *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BrownianBridge_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BrownianBridge, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrownianBridge_times" "', argument " "1"" of type '" "BrownianBridge const *""'"); 
  }
  arg1 = reinterpret_cast< BrownianBridge * >(argp1);
  {
    try {
      result = ((BrownianBridge const *)arg1)->times();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BrownianBridge_leftWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BrownianBridge *arg1 = (BrownianBridge *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BrownianBridge_leftWeight",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BrownianBridge, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrownianBridge_leftWeight" "', argument " "1"" of type '" "BrownianBridge const *""'"); 
  }
  arg1 = reinterpret_cast< BrownianBridge * >(argp1);
  {
    try {
      result = ((BrownianBridge const *)arg1)->leftWeight();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BrownianBridge_rightWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BrownianBridge *arg1 = (BrownianBridge *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BrownianBridge_rightWeight",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BrownianBridge, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrownianBridge_rightWeight" "', argument " "1"" of type '" "BrownianBridge const *""'"); 
  }
  arg1 = reinterpret_cast< BrownianBridge * >(argp1);
  {
    try {
      result = ((BrownianBridge const *)arg1)->rightWeight();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BrownianBridge_stdDeviation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BrownianBridge *arg1 = (BrownianBridge *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BrownianBridge_stdDeviation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BrownianBridge, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrownianBridge_stdDeviation" "', argument " "1"" of type '" "BrownianBridge const *""'"); 
  }
  arg1 = reinterpret_cast< BrownianBridge * >(argp1);
  {
    try {
      result = ((BrownianBridge const *)arg1)->stdDeviation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BrownianBridge_transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BrownianBridge *arg1 = (BrownianBridge *) 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BrownianBridge_transform",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BrownianBridge, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrownianBridge_transform" "', argument " "1"" of type '" "BrownianBridge *""'"); 
  }
  arg1 = reinterpret_cast< BrownianBridge * >(argp1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrownianBridge_transform" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BrownianBridge_transform" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      result = BrownianBridge_transform(arg1,(std::vector< double,std::allocator< double > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_BrownianBridge_bridgeIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BrownianBridge *arg1 = (BrownianBridge *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< unsigned int,std::allocator< unsigned int > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BrownianBridge_bridgeIndex",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BrownianBridge, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrownianBridge_bridgeIndex" "', argument " "1"" of type '" "BrownianBridge const *""'"); 
  }
  arg1 = reinterpret_cast< BrownianBridge * >(argp1);
  {
    try {
      result = BrownianBridge_bridgeIndex((BrownianBridge const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< unsigned int,std::allocator< unsigned int > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BrownianBridge_leftIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BrownianBridge *arg1 = (BrownianBridge *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< unsigned int,std::allocator< unsigned int > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BrownianBridge_leftIndex",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BrownianBridge, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrownianBridge_leftIndex" "', argument " "1"" of type '" "BrownianBridge const *""'"); 
  }
  arg1 = reinterpret_cast< BrownianBridge * >(argp1);
  {
    try {
      result = BrownianBridge_leftIndex((BrownianBridge const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< unsigned int,std::allocator< unsigned int > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BrownianBridge_rightIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BrownianBridge *arg1 = (BrownianBridge *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< unsigned int,std::allocator< unsigned int > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BrownianBridge_rightIndex",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BrownianBridge, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrownianBridge_rightIndex" "', argument " "1"" of type '" "BrownianBridge const *""'"); 
  }
  arg1 = reinterpret_cast< BrownianBridge * >(argp1);
  {
    try {
      result = BrownianBridge_rightIndex((BrownianBridge const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< unsigned int,std::allocator< unsigned int > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BrownianBridge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BrownianBridge *arg1 = (BrownianBridge *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BrownianBridge",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BrownianBridge, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BrownianBridge" "', argument " "1"" of type '" "BrownianBridge *""'"); 
  }
  arg1 = reinterpret_cast< BrownianBridge * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BrownianBridge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BrownianBridge, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_BoundaryCondition___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultBoundaryCondition > *arg1 = (boost::shared_ptr< DefaultBoundaryCondition > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  DefaultBoundaryCondition *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoundaryCondition___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultBoundaryCondition_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoundaryCondition___deref__" "', argument " "1"" of type '" "boost::shared_ptr< DefaultBoundaryCondition > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultBoundaryCondition > * >(argp1);
  {
    try {
      result = (DefaultBoundaryCondition *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DefaultBoundaryCondition, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoundaryCondition___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultBoundaryCondition > *arg1 = (boost::shared_ptr< DefaultBoundaryCondition > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoundaryCondition___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultBoundaryCondition_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoundaryCondition___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< DefaultBoundaryCondition > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultBoundaryCondition > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_DefaultBoundaryCondition_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BoundaryCondition___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultBoundaryCondition > *arg1 = (boost::shared_ptr< DefaultBoundaryCondition > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BoundaryCondition___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultBoundaryCondition_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoundaryCondition___bool__" "', argument " "1"" of type '" "boost::shared_ptr< DefaultBoundaryCondition > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultBoundaryCondition > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_DefaultBoundaryCondition_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BoundaryCondition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultBoundaryCondition > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BoundaryCondition",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< DefaultBoundaryCondition > *)new boost::shared_ptr< DefaultBoundaryCondition >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_DefaultBoundaryCondition_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BoundaryCondition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< DefaultBoundaryCondition > *arg1 = (boost::shared_ptr< DefaultBoundaryCondition > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BoundaryCondition",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_DefaultBoundaryCondition_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BoundaryCondition" "', argument " "1"" of type '" "boost::shared_ptr< DefaultBoundaryCondition > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< DefaultBoundaryCondition > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BoundaryCondition_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_DefaultBoundaryCondition_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_NeumannBC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  DefaultBoundaryCondition::Side arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  NeumannBCPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NeumannBC",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NeumannBC" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NeumannBC" "', argument " "2"" of type '" "DefaultBoundaryCondition::Side""'");
  } 
  arg2 = static_cast< DefaultBoundaryCondition::Side >(val2);
  {
    try {
      result = (NeumannBCPtr *)new_NeumannBCPtr(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NeumannBCPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_NeumannBC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NeumannBCPtr *arg1 = (NeumannBCPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NeumannBC",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NeumannBCPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NeumannBC" "', argument " "1"" of type '" "NeumannBCPtr *""'"); 
  }
  arg1 = reinterpret_cast< NeumannBCPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NeumannBC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_NeumannBCPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DirichletBC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  DefaultBoundaryCondition::Side arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DirichletBCPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DirichletBC",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DirichletBC" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_int(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirichletBC" "', argument " "2"" of type '" "DefaultBoundaryCondition::Side""'");
  } 
  arg2 = static_cast< DefaultBoundaryCondition::Side >(val2);
  {
    try {
      result = (DirichletBCPtr *)new_DirichletBCPtr(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DirichletBCPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DirichletBC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DirichletBCPtr *arg1 = (DirichletBCPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DirichletBC",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DirichletBCPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DirichletBC" "', argument " "1"" of type '" "DirichletBCPtr *""'"); 
  }
  arg1 = reinterpret_cast< DirichletBCPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DirichletBC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DirichletBCPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_TridiagonalOperator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array *arg2 = 0 ;
  Array *arg3 = 0 ;
  Array temp1 ;
  Array temp2 ;
  Array temp3 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  TridiagonalOperator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_TridiagonalOperator",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    if (extractArray(obj2,&temp3)) {
      arg3 = &temp3;
    } else {
      SWIG_ConvertPtr(obj2,(void **) &arg3,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (TridiagonalOperator *)new TridiagonalOperator((Array const &)*arg1,(Array const &)*arg2,(Array const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TridiagonalOperator, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TridiagonalOperator_solveFor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TridiagonalOperator *arg1 = (TridiagonalOperator *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TridiagonalOperator_solveFor",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TridiagonalOperator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TridiagonalOperator_solveFor" "', argument " "1"" of type '" "TridiagonalOperator const *""'"); 
  }
  arg1 = reinterpret_cast< TridiagonalOperator * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = ((TridiagonalOperator const *)arg1)->solveFor((Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TridiagonalOperator_applyTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TridiagonalOperator *arg1 = (TridiagonalOperator *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Array result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TridiagonalOperator_applyTo",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TridiagonalOperator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TridiagonalOperator_applyTo" "', argument " "1"" of type '" "TridiagonalOperator const *""'"); 
  }
  arg1 = reinterpret_cast< TridiagonalOperator * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = ((TridiagonalOperator const *)arg1)->applyTo((Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Array(static_cast< const Array& >(result))), SWIGTYPE_p_Array, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TridiagonalOperator_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TridiagonalOperator *arg1 = (TridiagonalOperator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TridiagonalOperator_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TridiagonalOperator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TridiagonalOperator_size" "', argument " "1"" of type '" "TridiagonalOperator const *""'"); 
  }
  arg1 = reinterpret_cast< TridiagonalOperator * >(argp1);
  {
    try {
      result = ((TridiagonalOperator const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TridiagonalOperator_setFirstRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TridiagonalOperator *arg1 = (TridiagonalOperator *) 0 ;
  Real arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"TridiagonalOperator_setFirstRow",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TridiagonalOperator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TridiagonalOperator_setFirstRow" "', argument " "1"" of type '" "TridiagonalOperator *""'"); 
  }
  arg1 = reinterpret_cast< TridiagonalOperator * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TridiagonalOperator_setFirstRow" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TridiagonalOperator_setFirstRow" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      (arg1)->setFirstRow(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TridiagonalOperator_setMidRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TridiagonalOperator *arg1 = (TridiagonalOperator *) 0 ;
  Size arg2 ;
  Real arg3 ;
  Real arg4 ;
  Real arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"TridiagonalOperator_setMidRow",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TridiagonalOperator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TridiagonalOperator_setMidRow" "', argument " "1"" of type '" "TridiagonalOperator *""'"); 
  }
  arg1 = reinterpret_cast< TridiagonalOperator * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TridiagonalOperator_setMidRow" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TridiagonalOperator_setMidRow" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TridiagonalOperator_setMidRow" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_double(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TridiagonalOperator_setMidRow" "', argument " "5"" of type '" "Real""'");
  } 
  arg5 = static_cast< Real >(val5);
  {
    try {
      (arg1)->setMidRow(arg2,arg3,arg4,arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TridiagonalOperator_setMidRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TridiagonalOperator *arg1 = (TridiagonalOperator *) 0 ;
  Real arg2 ;
  Real arg3 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"TridiagonalOperator_setMidRows",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TridiagonalOperator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TridiagonalOperator_setMidRows" "', argument " "1"" of type '" "TridiagonalOperator *""'"); 
  }
  arg1 = reinterpret_cast< TridiagonalOperator * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TridiagonalOperator_setMidRows" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TridiagonalOperator_setMidRows" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TridiagonalOperator_setMidRows" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      (arg1)->setMidRows(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TridiagonalOperator_setLastRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TridiagonalOperator *arg1 = (TridiagonalOperator *) 0 ;
  Real arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"TridiagonalOperator_setLastRow",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TridiagonalOperator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TridiagonalOperator_setLastRow" "', argument " "1"" of type '" "TridiagonalOperator *""'"); 
  }
  arg1 = reinterpret_cast< TridiagonalOperator * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TridiagonalOperator_setLastRow" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TridiagonalOperator_setLastRow" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      (arg1)->setLastRow(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TridiagonalOperator_identity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< TridiagonalOperator > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TridiagonalOperator_identity",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TridiagonalOperator_identity" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  {
    try {
      result = TridiagonalOperator::identity(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TridiagonalOperator(static_cast< const TridiagonalOperator& >(result))), SWIGTYPE_p_TridiagonalOperator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TridiagonalOperator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TridiagonalOperator *arg1 = (TridiagonalOperator *) 0 ;
  TridiagonalOperator *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< TridiagonalOperator > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TridiagonalOperator___add__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TridiagonalOperator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TridiagonalOperator___add__" "', argument " "1"" of type '" "TridiagonalOperator *""'"); 
  }
  arg1 = reinterpret_cast< TridiagonalOperator * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TridiagonalOperator,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TridiagonalOperator___add__" "', argument " "2"" of type '" "TridiagonalOperator const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TridiagonalOperator___add__" "', argument " "2"" of type '" "TridiagonalOperator const &""'"); 
  }
  arg2 = reinterpret_cast< TridiagonalOperator * >(argp2);
  {
    try {
      result = TridiagonalOperator___add__(arg1,(TridiagonalOperator const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TridiagonalOperator(static_cast< const TridiagonalOperator& >(result))), SWIGTYPE_p_TridiagonalOperator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TridiagonalOperator___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TridiagonalOperator *arg1 = (TridiagonalOperator *) 0 ;
  TridiagonalOperator *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< TridiagonalOperator > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TridiagonalOperator___sub__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TridiagonalOperator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TridiagonalOperator___sub__" "', argument " "1"" of type '" "TridiagonalOperator *""'"); 
  }
  arg1 = reinterpret_cast< TridiagonalOperator * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TridiagonalOperator,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TridiagonalOperator___sub__" "', argument " "2"" of type '" "TridiagonalOperator const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TridiagonalOperator___sub__" "', argument " "2"" of type '" "TridiagonalOperator const &""'"); 
  }
  arg2 = reinterpret_cast< TridiagonalOperator * >(argp2);
  {
    try {
      result = TridiagonalOperator___sub__(arg1,(TridiagonalOperator const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TridiagonalOperator(static_cast< const TridiagonalOperator& >(result))), SWIGTYPE_p_TridiagonalOperator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TridiagonalOperator___mul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TridiagonalOperator *arg1 = (TridiagonalOperator *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< TridiagonalOperator > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TridiagonalOperator___mul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TridiagonalOperator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TridiagonalOperator___mul__" "', argument " "1"" of type '" "TridiagonalOperator *""'"); 
  }
  arg1 = reinterpret_cast< TridiagonalOperator * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TridiagonalOperator___mul__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = TridiagonalOperator___mul__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TridiagonalOperator(static_cast< const TridiagonalOperator& >(result))), SWIGTYPE_p_TridiagonalOperator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TridiagonalOperator___div__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TridiagonalOperator *arg1 = (TridiagonalOperator *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< TridiagonalOperator > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TridiagonalOperator___div__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TridiagonalOperator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TridiagonalOperator___div__" "', argument " "1"" of type '" "TridiagonalOperator *""'"); 
  }
  arg1 = reinterpret_cast< TridiagonalOperator * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TridiagonalOperator___div__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = TridiagonalOperator___div__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TridiagonalOperator(static_cast< const TridiagonalOperator& >(result))), SWIGTYPE_p_TridiagonalOperator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TridiagonalOperator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TridiagonalOperator *arg1 = (TridiagonalOperator *) 0 ;
  TridiagonalOperator *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< TridiagonalOperator > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TridiagonalOperator___iadd__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TridiagonalOperator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TridiagonalOperator___iadd__" "', argument " "1"" of type '" "TridiagonalOperator *""'"); 
  }
  arg1 = reinterpret_cast< TridiagonalOperator * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TridiagonalOperator,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TridiagonalOperator___iadd__" "', argument " "2"" of type '" "TridiagonalOperator const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TridiagonalOperator___iadd__" "', argument " "2"" of type '" "TridiagonalOperator const &""'"); 
  }
  arg2 = reinterpret_cast< TridiagonalOperator * >(argp2);
  {
    try {
      result = TridiagonalOperator___iadd__(arg1,(TridiagonalOperator const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TridiagonalOperator(static_cast< const TridiagonalOperator& >(result))), SWIGTYPE_p_TridiagonalOperator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TridiagonalOperator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TridiagonalOperator *arg1 = (TridiagonalOperator *) 0 ;
  TridiagonalOperator *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< TridiagonalOperator > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TridiagonalOperator___isub__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TridiagonalOperator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TridiagonalOperator___isub__" "', argument " "1"" of type '" "TridiagonalOperator *""'"); 
  }
  arg1 = reinterpret_cast< TridiagonalOperator * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TridiagonalOperator,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TridiagonalOperator___isub__" "', argument " "2"" of type '" "TridiagonalOperator const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TridiagonalOperator___isub__" "', argument " "2"" of type '" "TridiagonalOperator const &""'"); 
  }
  arg2 = reinterpret_cast< TridiagonalOperator * >(argp2);
  {
    try {
      result = TridiagonalOperator___isub__(arg1,(TridiagonalOperator const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TridiagonalOperator(static_cast< const TridiagonalOperator& >(result))), SWIGTYPE_p_TridiagonalOperator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TridiagonalOperator___imul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TridiagonalOperator *arg1 = (TridiagonalOperator *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< TridiagonalOperator > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TridiagonalOperator___imul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TridiagonalOperator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TridiagonalOperator___imul__" "', argument " "1"" of type '" "TridiagonalOperator *""'"); 
  }
  arg1 = reinterpret_cast< TridiagonalOperator * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TridiagonalOperator___imul__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = TridiagonalOperator___imul__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TridiagonalOperator(static_cast< const TridiagonalOperator& >(result))), SWIGTYPE_p_TridiagonalOperator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TridiagonalOperator___rmul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TridiagonalOperator *arg1 = (TridiagonalOperator *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< TridiagonalOperator > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TridiagonalOperator___rmul__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TridiagonalOperator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TridiagonalOperator___rmul__" "', argument " "1"" of type '" "TridiagonalOperator *""'"); 
  }
  arg1 = reinterpret_cast< TridiagonalOperator * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TridiagonalOperator___rmul__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = TridiagonalOperator___rmul__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TridiagonalOperator(static_cast< const TridiagonalOperator& >(result))), SWIGTYPE_p_TridiagonalOperator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TridiagonalOperator___idiv__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TridiagonalOperator *arg1 = (TridiagonalOperator *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwigValueWrapper< TridiagonalOperator > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"TridiagonalOperator___idiv__",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TridiagonalOperator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TridiagonalOperator___idiv__" "', argument " "1"" of type '" "TridiagonalOperator *""'"); 
  }
  arg1 = reinterpret_cast< TridiagonalOperator * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TridiagonalOperator___idiv__" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = TridiagonalOperator___idiv__(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TridiagonalOperator(static_cast< const TridiagonalOperator& >(result))), SWIGTYPE_p_TridiagonalOperator, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_TridiagonalOperator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  TridiagonalOperator *arg1 = (TridiagonalOperator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_TridiagonalOperator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TridiagonalOperator, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TridiagonalOperator" "', argument " "1"" of type '" "TridiagonalOperator *""'"); 
  }
  arg1 = reinterpret_cast< TridiagonalOperator * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TridiagonalOperator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_TridiagonalOperator, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DPlus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Real arg2 ;
  size_t val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DPlus *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DPlus",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DPlus" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DPlus" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (DPlus *)new DPlus(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DPlus, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DPlus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DPlus *arg1 = (DPlus *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DPlus",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DPlus, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DPlus" "', argument " "1"" of type '" "DPlus *""'"); 
  }
  arg1 = reinterpret_cast< DPlus * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DPlus_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DPlus, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DMinus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Real arg2 ;
  size_t val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DMinus *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DMinus",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DMinus" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DMinus" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (DMinus *)new DMinus(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DMinus, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DMinus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DMinus *arg1 = (DMinus *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DMinus",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DMinus, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DMinus" "', argument " "1"" of type '" "DMinus *""'"); 
  }
  arg1 = reinterpret_cast< DMinus * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DMinus_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DMinus, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DZero(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Real arg2 ;
  size_t val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DZero *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DZero",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DZero" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DZero" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (DZero *)new DZero(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DZero, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DZero(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DZero *arg1 = (DZero *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DZero",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DZero, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DZero" "', argument " "1"" of type '" "DZero *""'"); 
  }
  arg1 = reinterpret_cast< DZero * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DZero_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DZero, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_DPlusDMinus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  Real arg2 ;
  size_t val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  DPlusDMinus *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_DPlusDMinus",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DPlusDMinus" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DPlusDMinus" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (DPlusDMinus *)new DPlusDMinus(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DPlusDMinus, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DPlusDMinus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  DPlusDMinus *arg1 = (DPlusDMinus *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_DPlusDMinus",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DPlusDMinus, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DPlusDMinus" "', argument " "1"" of type '" "DPlusDMinus *""'"); 
  }
  arg1 = reinterpret_cast< DPlusDMinus * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DPlusDMinus_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_DPlusDMinus, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Discount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Discount *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Discount",0,0)) SWIG_fail;
  {
    try {
      result = (Discount *)new Discount();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Discount, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Discount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Discount *arg1 = (Discount *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Discount",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Discount, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Discount" "', argument " "1"" of type '" "Discount *""'"); 
  }
  arg1 = reinterpret_cast< Discount * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Discount_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Discount, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ZeroYield(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroYield *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroYield",0,0)) SWIG_fail;
  {
    try {
      result = (ZeroYield *)new ZeroYield();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroYield, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ZeroYield(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroYield *arg1 = (ZeroYield *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ZeroYield",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroYield, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ZeroYield" "', argument " "1"" of type '" "ZeroYield *""'"); 
  }
  arg1 = reinterpret_cast< ZeroYield * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ZeroYield_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ZeroYield, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ForwardRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardRate *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ForwardRate",0,0)) SWIG_fail;
  {
    try {
      result = (ForwardRate *)new ForwardRate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ForwardRate, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ForwardRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardRate *arg1 = (ForwardRate *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ForwardRate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardRate, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ForwardRate" "', argument " "1"" of type '" "ForwardRate *""'"); 
  }
  arg1 = reinterpret_cast< ForwardRate * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ForwardRate_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ForwardRate, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PiecewiseFlatForward__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg5 = 0 ;
  Real arg6 ;
  BackwardFlat *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PiecewiseFlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseFlatForward",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseFlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseFlatForward" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseFlatForward" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg5 = ptr;
  }
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PiecewiseFlatForward" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_BackwardFlat,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_PiecewiseFlatForward" "', argument " "7"" of type '" "BackwardFlat const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "7"" of type '" "BackwardFlat const &""'"); 
  }
  arg7 = reinterpret_cast< BackwardFlat * >(argp7);
  {
    try {
      result = (PiecewiseFlatForwardPtr *)new_PiecewiseFlatForwardPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4,(std::vector< Date,std::allocator< Date > > const &)*arg5,arg6,(BackwardFlat const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseFlatForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseFlatForward__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg5 = 0 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PiecewiseFlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseFlatForward",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseFlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseFlatForward" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseFlatForward" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg5 = ptr;
  }
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PiecewiseFlatForward" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (PiecewiseFlatForwardPtr *)new_PiecewiseFlatForwardPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4,(std::vector< Date,std::allocator< Date > > const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseFlatForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseFlatForward__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PiecewiseFlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseFlatForward",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseFlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseFlatForward" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseFlatForward" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    try {
      result = (PiecewiseFlatForwardPtr *)new_PiecewiseFlatForwardPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4,(std::vector< Date,std::allocator< Date > > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseFlatForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseFlatForward__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PiecewiseFlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseFlatForward",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseFlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseFlatForward" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      result = (PiecewiseFlatForwardPtr *)new_PiecewiseFlatForwardPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseFlatForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseFlatForward__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PiecewiseFlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseFlatForward",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseFlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (PiecewiseFlatForwardPtr *)new_PiecewiseFlatForwardPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseFlatForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseFlatForward__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  Real arg7 ;
  BackwardFlat *arg8 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  double val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PiecewiseFlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseFlatForward",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseFlatForward" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseFlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseFlatForward" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PiecewiseFlatForward" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_PiecewiseFlatForward" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_BackwardFlat,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_PiecewiseFlatForward" "', argument " "8"" of type '" "BackwardFlat const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "8"" of type '" "BackwardFlat const &""'"); 
  }
  arg8 = reinterpret_cast< BackwardFlat * >(argp8);
  {
    try {
      result = (PiecewiseFlatForwardPtr *)new_PiecewiseFlatForwardPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,arg7,(BackwardFlat const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseFlatForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseFlatForward__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  Real arg7 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PiecewiseFlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseFlatForward",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseFlatForward" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseFlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseFlatForward" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PiecewiseFlatForward" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_PiecewiseFlatForward" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (PiecewiseFlatForwardPtr *)new_PiecewiseFlatForwardPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseFlatForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseFlatForward__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PiecewiseFlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseFlatForward",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseFlatForward" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseFlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseFlatForward" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PiecewiseFlatForward" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    try {
      result = (PiecewiseFlatForwardPtr *)new_PiecewiseFlatForwardPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseFlatForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseFlatForward__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PiecewiseFlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseFlatForward",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseFlatForward" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseFlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseFlatForward" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    try {
      result = (PiecewiseFlatForwardPtr *)new_PiecewiseFlatForwardPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseFlatForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseFlatForward__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PiecewiseFlatForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseFlatForward",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseFlatForward" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseFlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseFlatForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    try {
      result = (PiecewiseFlatForwardPtr *)new_PiecewiseFlatForwardPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseFlatForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseFlatForward(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[9] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 8) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_PiecewiseFlatForward__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_PiecewiseFlatForward__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_PiecewiseFlatForward__SWIG_9(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Date,std::allocator< Date > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_PiecewiseFlatForward__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_PiecewiseFlatForward__SWIG_8(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Date,std::allocator< Date > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_PiecewiseFlatForward__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_PiecewiseFlatForward__SWIG_7(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Date,std::allocator< Date > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_BackwardFlat, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_PiecewiseFlatForward__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_PiecewiseFlatForward__SWIG_6(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_BackwardFlat, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_PiecewiseFlatForward__SWIG_5(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_PiecewiseFlatForward'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    PiecewiseFlatForwardPtr::PiecewiseFlatForwardPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real,BackwardFlat const &)\n"
    "    PiecewiseFlatForwardPtr::PiecewiseFlatForwardPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real)\n"
    "    PiecewiseFlatForwardPtr::PiecewiseFlatForwardPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &)\n"
    "    PiecewiseFlatForwardPtr::PiecewiseFlatForwardPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)\n"
    "    PiecewiseFlatForwardPtr::PiecewiseFlatForwardPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &)\n"
    "    PiecewiseFlatForwardPtr::PiecewiseFlatForwardPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real,BackwardFlat const &)\n"
    "    PiecewiseFlatForwardPtr::PiecewiseFlatForwardPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real)\n"
    "    PiecewiseFlatForwardPtr::PiecewiseFlatForwardPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &)\n"
    "    PiecewiseFlatForwardPtr::PiecewiseFlatForwardPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)\n"
    "    PiecewiseFlatForwardPtr::PiecewiseFlatForwardPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_PiecewiseFlatForward_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseFlatForwardPtr *arg1 = (PiecewiseFlatForwardPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseFlatForward_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseFlatForwardPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseFlatForward_dates" "', argument " "1"" of type '" "PiecewiseFlatForwardPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseFlatForwardPtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &PiecewiseFlatForwardPtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseFlatForward_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseFlatForwardPtr *arg1 = (PiecewiseFlatForwardPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseFlatForward_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseFlatForwardPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseFlatForward_times" "', argument " "1"" of type '" "PiecewiseFlatForwardPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseFlatForwardPtr * >(argp1);
  {
    try {
      result = (std::vector< Time,std::allocator< Time > > *) &PiecewiseFlatForwardPtr_times(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseFlatForward_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseFlatForwardPtr *arg1 = (PiecewiseFlatForwardPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseFlatForward_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseFlatForwardPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseFlatForward_nodes" "', argument " "1"" of type '" "PiecewiseFlatForwardPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseFlatForwardPtr * >(argp1);
  {
    try {
      result = PiecewiseFlatForwardPtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PiecewiseFlatForward(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseFlatForwardPtr *arg1 = (PiecewiseFlatForwardPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PiecewiseFlatForward",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseFlatForwardPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PiecewiseFlatForward" "', argument " "1"" of type '" "PiecewiseFlatForwardPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseFlatForwardPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PiecewiseFlatForward_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_PiecewiseFlatForwardPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PiecewiseLinearForward__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg5 = 0 ;
  Real arg6 ;
  Linear *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PiecewiseLinearForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearForward",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseLinearForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLinearForward" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLinearForward" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg5 = ptr;
  }
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PiecewiseLinearForward" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Linear,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_PiecewiseLinearForward" "', argument " "7"" of type '" "Linear const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "7"" of type '" "Linear const &""'"); 
  }
  arg7 = reinterpret_cast< Linear * >(argp7);
  {
    try {
      result = (PiecewiseLinearForwardPtr *)new_PiecewiseLinearForwardPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4,(std::vector< Date,std::allocator< Date > > const &)*arg5,arg6,(Linear const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearForward__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg5 = 0 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PiecewiseLinearForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearForward",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseLinearForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLinearForward" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLinearForward" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg5 = ptr;
  }
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PiecewiseLinearForward" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (PiecewiseLinearForwardPtr *)new_PiecewiseLinearForwardPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4,(std::vector< Date,std::allocator< Date > > const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearForward__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PiecewiseLinearForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearForward",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseLinearForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLinearForward" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLinearForward" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    try {
      result = (PiecewiseLinearForwardPtr *)new_PiecewiseLinearForwardPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4,(std::vector< Date,std::allocator< Date > > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearForward__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PiecewiseLinearForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearForward",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseLinearForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLinearForward" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      result = (PiecewiseLinearForwardPtr *)new_PiecewiseLinearForwardPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearForward__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PiecewiseLinearForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearForward",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseLinearForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (PiecewiseLinearForwardPtr *)new_PiecewiseLinearForwardPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearForward__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  Real arg7 ;
  Linear *arg8 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  double val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PiecewiseLinearForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearForward",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseLinearForward" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLinearForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLinearForward" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PiecewiseLinearForward" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_PiecewiseLinearForward" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Linear,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_PiecewiseLinearForward" "', argument " "8"" of type '" "Linear const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "8"" of type '" "Linear const &""'"); 
  }
  arg8 = reinterpret_cast< Linear * >(argp8);
  {
    try {
      result = (PiecewiseLinearForwardPtr *)new_PiecewiseLinearForwardPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,arg7,(Linear const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearForward__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  Real arg7 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PiecewiseLinearForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearForward",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseLinearForward" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLinearForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLinearForward" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PiecewiseLinearForward" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_PiecewiseLinearForward" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (PiecewiseLinearForwardPtr *)new_PiecewiseLinearForwardPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearForward__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PiecewiseLinearForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearForward",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseLinearForward" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLinearForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLinearForward" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PiecewiseLinearForward" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    try {
      result = (PiecewiseLinearForwardPtr *)new_PiecewiseLinearForwardPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearForward__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PiecewiseLinearForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearForward",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseLinearForward" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLinearForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLinearForward" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    try {
      result = (PiecewiseLinearForwardPtr *)new_PiecewiseLinearForwardPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearForward__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PiecewiseLinearForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearForward",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseLinearForward" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLinearForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearForward" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    try {
      result = (PiecewiseLinearForwardPtr *)new_PiecewiseLinearForwardPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearForwardPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearForward(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[9] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 8) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_PiecewiseLinearForward__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_PiecewiseLinearForward__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_PiecewiseLinearForward__SWIG_9(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Date,std::allocator< Date > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_PiecewiseLinearForward__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_PiecewiseLinearForward__SWIG_8(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Date,std::allocator< Date > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_PiecewiseLinearForward__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_PiecewiseLinearForward__SWIG_7(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Date,std::allocator< Date > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Linear, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_PiecewiseLinearForward__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_PiecewiseLinearForward__SWIG_6(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Linear, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_PiecewiseLinearForward__SWIG_5(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_PiecewiseLinearForward'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    PiecewiseLinearForwardPtr::PiecewiseLinearForwardPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real,Linear const &)\n"
    "    PiecewiseLinearForwardPtr::PiecewiseLinearForwardPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real)\n"
    "    PiecewiseLinearForwardPtr::PiecewiseLinearForwardPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &)\n"
    "    PiecewiseLinearForwardPtr::PiecewiseLinearForwardPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)\n"
    "    PiecewiseLinearForwardPtr::PiecewiseLinearForwardPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &)\n"
    "    PiecewiseLinearForwardPtr::PiecewiseLinearForwardPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real,Linear const &)\n"
    "    PiecewiseLinearForwardPtr::PiecewiseLinearForwardPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real)\n"
    "    PiecewiseLinearForwardPtr::PiecewiseLinearForwardPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &)\n"
    "    PiecewiseLinearForwardPtr::PiecewiseLinearForwardPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)\n"
    "    PiecewiseLinearForwardPtr::PiecewiseLinearForwardPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_PiecewiseLinearForward_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseLinearForwardPtr *arg1 = (PiecewiseLinearForwardPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseLinearForward_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseLinearForwardPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseLinearForward_dates" "', argument " "1"" of type '" "PiecewiseLinearForwardPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseLinearForwardPtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &PiecewiseLinearForwardPtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseLinearForward_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseLinearForwardPtr *arg1 = (PiecewiseLinearForwardPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseLinearForward_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseLinearForwardPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseLinearForward_times" "', argument " "1"" of type '" "PiecewiseLinearForwardPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseLinearForwardPtr * >(argp1);
  {
    try {
      result = (std::vector< Time,std::allocator< Time > > *) &PiecewiseLinearForwardPtr_times(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseLinearForward_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseLinearForwardPtr *arg1 = (PiecewiseLinearForwardPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseLinearForward_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseLinearForwardPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseLinearForward_nodes" "', argument " "1"" of type '" "PiecewiseLinearForwardPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseLinearForwardPtr * >(argp1);
  {
    try {
      result = PiecewiseLinearForwardPtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PiecewiseLinearForward(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseLinearForwardPtr *arg1 = (PiecewiseLinearForwardPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PiecewiseLinearForward",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseLinearForwardPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PiecewiseLinearForward" "', argument " "1"" of type '" "PiecewiseLinearForwardPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseLinearForwardPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PiecewiseLinearForward_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_PiecewiseLinearForwardPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PiecewiseLinearZero__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg5 = 0 ;
  Real arg6 ;
  Linear *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PiecewiseLinearZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearZero",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseLinearZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLinearZero" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLinearZero" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg5 = ptr;
  }
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PiecewiseLinearZero" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Linear,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_PiecewiseLinearZero" "', argument " "7"" of type '" "Linear const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "7"" of type '" "Linear const &""'"); 
  }
  arg7 = reinterpret_cast< Linear * >(argp7);
  {
    try {
      result = (PiecewiseLinearZeroPtr *)new_PiecewiseLinearZeroPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4,(std::vector< Date,std::allocator< Date > > const &)*arg5,arg6,(Linear const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearZero__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg5 = 0 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PiecewiseLinearZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearZero",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseLinearZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLinearZero" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLinearZero" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg5 = ptr;
  }
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PiecewiseLinearZero" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (PiecewiseLinearZeroPtr *)new_PiecewiseLinearZeroPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4,(std::vector< Date,std::allocator< Date > > const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearZero__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PiecewiseLinearZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearZero",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseLinearZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLinearZero" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLinearZero" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    try {
      result = (PiecewiseLinearZeroPtr *)new_PiecewiseLinearZeroPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4,(std::vector< Date,std::allocator< Date > > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearZero__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PiecewiseLinearZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearZero",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseLinearZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLinearZero" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      result = (PiecewiseLinearZeroPtr *)new_PiecewiseLinearZeroPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearZero__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PiecewiseLinearZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearZero",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseLinearZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (PiecewiseLinearZeroPtr *)new_PiecewiseLinearZeroPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearZero__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  Real arg7 ;
  Linear *arg8 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  double val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PiecewiseLinearZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearZero",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseLinearZero" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLinearZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLinearZero" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PiecewiseLinearZero" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_PiecewiseLinearZero" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Linear,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_PiecewiseLinearZero" "', argument " "8"" of type '" "Linear const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "8"" of type '" "Linear const &""'"); 
  }
  arg8 = reinterpret_cast< Linear * >(argp8);
  {
    try {
      result = (PiecewiseLinearZeroPtr *)new_PiecewiseLinearZeroPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,arg7,(Linear const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearZero__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  Real arg7 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PiecewiseLinearZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearZero",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseLinearZero" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLinearZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLinearZero" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PiecewiseLinearZero" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_PiecewiseLinearZero" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (PiecewiseLinearZeroPtr *)new_PiecewiseLinearZeroPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearZero__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PiecewiseLinearZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearZero",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseLinearZero" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLinearZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLinearZero" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PiecewiseLinearZero" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    try {
      result = (PiecewiseLinearZeroPtr *)new_PiecewiseLinearZeroPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearZero__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PiecewiseLinearZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearZero",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseLinearZero" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLinearZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLinearZero" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    try {
      result = (PiecewiseLinearZeroPtr *)new_PiecewiseLinearZeroPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearZero__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PiecewiseLinearZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLinearZero",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseLinearZero" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLinearZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLinearZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    try {
      result = (PiecewiseLinearZeroPtr *)new_PiecewiseLinearZeroPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLinearZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLinearZero(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[9] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 8) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_PiecewiseLinearZero__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_PiecewiseLinearZero__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_PiecewiseLinearZero__SWIG_9(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Date,std::allocator< Date > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_PiecewiseLinearZero__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_PiecewiseLinearZero__SWIG_8(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Date,std::allocator< Date > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_PiecewiseLinearZero__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_PiecewiseLinearZero__SWIG_7(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Date,std::allocator< Date > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Linear, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_PiecewiseLinearZero__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_PiecewiseLinearZero__SWIG_6(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Linear, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_PiecewiseLinearZero__SWIG_5(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_PiecewiseLinearZero'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    PiecewiseLinearZeroPtr::PiecewiseLinearZeroPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real,Linear const &)\n"
    "    PiecewiseLinearZeroPtr::PiecewiseLinearZeroPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real)\n"
    "    PiecewiseLinearZeroPtr::PiecewiseLinearZeroPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &)\n"
    "    PiecewiseLinearZeroPtr::PiecewiseLinearZeroPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)\n"
    "    PiecewiseLinearZeroPtr::PiecewiseLinearZeroPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &)\n"
    "    PiecewiseLinearZeroPtr::PiecewiseLinearZeroPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real,Linear const &)\n"
    "    PiecewiseLinearZeroPtr::PiecewiseLinearZeroPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real)\n"
    "    PiecewiseLinearZeroPtr::PiecewiseLinearZeroPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &)\n"
    "    PiecewiseLinearZeroPtr::PiecewiseLinearZeroPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)\n"
    "    PiecewiseLinearZeroPtr::PiecewiseLinearZeroPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_PiecewiseLinearZero_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseLinearZeroPtr *arg1 = (PiecewiseLinearZeroPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseLinearZero_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseLinearZeroPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseLinearZero_dates" "', argument " "1"" of type '" "PiecewiseLinearZeroPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseLinearZeroPtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &PiecewiseLinearZeroPtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseLinearZero_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseLinearZeroPtr *arg1 = (PiecewiseLinearZeroPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseLinearZero_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseLinearZeroPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseLinearZero_times" "', argument " "1"" of type '" "PiecewiseLinearZeroPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseLinearZeroPtr * >(argp1);
  {
    try {
      result = (std::vector< Time,std::allocator< Time > > *) &PiecewiseLinearZeroPtr_times(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseLinearZero_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseLinearZeroPtr *arg1 = (PiecewiseLinearZeroPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseLinearZero_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseLinearZeroPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseLinearZero_nodes" "', argument " "1"" of type '" "PiecewiseLinearZeroPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseLinearZeroPtr * >(argp1);
  {
    try {
      result = PiecewiseLinearZeroPtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PiecewiseLinearZero(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseLinearZeroPtr *arg1 = (PiecewiseLinearZeroPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PiecewiseLinearZero",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseLinearZeroPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PiecewiseLinearZero" "', argument " "1"" of type '" "PiecewiseLinearZeroPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseLinearZeroPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PiecewiseLinearZero_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_PiecewiseLinearZeroPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PiecewiseCubicZero__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg5 = 0 ;
  Real arg6 ;
  Cubic *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PiecewiseCubicZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseCubicZero",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseCubicZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseCubicZero" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseCubicZero" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg5 = ptr;
  }
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PiecewiseCubicZero" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Cubic,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_PiecewiseCubicZero" "', argument " "7"" of type '" "Cubic const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "7"" of type '" "Cubic const &""'"); 
  }
  arg7 = reinterpret_cast< Cubic * >(argp7);
  {
    try {
      result = (PiecewiseCubicZeroPtr *)new_PiecewiseCubicZeroPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4,(std::vector< Date,std::allocator< Date > > const &)*arg5,arg6,(Cubic const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseCubicZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseCubicZero__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg5 = 0 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PiecewiseCubicZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseCubicZero",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseCubicZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseCubicZero" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseCubicZero" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg5 = ptr;
  }
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PiecewiseCubicZero" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (PiecewiseCubicZeroPtr *)new_PiecewiseCubicZeroPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4,(std::vector< Date,std::allocator< Date > > const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseCubicZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseCubicZero__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PiecewiseCubicZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseCubicZero",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseCubicZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseCubicZero" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseCubicZero" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    try {
      result = (PiecewiseCubicZeroPtr *)new_PiecewiseCubicZeroPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4,(std::vector< Date,std::allocator< Date > > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseCubicZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseCubicZero__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PiecewiseCubicZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseCubicZero",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseCubicZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseCubicZero" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      result = (PiecewiseCubicZeroPtr *)new_PiecewiseCubicZeroPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseCubicZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseCubicZero__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PiecewiseCubicZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseCubicZero",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseCubicZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (PiecewiseCubicZeroPtr *)new_PiecewiseCubicZeroPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseCubicZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseCubicZero__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  Real arg7 ;
  Cubic *arg8 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  double val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PiecewiseCubicZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseCubicZero",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseCubicZero" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseCubicZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseCubicZero" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PiecewiseCubicZero" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_PiecewiseCubicZero" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_Cubic,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_PiecewiseCubicZero" "', argument " "8"" of type '" "Cubic const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "8"" of type '" "Cubic const &""'"); 
  }
  arg8 = reinterpret_cast< Cubic * >(argp8);
  {
    try {
      result = (PiecewiseCubicZeroPtr *)new_PiecewiseCubicZeroPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,arg7,(Cubic const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseCubicZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseCubicZero__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  Real arg7 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PiecewiseCubicZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseCubicZero",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseCubicZero" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseCubicZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseCubicZero" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PiecewiseCubicZero" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_PiecewiseCubicZero" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (PiecewiseCubicZeroPtr *)new_PiecewiseCubicZeroPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseCubicZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseCubicZero__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PiecewiseCubicZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseCubicZero",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseCubicZero" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseCubicZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseCubicZero" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PiecewiseCubicZero" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    try {
      result = (PiecewiseCubicZeroPtr *)new_PiecewiseCubicZeroPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseCubicZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseCubicZero__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PiecewiseCubicZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseCubicZero",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseCubicZero" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseCubicZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseCubicZero" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    try {
      result = (PiecewiseCubicZeroPtr *)new_PiecewiseCubicZeroPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseCubicZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseCubicZero__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PiecewiseCubicZeroPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseCubicZero",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseCubicZero" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseCubicZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseCubicZero" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    try {
      result = (PiecewiseCubicZeroPtr *)new_PiecewiseCubicZeroPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseCubicZeroPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseCubicZero(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[9] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 8) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_PiecewiseCubicZero__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_PiecewiseCubicZero__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_PiecewiseCubicZero__SWIG_9(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Date,std::allocator< Date > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_PiecewiseCubicZero__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_PiecewiseCubicZero__SWIG_8(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Date,std::allocator< Date > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_PiecewiseCubicZero__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_PiecewiseCubicZero__SWIG_7(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Date,std::allocator< Date > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Cubic, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_PiecewiseCubicZero__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_PiecewiseCubicZero__SWIG_6(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_Cubic, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_PiecewiseCubicZero__SWIG_5(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_PiecewiseCubicZero'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    PiecewiseCubicZeroPtr::PiecewiseCubicZeroPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real,Cubic const &)\n"
    "    PiecewiseCubicZeroPtr::PiecewiseCubicZeroPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real)\n"
    "    PiecewiseCubicZeroPtr::PiecewiseCubicZeroPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &)\n"
    "    PiecewiseCubicZeroPtr::PiecewiseCubicZeroPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)\n"
    "    PiecewiseCubicZeroPtr::PiecewiseCubicZeroPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &)\n"
    "    PiecewiseCubicZeroPtr::PiecewiseCubicZeroPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real,Cubic const &)\n"
    "    PiecewiseCubicZeroPtr::PiecewiseCubicZeroPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real)\n"
    "    PiecewiseCubicZeroPtr::PiecewiseCubicZeroPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &)\n"
    "    PiecewiseCubicZeroPtr::PiecewiseCubicZeroPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)\n"
    "    PiecewiseCubicZeroPtr::PiecewiseCubicZeroPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_PiecewiseCubicZero_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseCubicZeroPtr *arg1 = (PiecewiseCubicZeroPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseCubicZero_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseCubicZeroPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseCubicZero_dates" "', argument " "1"" of type '" "PiecewiseCubicZeroPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseCubicZeroPtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &PiecewiseCubicZeroPtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseCubicZero_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseCubicZeroPtr *arg1 = (PiecewiseCubicZeroPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseCubicZero_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseCubicZeroPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseCubicZero_times" "', argument " "1"" of type '" "PiecewiseCubicZeroPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseCubicZeroPtr * >(argp1);
  {
    try {
      result = (std::vector< Time,std::allocator< Time > > *) &PiecewiseCubicZeroPtr_times(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseCubicZero_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseCubicZeroPtr *arg1 = (PiecewiseCubicZeroPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseCubicZero_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseCubicZeroPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseCubicZero_nodes" "', argument " "1"" of type '" "PiecewiseCubicZeroPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseCubicZeroPtr * >(argp1);
  {
    try {
      result = PiecewiseCubicZeroPtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PiecewiseCubicZero(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseCubicZeroPtr *arg1 = (PiecewiseCubicZeroPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PiecewiseCubicZero",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseCubicZeroPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PiecewiseCubicZero" "', argument " "1"" of type '" "PiecewiseCubicZeroPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseCubicZeroPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PiecewiseCubicZero_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_PiecewiseCubicZeroPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_PiecewiseLogCubicDiscount__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg5 = 0 ;
  Real arg6 ;
  MonotonicLogCubic *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  double val6 ;
  int ecode6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PiecewiseLogCubicDiscountPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLogCubicDiscount",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg5 = ptr;
  }
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_MonotonicLogCubic,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "7"" of type '" "MonotonicLogCubic const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "7"" of type '" "MonotonicLogCubic const &""'"); 
  }
  arg7 = reinterpret_cast< MonotonicLogCubic * >(argp7);
  {
    try {
      result = (PiecewiseLogCubicDiscountPtr *)new_PiecewiseLogCubicDiscountPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4,(std::vector< Date,std::allocator< Date > > const &)*arg5,arg6,(MonotonicLogCubic const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLogCubicDiscountPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLogCubicDiscount__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg5 = 0 ;
  Real arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  double val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PiecewiseLogCubicDiscountPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLogCubicDiscount",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg5 = ptr;
  }
  ecode6 = SWIG_AsVal_double(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "6"" of type '" "Real""'");
  } 
  arg6 = static_cast< Real >(val6);
  {
    try {
      result = (PiecewiseLogCubicDiscountPtr *)new_PiecewiseLogCubicDiscountPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4,(std::vector< Date,std::allocator< Date > > const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLogCubicDiscountPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLogCubicDiscount__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PiecewiseLogCubicDiscountPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLogCubicDiscount",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "5"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    try {
      result = (PiecewiseLogCubicDiscountPtr *)new_PiecewiseLogCubicDiscountPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4,(std::vector< Date,std::allocator< Date > > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLogCubicDiscountPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLogCubicDiscount__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PiecewiseLogCubicDiscountPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLogCubicDiscount",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "4"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    try {
      result = (PiecewiseLogCubicDiscountPtr *)new_PiecewiseLogCubicDiscountPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLogCubicDiscountPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLogCubicDiscount__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PiecewiseLogCubicDiscountPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLogCubicDiscount",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (PiecewiseLogCubicDiscountPtr *)new_PiecewiseLogCubicDiscountPtr__SWIG_0((Date const &)*arg1,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLogCubicDiscountPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLogCubicDiscount__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  Real arg7 ;
  MonotonicLogCubic *arg8 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  double val7 ;
  int ecode7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PiecewiseLogCubicDiscountPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLogCubicDiscount",8,8,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_MonotonicLogCubic,  0  | 0);
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "8"" of type '" "MonotonicLogCubic const &""'"); 
  }
  if (!argp8) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "8"" of type '" "MonotonicLogCubic const &""'"); 
  }
  arg8 = reinterpret_cast< MonotonicLogCubic * >(argp8);
  {
    try {
      result = (PiecewiseLogCubicDiscountPtr *)new_PiecewiseLogCubicDiscountPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,arg7,(MonotonicLogCubic const &)*arg8);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLogCubicDiscountPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLogCubicDiscount__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  Real arg7 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  double val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PiecewiseLogCubicDiscountPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLogCubicDiscount",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  ecode7 = SWIG_AsVal_double(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "7"" of type '" "Real""'");
  } 
  arg7 = static_cast< Real >(val7);
  {
    try {
      result = (PiecewiseLogCubicDiscountPtr *)new_PiecewiseLogCubicDiscountPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLogCubicDiscountPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLogCubicDiscount__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  std::vector< Date,std::allocator< Date > > *arg6 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PiecewiseLogCubicDiscountPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLogCubicDiscount",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "6"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    try {
      result = (PiecewiseLogCubicDiscountPtr *)new_PiecewiseLogCubicDiscountPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5,(std::vector< Date,std::allocator< Date > > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLogCubicDiscountPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLogCubicDiscount__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *arg5 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PiecewiseLogCubicDiscountPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLogCubicDiscount",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *ptr = (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "5"" of type '" "std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    try {
      result = (PiecewiseLogCubicDiscountPtr *)new_PiecewiseLogCubicDiscountPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4,(std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLogCubicDiscountPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLogCubicDiscount__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Integer arg1 ;
  Calendar *arg2 = 0 ;
  std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *arg3 = 0 ;
  DayCounter *arg4 = 0 ;
  int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PiecewiseLogCubicDiscountPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_PiecewiseLogCubicDiscount",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  ecode1 = SWIG_AsVal_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "1"" of type '" "Integer""'");
  } 
  arg1 = static_cast< Integer >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  {
    std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *ptr = (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "3"" of type '" "std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &""'"); 
    }
    arg3 = ptr;
  }
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PiecewiseLogCubicDiscount" "', argument " "4"" of type '" "DayCounter const &""'"); 
  }
  arg4 = reinterpret_cast< DayCounter * >(argp4);
  {
    try {
      result = (PiecewiseLogCubicDiscountPtr *)new_PiecewiseLogCubicDiscountPtr__SWIG_5(arg1,(Calendar const &)*arg2,(std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &)*arg3,(DayCounter const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PiecewiseLogCubicDiscountPtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_PiecewiseLogCubicDiscount(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[9] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 8) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_PiecewiseLogCubicDiscount__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_PiecewiseLogCubicDiscount__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_PiecewiseLogCubicDiscount__SWIG_9(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Date,std::allocator< Date > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_PiecewiseLogCubicDiscount__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_PiecewiseLogCubicDiscount__SWIG_8(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Date,std::allocator< Date > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_PiecewiseLogCubicDiscount__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_PiecewiseLogCubicDiscount__SWIG_7(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Date,std::allocator< Date > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_double(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_MonotonicLogCubic, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_PiecewiseLogCubicDiscount__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_PiecewiseLogCubicDiscount__SWIG_6(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 8) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_DayCounter, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< Date,std::allocator< Date > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                {
                  int res = SWIG_AsVal_double(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_MonotonicLogCubic, 0);
                  _v = SWIG_CheckState(res);
                  if (_v) {
                    return _wrap_new_PiecewiseLogCubicDiscount__SWIG_5(self, args);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_PiecewiseLogCubicDiscount'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    PiecewiseLogCubicDiscountPtr::PiecewiseLogCubicDiscountPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real,MonotonicLogCubic const &)\n"
    "    PiecewiseLogCubicDiscountPtr::PiecewiseLogCubicDiscountPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real)\n"
    "    PiecewiseLogCubicDiscountPtr::PiecewiseLogCubicDiscountPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &)\n"
    "    PiecewiseLogCubicDiscountPtr::PiecewiseLogCubicDiscountPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)\n"
    "    PiecewiseLogCubicDiscountPtr::PiecewiseLogCubicDiscountPtr(Date const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &)\n"
    "    PiecewiseLogCubicDiscountPtr::PiecewiseLogCubicDiscountPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real,MonotonicLogCubic const &)\n"
    "    PiecewiseLogCubicDiscountPtr::PiecewiseLogCubicDiscountPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &,Real)\n"
    "    PiecewiseLogCubicDiscountPtr::PiecewiseLogCubicDiscountPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &,std::vector< Date,std::allocator< Date > > const &)\n"
    "    PiecewiseLogCubicDiscountPtr::PiecewiseLogCubicDiscountPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &,std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > const &)\n"
    "    PiecewiseLogCubicDiscountPtr::PiecewiseLogCubicDiscountPtr(Integer,Calendar const &,std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_PiecewiseLogCubicDiscount_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseLogCubicDiscountPtr *arg1 = (PiecewiseLogCubicDiscountPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseLogCubicDiscount_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseLogCubicDiscountPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseLogCubicDiscount_dates" "', argument " "1"" of type '" "PiecewiseLogCubicDiscountPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseLogCubicDiscountPtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &PiecewiseLogCubicDiscountPtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseLogCubicDiscount_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseLogCubicDiscountPtr *arg1 = (PiecewiseLogCubicDiscountPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseLogCubicDiscount_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseLogCubicDiscountPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseLogCubicDiscount_times" "', argument " "1"" of type '" "PiecewiseLogCubicDiscountPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseLogCubicDiscountPtr * >(argp1);
  {
    try {
      result = (std::vector< Time,std::allocator< Time > > *) &PiecewiseLogCubicDiscountPtr_times(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_PiecewiseLogCubicDiscount_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseLogCubicDiscountPtr *arg1 = (PiecewiseLogCubicDiscountPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,Real >,std::allocator< std::pair< Date,Real > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"PiecewiseLogCubicDiscount_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseLogCubicDiscountPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PiecewiseLogCubicDiscount_nodes" "', argument " "1"" of type '" "PiecewiseLogCubicDiscountPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseLogCubicDiscountPtr * >(argp1);
  {
    try {
      result = PiecewiseLogCubicDiscountPtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_PiecewiseLogCubicDiscount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  PiecewiseLogCubicDiscountPtr *arg1 = (PiecewiseLogCubicDiscountPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_PiecewiseLogCubicDiscount",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PiecewiseLogCubicDiscountPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PiecewiseLogCubicDiscount" "', argument " "1"" of type '" "PiecewiseLogCubicDiscountPtr *""'"); 
  }
  arg1 = reinterpret_cast< PiecewiseLogCubicDiscountPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PiecewiseLogCubicDiscount_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_PiecewiseLogCubicDiscountPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SampledCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SampledCurve *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SampledCurve",0,0)) SWIG_fail;
  {
    try {
      result = (SampledCurve *)new SampledCurve();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampledCurve, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SampledCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Array *arg1 = 0 ;
  Array temp1 ;
  PyObject * obj0 = 0 ;
  SampledCurve *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SampledCurve",1,1,&obj0)) SWIG_fail;
  {
    if (extractArray(obj0,&temp1)) {
      arg1 = &temp1;
    } else {
      SWIG_ConvertPtr(obj0,(void **) &arg1,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      result = (SampledCurve *)new SampledCurve((Array const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SampledCurve, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_SampledCurve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_SampledCurve__SWIG_0(self, args);
  }
  if (argc == 1) {
    int _v;
    {
      /* native sequence? */
      if (PyTuple_Check(argv[0]) || PyList_Check(argv[0])) {
        Size size = PySequence_Size(argv[0]);
        if (size == 0) {
          _v = 1;
        } else {
          PyObject* o = PySequence_GetItem(argv[0],0);
          if (PyNumber_Check(o))
          _v = 1;
          else
          _v = 0;
          Py_DECREF(o);
        }
      } else {
        /* wrapped Array? */
        Array* v;
        if (SWIG_ConvertPtr(argv[0],(void **) &v,
            SWIGTYPE_p_Array,0) != -1)
        _v = 1;
        else
        _v = 0;
      }
    }
    if (_v) {
      return _wrap_new_SampledCurve__SWIG_1(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SampledCurve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SampledCurve::SampledCurve()\n"
    "    SampledCurve::SampledCurve(Array const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_SampledCurve_grid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SampledCurve *arg1 = (SampledCurve *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Array *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampledCurve_grid",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampledCurve, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampledCurve_grid" "', argument " "1"" of type '" "SampledCurve *""'"); 
  }
  arg1 = reinterpret_cast< SampledCurve * >(argp1);
  {
    try {
      result = (Array *) &(arg1)->grid();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Array, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SampledCurve_values(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SampledCurve *arg1 = (SampledCurve *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Array *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampledCurve_values",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampledCurve, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampledCurve_values" "', argument " "1"" of type '" "SampledCurve *""'"); 
  }
  arg1 = reinterpret_cast< SampledCurve * >(argp1);
  {
    try {
      result = (Array *) &(arg1)->values();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Array, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SampledCurve_gridValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SampledCurve *arg1 = (SampledCurve *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampledCurve_gridValue",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampledCurve, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampledCurve_gridValue" "', argument " "1"" of type '" "SampledCurve *""'"); 
  }
  arg1 = reinterpret_cast< SampledCurve * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SampledCurve_gridValue" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (Real)(arg1)->gridValue(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SampledCurve_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SampledCurve *arg1 = (SampledCurve *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampledCurve_value",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampledCurve, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampledCurve_value" "', argument " "1"" of type '" "SampledCurve *""'"); 
  }
  arg1 = reinterpret_cast< SampledCurve * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SampledCurve_value" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (Real)(arg1)->value(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SampledCurve_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SampledCurve *arg1 = (SampledCurve *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampledCurve_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampledCurve, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampledCurve_size" "', argument " "1"" of type '" "SampledCurve const *""'"); 
  }
  arg1 = reinterpret_cast< SampledCurve * >(argp1);
  {
    try {
      result = ((SampledCurve const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SampledCurve_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SampledCurve *arg1 = (SampledCurve *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampledCurve_empty",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampledCurve, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampledCurve_empty" "', argument " "1"" of type '" "SampledCurve const *""'"); 
  }
  arg1 = reinterpret_cast< SampledCurve * >(argp1);
  {
    try {
      result = (bool)((SampledCurve const *)arg1)->empty();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SampledCurve_setGrid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SampledCurve *arg1 = (SampledCurve *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampledCurve_setGrid",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampledCurve, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampledCurve_setGrid" "', argument " "1"" of type '" "SampledCurve *""'"); 
  }
  arg1 = reinterpret_cast< SampledCurve * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      (arg1)->setGrid((Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SampledCurve_setValues(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SampledCurve *arg1 = (SampledCurve *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampledCurve_setValues",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampledCurve, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampledCurve_setValues" "', argument " "1"" of type '" "SampledCurve *""'"); 
  }
  arg1 = reinterpret_cast< SampledCurve * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      (arg1)->setValues((Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SampledCurve_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SampledCurve *arg1 = (SampledCurve *) 0 ;
  SampledCurve *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampledCurve_swap",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampledCurve, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampledCurve_swap" "', argument " "1"" of type '" "SampledCurve *""'"); 
  }
  arg1 = reinterpret_cast< SampledCurve * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SampledCurve,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SampledCurve_swap" "', argument " "2"" of type '" "SampledCurve &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SampledCurve_swap" "', argument " "2"" of type '" "SampledCurve &""'"); 
  }
  arg2 = reinterpret_cast< SampledCurve * >(argp2);
  {
    try {
      (arg1)->swap(*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SampledCurve_setLogGrid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SampledCurve *arg1 = (SampledCurve *) 0 ;
  Real arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampledCurve_setLogGrid",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampledCurve, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampledCurve_setLogGrid" "', argument " "1"" of type '" "SampledCurve *""'"); 
  }
  arg1 = reinterpret_cast< SampledCurve * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SampledCurve_setLogGrid" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SampledCurve_setLogGrid" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      (arg1)->setLogGrid(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SampledCurve_regridLogGrid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SampledCurve *arg1 = (SampledCurve *) 0 ;
  Real arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampledCurve_regridLogGrid",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampledCurve, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampledCurve_regridLogGrid" "', argument " "1"" of type '" "SampledCurve *""'"); 
  }
  arg1 = reinterpret_cast< SampledCurve * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SampledCurve_regridLogGrid" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SampledCurve_regridLogGrid" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      (arg1)->regridLogGrid(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SampledCurve_shiftGrid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SampledCurve *arg1 = (SampledCurve *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampledCurve_shiftGrid",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampledCurve, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampledCurve_shiftGrid" "', argument " "1"" of type '" "SampledCurve *""'"); 
  }
  arg1 = reinterpret_cast< SampledCurve * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SampledCurve_shiftGrid" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      (arg1)->shiftGrid(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SampledCurve_scaleGrid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SampledCurve *arg1 = (SampledCurve *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampledCurve_scaleGrid",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampledCurve, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampledCurve_scaleGrid" "', argument " "1"" of type '" "SampledCurve *""'"); 
  }
  arg1 = reinterpret_cast< SampledCurve * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SampledCurve_scaleGrid" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      (arg1)->scaleGrid(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SampledCurve_regrid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SampledCurve *arg1 = (SampledCurve *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SampledCurve_regrid",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampledCurve, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SampledCurve_regrid" "', argument " "1"" of type '" "SampledCurve *""'"); 
  }
  arg1 = reinterpret_cast< SampledCurve * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      (arg1)->regrid((Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_SampledCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SampledCurve *arg1 = (SampledCurve *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SampledCurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SampledCurve, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SampledCurve" "', argument " "1"" of type '" "SampledCurve *""'"); 
  }
  arg1 = reinterpret_cast< SampledCurve * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SampledCurve_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SampledCurve, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Settings_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Settings *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Settings_instance",0,0)) SWIG_fail;
  {
    try {
      result = (Settings *) &Settings::instance();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Settings, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Settings_getEvaluationDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Settings *arg1 = (Settings *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Date result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Settings_getEvaluationDate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Settings, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Settings_getEvaluationDate" "', argument " "1"" of type '" "Settings *""'"); 
  }
  arg1 = reinterpret_cast< Settings * >(argp1);
  {
    try {
      result = Settings_getEvaluationDate(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Date(static_cast< const Date& >(result))), SWIGTYPE_p_Date, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Settings_setEvaluationDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Settings *arg1 = (Settings *) 0 ;
  Date *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Settings_setEvaluationDate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Settings, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Settings_setEvaluationDate" "', argument " "1"" of type '" "Settings *""'"); 
  }
  arg1 = reinterpret_cast< Settings * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Settings_setEvaluationDate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Settings_setEvaluationDate" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  {
    try {
      Settings_setEvaluationDate(arg1,(Date const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Settings_includeReferenceDateEvents(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Settings *arg1 = (Settings *) 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Settings_includeReferenceDateEvents",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Settings, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Settings_includeReferenceDateEvents" "', argument " "1"" of type '" "Settings *""'"); 
  }
  arg1 = reinterpret_cast< Settings * >(argp1);
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Settings_includeReferenceDateEvents" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      Settings_includeReferenceDateEvents(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Settings_includeTodaysCashFlows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Settings *arg1 = (Settings *) 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Settings_includeTodaysCashFlows",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Settings, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Settings_includeTodaysCashFlows" "', argument " "1"" of type '" "Settings *""'"); 
  }
  arg1 = reinterpret_cast< Settings * >(argp1);
  ecode2 = SWIG_AsVal_bool(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Settings_includeTodaysCashFlows" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      Settings_includeTodaysCashFlows(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Settings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Settings *arg1 = (Settings *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Settings",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Settings, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Settings" "', argument " "1"" of type '" "Settings *""'"); 
  }
  arg1 = reinterpret_cast< Settings * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Settings_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Settings, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Statistics_samples(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Statistics *arg1 = (Statistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Statistics_samples",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Statistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Statistics_samples" "', argument " "1"" of type '" "Statistics const *""'"); 
  }
  arg1 = reinterpret_cast< Statistics * >(argp1);
  {
    try {
      result = ((Statistics const *)arg1)->samples();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Statistics_weightSum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Statistics *arg1 = (Statistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Statistics_weightSum",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Statistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Statistics_weightSum" "', argument " "1"" of type '" "Statistics const *""'"); 
  }
  arg1 = reinterpret_cast< Statistics * >(argp1);
  {
    try {
      result = (Real)((Statistics const *)arg1)->weightSum();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Statistics_mean(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Statistics *arg1 = (Statistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Statistics_mean",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Statistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Statistics_mean" "', argument " "1"" of type '" "Statistics const *""'"); 
  }
  arg1 = reinterpret_cast< Statistics * >(argp1);
  {
    try {
      result = (Real)((Statistics const *)arg1)->mean();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Statistics_variance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Statistics *arg1 = (Statistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Statistics_variance",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Statistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Statistics_variance" "', argument " "1"" of type '" "Statistics const *""'"); 
  }
  arg1 = reinterpret_cast< Statistics * >(argp1);
  {
    try {
      result = (Real)((Statistics const *)arg1)->variance();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Statistics_standardDeviation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Statistics *arg1 = (Statistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Statistics_standardDeviation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Statistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Statistics_standardDeviation" "', argument " "1"" of type '" "Statistics const *""'"); 
  }
  arg1 = reinterpret_cast< Statistics * >(argp1);
  {
    try {
      result = (Real)((Statistics const *)arg1)->standardDeviation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Statistics_errorEstimate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Statistics *arg1 = (Statistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Statistics_errorEstimate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Statistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Statistics_errorEstimate" "', argument " "1"" of type '" "Statistics const *""'"); 
  }
  arg1 = reinterpret_cast< Statistics * >(argp1);
  {
    try {
      result = (Real)((Statistics const *)arg1)->errorEstimate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Statistics_skewness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Statistics *arg1 = (Statistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Statistics_skewness",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Statistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Statistics_skewness" "', argument " "1"" of type '" "Statistics const *""'"); 
  }
  arg1 = reinterpret_cast< Statistics * >(argp1);
  {
    try {
      result = (Real)((Statistics const *)arg1)->skewness();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Statistics_kurtosis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Statistics *arg1 = (Statistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Statistics_kurtosis",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Statistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Statistics_kurtosis" "', argument " "1"" of type '" "Statistics const *""'"); 
  }
  arg1 = reinterpret_cast< Statistics * >(argp1);
  {
    try {
      result = (Real)((Statistics const *)arg1)->kurtosis();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Statistics_min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Statistics *arg1 = (Statistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Statistics_min",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Statistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Statistics_min" "', argument " "1"" of type '" "Statistics const *""'"); 
  }
  arg1 = reinterpret_cast< Statistics * >(argp1);
  {
    try {
      result = (Real)((Statistics const *)arg1)->min();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Statistics_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Statistics *arg1 = (Statistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Statistics_max",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Statistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Statistics_max" "', argument " "1"" of type '" "Statistics const *""'"); 
  }
  arg1 = reinterpret_cast< Statistics * >(argp1);
  {
    try {
      result = (Real)((Statistics const *)arg1)->max();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Statistics_reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Statistics *arg1 = (Statistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Statistics_reset",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Statistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Statistics_reset" "', argument " "1"" of type '" "Statistics *""'"); 
  }
  arg1 = reinterpret_cast< Statistics * >(argp1);
  {
    try {
      (arg1)->reset();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Statistics_add__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Statistics *arg1 = (Statistics *) 0 ;
  Real arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Statistics_add",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Statistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Statistics_add" "', argument " "1"" of type '" "Statistics *""'"); 
  }
  arg1 = reinterpret_cast< Statistics * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Statistics_add" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Statistics_add" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      (arg1)->add(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Statistics_add__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Statistics *arg1 = (Statistics *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Statistics_add",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Statistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Statistics_add" "', argument " "1"" of type '" "Statistics *""'"); 
  }
  arg1 = reinterpret_cast< Statistics * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Statistics_add" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      (arg1)->add(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Statistics_add__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Statistics *arg1 = (Statistics *) 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Statistics_add",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Statistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Statistics_add" "', argument " "1"" of type '" "Statistics *""'"); 
  }
  arg1 = reinterpret_cast< Statistics * >(argp1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Statistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Statistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      Statistics_add__SWIG_2(arg1,(std::vector< double,std::allocator< double > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_Statistics_add__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Statistics *arg1 = (Statistics *) 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"Statistics_add",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Statistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Statistics_add" "', argument " "1"" of type '" "Statistics *""'"); 
  }
  arg1 = reinterpret_cast< Statistics * >(argp1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Statistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Statistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Statistics_add" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Statistics_add" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      Statistics_add__SWIG_3(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  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_Statistics_add(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Statistics, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_Statistics_add__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Statistics, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_Statistics_add__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Statistics, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_Statistics_add__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Statistics, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_Statistics_add__SWIG_3(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Statistics_add'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Statistics::add(Real,Real)\n"
    "    Statistics::add(Real)\n"
    "    Statistics::add(std::vector< Real,std::allocator< Real > > const &)\n"
    "    Statistics::add(std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_Statistics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Statistics *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Statistics",0,0)) SWIG_fail;
  {
    try {
      result = (Statistics *)new Statistics();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Statistics, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Statistics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Statistics *arg1 = (Statistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Statistics",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Statistics, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Statistics" "', argument " "1"" of type '" "Statistics *""'"); 
  }
  arg1 = reinterpret_cast< Statistics * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Statistics_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Statistics, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_IncrementalStatistics_samples(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IncrementalStatistics *arg1 = (IncrementalStatistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IncrementalStatistics_samples",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IncrementalStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IncrementalStatistics_samples" "', argument " "1"" of type '" "IncrementalStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< IncrementalStatistics * >(argp1);
  {
    try {
      result = ((IncrementalStatistics const *)arg1)->samples();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IncrementalStatistics_weightSum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IncrementalStatistics *arg1 = (IncrementalStatistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IncrementalStatistics_weightSum",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IncrementalStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IncrementalStatistics_weightSum" "', argument " "1"" of type '" "IncrementalStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< IncrementalStatistics * >(argp1);
  {
    try {
      result = (Real)((IncrementalStatistics const *)arg1)->weightSum();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IncrementalStatistics_mean(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IncrementalStatistics *arg1 = (IncrementalStatistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IncrementalStatistics_mean",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IncrementalStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IncrementalStatistics_mean" "', argument " "1"" of type '" "IncrementalStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< IncrementalStatistics * >(argp1);
  {
    try {
      result = (Real)((IncrementalStatistics const *)arg1)->mean();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IncrementalStatistics_variance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IncrementalStatistics *arg1 = (IncrementalStatistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IncrementalStatistics_variance",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IncrementalStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IncrementalStatistics_variance" "', argument " "1"" of type '" "IncrementalStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< IncrementalStatistics * >(argp1);
  {
    try {
      result = (Real)((IncrementalStatistics const *)arg1)->variance();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IncrementalStatistics_standardDeviation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IncrementalStatistics *arg1 = (IncrementalStatistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IncrementalStatistics_standardDeviation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IncrementalStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IncrementalStatistics_standardDeviation" "', argument " "1"" of type '" "IncrementalStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< IncrementalStatistics * >(argp1);
  {
    try {
      result = (Real)((IncrementalStatistics const *)arg1)->standardDeviation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IncrementalStatistics_errorEstimate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IncrementalStatistics *arg1 = (IncrementalStatistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IncrementalStatistics_errorEstimate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IncrementalStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IncrementalStatistics_errorEstimate" "', argument " "1"" of type '" "IncrementalStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< IncrementalStatistics * >(argp1);
  {
    try {
      result = (Real)((IncrementalStatistics const *)arg1)->errorEstimate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IncrementalStatistics_skewness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IncrementalStatistics *arg1 = (IncrementalStatistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IncrementalStatistics_skewness",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IncrementalStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IncrementalStatistics_skewness" "', argument " "1"" of type '" "IncrementalStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< IncrementalStatistics * >(argp1);
  {
    try {
      result = (Real)((IncrementalStatistics const *)arg1)->skewness();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IncrementalStatistics_kurtosis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IncrementalStatistics *arg1 = (IncrementalStatistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IncrementalStatistics_kurtosis",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IncrementalStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IncrementalStatistics_kurtosis" "', argument " "1"" of type '" "IncrementalStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< IncrementalStatistics * >(argp1);
  {
    try {
      result = (Real)((IncrementalStatistics const *)arg1)->kurtosis();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IncrementalStatistics_min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IncrementalStatistics *arg1 = (IncrementalStatistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IncrementalStatistics_min",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IncrementalStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IncrementalStatistics_min" "', argument " "1"" of type '" "IncrementalStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< IncrementalStatistics * >(argp1);
  {
    try {
      result = (Real)((IncrementalStatistics const *)arg1)->min();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IncrementalStatistics_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IncrementalStatistics *arg1 = (IncrementalStatistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"IncrementalStatistics_max",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IncrementalStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IncrementalStatistics_max" "', argument " "1"" of type '" "IncrementalStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< IncrementalStatistics * >(argp1);
  {
    try {
      result = (Real)((IncrementalStatistics const *)arg1)->max();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IncrementalStatistics_reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IncrementalStatistics *arg1 = (IncrementalStatistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IncrementalStatistics_reset",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IncrementalStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IncrementalStatistics_reset" "', argument " "1"" of type '" "IncrementalStatistics *""'"); 
  }
  arg1 = reinterpret_cast< IncrementalStatistics * >(argp1);
  {
    try {
      (arg1)->reset();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IncrementalStatistics_add__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IncrementalStatistics *arg1 = (IncrementalStatistics *) 0 ;
  Real arg2 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IncrementalStatistics_add",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IncrementalStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IncrementalStatistics_add" "', argument " "1"" of type '" "IncrementalStatistics *""'"); 
  }
  arg1 = reinterpret_cast< IncrementalStatistics * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IncrementalStatistics_add" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IncrementalStatistics_add" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      (arg1)->add(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IncrementalStatistics_add__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IncrementalStatistics *arg1 = (IncrementalStatistics *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IncrementalStatistics_add",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IncrementalStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IncrementalStatistics_add" "', argument " "1"" of type '" "IncrementalStatistics *""'"); 
  }
  arg1 = reinterpret_cast< IncrementalStatistics * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IncrementalStatistics_add" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      (arg1)->add(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_IncrementalStatistics_add__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IncrementalStatistics *arg1 = (IncrementalStatistics *) 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IncrementalStatistics_add",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IncrementalStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IncrementalStatistics_add" "', argument " "1"" of type '" "IncrementalStatistics *""'"); 
  }
  arg1 = reinterpret_cast< IncrementalStatistics * >(argp1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IncrementalStatistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IncrementalStatistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      IncrementalStatistics_add__SWIG_2(arg1,(std::vector< double,std::allocator< double > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_IncrementalStatistics_add__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IncrementalStatistics *arg1 = (IncrementalStatistics *) 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  std::vector< Real,std::allocator< Real > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"IncrementalStatistics_add",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IncrementalStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IncrementalStatistics_add" "', argument " "1"" of type '" "IncrementalStatistics *""'"); 
  }
  arg1 = reinterpret_cast< IncrementalStatistics * >(argp1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IncrementalStatistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IncrementalStatistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res3 = swig::asptr(obj2, &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IncrementalStatistics_add" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IncrementalStatistics_add" "', argument " "3"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg3 = ptr;
  }
  {
    try {
      IncrementalStatistics_add__SWIG_3(arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  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_IncrementalStatistics_add(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IncrementalStatistics, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_IncrementalStatistics_add__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IncrementalStatistics, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_IncrementalStatistics_add__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IncrementalStatistics, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_IncrementalStatistics_add__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IncrementalStatistics, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< double,std::allocator< double > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_IncrementalStatistics_add__SWIG_3(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'IncrementalStatistics_add'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    IncrementalStatistics::add(Real,Real)\n"
    "    IncrementalStatistics::add(Real)\n"
    "    IncrementalStatistics::add(std::vector< Real,std::allocator< Real > > const &)\n"
    "    IncrementalStatistics::add(std::vector< Real,std::allocator< Real > > const &,std::vector< Real,std::allocator< Real > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_IncrementalStatistics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IncrementalStatistics *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_IncrementalStatistics",0,0)) SWIG_fail;
  {
    try {
      result = (IncrementalStatistics *)new IncrementalStatistics();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IncrementalStatistics, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_IncrementalStatistics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  IncrementalStatistics *arg1 = (IncrementalStatistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_IncrementalStatistics",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IncrementalStatistics, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IncrementalStatistics" "', argument " "1"" of type '" "IncrementalStatistics *""'"); 
  }
  arg1 = reinterpret_cast< IncrementalStatistics * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *IncrementalStatistics_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_IncrementalStatistics, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_RiskStatistics_semiVariance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RiskStatistics *arg1 = (RiskStatistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RiskStatistics_semiVariance",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RiskStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RiskStatistics_semiVariance" "', argument " "1"" of type '" "RiskStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< RiskStatistics * >(argp1);
  {
    try {
      result = (Real)((RiskStatistics const *)arg1)->semiVariance();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RiskStatistics_semiDeviation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RiskStatistics *arg1 = (RiskStatistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RiskStatistics_semiDeviation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RiskStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RiskStatistics_semiDeviation" "', argument " "1"" of type '" "RiskStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< RiskStatistics * >(argp1);
  {
    try {
      result = (Real)((RiskStatistics const *)arg1)->semiDeviation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RiskStatistics_downsideVariance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RiskStatistics *arg1 = (RiskStatistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RiskStatistics_downsideVariance",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RiskStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RiskStatistics_downsideVariance" "', argument " "1"" of type '" "RiskStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< RiskStatistics * >(argp1);
  {
    try {
      result = (Real)((RiskStatistics const *)arg1)->downsideVariance();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RiskStatistics_downsideDeviation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RiskStatistics *arg1 = (RiskStatistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RiskStatistics_downsideDeviation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RiskStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RiskStatistics_downsideDeviation" "', argument " "1"" of type '" "RiskStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< RiskStatistics * >(argp1);
  {
    try {
      result = (Real)((RiskStatistics const *)arg1)->downsideDeviation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RiskStatistics_regret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RiskStatistics *arg1 = (RiskStatistics *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RiskStatistics_regret",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RiskStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RiskStatistics_regret" "', argument " "1"" of type '" "RiskStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< RiskStatistics * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RiskStatistics_regret" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)((RiskStatistics const *)arg1)->regret(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RiskStatistics_potentialUpside(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RiskStatistics *arg1 = (RiskStatistics *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RiskStatistics_potentialUpside",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RiskStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RiskStatistics_potentialUpside" "', argument " "1"" of type '" "RiskStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< RiskStatistics * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RiskStatistics_potentialUpside" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)((RiskStatistics const *)arg1)->potentialUpside(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RiskStatistics_valueAtRisk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RiskStatistics *arg1 = (RiskStatistics *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RiskStatistics_valueAtRisk",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RiskStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RiskStatistics_valueAtRisk" "', argument " "1"" of type '" "RiskStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< RiskStatistics * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RiskStatistics_valueAtRisk" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)((RiskStatistics const *)arg1)->valueAtRisk(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RiskStatistics_expectedShortfall(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RiskStatistics *arg1 = (RiskStatistics *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RiskStatistics_expectedShortfall",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RiskStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RiskStatistics_expectedShortfall" "', argument " "1"" of type '" "RiskStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< RiskStatistics * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RiskStatistics_expectedShortfall" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)((RiskStatistics const *)arg1)->expectedShortfall(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RiskStatistics_shortfall(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RiskStatistics *arg1 = (RiskStatistics *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RiskStatistics_shortfall",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RiskStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RiskStatistics_shortfall" "', argument " "1"" of type '" "RiskStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< RiskStatistics * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RiskStatistics_shortfall" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)((RiskStatistics const *)arg1)->shortfall(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_RiskStatistics_averageShortfall(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RiskStatistics *arg1 = (RiskStatistics *) 0 ;
  Real arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"RiskStatistics_averageShortfall",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RiskStatistics, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RiskStatistics_averageShortfall" "', argument " "1"" of type '" "RiskStatistics const *""'"); 
  }
  arg1 = reinterpret_cast< RiskStatistics * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RiskStatistics_averageShortfall" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (Real)((RiskStatistics const *)arg1)->averageShortfall(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RiskStatistics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RiskStatistics *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RiskStatistics",0,0)) SWIG_fail;
  {
    try {
      result = (RiskStatistics *)new RiskStatistics();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RiskStatistics, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RiskStatistics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RiskStatistics *arg1 = (RiskStatistics *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RiskStatistics",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RiskStatistics, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RiskStatistics" "', argument " "1"" of type '" "RiskStatistics *""'"); 
  }
  arg1 = reinterpret_cast< RiskStatistics * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RiskStatistics_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RiskStatistics, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MultipleStatistics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  GenericSequenceStatistics< Statistics > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MultipleStatistics",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MultipleStatistics" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  {
    try {
      result = (GenericSequenceStatistics< Statistics > *)new GenericSequenceStatistics< Statistics >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleStatistics_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleStatistics_size" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< Statistics > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_samples(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleStatistics_samples",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleStatistics_samples" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< Statistics > const *)arg1)->samples();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_weightSum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleStatistics_weightSum",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleStatistics_weightSum" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    try {
      result = (Real)((GenericSequenceStatistics< Statistics > const *)arg1)->weightSum();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_mean(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleStatistics_mean",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleStatistics_mean" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< Statistics > const *)arg1)->mean();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_variance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleStatistics_variance",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleStatistics_variance" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< Statistics > const *)arg1)->variance();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_standardDeviation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleStatistics_standardDeviation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleStatistics_standardDeviation" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< Statistics > const *)arg1)->standardDeviation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_errorEstimate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleStatistics_errorEstimate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleStatistics_errorEstimate" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< Statistics > const *)arg1)->errorEstimate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_skewness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleStatistics_skewness",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleStatistics_skewness" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< Statistics > const *)arg1)->skewness();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_kurtosis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleStatistics_kurtosis",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleStatistics_kurtosis" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< Statistics > const *)arg1)->kurtosis();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleStatistics_min",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleStatistics_min" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< Statistics > const *)arg1)->min();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleStatistics_max",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleStatistics_max" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< Statistics > const *)arg1)->max();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_covariance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleStatistics_covariance",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleStatistics_covariance" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< Statistics > const *)arg1)->covariance();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_correlation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleStatistics_correlation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleStatistics_correlation" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< Statistics > const *)arg1)->correlation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleStatistics_reset",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleStatistics_reset" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    try {
      (arg1)->reset();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_add__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleStatistics_add",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleStatistics_add" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MultipleStatistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MultipleStatistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MultipleStatistics_add" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      (arg1)->add((std::vector< Real,std::allocator< Real > > const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_add__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleStatistics_add",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleStatistics_add" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MultipleStatistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MultipleStatistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      (arg1)->add((std::vector< Real,std::allocator< Real > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_add__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  Array *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleStatistics_add",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleStatistics_add" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MultipleStatistics_add" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      (arg1)->add((Array const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_add__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleStatistics_add",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleStatistics_add" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      (arg1)->add((Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleStatistics_add(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_MultipleStatistics_add__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        /* native sequence? */
        if (PyTuple_Check(argv[1]) || PyList_Check(argv[1])) {
          Size size = PySequence_Size(argv[1]);
          if (size == 0) {
            _v = 1;
          } else {
            PyObject* o = PySequence_GetItem(argv[1],0);
            if (PyNumber_Check(o))
            _v = 1;
            else
            _v = 0;
            Py_DECREF(o);
          }
        } else {
          /* wrapped Array? */
          Array* v;
          if (SWIG_ConvertPtr(argv[1],(void **) &v,
              SWIGTYPE_p_Array,0) != -1)
          _v = 1;
          else
          _v = 0;
        }
      }
      if (_v) {
        return _wrap_MultipleStatistics_add__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MultipleStatistics_add__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        /* native sequence? */
        if (PyTuple_Check(argv[1]) || PyList_Check(argv[1])) {
          Size size = PySequence_Size(argv[1]);
          if (size == 0) {
            _v = 1;
          } else {
            PyObject* o = PySequence_GetItem(argv[1],0);
            if (PyNumber_Check(o))
            _v = 1;
            else
            _v = 0;
            Py_DECREF(o);
          }
        } else {
          /* wrapped Array? */
          Array* v;
          if (SWIG_ConvertPtr(argv[1],(void **) &v,
              SWIGTYPE_p_Array,0) != -1)
          _v = 1;
          else
          _v = 0;
        }
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MultipleStatistics_add__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MultipleStatistics_add'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    GenericSequenceStatistics< Statistics >::add(std::vector< Real,std::allocator< Real > > const &,Real)\n"
    "    GenericSequenceStatistics< Statistics >::add(std::vector< Real,std::allocator< Real > > const &)\n"
    "    GenericSequenceStatistics< Statistics >::add(Array const &,Real)\n"
    "    GenericSequenceStatistics< Statistics >::add(Array const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_MultipleStatistics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< Statistics > *arg1 = (GenericSequenceStatistics< Statistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MultipleStatistics",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MultipleStatistics" "', argument " "1"" of type '" "GenericSequenceStatistics< Statistics > *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< Statistics > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MultipleStatistics_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GenericSequenceStatisticsT_Statistics_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_SequenceStatistics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  GenericSequenceStatistics< RiskStatistics > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_SequenceStatistics",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SequenceStatistics" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  {
    try {
      result = (GenericSequenceStatistics< RiskStatistics > *)new GenericSequenceStatistics< RiskStatistics >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SequenceStatistics_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceStatistics_size" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< RiskStatistics > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_samples(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SequenceStatistics_samples",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceStatistics_samples" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< RiskStatistics > const *)arg1)->samples();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_weightSum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SequenceStatistics_weightSum",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceStatistics_weightSum" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    try {
      result = (Real)((GenericSequenceStatistics< RiskStatistics > const *)arg1)->weightSum();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_mean(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SequenceStatistics_mean",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceStatistics_mean" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< RiskStatistics > const *)arg1)->mean();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_variance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SequenceStatistics_variance",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceStatistics_variance" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< RiskStatistics > const *)arg1)->variance();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_standardDeviation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SequenceStatistics_standardDeviation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceStatistics_standardDeviation" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< RiskStatistics > const *)arg1)->standardDeviation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_errorEstimate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SequenceStatistics_errorEstimate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceStatistics_errorEstimate" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< RiskStatistics > const *)arg1)->errorEstimate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_skewness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SequenceStatistics_skewness",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceStatistics_skewness" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< RiskStatistics > const *)arg1)->skewness();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_kurtosis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SequenceStatistics_kurtosis",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceStatistics_kurtosis" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< RiskStatistics > const *)arg1)->kurtosis();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SequenceStatistics_min",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceStatistics_min" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< RiskStatistics > const *)arg1)->min();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SequenceStatistics_max",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceStatistics_max" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< RiskStatistics > const *)arg1)->max();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_covariance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SequenceStatistics_covariance",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceStatistics_covariance" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< RiskStatistics > const *)arg1)->covariance();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_correlation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"SequenceStatistics_correlation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceStatistics_correlation" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< RiskStatistics > const *)arg1)->correlation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SequenceStatistics_reset",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceStatistics_reset" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    try {
      (arg1)->reset();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_add__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SequenceStatistics_add",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceStatistics_add" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SequenceStatistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SequenceStatistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SequenceStatistics_add" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      (arg1)->add((std::vector< Real,std::allocator< Real > > const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_add__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SequenceStatistics_add",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceStatistics_add" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SequenceStatistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SequenceStatistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      (arg1)->add((std::vector< Real,std::allocator< Real > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_add__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  Array *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SequenceStatistics_add",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceStatistics_add" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SequenceStatistics_add" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      (arg1)->add((Array const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_add__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"SequenceStatistics_add",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SequenceStatistics_add" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      (arg1)->add((Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SequenceStatistics_add(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_SequenceStatistics_add__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        /* native sequence? */
        if (PyTuple_Check(argv[1]) || PyList_Check(argv[1])) {
          Size size = PySequence_Size(argv[1]);
          if (size == 0) {
            _v = 1;
          } else {
            PyObject* o = PySequence_GetItem(argv[1],0);
            if (PyNumber_Check(o))
            _v = 1;
            else
            _v = 0;
            Py_DECREF(o);
          }
        } else {
          /* wrapped Array? */
          Array* v;
          if (SWIG_ConvertPtr(argv[1],(void **) &v,
              SWIGTYPE_p_Array,0) != -1)
          _v = 1;
          else
          _v = 0;
        }
      }
      if (_v) {
        return _wrap_SequenceStatistics_add__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_SequenceStatistics_add__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        /* native sequence? */
        if (PyTuple_Check(argv[1]) || PyList_Check(argv[1])) {
          Size size = PySequence_Size(argv[1]);
          if (size == 0) {
            _v = 1;
          } else {
            PyObject* o = PySequence_GetItem(argv[1],0);
            if (PyNumber_Check(o))
            _v = 1;
            else
            _v = 0;
            Py_DECREF(o);
          }
        } else {
          /* wrapped Array? */
          Array* v;
          if (SWIG_ConvertPtr(argv[1],(void **) &v,
              SWIGTYPE_p_Array,0) != -1)
          _v = 1;
          else
          _v = 0;
        }
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_SequenceStatistics_add__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SequenceStatistics_add'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    GenericSequenceStatistics< RiskStatistics >::add(std::vector< Real,std::allocator< Real > > const &,Real)\n"
    "    GenericSequenceStatistics< RiskStatistics >::add(std::vector< Real,std::allocator< Real > > const &)\n"
    "    GenericSequenceStatistics< RiskStatistics >::add(Array const &,Real)\n"
    "    GenericSequenceStatistics< RiskStatistics >::add(Array const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_SequenceStatistics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< RiskStatistics > *arg1 = (GenericSequenceStatistics< RiskStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_SequenceStatistics",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SequenceStatistics" "', argument " "1"" of type '" "GenericSequenceStatistics< RiskStatistics > *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< RiskStatistics > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SequenceStatistics_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GenericSequenceStatisticsT_RiskStatistics_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MultipleIncrementalStatistics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  GenericSequenceStatistics< IncrementalStatistics > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MultipleIncrementalStatistics",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MultipleIncrementalStatistics" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  {
    try {
      result = (GenericSequenceStatistics< IncrementalStatistics > *)new GenericSequenceStatistics< IncrementalStatistics >(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleIncrementalStatistics_size",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleIncrementalStatistics_size" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< IncrementalStatistics > const *)arg1)->size();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_samples(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleIncrementalStatistics_samples",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleIncrementalStatistics_samples" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< IncrementalStatistics > const *)arg1)->samples();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_weightSum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleIncrementalStatistics_weightSum",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleIncrementalStatistics_weightSum" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    try {
      result = (Real)((GenericSequenceStatistics< IncrementalStatistics > const *)arg1)->weightSum();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_mean(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleIncrementalStatistics_mean",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleIncrementalStatistics_mean" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< IncrementalStatistics > const *)arg1)->mean();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_variance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleIncrementalStatistics_variance",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleIncrementalStatistics_variance" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< IncrementalStatistics > const *)arg1)->variance();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_standardDeviation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleIncrementalStatistics_standardDeviation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleIncrementalStatistics_standardDeviation" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< IncrementalStatistics > const *)arg1)->standardDeviation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_errorEstimate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleIncrementalStatistics_errorEstimate",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleIncrementalStatistics_errorEstimate" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< IncrementalStatistics > const *)arg1)->errorEstimate();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_skewness(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleIncrementalStatistics_skewness",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleIncrementalStatistics_skewness" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< IncrementalStatistics > const *)arg1)->skewness();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_kurtosis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleIncrementalStatistics_kurtosis",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleIncrementalStatistics_kurtosis" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< IncrementalStatistics > const *)arg1)->kurtosis();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleIncrementalStatistics_min",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleIncrementalStatistics_min" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< IncrementalStatistics > const *)arg1)->min();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleIncrementalStatistics_max",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleIncrementalStatistics_max" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< IncrementalStatistics > const *)arg1)->max();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_covariance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleIncrementalStatistics_covariance",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleIncrementalStatistics_covariance" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< IncrementalStatistics > const *)arg1)->covariance();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_correlation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Matrix result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleIncrementalStatistics_correlation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleIncrementalStatistics_correlation" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > const *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    try {
      result = ((GenericSequenceStatistics< IncrementalStatistics > const *)arg1)->correlation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Matrix(static_cast< const Matrix& >(result))), SWIGTYPE_p_Matrix, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleIncrementalStatistics_reset",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleIncrementalStatistics_reset" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    try {
      (arg1)->reset();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_add__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleIncrementalStatistics_add",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleIncrementalStatistics_add" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MultipleIncrementalStatistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MultipleIncrementalStatistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MultipleIncrementalStatistics_add" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      (arg1)->add((std::vector< Real,std::allocator< Real > > const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_add__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  std::vector< Real,std::allocator< Real > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleIncrementalStatistics_add",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleIncrementalStatistics_add" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MultipleIncrementalStatistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MultipleIncrementalStatistics_add" "', argument " "2"" of type '" "std::vector< Real,std::allocator< Real > > const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      (arg1)->add((std::vector< Real,std::allocator< Real > > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_add__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  Array *arg2 = 0 ;
  Real arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleIncrementalStatistics_add",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleIncrementalStatistics_add" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MultipleIncrementalStatistics_add" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    try {
      (arg1)->add((Array const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_add__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  Array *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Array temp2 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MultipleIncrementalStatistics_add",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultipleIncrementalStatistics_add" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    if (extractArray(obj1,&temp2)) {
      arg2 = &temp2;
    } else {
      SWIG_ConvertPtr(obj1,(void **) &arg2,SWIGTYPE_p_Array,1);
    }
  }
  {
    try {
      (arg1)->add((Array const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MultipleIncrementalStatistics_add(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_MultipleIncrementalStatistics_add__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        /* native sequence? */
        if (PyTuple_Check(argv[1]) || PyList_Check(argv[1])) {
          Size size = PySequence_Size(argv[1]);
          if (size == 0) {
            _v = 1;
          } else {
            PyObject* o = PySequence_GetItem(argv[1],0);
            if (PyNumber_Check(o))
            _v = 1;
            else
            _v = 0;
            Py_DECREF(o);
          }
        } else {
          /* wrapped Array? */
          Array* v;
          if (SWIG_ConvertPtr(argv[1],(void **) &v,
              SWIGTYPE_p_Array,0) != -1)
          _v = 1;
          else
          _v = 0;
        }
      }
      if (_v) {
        return _wrap_MultipleIncrementalStatistics_add__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MultipleIncrementalStatistics_add__SWIG_0(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        /* native sequence? */
        if (PyTuple_Check(argv[1]) || PyList_Check(argv[1])) {
          Size size = PySequence_Size(argv[1]);
          if (size == 0) {
            _v = 1;
          } else {
            PyObject* o = PySequence_GetItem(argv[1],0);
            if (PyNumber_Check(o))
            _v = 1;
            else
            _v = 0;
            Py_DECREF(o);
          }
        } else {
          /* wrapped Array? */
          Array* v;
          if (SWIG_ConvertPtr(argv[1],(void **) &v,
              SWIGTYPE_p_Array,0) != -1)
          _v = 1;
          else
          _v = 0;
        }
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_MultipleIncrementalStatistics_add__SWIG_2(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MultipleIncrementalStatistics_add'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    GenericSequenceStatistics< IncrementalStatistics >::add(std::vector< Real,std::allocator< Real > > const &,Real)\n"
    "    GenericSequenceStatistics< IncrementalStatistics >::add(std::vector< Real,std::allocator< Real > > const &)\n"
    "    GenericSequenceStatistics< IncrementalStatistics >::add(Array const &,Real)\n"
    "    GenericSequenceStatistics< IncrementalStatistics >::add(Array const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_MultipleIncrementalStatistics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GenericSequenceStatistics< IncrementalStatistics > *arg1 = (GenericSequenceStatistics< IncrementalStatistics > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MultipleIncrementalStatistics",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MultipleIncrementalStatistics" "', argument " "1"" of type '" "GenericSequenceStatistics< IncrementalStatistics > *""'"); 
  }
  arg1 = reinterpret_cast< GenericSequenceStatistics< IncrementalStatistics > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MultipleIncrementalStatistics_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GenericSequenceStatisticsT_IncrementalStatistics_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructure___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CapFloorTermVolatilityStructure > *arg1 = (boost::shared_ptr< CapFloorTermVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  CapFloorTermVolatilityStructure *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructure___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructure___deref__" "', argument " "1"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      result = (CapFloorTermVolatilityStructure *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CapFloorTermVolatilityStructure, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructure___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CapFloorTermVolatilityStructure > *arg1 = (boost::shared_ptr< CapFloorTermVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructure___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructure___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_CapFloorTermVolatilityStructure_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructure___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CapFloorTermVolatilityStructure > *arg1 = (boost::shared_ptr< CapFloorTermVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructure___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructure___bool__" "', argument " "1"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_CapFloorTermVolatilityStructure_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructure_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CapFloorTermVolatilityStructure > *arg1 = (boost::shared_ptr< CapFloorTermVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructure_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructure_asObservable" "', argument " "1"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      result = boost_shared_ptr_Sl_CapFloorTermVolatilityStructure_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapFloorTermVolatilityStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CapFloorTermVolatilityStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CapFloorTermVolatilityStructure",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< CapFloorTermVolatilityStructure > *)new boost::shared_ptr< CapFloorTermVolatilityStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CapFloorTermVolatilityStructure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CapFloorTermVolatilityStructure > *arg1 = (boost::shared_ptr< CapFloorTermVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CapFloorTermVolatilityStructure",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CapFloorTermVolatilityStructure" "', argument " "1"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructure_volatility__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CapFloorTermVolatilityStructure > *arg1 = (boost::shared_ptr< CapFloorTermVolatilityStructure > *) 0 ;
  Period *arg2 = 0 ;
  Rate arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructure_volatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "1"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CapFloorTermVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Volatility)(*arg1)->volatility((Period const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructure_volatility__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CapFloorTermVolatilityStructure > *arg1 = (boost::shared_ptr< CapFloorTermVolatilityStructure > *) 0 ;
  Period *arg2 = 0 ;
  Rate arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructure_volatility",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "1"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CapFloorTermVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  {
    try {
      result = (Volatility)(*arg1)->volatility((Period const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructure_volatility__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CapFloorTermVolatilityStructure > *arg1 = (boost::shared_ptr< CapFloorTermVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Rate arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructure_volatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "1"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CapFloorTermVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Volatility)(*arg1)->volatility((Date const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructure_volatility__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CapFloorTermVolatilityStructure > *arg1 = (boost::shared_ptr< CapFloorTermVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Rate arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructure_volatility",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "1"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CapFloorTermVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  {
    try {
      result = (Volatility)(*arg1)->volatility((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructure_volatility__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CapFloorTermVolatilityStructure > *arg1 = (boost::shared_ptr< CapFloorTermVolatilityStructure > *) 0 ;
  Time arg2 ;
  Rate arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructure_volatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "1"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CapFloorTermVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Volatility)(*arg1)->volatility(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructure_volatility__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CapFloorTermVolatilityStructure > *arg1 = (boost::shared_ptr< CapFloorTermVolatilityStructure > *) 0 ;
  Time arg2 ;
  Rate arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructure_volatility",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "1"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CapFloorTermVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CapFloorTermVolatilityStructure_volatility" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  {
    try {
      result = (Volatility)(*arg1)->volatility(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructure_volatility(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CapFloorTermVolatilityStructure_volatility__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CapFloorTermVolatilityStructure_volatility__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CapFloorTermVolatilityStructure_volatility__SWIG_5(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_CapFloorTermVolatilityStructure_volatility__SWIG_0(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_CapFloorTermVolatilityStructure_volatility__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_CapFloorTermVolatilityStructure_volatility__SWIG_4(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CapFloorTermVolatilityStructure_volatility'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CapFloorTermVolatilityStructure::volatility(Period const &,Rate,bool)\n"
    "    CapFloorTermVolatilityStructure::volatility(Period const &,Rate)\n"
    "    CapFloorTermVolatilityStructure::volatility(Date const &,Rate,bool)\n"
    "    CapFloorTermVolatilityStructure::volatility(Date const &,Rate)\n"
    "    CapFloorTermVolatilityStructure::volatility(Time,Rate,bool)\n"
    "    CapFloorTermVolatilityStructure::volatility(Time,Rate)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructure_enableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CapFloorTermVolatilityStructure > *arg1 = (boost::shared_ptr< CapFloorTermVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructure_enableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructure_enableExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      (*arg1)->enableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructure_disableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CapFloorTermVolatilityStructure > *arg1 = (boost::shared_ptr< CapFloorTermVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructure_disableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructure_disableExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      (*arg1)->disableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructure_allowsExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CapFloorTermVolatilityStructure > *arg1 = (boost::shared_ptr< CapFloorTermVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructure_allowsExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructure_allowsExtrapolation" "', argument " "1"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->allowsExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CapFloorTermVolatilityStructure_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CapFloorTermVolatilityStructureHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CapFloorTermVolatilityStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Handle< CapFloorTermVolatilityStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CapFloorTermVolatilityStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CapFloorTermVolatilityStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolatilityStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      result = (Handle< CapFloorTermVolatilityStructure > *)new Handle< CapFloorTermVolatilityStructure >((boost::shared_ptr< CapFloorTermVolatilityStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapFloorTermVolatilityStructureHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CapFloorTermVolatilityStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CapFloorTermVolatilityStructureHandle",0,0)) SWIG_fail;
  {
    try {
      result = (Handle< CapFloorTermVolatilityStructure > *)new Handle< CapFloorTermVolatilityStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapFloorTermVolatilityStructureHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_CapFloorTermVolatilityStructureHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_CapFloorTermVolatilityStructureHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CapFloorTermVolatilityStructureHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    Handle< CapFloorTermVolatilityStructure >::Handle(boost::shared_ptr< CapFloorTermVolatilityStructure > const &)\n"
    "    Handle< CapFloorTermVolatilityStructure >::Handle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructureHandle___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CapFloorTermVolatilityStructure > *arg1 = (Handle< CapFloorTermVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< CapFloorTermVolatilityStructure > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructureHandle___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructureHandle___deref__" "', argument " "1"" of type '" "Handle< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      result = (arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< CapFloorTermVolatilityStructure >(static_cast< const boost::shared_ptr< CapFloorTermVolatilityStructure >& >(result))), SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructureHandle___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CapFloorTermVolatilityStructure > *arg1 = (Handle< CapFloorTermVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructureHandle___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructureHandle___nonzero__" "', argument " "1"" of type '" "Handle< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_CapFloorTermVolatilityStructure_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructureHandle___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CapFloorTermVolatilityStructure > *arg1 = (Handle< CapFloorTermVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructureHandle___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructureHandle___bool__" "', argument " "1"" of type '" "Handle< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      result = (bool)Handle_Sl_CapFloorTermVolatilityStructure_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructureHandle_asObservable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CapFloorTermVolatilityStructure > *arg1 = (Handle< CapFloorTermVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  boost::shared_ptr< Observable > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructureHandle_asObservable",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructureHandle_asObservable" "', argument " "1"" of type '" "Handle< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      result = Handle_Sl_CapFloorTermVolatilityStructure_Sg__asObservable(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new boost::shared_ptr< Observable >(static_cast< const boost::shared_ptr< Observable >& >(result))), SWIGTYPE_p_boost__shared_ptrT_Observable_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CapFloorTermVolatilityStructureHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CapFloorTermVolatilityStructure > *arg1 = (Handle< CapFloorTermVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CapFloorTermVolatilityStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CapFloorTermVolatilityStructureHandle" "', argument " "1"" of type '" "Handle< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructureHandle_volatility__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CapFloorTermVolatilityStructure > *arg1 = (Handle< CapFloorTermVolatilityStructure > *) 0 ;
  Period *arg2 = 0 ;
  Rate arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructureHandle_volatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "1"" of type '" "Handle< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CapFloorTermVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Volatility)(*arg1)->volatility((Period const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructureHandle_volatility__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CapFloorTermVolatilityStructure > *arg1 = (Handle< CapFloorTermVolatilityStructure > *) 0 ;
  Period *arg2 = 0 ;
  Rate arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructureHandle_volatility",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "1"" of type '" "Handle< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CapFloorTermVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Period,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Period const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Period const &""'"); 
  }
  arg2 = reinterpret_cast< Period * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  {
    try {
      result = (Volatility)(*arg1)->volatility((Period const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructureHandle_volatility__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CapFloorTermVolatilityStructure > *arg1 = (Handle< CapFloorTermVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Rate arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructureHandle_volatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "1"" of type '" "Handle< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CapFloorTermVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Volatility)(*arg1)->volatility((Date const &)*arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructureHandle_volatility__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CapFloorTermVolatilityStructure > *arg1 = (Handle< CapFloorTermVolatilityStructure > *) 0 ;
  Date *arg2 = 0 ;
  Rate arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructureHandle_volatility",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "1"" of type '" "Handle< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CapFloorTermVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  {
    try {
      result = (Volatility)(*arg1)->volatility((Date const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructureHandle_volatility__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CapFloorTermVolatilityStructure > *arg1 = (Handle< CapFloorTermVolatilityStructure > *) 0 ;
  Time arg2 ;
  Rate arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructureHandle_volatility",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "1"" of type '" "Handle< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CapFloorTermVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  ecode4 = SWIG_AsVal_bool(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "4"" of type '" "bool""'");
  } 
  arg4 = static_cast< bool >(val4);
  {
    try {
      result = (Volatility)(*arg1)->volatility(arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructureHandle_volatility__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CapFloorTermVolatilityStructure > *arg1 = (Handle< CapFloorTermVolatilityStructure > *) 0 ;
  Time arg2 ;
  Rate arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  Volatility result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructureHandle_volatility",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "1"" of type '" "Handle< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CapFloorTermVolatilityStructure > * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "2"" of type '" "Time""'");
  } 
  arg2 = static_cast< Time >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CapFloorTermVolatilityStructureHandle_volatility" "', argument " "3"" of type '" "Rate""'");
  } 
  arg3 = static_cast< Rate >(val3);
  {
    try {
      result = (Volatility)(*arg1)->volatility(arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructureHandle_volatility(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CapFloorTermVolatilityStructureHandle_volatility__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CapFloorTermVolatilityStructureHandle_volatility__SWIG_3(self, args);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CapFloorTermVolatilityStructureHandle_volatility__SWIG_5(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Period, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_CapFloorTermVolatilityStructureHandle_volatility__SWIG_0(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_CapFloorTermVolatilityStructureHandle_volatility__SWIG_2(self, args);
          }
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_double(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_bool(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_CapFloorTermVolatilityStructureHandle_volatility__SWIG_4(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CapFloorTermVolatilityStructureHandle_volatility'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CapFloorTermVolatilityStructure::volatility(Period const &,Rate,bool)\n"
    "    CapFloorTermVolatilityStructure::volatility(Period const &,Rate)\n"
    "    CapFloorTermVolatilityStructure::volatility(Date const &,Rate,bool)\n"
    "    CapFloorTermVolatilityStructure::volatility(Date const &,Rate)\n"
    "    CapFloorTermVolatilityStructure::volatility(Time,Rate,bool)\n"
    "    CapFloorTermVolatilityStructure::volatility(Time,Rate)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructureHandle_enableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CapFloorTermVolatilityStructure > *arg1 = (Handle< CapFloorTermVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructureHandle_enableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructureHandle_enableExtrapolation" "', argument " "1"" of type '" "Handle< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      (*arg1)->enableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructureHandle_disableExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CapFloorTermVolatilityStructure > *arg1 = (Handle< CapFloorTermVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructureHandle_disableExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructureHandle_disableExtrapolation" "', argument " "1"" of type '" "Handle< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      (*arg1)->disableExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapFloorTermVolatilityStructureHandle_allowsExtrapolation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< CapFloorTermVolatilityStructure > *arg1 = (Handle< CapFloorTermVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CapFloorTermVolatilityStructureHandle_allowsExtrapolation",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapFloorTermVolatilityStructureHandle_allowsExtrapolation" "', argument " "1"" of type '" "Handle< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< Handle< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      result = (bool)(*arg1)->allowsExtrapolation();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CapFloorTermVolatilityStructureHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_HandleT_CapFloorTermVolatilityStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_RelinkableCapFloorTermVolatilityStructureHandle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< CapFloorTermVolatilityStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  RelinkableHandle< CapFloorTermVolatilityStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableCapFloorTermVolatilityStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RelinkableCapFloorTermVolatilityStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RelinkableCapFloorTermVolatilityStructureHandle" "', argument " "1"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      result = (RelinkableHandle< CapFloorTermVolatilityStructure > *)new RelinkableHandle< CapFloorTermVolatilityStructure >((boost::shared_ptr< CapFloorTermVolatilityStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_CapFloorTermVolatilityStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableCapFloorTermVolatilityStructureHandle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< CapFloorTermVolatilityStructure > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_RelinkableCapFloorTermVolatilityStructureHandle",0,0)) SWIG_fail;
  {
    try {
      result = (RelinkableHandle< CapFloorTermVolatilityStructure > *)new RelinkableHandle< CapFloorTermVolatilityStructure >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RelinkableHandleT_CapFloorTermVolatilityStructure_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_RelinkableCapFloorTermVolatilityStructureHandle(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 1) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 0) {
    return _wrap_new_RelinkableCapFloorTermVolatilityStructureHandle__SWIG_1(self, args);
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_RelinkableCapFloorTermVolatilityStructureHandle__SWIG_0(self, args);
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_RelinkableCapFloorTermVolatilityStructureHandle'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    RelinkableHandle< CapFloorTermVolatilityStructure >::RelinkableHandle(boost::shared_ptr< CapFloorTermVolatilityStructure > const &)\n"
    "    RelinkableHandle< CapFloorTermVolatilityStructure >::RelinkableHandle()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_RelinkableCapFloorTermVolatilityStructureHandle_linkTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< CapFloorTermVolatilityStructure > *arg1 = (RelinkableHandle< CapFloorTermVolatilityStructure > *) 0 ;
  boost::shared_ptr< CapFloorTermVolatilityStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"RelinkableCapFloorTermVolatilityStructureHandle_linkTo",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_CapFloorTermVolatilityStructure_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RelinkableCapFloorTermVolatilityStructureHandle_linkTo" "', argument " "1"" of type '" "RelinkableHandle< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< CapFloorTermVolatilityStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RelinkableCapFloorTermVolatilityStructureHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RelinkableCapFloorTermVolatilityStructureHandle_linkTo" "', argument " "2"" of type '" "boost::shared_ptr< CapFloorTermVolatilityStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< CapFloorTermVolatilityStructure > * >(argp2);
  {
    try {
      (arg1)->linkTo((boost::shared_ptr< CapFloorTermVolatilityStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_RelinkableCapFloorTermVolatilityStructureHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  RelinkableHandle< CapFloorTermVolatilityStructure > *arg1 = (RelinkableHandle< CapFloorTermVolatilityStructure > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_RelinkableCapFloorTermVolatilityStructureHandle",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RelinkableHandleT_CapFloorTermVolatilityStructure_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RelinkableCapFloorTermVolatilityStructureHandle" "', argument " "1"" of type '" "RelinkableHandle< CapFloorTermVolatilityStructure > *""'"); 
  }
  arg1 = reinterpret_cast< RelinkableHandle< CapFloorTermVolatilityStructure > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *RelinkableCapFloorTermVolatilityStructureHandle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_RelinkableHandleT_CapFloorTermVolatilityStructure_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CapFloorTermVolCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  std::vector< Volatility,std::allocator< Volatility > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  CapFloorTermVolCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CapFloorTermVolCurve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CapFloorTermVolCurve" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolCurve" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CapFloorTermVolCurve" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolCurve" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CapFloorTermVolCurve" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CapFloorTermVolCurve" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolCurve" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CapFloorTermVolCurve" "', argument " "5"" of type '" "std::vector< Volatility,std::allocator< Volatility > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolCurve" "', argument " "5"" of type '" "std::vector< Volatility,std::allocator< Volatility > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CapFloorTermVolCurve" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolCurve" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  {
    try {
      result = (CapFloorTermVolCurvePtr *)new_CapFloorTermVolCurvePtr__SWIG_0((Date const &)*arg1,(Calendar const &)*arg2,arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(DayCounter const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CapFloorTermVolCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapFloorTermVolCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  std::vector< Volatility,std::allocator< Volatility > > *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  CapFloorTermVolCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CapFloorTermVolCurve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CapFloorTermVolCurve" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolCurve" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CapFloorTermVolCurve" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolCurve" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CapFloorTermVolCurve" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CapFloorTermVolCurve" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolCurve" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CapFloorTermVolCurve" "', argument " "5"" of type '" "std::vector< Volatility,std::allocator< Volatility > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolCurve" "', argument " "5"" of type '" "std::vector< Volatility,std::allocator< Volatility > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    try {
      result = (CapFloorTermVolCurvePtr *)new_CapFloorTermVolCurvePtr__SWIG_0((Date const &)*arg1,(Calendar const &)*arg2,arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CapFloorTermVolCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapFloorTermVolCurve__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  std::vector< Volatility,std::allocator< Volatility > > *arg5 = 0 ;
  DayCounter *arg6 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  CapFloorTermVolCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CapFloorTermVolCurve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CapFloorTermVolCurve" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CapFloorTermVolCurve" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolCurve" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CapFloorTermVolCurve" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CapFloorTermVolCurve" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolCurve" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CapFloorTermVolCurve" "', argument " "5"" of type '" "std::vector< Volatility,std::allocator< Volatility > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolCurve" "', argument " "5"" of type '" "std::vector< Volatility,std::allocator< Volatility > > const &""'"); 
    }
    arg5 = ptr;
  }
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CapFloorTermVolCurve" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolCurve" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  {
    try {
      result = (CapFloorTermVolCurvePtr *)new_CapFloorTermVolCurvePtr__SWIG_2(arg1,(Calendar const &)*arg2,arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(DayCounter const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CapFloorTermVolCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapFloorTermVolCurve__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  std::vector< Volatility,std::allocator< Volatility > > *arg5 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  CapFloorTermVolCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CapFloorTermVolCurve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CapFloorTermVolCurve" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CapFloorTermVolCurve" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolCurve" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CapFloorTermVolCurve" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CapFloorTermVolCurve" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolCurve" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CapFloorTermVolCurve" "', argument " "5"" of type '" "std::vector< Volatility,std::allocator< Volatility > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolCurve" "', argument " "5"" of type '" "std::vector< Volatility,std::allocator< Volatility > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    try {
      result = (CapFloorTermVolCurvePtr *)new_CapFloorTermVolCurvePtr__SWIG_2(arg1,(Calendar const &)*arg2,arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CapFloorTermVolCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapFloorTermVolCurve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[7] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 6) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 5) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_CapFloorTermVolCurve__SWIG_1(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_CapFloorTermVolCurve__SWIG_3(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_CapFloorTermVolCurve__SWIG_0(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_CapFloorTermVolCurve__SWIG_2(self, args);
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CapFloorTermVolCurve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CapFloorTermVolCurvePtr::CapFloorTermVolCurvePtr(Date const &,Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Volatility,std::allocator< Volatility > > const &,DayCounter const &)\n"
    "    CapFloorTermVolCurvePtr::CapFloorTermVolCurvePtr(Date const &,Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Volatility,std::allocator< Volatility > > const &)\n"
    "    CapFloorTermVolCurvePtr::CapFloorTermVolCurvePtr(Natural,Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Volatility,std::allocator< Volatility > > const &,DayCounter const &)\n"
    "    CapFloorTermVolCurvePtr::CapFloorTermVolCurvePtr(Natural,Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Volatility,std::allocator< Volatility > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_CapFloorTermVolCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapFloorTermVolCurvePtr *arg1 = (CapFloorTermVolCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CapFloorTermVolCurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapFloorTermVolCurvePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CapFloorTermVolCurve" "', argument " "1"" of type '" "CapFloorTermVolCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< CapFloorTermVolCurvePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CapFloorTermVolCurve_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CapFloorTermVolCurvePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CapFloorTermVolSurface__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg5 = 0 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  CapFloorTermVolSurfacePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CapFloorTermVolSurface",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CapFloorTermVolSurface" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CapFloorTermVolSurface" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CapFloorTermVolSurface" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CapFloorTermVolSurface" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CapFloorTermVolSurface" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CapFloorTermVolSurface" "', argument " "6"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "6"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg6 = ptr;
  }
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CapFloorTermVolSurface" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  {
    try {
      result = (CapFloorTermVolSurfacePtr *)new_CapFloorTermVolSurfacePtr__SWIG_0(arg1,(Calendar const &)*arg2,arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg6,(DayCounter const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CapFloorTermVolSurfacePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapFloorTermVolSurface__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg5 = 0 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg6 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  CapFloorTermVolSurfacePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CapFloorTermVolSurface",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CapFloorTermVolSurface" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CapFloorTermVolSurface" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CapFloorTermVolSurface" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CapFloorTermVolSurface" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CapFloorTermVolSurface" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CapFloorTermVolSurface" "', argument " "6"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "6"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    try {
      result = (CapFloorTermVolSurfacePtr *)new_CapFloorTermVolSurfacePtr__SWIG_0(arg1,(Calendar const &)*arg2,arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CapFloorTermVolSurfacePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapFloorTermVolSurface__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg5 = 0 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  CapFloorTermVolSurfacePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CapFloorTermVolSurface",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CapFloorTermVolSurface" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CapFloorTermVolSurface" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CapFloorTermVolSurface" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CapFloorTermVolSurface" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CapFloorTermVolSurface" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CapFloorTermVolSurface" "', argument " "6"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "6"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg6 = ptr;
  }
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CapFloorTermVolSurface" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  {
    try {
      result = (CapFloorTermVolSurfacePtr *)new_CapFloorTermVolSurfacePtr__SWIG_2((Date const &)*arg1,(Calendar const &)*arg2,arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg6,(DayCounter const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CapFloorTermVolSurfacePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapFloorTermVolSurface__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg5 = 0 ;
  std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  int res6 = SWIG_OLDOBJ ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  CapFloorTermVolSurfacePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CapFloorTermVolSurface",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CapFloorTermVolSurface" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CapFloorTermVolSurface" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CapFloorTermVolSurface" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CapFloorTermVolSurface" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CapFloorTermVolSurface" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *ptr = (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *)0;
    res6 = swig::asptr(obj5, &ptr);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CapFloorTermVolSurface" "', argument " "6"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "6"" of type '" "std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &""'"); 
    }
    arg6 = ptr;
  }
  {
    try {
      result = (CapFloorTermVolSurfacePtr *)new_CapFloorTermVolSurfacePtr__SWIG_2((Date const &)*arg1,(Calendar const &)*arg2,arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CapFloorTermVolSurfacePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  if (SWIG_IsNewObj(res6)) delete arg6;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapFloorTermVolSurface__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg5 = 0 ;
  Matrix *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  Matrix temp6 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  CapFloorTermVolSurfacePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CapFloorTermVolSurface",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CapFloorTermVolSurface" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CapFloorTermVolSurface" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CapFloorTermVolSurface" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CapFloorTermVolSurface" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CapFloorTermVolSurface" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    if (PyTuple_Check(obj5) || PyList_Check(obj5)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj5) ?
      PyTuple_Size(obj5) :
        PyList_Size(obj5));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj5,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp6 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj5,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp6[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp6[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg6 = &temp6;
    } else {
      SWIG_ConvertPtr(obj5,(void **) &arg6,SWIGTYPE_p_Matrix,1);
    }
  }
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CapFloorTermVolSurface" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  {
    try {
      result = (CapFloorTermVolSurfacePtr *)new_CapFloorTermVolSurfacePtr__SWIG_4((Date const &)*arg1,(Calendar const &)*arg2,arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(Matrix const &)*arg6,(DayCounter const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CapFloorTermVolSurfacePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapFloorTermVolSurface__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg5 = 0 ;
  Matrix *arg6 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  Matrix temp6 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  CapFloorTermVolSurfacePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CapFloorTermVolSurface",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CapFloorTermVolSurface" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CapFloorTermVolSurface" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CapFloorTermVolSurface" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CapFloorTermVolSurface" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CapFloorTermVolSurface" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    if (PyTuple_Check(obj5) || PyList_Check(obj5)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj5) ?
      PyTuple_Size(obj5) :
        PyList_Size(obj5));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj5,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp6 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj5,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp6[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp6[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg6 = &temp6;
    } else {
      SWIG_ConvertPtr(obj5,(void **) &arg6,SWIGTYPE_p_Matrix,1);
    }
  }
  {
    try {
      result = (CapFloorTermVolSurfacePtr *)new_CapFloorTermVolSurfacePtr__SWIG_4((Date const &)*arg1,(Calendar const &)*arg2,arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(Matrix const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CapFloorTermVolSurfacePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapFloorTermVolSurface__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg5 = 0 ;
  Matrix *arg6 = 0 ;
  DayCounter *arg7 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  Matrix temp6 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  CapFloorTermVolSurfacePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CapFloorTermVolSurface",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CapFloorTermVolSurface" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CapFloorTermVolSurface" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CapFloorTermVolSurface" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CapFloorTermVolSurface" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CapFloorTermVolSurface" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    if (PyTuple_Check(obj5) || PyList_Check(obj5)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj5) ?
      PyTuple_Size(obj5) :
        PyList_Size(obj5));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj5,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp6 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj5,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp6[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp6[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg6 = &temp6;
    } else {
      SWIG_ConvertPtr(obj5,(void **) &arg6,SWIGTYPE_p_Matrix,1);
    }
  }
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CapFloorTermVolSurface" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "7"" of type '" "DayCounter const &""'"); 
  }
  arg7 = reinterpret_cast< DayCounter * >(argp7);
  {
    try {
      result = (CapFloorTermVolSurfacePtr *)new_CapFloorTermVolSurfacePtr__SWIG_6(arg1,(Calendar const &)*arg2,arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(Matrix const &)*arg6,(DayCounter const &)*arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CapFloorTermVolSurfacePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapFloorTermVolSurface__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Natural arg1 ;
  Calendar *arg2 = 0 ;
  BusinessDayConvention arg3 ;
  std::vector< Period,std::allocator< Period > > *arg4 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg5 = 0 ;
  Matrix *arg6 = 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  int res5 = SWIG_OLDOBJ ;
  Matrix temp6 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  CapFloorTermVolSurfacePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CapFloorTermVolSurface",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CapFloorTermVolSurface" "', argument " "1"" of type '" "Natural""'");
  } 
  arg1 = static_cast< Natural >(val1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CapFloorTermVolSurface" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "2"" of type '" "Calendar const &""'"); 
  }
  arg2 = reinterpret_cast< Calendar * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CapFloorTermVolSurface" "', argument " "3"" of type '" "BusinessDayConvention""'");
  } 
  arg3 = static_cast< BusinessDayConvention >(val3);
  {
    std::vector< Period,std::allocator< Period > > *ptr = (std::vector< Period,std::allocator< Period > > *)0;
    res4 = swig::asptr(obj3, &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CapFloorTermVolSurface" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "4"" of type '" "std::vector< Period,std::allocator< Period > > const &""'"); 
    }
    arg4 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res5 = swig::asptr(obj4, &ptr);
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CapFloorTermVolSurface" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CapFloorTermVolSurface" "', argument " "5"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg5 = ptr;
  }
  {
    if (PyTuple_Check(obj5) || PyList_Check(obj5)) {
      Size rows, cols;
      rows = (PyTuple_Check(obj5) ?
      PyTuple_Size(obj5) :
        PyList_Size(obj5));
      if (rows > 0) {
        // look ahead
        PyObject* o = PySequence_GetItem(obj5,0);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          cols = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      } else {
        cols = 0;
      }
      
      temp6 = Matrix(rows,cols);
      for (Size i=0; i<rows; i++) {
        PyObject* o = PySequence_GetItem(obj5,i);
        if (PyTuple_Check(o) || PyList_Check(o)) {
          Size items = (PyTuple_Check(o) ?
          PyTuple_Size(o) :
            PyList_Size(o));
          if (items != cols) {
            PyErr_SetString(PyExc_TypeError,
              "Matrix must have equal-length rows");
            Py_DECREF(o);
            return NULL;
          }
          for (Size j=0; j<cols; j++) {
            PyObject* d = PySequence_GetItem(o,j);
            if (PyFloat_Check(d)) {
              temp6[i][j] = PyFloat_AsDouble(d);
              Py_DECREF(d);
            } else if (PyInt_Check(d)) {
              temp6[i][j] = Real(PyInt_AsLong(d));
              Py_DECREF(d);
            } else {
              PyErr_SetString(PyExc_TypeError,"doubles expected");
              Py_DECREF(d);
              Py_DECREF(o);
              return NULL;
            }
          }
          Py_DECREF(o);
        } else {
          PyErr_SetString(PyExc_TypeError, "Matrix expected");
          Py_DECREF(o);
          return NULL;
        }
      }
      arg6 = &temp6;
    } else {
      SWIG_ConvertPtr(obj5,(void **) &arg6,SWIGTYPE_p_Matrix,1);
    }
  }
  {
    try {
      result = (CapFloorTermVolSurfacePtr *)new_CapFloorTermVolSurfacePtr__SWIG_6(arg1,(Calendar const &)*arg2,arg3,(std::vector< Period,std::allocator< Period > > const &)*arg4,(std::vector< double,std::allocator< double > > const &)*arg5,(Matrix const &)*arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CapFloorTermVolSurfacePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  if (SWIG_IsNewObj(res5)) delete arg5;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapFloorTermVolSurface(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_CapFloorTermVolSurface__SWIG_3(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                /* native sequence? */
                if (PyTuple_Check(argv[5]) || PyList_Check(argv[5])) {
                  _v = 1;
                  /* wrapped Matrix? */
                } else {
                  Matrix* m;
                  if (SWIG_ConvertPtr(argv[5],(void **) &m,
                      SWIGTYPE_p_Matrix,0) != -1)
                  _v = 1;
                  else
                  _v = 0;
                }
              }
              if (_v) {
                return _wrap_new_CapFloorTermVolSurface__SWIG_5(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                return _wrap_new_CapFloorTermVolSurface__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                /* native sequence? */
                if (PyTuple_Check(argv[5]) || PyList_Check(argv[5])) {
                  _v = 1;
                  /* wrapped Matrix? */
                } else {
                  Matrix* m;
                  if (SWIG_ConvertPtr(argv[5],(void **) &m,
                      SWIGTYPE_p_Matrix,0) != -1)
                  _v = 1;
                  else
                  _v = 0;
                }
              }
              if (_v) {
                return _wrap_new_CapFloorTermVolSurface__SWIG_7(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_CapFloorTermVolSurface__SWIG_2(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                /* native sequence? */
                if (PyTuple_Check(argv[5]) || PyList_Check(argv[5])) {
                  _v = 1;
                  /* wrapped Matrix? */
                } else {
                  Matrix* m;
                  if (SWIG_ConvertPtr(argv[5],(void **) &m,
                      SWIGTYPE_p_Matrix,0) != -1)
                  _v = 1;
                  else
                  _v = 0;
                }
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_CapFloorTermVolSurface__SWIG_4(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              int res = swig::asptr(argv[5], (std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > >**)(0));
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_CapFloorTermVolSurface__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    {
      int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Calendar, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Period,std::allocator< Period > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = swig::asptr(argv[4], (std::vector< double,std::allocator< double > >**)(0));
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                /* native sequence? */
                if (PyTuple_Check(argv[5]) || PyList_Check(argv[5])) {
                  _v = 1;
                  /* wrapped Matrix? */
                } else {
                  Matrix* m;
                  if (SWIG_ConvertPtr(argv[5],(void **) &m,
                      SWIGTYPE_p_Matrix,0) != -1)
                  _v = 1;
                  else
                  _v = 0;
                }
              }
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_DayCounter, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  return _wrap_new_CapFloorTermVolSurface__SWIG_6(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CapFloorTermVolSurface'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CapFloorTermVolSurfacePtr::CapFloorTermVolSurfacePtr(Natural,Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Rate,std::allocator< Rate > > const &,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &,DayCounter const &)\n"
    "    CapFloorTermVolSurfacePtr::CapFloorTermVolSurfacePtr(Natural,Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Rate,std::allocator< Rate > > const &,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)\n"
    "    CapFloorTermVolSurfacePtr::CapFloorTermVolSurfacePtr(Date const &,Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Rate,std::allocator< Rate > > const &,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &,DayCounter const &)\n"
    "    CapFloorTermVolSurfacePtr::CapFloorTermVolSurfacePtr(Date const &,Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Rate,std::allocator< Rate > > const &,std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > const &)\n"
    "    CapFloorTermVolSurfacePtr::CapFloorTermVolSurfacePtr(Date const &,Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Rate,std::allocator< Rate > > const &,Matrix const &,DayCounter const &)\n"
    "    CapFloorTermVolSurfacePtr::CapFloorTermVolSurfacePtr(Date const &,Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Rate,std::allocator< Rate > > const &,Matrix const &)\n"
    "    CapFloorTermVolSurfacePtr::CapFloorTermVolSurfacePtr(Natural,Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Rate,std::allocator< Rate > > const &,Matrix const &,DayCounter const &)\n"
    "    CapFloorTermVolSurfacePtr::CapFloorTermVolSurfacePtr(Natural,Calendar const &,BusinessDayConvention,std::vector< Period,std::allocator< Period > > const &,std::vector< Rate,std::allocator< Rate > > const &,Matrix const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_CapFloorTermVolSurface(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CapFloorTermVolSurfacePtr *arg1 = (CapFloorTermVolSurfacePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CapFloorTermVolSurface",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CapFloorTermVolSurfacePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CapFloorTermVolSurface" "', argument " "1"" of type '" "CapFloorTermVolSurfacePtr *""'"); 
  }
  arg1 = reinterpret_cast< CapFloorTermVolSurfacePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CapFloorTermVolSurface_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CapFloorTermVolSurfacePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_StrippedOptionletBase___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StrippedOptionletBase > *arg1 = (boost::shared_ptr< StrippedOptionletBase > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  StrippedOptionletBase *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrippedOptionletBase___deref__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StrippedOptionletBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrippedOptionletBase___deref__" "', argument " "1"" of type '" "boost::shared_ptr< StrippedOptionletBase > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StrippedOptionletBase > * >(argp1);
  {
    try {
      result = (StrippedOptionletBase *)(arg1)->operator ->();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_StrippedOptionletBase, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrippedOptionletBase___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StrippedOptionletBase > *arg1 = (boost::shared_ptr< StrippedOptionletBase > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrippedOptionletBase___nonzero__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StrippedOptionletBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrippedOptionletBase___nonzero__" "', argument " "1"" of type '" "boost::shared_ptr< StrippedOptionletBase > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StrippedOptionletBase > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_StrippedOptionletBase_Sg____nonzero__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrippedOptionletBase___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StrippedOptionletBase > *arg1 = (boost::shared_ptr< StrippedOptionletBase > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  bool result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrippedOptionletBase___bool__",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StrippedOptionletBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrippedOptionletBase___bool__" "', argument " "1"" of type '" "boost::shared_ptr< StrippedOptionletBase > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StrippedOptionletBase > * >(argp1);
  {
    try {
      result = (bool)boost_shared_ptr_Sl_StrippedOptionletBase_Sg____bool__(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_StrippedOptionletBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StrippedOptionletBase > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_StrippedOptionletBase",0,0)) SWIG_fail;
  {
    try {
      result = (boost::shared_ptr< StrippedOptionletBase > *)new boost::shared_ptr< StrippedOptionletBase >();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_boost__shared_ptrT_StrippedOptionletBase_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_StrippedOptionletBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StrippedOptionletBase > *arg1 = (boost::shared_ptr< StrippedOptionletBase > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_StrippedOptionletBase",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StrippedOptionletBase_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StrippedOptionletBase" "', argument " "1"" of type '" "boost::shared_ptr< StrippedOptionletBase > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StrippedOptionletBase > * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrippedOptionletBase_optionletStrikes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StrippedOptionletBase > *arg1 = (boost::shared_ptr< StrippedOptionletBase > *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrippedOptionletBase_optionletStrikes",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StrippedOptionletBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrippedOptionletBase_optionletStrikes" "', argument " "1"" of type '" "boost::shared_ptr< StrippedOptionletBase > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StrippedOptionletBase > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StrippedOptionletBase_optionletStrikes" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (std::vector< Rate,std::allocator< Rate > > *) &(*arg1)->optionletStrikes(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrippedOptionletBase_optionletVolatilities(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StrippedOptionletBase > *arg1 = (boost::shared_ptr< StrippedOptionletBase > *) 0 ;
  Size arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  std::vector< Volatility,std::allocator< Volatility > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrippedOptionletBase_optionletVolatilities",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StrippedOptionletBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrippedOptionletBase_optionletVolatilities" "', argument " "1"" of type '" "boost::shared_ptr< StrippedOptionletBase > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StrippedOptionletBase > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StrippedOptionletBase_optionletVolatilities" "', argument " "2"" of type '" "Size""'");
  } 
  arg2 = static_cast< Size >(val2);
  {
    try {
      result = (std::vector< Volatility,std::allocator< Volatility > > *) &(*arg1)->optionletVolatilities(arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrippedOptionletBase_optionletFixingDates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StrippedOptionletBase > *arg1 = (boost::shared_ptr< StrippedOptionletBase > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrippedOptionletBase_optionletFixingDates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StrippedOptionletBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrippedOptionletBase_optionletFixingDates" "', argument " "1"" of type '" "boost::shared_ptr< StrippedOptionletBase > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StrippedOptionletBase > * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &(*arg1)->optionletFixingDates();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrippedOptionletBase_optionletFixingTimes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StrippedOptionletBase > *arg1 = (boost::shared_ptr< StrippedOptionletBase > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrippedOptionletBase_optionletFixingTimes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StrippedOptionletBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrippedOptionletBase_optionletFixingTimes" "', argument " "1"" of type '" "boost::shared_ptr< StrippedOptionletBase > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StrippedOptionletBase > * >(argp1);
  {
    try {
      result = (std::vector< Time,std::allocator< Time > > *) &(*arg1)->optionletFixingTimes();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrippedOptionletBase_optionletMaturities(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StrippedOptionletBase > *arg1 = (boost::shared_ptr< StrippedOptionletBase > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Size result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrippedOptionletBase_optionletMaturities",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StrippedOptionletBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrippedOptionletBase_optionletMaturities" "', argument " "1"" of type '" "boost::shared_ptr< StrippedOptionletBase > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StrippedOptionletBase > * >(argp1);
  {
    try {
      result = (*arg1)->optionletMaturities();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrippedOptionletBase_atmOptionletRates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StrippedOptionletBase > *arg1 = (boost::shared_ptr< StrippedOptionletBase > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrippedOptionletBase_atmOptionletRates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StrippedOptionletBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrippedOptionletBase_atmOptionletRates" "', argument " "1"" of type '" "boost::shared_ptr< StrippedOptionletBase > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StrippedOptionletBase > * >(argp1);
  {
    try {
      result = (std::vector< Rate,std::allocator< Rate > > *) &(*arg1)->atmOptionletRates();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrippedOptionletBase_dayCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StrippedOptionletBase > *arg1 = (boost::shared_ptr< StrippedOptionletBase > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< DayCounter > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrippedOptionletBase_dayCounter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StrippedOptionletBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrippedOptionletBase_dayCounter" "', argument " "1"" of type '" "boost::shared_ptr< StrippedOptionletBase > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StrippedOptionletBase > * >(argp1);
  {
    try {
      result = (*arg1)->dayCounter();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new DayCounter(static_cast< const DayCounter& >(result))), SWIGTYPE_p_DayCounter, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrippedOptionletBase_calendar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StrippedOptionletBase > *arg1 = (boost::shared_ptr< StrippedOptionletBase > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< Calendar > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrippedOptionletBase_calendar",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StrippedOptionletBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrippedOptionletBase_calendar" "', argument " "1"" of type '" "boost::shared_ptr< StrippedOptionletBase > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StrippedOptionletBase > * >(argp1);
  {
    try {
      result = (*arg1)->calendar();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new Calendar(static_cast< const Calendar& >(result))), SWIGTYPE_p_Calendar, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrippedOptionletBase_settlementDays(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StrippedOptionletBase > *arg1 = (boost::shared_ptr< StrippedOptionletBase > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Natural result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrippedOptionletBase_settlementDays",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StrippedOptionletBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrippedOptionletBase_settlementDays" "', argument " "1"" of type '" "boost::shared_ptr< StrippedOptionletBase > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StrippedOptionletBase > * >(argp1);
  {
    try {
      result = (Natural)(*arg1)->settlementDays();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StrippedOptionletBase_businessDayConvention(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StrippedOptionletBase > *arg1 = (boost::shared_ptr< StrippedOptionletBase > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  BusinessDayConvention result;
  
  if(!PyArg_UnpackTuple(args,(char *)"StrippedOptionletBase_businessDayConvention",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_StrippedOptionletBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrippedOptionletBase_businessDayConvention" "', argument " "1"" of type '" "boost::shared_ptr< StrippedOptionletBase > *""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StrippedOptionletBase > * >(argp1);
  {
    try {
      result = (BusinessDayConvention)(*arg1)->businessDayConvention();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *StrippedOptionletBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_boost__shared_ptrT_StrippedOptionletBase_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_OptionletStripper1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
  PyObject *resultobj = 0;
  CapFloorTermVolSurfacePtr *arg1 = 0 ;
  IborIndexPtr *arg2 = 0 ;
  Rate arg3 = (Rate) Null< Rate >() ;
  Real arg4 = (Real) 1.0e-6 ;
  Natural arg5 = (Natural) 100 ;
  Handle< YieldTermStructure > const &arg6_defvalue = Handle< YieldTermStructure >() ;
  Handle< YieldTermStructure > *arg6 = (Handle< YieldTermStructure > *) &arg6_defvalue ;
  VolatilityType arg7 = (VolatilityType) ShiftedLognormal ;
  Real arg8 = (Real) 0.0 ;
  bool arg9 = (bool) false ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  double val8 ;
  int ecode8 = 0 ;
  bool val9 ;
  int ecode9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  char *  kwnames[] = {
    (char *) "parVolSurface",(char *) "index",(char *) "switchStrikes",(char *) "accuracy",(char *) "maxIter",(char *) "discount",(char *) "type",(char *) "displacement",(char *) "dontThrow", NULL 
  };
  OptionletStripper1Ptr *result = 0 ;
  
  if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:new_OptionletStripper1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CapFloorTermVolSurfacePtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_OptionletStripper1" "', argument " "1"" of type '" "CapFloorTermVolSurfacePtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OptionletStripper1" "', argument " "1"" of type '" "CapFloorTermVolSurfacePtr const &""'"); 
  }
  arg1 = reinterpret_cast< CapFloorTermVolSurfacePtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_IborIndexPtr,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_OptionletStripper1" "', argument " "2"" of type '" "IborIndexPtr const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OptionletStripper1" "', argument " "2"" of type '" "IborIndexPtr const &""'"); 
  }
  arg2 = reinterpret_cast< IborIndexPtr * >(argp2);
  if (obj2) {
    ecode3 = SWIG_AsVal_double(obj2, &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_OptionletStripper1" "', argument " "3"" of type '" "Rate""'");
    } 
    arg3 = static_cast< Rate >(val3);
  }
  if (obj3) {
    ecode4 = SWIG_AsVal_double(obj3, &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_OptionletStripper1" "', argument " "4"" of type '" "Real""'");
    } 
    arg4 = static_cast< Real >(val4);
  }
  if (obj4) {
    ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_OptionletStripper1" "', argument " "5"" of type '" "Natural""'");
    } 
    arg5 = static_cast< Natural >(val5);
  }
  if (obj5) {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_OptionletStripper1" "', argument " "6"" of type '" "Handle< YieldTermStructure > const &""'"); 
    }
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_OptionletStripper1" "', argument " "6"" of type '" "Handle< YieldTermStructure > const &""'"); 
    }
    arg6 = reinterpret_cast< Handle< YieldTermStructure > * >(argp6);
  }
  if (obj6) {
    ecode7 = SWIG_AsVal_int(obj6, &val7);
    if (!SWIG_IsOK(ecode7)) {
      SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_OptionletStripper1" "', argument " "7"" of type '" "VolatilityType""'");
    } 
    arg7 = static_cast< VolatilityType >(val7);
  }
  if (obj7) {
    ecode8 = SWIG_AsVal_double(obj7, &val8);
    if (!SWIG_IsOK(ecode8)) {
      SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_OptionletStripper1" "', argument " "8"" of type '" "Real""'");
    } 
    arg8 = static_cast< Real >(val8);
  }
  if (obj8) {
    ecode9 = SWIG_AsVal_bool(obj8, &val9);
    if (!SWIG_IsOK(ecode9)) {
      SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_OptionletStripper1" "', argument " "9"" of type '" "bool""'");
    } 
    arg9 = static_cast< bool >(val9);
  }
  {
    try {
      result = (OptionletStripper1Ptr *)new_OptionletStripper1Ptr((CapFloorTermVolSurfacePtr const &)*arg1,(IborIndexPtr const &)*arg2,arg3,arg4,arg5,(Handle< YieldTermStructure > const &)*arg6,arg7,arg8,arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OptionletStripper1Ptr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletStripper1_capFloorPrices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  OptionletStripper1Ptr *arg1 = (OptionletStripper1Ptr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Matrix *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletStripper1_capFloorPrices",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OptionletStripper1Ptr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletStripper1_capFloorPrices" "', argument " "1"" of type '" "OptionletStripper1Ptr const *""'"); 
  }
  arg1 = reinterpret_cast< OptionletStripper1Ptr * >(argp1);
  {
    try {
      result = (Matrix *) &OptionletStripper1Ptr_capFloorPrices((OptionletStripper1Ptr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Matrix, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletStripper1_capFloorVolatilities(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  OptionletStripper1Ptr *arg1 = (OptionletStripper1Ptr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Matrix *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletStripper1_capFloorVolatilities",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OptionletStripper1Ptr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletStripper1_capFloorVolatilities" "', argument " "1"" of type '" "OptionletStripper1Ptr const *""'"); 
  }
  arg1 = reinterpret_cast< OptionletStripper1Ptr * >(argp1);
  {
    try {
      result = (Matrix *) &OptionletStripper1Ptr_capFloorVolatilities((OptionletStripper1Ptr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Matrix, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletStripper1_optionletPrices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  OptionletStripper1Ptr *arg1 = (OptionletStripper1Ptr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Matrix *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletStripper1_optionletPrices",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OptionletStripper1Ptr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletStripper1_optionletPrices" "', argument " "1"" of type '" "OptionletStripper1Ptr const *""'"); 
  }
  arg1 = reinterpret_cast< OptionletStripper1Ptr * >(argp1);
  {
    try {
      result = (Matrix *) &OptionletStripper1Ptr_optionletPrices((OptionletStripper1Ptr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Matrix, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionletStripper1_switchStrike(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  OptionletStripper1Ptr *arg1 = (OptionletStripper1Ptr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Rate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"OptionletStripper1_switchStrike",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OptionletStripper1Ptr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionletStripper1_switchStrike" "', argument " "1"" of type '" "OptionletStripper1Ptr const *""'"); 
  }
  arg1 = reinterpret_cast< OptionletStripper1Ptr * >(argp1);
  {
    try {
      result = (Rate)OptionletStripper1Ptr_switchStrike((OptionletStripper1Ptr const *)arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_OptionletStripper1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  OptionletStripper1Ptr *arg1 = (OptionletStripper1Ptr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_OptionletStripper1",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OptionletStripper1Ptr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OptionletStripper1" "', argument " "1"" of type '" "OptionletStripper1Ptr *""'"); 
  }
  arg1 = reinterpret_cast< OptionletStripper1Ptr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *OptionletStripper1_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_OptionletStripper1Ptr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_StrippedOptionletAdapter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< StrippedOptionletBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  StrippedOptionletAdapterPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_StrippedOptionletAdapter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_StrippedOptionletBase_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StrippedOptionletAdapter" "', argument " "1"" of type '" "boost::shared_ptr< StrippedOptionletBase > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StrippedOptionletAdapter" "', argument " "1"" of type '" "boost::shared_ptr< StrippedOptionletBase > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< StrippedOptionletBase > * >(argp1);
  {
    try {
      result = (StrippedOptionletAdapterPtr *)new_StrippedOptionletAdapterPtr((boost::shared_ptr< StrippedOptionletBase > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_StrippedOptionletAdapterPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_StrippedOptionletAdapter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  StrippedOptionletAdapterPtr *arg1 = (StrippedOptionletAdapterPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_StrippedOptionletAdapter",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_StrippedOptionletAdapterPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StrippedOptionletAdapter" "', argument " "1"" of type '" "StrippedOptionletAdapterPtr *""'"); 
  }
  arg1 = reinterpret_cast< StrippedOptionletAdapterPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *StrippedOptionletAdapter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_StrippedOptionletAdapterPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Settlement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Settlement *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Settlement",0,0)) SWIG_fail;
  {
    try {
      result = (Settlement *)new Settlement();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Settlement, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Settlement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Settlement *arg1 = (Settlement *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Settlement",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Settlement, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Settlement" "', argument " "1"" of type '" "Settlement *""'"); 
  }
  arg1 = reinterpret_cast< Settlement * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Settlement_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_Settlement, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_Swaption__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwapPtr *arg1 = 0 ;
  boost::shared_ptr< Exercise > *arg2 = 0 ;
  Settlement::Type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  SwaptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Swaption",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_VanillaSwapPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Swaption" "', argument " "1"" of type '" "VanillaSwapPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Swaption" "', argument " "1"" of type '" "VanillaSwapPtr const &""'"); 
  }
  arg1 = reinterpret_cast< VanillaSwapPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Swaption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Swaption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Swaption" "', argument " "3"" of type '" "Settlement::Type""'");
  } 
  arg3 = static_cast< Settlement::Type >(val3);
  {
    try {
      result = (SwaptionPtr *)new_SwaptionPtr__SWIG_0((VanillaSwapPtr const &)*arg1,(boost::shared_ptr< Exercise > const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Swaption__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  VanillaSwapPtr *arg1 = 0 ;
  boost::shared_ptr< Exercise > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  SwaptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Swaption",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_VanillaSwapPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Swaption" "', argument " "1"" of type '" "VanillaSwapPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Swaption" "', argument " "1"" of type '" "VanillaSwapPtr const &""'"); 
  }
  arg1 = reinterpret_cast< VanillaSwapPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Swaption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Swaption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp2);
  {
    try {
      result = (SwaptionPtr *)new_SwaptionPtr__SWIG_0((VanillaSwapPtr const &)*arg1,(boost::shared_ptr< Exercise > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SwaptionPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Swaption(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_VanillaSwapPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_Swaption__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_VanillaSwapPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_Swaption__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Swaption'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    SwaptionPtr::SwaptionPtr(VanillaSwapPtr const &,boost::shared_ptr< Exercise > const &,Settlement::Type)\n"
    "    SwaptionPtr::SwaptionPtr(VanillaSwapPtr const &,boost::shared_ptr< Exercise > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Swaption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  SwaptionPtr *arg1 = (SwaptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Swaption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SwaptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Swaption" "', argument " "1"" of type '" "SwaptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< SwaptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Swaption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_SwaptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_NonstandardSwaption__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonstandardSwapPtr *arg1 = 0 ;
  boost::shared_ptr< Exercise > *arg2 = 0 ;
  Settlement::Type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  NonstandardSwaptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NonstandardSwaption",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_NonstandardSwapPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NonstandardSwaption" "', argument " "1"" of type '" "NonstandardSwapPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwaption" "', argument " "1"" of type '" "NonstandardSwapPtr const &""'"); 
  }
  arg1 = reinterpret_cast< NonstandardSwapPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NonstandardSwaption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwaption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NonstandardSwaption" "', argument " "3"" of type '" "Settlement::Type""'");
  } 
  arg3 = static_cast< Settlement::Type >(val3);
  {
    try {
      result = (NonstandardSwaptionPtr *)new_NonstandardSwaptionPtr__SWIG_0((NonstandardSwapPtr const &)*arg1,(boost::shared_ptr< Exercise > const &)*arg2,arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NonstandardSwaptionPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NonstandardSwaption__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonstandardSwapPtr *arg1 = 0 ;
  boost::shared_ptr< Exercise > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  NonstandardSwaptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_NonstandardSwaption",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_NonstandardSwapPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NonstandardSwaption" "', argument " "1"" of type '" "NonstandardSwapPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwaption" "', argument " "1"" of type '" "NonstandardSwapPtr const &""'"); 
  }
  arg1 = reinterpret_cast< NonstandardSwapPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NonstandardSwaption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NonstandardSwaption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp2);
  {
    try {
      result = (NonstandardSwaptionPtr *)new_NonstandardSwaptionPtr__SWIG_0((NonstandardSwapPtr const &)*arg1,(boost::shared_ptr< Exercise > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_NonstandardSwaptionPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_NonstandardSwaption(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_NonstandardSwapPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_NonstandardSwaption__SWIG_1(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_NonstandardSwapPtr, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_boost__shared_ptrT_Exercise_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_NonstandardSwaption__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_NonstandardSwaption'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    NonstandardSwaptionPtr::NonstandardSwaptionPtr(NonstandardSwapPtr const &,boost::shared_ptr< Exercise > const &,Settlement::Type)\n"
    "    NonstandardSwaptionPtr::NonstandardSwaptionPtr(NonstandardSwapPtr const &,boost::shared_ptr< Exercise > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_NonstandardSwaption_calibrationBasket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonstandardSwaptionPtr *arg1 = (NonstandardSwaptionPtr *) 0 ;
  boost::shared_ptr< Index > arg2 ;
  boost::shared_ptr< SwaptionVolatilityStructure > arg3 ;
  std::string arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"NonstandardSwaption_calibrationBasket",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NonstandardSwaptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NonstandardSwaption_calibrationBasket" "', argument " "1"" of type '" "NonstandardSwaptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< NonstandardSwaptionPtr * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Index_t,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NonstandardSwaption_calibrationBasket" "', argument " "2"" of type '" "boost::shared_ptr< Index >""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonstandardSwaption_calibrationBasket" "', argument " "2"" of type '" "boost::shared_ptr< Index >""'");
    } else {
      boost::shared_ptr< Index > * temp = reinterpret_cast< boost::shared_ptr< Index > * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t,  0  | 0);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NonstandardSwaption_calibrationBasket" "', argument " "3"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure >""'"); 
    }  
    if (!argp3) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NonstandardSwaption_calibrationBasket" "', argument " "3"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure >""'");
    } else {
      boost::shared_ptr< SwaptionVolatilityStructure > * temp = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp3);
      arg3 = *temp;
      if (SWIG_IsNewObj(res3)) delete temp;
    }
  }
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(obj3, &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "NonstandardSwaption_calibrationBasket" "', argument " "4"" of type '" "std::string""'"); 
    }
    arg4 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    try {
      result = NonstandardSwaptionPtr_calibrationBasket(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_NonstandardSwaption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  NonstandardSwaptionPtr *arg1 = (NonstandardSwaptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_NonstandardSwaption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_NonstandardSwaptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NonstandardSwaption" "', argument " "1"" of type '" "NonstandardSwaptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< NonstandardSwaptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *NonstandardSwaption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_NonstandardSwaptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FloatFloatSwaption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloatFloatSwapPtr *arg1 = 0 ;
  boost::shared_ptr< Exercise > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  FloatFloatSwaptionPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FloatFloatSwaption",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_FloatFloatSwapPtr,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FloatFloatSwaption" "', argument " "1"" of type '" "FloatFloatSwapPtr const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwaption" "', argument " "1"" of type '" "FloatFloatSwapPtr const &""'"); 
  }
  arg1 = reinterpret_cast< FloatFloatSwapPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Exercise_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FloatFloatSwaption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatFloatSwaption" "', argument " "2"" of type '" "boost::shared_ptr< Exercise > const &""'"); 
  }
  arg2 = reinterpret_cast< boost::shared_ptr< Exercise > * >(argp2);
  {
    try {
      result = (FloatFloatSwaptionPtr *)new_FloatFloatSwaptionPtr((FloatFloatSwapPtr const &)*arg1,(boost::shared_ptr< Exercise > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloatFloatSwaptionPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FloatFloatSwaption_calibrationBasket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloatFloatSwaptionPtr *arg1 = (FloatFloatSwaptionPtr *) 0 ;
  boost::shared_ptr< Index > arg2 ;
  boost::shared_ptr< SwaptionVolatilityStructure > arg3 ;
  std::string arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FloatFloatSwaption_calibrationBasket",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatFloatSwaptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatFloatSwaption_calibrationBasket" "', argument " "1"" of type '" "FloatFloatSwaptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< FloatFloatSwaptionPtr * >(argp1);
  {
    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_Index_t,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FloatFloatSwaption_calibrationBasket" "', argument " "2"" of type '" "boost::shared_ptr< Index >""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FloatFloatSwaption_calibrationBasket" "', argument " "2"" of type '" "boost::shared_ptr< Index >""'");
    } else {
      boost::shared_ptr< Index > * temp = reinterpret_cast< boost::shared_ptr< Index > * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_boost__shared_ptrT_SwaptionVolatilityStructure_t,  0  | 0);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "FloatFloatSwaption_calibrationBasket" "', argument " "3"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure >""'"); 
    }  
    if (!argp3) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FloatFloatSwaption_calibrationBasket" "', argument " "3"" of type '" "boost::shared_ptr< SwaptionVolatilityStructure >""'");
    } else {
      boost::shared_ptr< SwaptionVolatilityStructure > * temp = reinterpret_cast< boost::shared_ptr< SwaptionVolatilityStructure > * >(argp3);
      arg3 = *temp;
      if (SWIG_IsNewObj(res3)) delete temp;
    }
  }
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(obj3, &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "FloatFloatSwaption_calibrationBasket" "', argument " "4"" of type '" "std::string""'"); 
    }
    arg4 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    try {
      result = FloatFloatSwaptionPtr_calibrationBasket(arg1,arg2,arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FloatFloatSwaption_underlyingValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloatFloatSwaptionPtr *arg1 = (FloatFloatSwaptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FloatFloatSwaption_underlyingValue",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatFloatSwaptionPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatFloatSwaption_underlyingValue" "', argument " "1"" of type '" "FloatFloatSwaptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< FloatFloatSwaptionPtr * >(argp1);
  {
    try {
      result = (Real)FloatFloatSwaptionPtr_underlyingValue(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_FloatFloatSwaption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FloatFloatSwaptionPtr *arg1 = (FloatFloatSwaptionPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FloatFloatSwaption",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatFloatSwaptionPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FloatFloatSwaption" "', argument " "1"" of type '" "FloatFloatSwaptionPtr *""'"); 
  }
  arg1 = reinterpret_cast< FloatFloatSwaptionPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FloatFloatSwaption_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FloatFloatSwaptionPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BlackSwaptionEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Real arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  BlackSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackSwaptionEngine",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackSwaptionEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackSwaptionEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlackSwaptionEngine" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackSwaptionEngine" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BlackSwaptionEngine" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackSwaptionEngine" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BlackSwaptionEngine" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  {
    try {
      result = (BlackSwaptionEnginePtr *)new_BlackSwaptionEnginePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(Handle< Quote > const &)*arg2,(DayCounter const &)*arg3,arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackSwaptionEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  BlackSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackSwaptionEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackSwaptionEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackSwaptionEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlackSwaptionEngine" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackSwaptionEngine" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BlackSwaptionEngine" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackSwaptionEngine" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (BlackSwaptionEnginePtr *)new_BlackSwaptionEnginePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(Handle< Quote > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackSwaptionEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BlackSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackSwaptionEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackSwaptionEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackSwaptionEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlackSwaptionEngine" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackSwaptionEngine" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  {
    try {
      result = (BlackSwaptionEnginePtr *)new_BlackSwaptionEnginePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(Handle< Quote > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackSwaptionEngine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< SwaptionVolatilityStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BlackSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BlackSwaptionEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlackSwaptionEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackSwaptionEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlackSwaptionEngine" "', argument " "2"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlackSwaptionEngine" "', argument " "2"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp2);
  {
    try {
      result = (BlackSwaptionEnginePtr *)new_BlackSwaptionEnginePtr__SWIG_3((Handle< YieldTermStructure > const &)*arg1,(Handle< SwaptionVolatilityStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlackSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BlackSwaptionEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 4) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_BlackSwaptionEngine__SWIG_2(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_BlackSwaptionEngine__SWIG_3(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_BlackSwaptionEngine__SWIG_1(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_BlackSwaptionEngine__SWIG_0(self, args);
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BlackSwaptionEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BlackSwaptionEnginePtr::BlackSwaptionEnginePtr(Handle< YieldTermStructure > const &,Handle< Quote > const &,DayCounter const &,Real)\n"
    "    BlackSwaptionEnginePtr::BlackSwaptionEnginePtr(Handle< YieldTermStructure > const &,Handle< Quote > const &,DayCounter const &)\n"
    "    BlackSwaptionEnginePtr::BlackSwaptionEnginePtr(Handle< YieldTermStructure > const &,Handle< Quote > const &)\n"
    "    BlackSwaptionEnginePtr::BlackSwaptionEnginePtr(Handle< YieldTermStructure > const &,Handle< SwaptionVolatilityStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BlackSwaptionEngine_vega(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackSwaptionEnginePtr *arg1 = (BlackSwaptionEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BlackSwaptionEngine_vega",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackSwaptionEnginePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlackSwaptionEngine_vega" "', argument " "1"" of type '" "BlackSwaptionEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< BlackSwaptionEnginePtr * >(argp1);
  {
    try {
      result = (Real)BlackSwaptionEnginePtr_vega(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BlackSwaptionEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BlackSwaptionEnginePtr *arg1 = (BlackSwaptionEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BlackSwaptionEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlackSwaptionEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlackSwaptionEngine" "', argument " "1"" of type '" "BlackSwaptionEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< BlackSwaptionEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BlackSwaptionEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BlackSwaptionEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BachelierSwaptionEngine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  BachelierSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BachelierSwaptionEngine",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BachelierSwaptionEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BachelierSwaptionEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BachelierSwaptionEngine" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BachelierSwaptionEngine" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BachelierSwaptionEngine" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BachelierSwaptionEngine" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (BachelierSwaptionEnginePtr *)new_BachelierSwaptionEnginePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(Handle< Quote > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BachelierSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BachelierSwaptionEngine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< Quote > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BachelierSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BachelierSwaptionEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BachelierSwaptionEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BachelierSwaptionEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_Quote_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BachelierSwaptionEngine" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BachelierSwaptionEngine" "', argument " "2"" of type '" "Handle< Quote > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< Quote > * >(argp2);
  {
    try {
      result = (BachelierSwaptionEnginePtr *)new_BachelierSwaptionEnginePtr__SWIG_0((Handle< YieldTermStructure > const &)*arg1,(Handle< Quote > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BachelierSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BachelierSwaptionEngine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Handle< YieldTermStructure > *arg1 = 0 ;
  Handle< SwaptionVolatilityStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  BachelierSwaptionEnginePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BachelierSwaptionEngine",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BachelierSwaptionEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BachelierSwaptionEngine" "', argument " "1"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< Handle< YieldTermStructure > * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BachelierSwaptionEngine" "', argument " "2"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BachelierSwaptionEngine" "', argument " "2"" of type '" "Handle< SwaptionVolatilityStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< SwaptionVolatilityStructure > * >(argp2);
  {
    try {
      result = (BachelierSwaptionEnginePtr *)new_BachelierSwaptionEnginePtr__SWIG_2((Handle< YieldTermStructure > const &)*arg1,(Handle< SwaptionVolatilityStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BachelierSwaptionEnginePtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BachelierSwaptionEngine(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 3) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_BachelierSwaptionEngine__SWIG_1(self, args);
      }
    }
  }
  if (argc == 2) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_SwaptionVolatilityStructure_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_BachelierSwaptionEngine__SWIG_2(self, args);
      }
    }
  }
  if (argc == 3) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_HandleT_Quote_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_BachelierSwaptionEngine__SWIG_0(self, args);
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BachelierSwaptionEngine'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BachelierSwaptionEnginePtr::BachelierSwaptionEnginePtr(Handle< YieldTermStructure > const &,Handle< Quote > const &,DayCounter const &)\n"
    "    BachelierSwaptionEnginePtr::BachelierSwaptionEnginePtr(Handle< YieldTermStructure > const &,Handle< Quote > const &)\n"
    "    BachelierSwaptionEnginePtr::BachelierSwaptionEnginePtr(Handle< YieldTermStructure > const &,Handle< SwaptionVolatilityStructure > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_BachelierSwaptionEngine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BachelierSwaptionEnginePtr *arg1 = (BachelierSwaptionEnginePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BachelierSwaptionEngine",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BachelierSwaptionEnginePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BachelierSwaptionEngine" "', argument " "1"" of type '" "BachelierSwaptionEnginePtr *""'"); 
  }
  arg1 = reinterpret_cast< BachelierSwaptionEnginePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BachelierSwaptionEngine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BachelierSwaptionEnginePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_enableTracing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  
  if(!PyArg_UnpackTuple(args,(char *)"enableTracing",0,0)) SWIG_fail;
  {
    try {
      enableTracing();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_disableTracing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  
  if(!PyArg_UnpackTuple(args,(char *)"disableTracing",0,0)) SWIG_fail;
  {
    try {
      disableTracing();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConstantEstimator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Size arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  ConstantEstimator *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ConstantEstimator",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ConstantEstimator" "', argument " "1"" of type '" "Size""'");
  } 
  arg1 = static_cast< Size >(val1);
  {
    try {
      result = (ConstantEstimator *)new ConstantEstimator(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ConstantEstimator, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConstantEstimator_calculate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ConstantEstimator *arg1 = (ConstantEstimator *) 0 ;
  TimeSeries< Volatility > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TimeSeries< Volatility > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ConstantEstimator_calculate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ConstantEstimator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConstantEstimator_calculate" "', argument " "1"" of type '" "ConstantEstimator *""'"); 
  }
  arg1 = reinterpret_cast< ConstantEstimator * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConstantEstimator_calculate" "', argument " "2"" of type '" "TimeSeries< Volatility > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ConstantEstimator_calculate" "', argument " "2"" of type '" "TimeSeries< Volatility > const &""'"); 
  }
  arg2 = reinterpret_cast< TimeSeries< Volatility > * >(argp2);
  {
    try {
      result = (arg1)->calculate((TimeSeries< Volatility > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TimeSeries< Volatility >(static_cast< const TimeSeries< Volatility >& >(result))), SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ConstantEstimator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ConstantEstimator *arg1 = (ConstantEstimator *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ConstantEstimator",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ConstantEstimator, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ConstantEstimator" "', argument " "1"" of type '" "ConstantEstimator *""'"); 
  }
  arg1 = reinterpret_cast< ConstantEstimator * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ConstantEstimator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ConstantEstimator, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ParkinsonSigma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  ParkinsonSigma *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ParkinsonSigma",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ParkinsonSigma" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (ParkinsonSigma *)new ParkinsonSigma(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ParkinsonSigma, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ParkinsonSigma_calculate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ParkinsonSigma *arg1 = (ParkinsonSigma *) 0 ;
  TimeSeries< IntervalPrice > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TimeSeries< Volatility > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ParkinsonSigma_calculate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ParkinsonSigma, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ParkinsonSigma_calculate" "', argument " "1"" of type '" "ParkinsonSigma *""'"); 
  }
  arg1 = reinterpret_cast< ParkinsonSigma * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ParkinsonSigma_calculate" "', argument " "2"" of type '" "TimeSeries< IntervalPrice > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ParkinsonSigma_calculate" "', argument " "2"" of type '" "TimeSeries< IntervalPrice > const &""'"); 
  }
  arg2 = reinterpret_cast< TimeSeries< IntervalPrice > * >(argp2);
  {
    try {
      result = (arg1)->calculate((TimeSeries< IntervalPrice > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TimeSeries< Volatility >(static_cast< const TimeSeries< Volatility >& >(result))), SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ParkinsonSigma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ParkinsonSigma *arg1 = (ParkinsonSigma *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ParkinsonSigma",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ParkinsonSigma, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ParkinsonSigma" "', argument " "1"" of type '" "ParkinsonSigma *""'"); 
  }
  arg1 = reinterpret_cast< ParkinsonSigma * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ParkinsonSigma_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ParkinsonSigma, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GarmanKlassSigma1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Real arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  GarmanKlassSigma1 *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GarmanKlassSigma1",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GarmanKlassSigma1" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GarmanKlassSigma1" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (GarmanKlassSigma1 *)new GarmanKlassSigma1(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GarmanKlassSigma1, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GarmanKlassSigma1_calculate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GarmanKlassSigma1 *arg1 = (GarmanKlassSigma1 *) 0 ;
  TimeSeries< IntervalPrice > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TimeSeries< Volatility > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GarmanKlassSigma1_calculate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GarmanKlassSigma1, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GarmanKlassSigma1_calculate" "', argument " "1"" of type '" "GarmanKlassSigma1 *""'"); 
  }
  arg1 = reinterpret_cast< GarmanKlassSigma1 * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GarmanKlassSigma1_calculate" "', argument " "2"" of type '" "TimeSeries< IntervalPrice > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GarmanKlassSigma1_calculate" "', argument " "2"" of type '" "TimeSeries< IntervalPrice > const &""'"); 
  }
  arg2 = reinterpret_cast< TimeSeries< IntervalPrice > * >(argp2);
  {
    try {
      result = (arg1)->calculate((TimeSeries< IntervalPrice > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TimeSeries< Volatility >(static_cast< const TimeSeries< Volatility >& >(result))), SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GarmanKlassSigma1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GarmanKlassSigma1 *arg1 = (GarmanKlassSigma1 *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GarmanKlassSigma1",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GarmanKlassSigma1, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GarmanKlassSigma1" "', argument " "1"" of type '" "GarmanKlassSigma1 *""'"); 
  }
  arg1 = reinterpret_cast< GarmanKlassSigma1 * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GarmanKlassSigma1_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GarmanKlassSigma1, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GarmanKlassSigma3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Real arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  GarmanKlassSigma3 *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GarmanKlassSigma3",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GarmanKlassSigma3" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GarmanKlassSigma3" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (GarmanKlassSigma3 *)new GarmanKlassSigma3(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GarmanKlassSigma3, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GarmanKlassSigma3_calculate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GarmanKlassSigma3 *arg1 = (GarmanKlassSigma3 *) 0 ;
  TimeSeries< IntervalPrice > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TimeSeries< Volatility > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GarmanKlassSigma3_calculate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GarmanKlassSigma3, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GarmanKlassSigma3_calculate" "', argument " "1"" of type '" "GarmanKlassSigma3 *""'"); 
  }
  arg1 = reinterpret_cast< GarmanKlassSigma3 * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GarmanKlassSigma3_calculate" "', argument " "2"" of type '" "TimeSeries< IntervalPrice > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GarmanKlassSigma3_calculate" "', argument " "2"" of type '" "TimeSeries< IntervalPrice > const &""'"); 
  }
  arg2 = reinterpret_cast< TimeSeries< IntervalPrice > * >(argp2);
  {
    try {
      result = (arg1)->calculate((TimeSeries< IntervalPrice > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TimeSeries< Volatility >(static_cast< const TimeSeries< Volatility >& >(result))), SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GarmanKlassSigma3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GarmanKlassSigma3 *arg1 = (GarmanKlassSigma3 *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GarmanKlassSigma3",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GarmanKlassSigma3, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GarmanKlassSigma3" "', argument " "1"" of type '" "GarmanKlassSigma3 *""'"); 
  }
  arg1 = reinterpret_cast< GarmanKlassSigma3 * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GarmanKlassSigma3_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GarmanKlassSigma3, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GarmanKlassSigma4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  GarmanKlassSigma4 *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GarmanKlassSigma4",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GarmanKlassSigma4" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (GarmanKlassSigma4 *)new GarmanKlassSigma4(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GarmanKlassSigma4, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GarmanKlassSigma4_calculate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GarmanKlassSigma4 *arg1 = (GarmanKlassSigma4 *) 0 ;
  TimeSeries< IntervalPrice > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TimeSeries< Volatility > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GarmanKlassSigma4_calculate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GarmanKlassSigma4, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GarmanKlassSigma4_calculate" "', argument " "1"" of type '" "GarmanKlassSigma4 *""'"); 
  }
  arg1 = reinterpret_cast< GarmanKlassSigma4 * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GarmanKlassSigma4_calculate" "', argument " "2"" of type '" "TimeSeries< IntervalPrice > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GarmanKlassSigma4_calculate" "', argument " "2"" of type '" "TimeSeries< IntervalPrice > const &""'"); 
  }
  arg2 = reinterpret_cast< TimeSeries< IntervalPrice > * >(argp2);
  {
    try {
      result = (arg1)->calculate((TimeSeries< IntervalPrice > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TimeSeries< Volatility >(static_cast< const TimeSeries< Volatility >& >(result))), SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GarmanKlassSigma4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GarmanKlassSigma4 *arg1 = (GarmanKlassSigma4 *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GarmanKlassSigma4",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GarmanKlassSigma4, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GarmanKlassSigma4" "', argument " "1"" of type '" "GarmanKlassSigma4 *""'"); 
  }
  arg1 = reinterpret_cast< GarmanKlassSigma4 * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GarmanKlassSigma4_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GarmanKlassSigma4, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GarmanKlassSigma5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  PyObject * obj0 = 0 ;
  GarmanKlassSigma5 *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GarmanKlassSigma5",1,1,&obj0)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GarmanKlassSigma5" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  {
    try {
      result = (GarmanKlassSigma5 *)new GarmanKlassSigma5(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GarmanKlassSigma5, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GarmanKlassSigma5_calculate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GarmanKlassSigma5 *arg1 = (GarmanKlassSigma5 *) 0 ;
  TimeSeries< IntervalPrice > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TimeSeries< Volatility > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GarmanKlassSigma5_calculate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GarmanKlassSigma5, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GarmanKlassSigma5_calculate" "', argument " "1"" of type '" "GarmanKlassSigma5 *""'"); 
  }
  arg1 = reinterpret_cast< GarmanKlassSigma5 * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GarmanKlassSigma5_calculate" "', argument " "2"" of type '" "TimeSeries< IntervalPrice > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GarmanKlassSigma5_calculate" "', argument " "2"" of type '" "TimeSeries< IntervalPrice > const &""'"); 
  }
  arg2 = reinterpret_cast< TimeSeries< IntervalPrice > * >(argp2);
  {
    try {
      result = (arg1)->calculate((TimeSeries< IntervalPrice > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TimeSeries< Volatility >(static_cast< const TimeSeries< Volatility >& >(result))), SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GarmanKlassSigma5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GarmanKlassSigma5 *arg1 = (GarmanKlassSigma5 *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GarmanKlassSigma5",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GarmanKlassSigma5, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GarmanKlassSigma5" "', argument " "1"" of type '" "GarmanKlassSigma5 *""'"); 
  }
  arg1 = reinterpret_cast< GarmanKlassSigma5 * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GarmanKlassSigma5_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GarmanKlassSigma5, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_GarmanKlassSigma6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Real arg1 ;
  Real arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  GarmanKlassSigma6 *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_GarmanKlassSigma6",2,2,&obj0,&obj1)) SWIG_fail;
  ecode1 = SWIG_AsVal_double(obj0, &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GarmanKlassSigma6" "', argument " "1"" of type '" "Real""'");
  } 
  arg1 = static_cast< Real >(val1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GarmanKlassSigma6" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  {
    try {
      result = (GarmanKlassSigma6 *)new GarmanKlassSigma6(arg1,arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GarmanKlassSigma6, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_GarmanKlassSigma6_calculate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GarmanKlassSigma6 *arg1 = (GarmanKlassSigma6 *) 0 ;
  TimeSeries< IntervalPrice > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  TimeSeries< Volatility > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"GarmanKlassSigma6_calculate",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GarmanKlassSigma6, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GarmanKlassSigma6_calculate" "', argument " "1"" of type '" "GarmanKlassSigma6 *""'"); 
  }
  arg1 = reinterpret_cast< GarmanKlassSigma6 * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GarmanKlassSigma6_calculate" "', argument " "2"" of type '" "TimeSeries< IntervalPrice > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GarmanKlassSigma6_calculate" "', argument " "2"" of type '" "TimeSeries< IntervalPrice > const &""'"); 
  }
  arg2 = reinterpret_cast< TimeSeries< IntervalPrice > * >(argp2);
  {
    try {
      result = (arg1)->calculate((TimeSeries< IntervalPrice > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new TimeSeries< Volatility >(static_cast< const TimeSeries< Volatility >& >(result))), SWIGTYPE_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_GarmanKlassSigma6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  GarmanKlassSigma6 *arg1 = (GarmanKlassSigma6 *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_GarmanKlassSigma6",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GarmanKlassSigma6, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GarmanKlassSigma6" "', argument " "1"" of type '" "GarmanKlassSigma6 *""'"); 
  }
  arg1 = reinterpret_cast< GarmanKlassSigma6 * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *GarmanKlassSigma6_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_GarmanKlassSigma6, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ZeroCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  Linear *arg5 = 0 ;
  Compounding arg6 ;
  Frequency arg7 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  ZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroCurve",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Linear,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ZeroCurve" "', argument " "5"" of type '" "Linear const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "5"" of type '" "Linear const &""'"); 
  }
  arg5 = reinterpret_cast< Linear * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ZeroCurve" "', argument " "6"" of type '" "Compounding""'");
  } 
  arg6 = static_cast< Compounding >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ZeroCurve" "', argument " "7"" of type '" "Frequency""'");
  } 
  arg7 = static_cast< Frequency >(val7);
  {
    try {
      result = (ZeroCurvePtr *)new_ZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(Linear const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  Linear *arg5 = 0 ;
  Compounding arg6 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  ZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroCurve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Linear,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ZeroCurve" "', argument " "5"" of type '" "Linear const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "5"" of type '" "Linear const &""'"); 
  }
  arg5 = reinterpret_cast< Linear * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ZeroCurve" "', argument " "6"" of type '" "Compounding""'");
  } 
  arg6 = static_cast< Compounding >(val6);
  {
    try {
      result = (ZeroCurvePtr *)new_ZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(Linear const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroCurve__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  Linear *arg5 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  ZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroCurve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Linear,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ZeroCurve" "', argument " "5"" of type '" "Linear const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "5"" of type '" "Linear const &""'"); 
  }
  arg5 = reinterpret_cast< Linear * >(argp5);
  {
    try {
      result = (ZeroCurvePtr *)new_ZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(Linear const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroCurve__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  ZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroCurve",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  {
    try {
      result = (ZeroCurvePtr *)new_ZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroCurve__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  ZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ZeroCurve",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (ZeroCurvePtr *)new_ZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ZeroCurve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_ZeroCurve__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_ZeroCurve__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Linear, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_ZeroCurve__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Linear, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_ZeroCurve__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Linear, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_ZeroCurve__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ZeroCurve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ZeroCurvePtr::ZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,Linear const &,Compounding,Frequency)\n"
    "    ZeroCurvePtr::ZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,Linear const &,Compounding)\n"
    "    ZeroCurvePtr::ZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,Linear const &)\n"
    "    ZeroCurvePtr::ZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &)\n"
    "    ZeroCurvePtr::ZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ZeroCurve_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroCurvePtr *arg1 = (ZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroCurve_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroCurve_times" "', argument " "1"" of type '" "ZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< ZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Time,std::allocator< Time > > *) &ZeroCurvePtr_times(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroCurve_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroCurvePtr *arg1 = (ZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroCurve_data",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroCurve_data" "', argument " "1"" of type '" "ZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< ZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Real,std::allocator< Real > > *) &ZeroCurvePtr_data(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroCurve_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroCurvePtr *arg1 = (ZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroCurve_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroCurve_dates" "', argument " "1"" of type '" "ZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< ZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &ZeroCurvePtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroCurve_zeroRates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroCurvePtr *arg1 = (ZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroCurve_zeroRates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroCurve_zeroRates" "', argument " "1"" of type '" "ZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< ZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Rate,std::allocator< Rate > > *) &ZeroCurvePtr_zeroRates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ZeroCurve_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroCurvePtr *arg1 = (ZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,Rate >,std::allocator< std::pair< Date,Rate > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ZeroCurve_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroCurve_nodes" "', argument " "1"" of type '" "ZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< ZeroCurvePtr * >(argp1);
  {
    try {
      result = ZeroCurvePtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ZeroCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ZeroCurvePtr *arg1 = (ZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ZeroCurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroCurvePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ZeroCurve" "', argument " "1"" of type '" "ZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< ZeroCurvePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ZeroCurve_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ZeroCurvePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_LogLinearZeroCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  LogLinear *arg5 = 0 ;
  Compounding arg6 ;
  Frequency arg7 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  LogLinearZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogLinearZeroCurve",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogLinearZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LogLinearZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LogLinearZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_LogLinearZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_LogLinear,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_LogLinearZeroCurve" "', argument " "5"" of type '" "LogLinear const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "5"" of type '" "LogLinear const &""'"); 
  }
  arg5 = reinterpret_cast< LogLinear * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_LogLinearZeroCurve" "', argument " "6"" of type '" "Compounding""'");
  } 
  arg6 = static_cast< Compounding >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_LogLinearZeroCurve" "', argument " "7"" of type '" "Frequency""'");
  } 
  arg7 = static_cast< Frequency >(val7);
  {
    try {
      result = (LogLinearZeroCurvePtr *)new_LogLinearZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(LogLinear const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LogLinearZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LogLinearZeroCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  LogLinear *arg5 = 0 ;
  Compounding arg6 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  LogLinearZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogLinearZeroCurve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogLinearZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LogLinearZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LogLinearZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_LogLinearZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_LogLinear,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_LogLinearZeroCurve" "', argument " "5"" of type '" "LogLinear const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "5"" of type '" "LogLinear const &""'"); 
  }
  arg5 = reinterpret_cast< LogLinear * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_LogLinearZeroCurve" "', argument " "6"" of type '" "Compounding""'");
  } 
  arg6 = static_cast< Compounding >(val6);
  {
    try {
      result = (LogLinearZeroCurvePtr *)new_LogLinearZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(LogLinear const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LogLinearZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LogLinearZeroCurve__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  LogLinear *arg5 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  LogLinearZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogLinearZeroCurve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogLinearZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LogLinearZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LogLinearZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_LogLinearZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_LogLinear,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_LogLinearZeroCurve" "', argument " "5"" of type '" "LogLinear const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "5"" of type '" "LogLinear const &""'"); 
  }
  arg5 = reinterpret_cast< LogLinear * >(argp5);
  {
    try {
      result = (LogLinearZeroCurvePtr *)new_LogLinearZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(LogLinear const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LogLinearZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LogLinearZeroCurve__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  LogLinearZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogLinearZeroCurve",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogLinearZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LogLinearZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LogLinearZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_LogLinearZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  {
    try {
      result = (LogLinearZeroCurvePtr *)new_LogLinearZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LogLinearZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LogLinearZeroCurve__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  LogLinearZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogLinearZeroCurve",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogLinearZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LogLinearZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LogLinearZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogLinearZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (LogLinearZeroCurvePtr *)new_LogLinearZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LogLinearZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LogLinearZeroCurve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_LogLinearZeroCurve__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_LogLinearZeroCurve__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_LogLinear, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_LogLinearZeroCurve__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_LogLinear, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_LogLinearZeroCurve__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_LogLinear, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_LogLinearZeroCurve__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LogLinearZeroCurve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    LogLinearZeroCurvePtr::LogLinearZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,LogLinear const &,Compounding,Frequency)\n"
    "    LogLinearZeroCurvePtr::LogLinearZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,LogLinear const &,Compounding)\n"
    "    LogLinearZeroCurvePtr::LogLinearZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,LogLinear const &)\n"
    "    LogLinearZeroCurvePtr::LogLinearZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &)\n"
    "    LogLinearZeroCurvePtr::LogLinearZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_LogLinearZeroCurve_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LogLinearZeroCurvePtr *arg1 = (LogLinearZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogLinearZeroCurve_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LogLinearZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogLinearZeroCurve_times" "', argument " "1"" of type '" "LogLinearZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< LogLinearZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Time,std::allocator< Time > > *) &LogLinearZeroCurvePtr_times(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogLinearZeroCurve_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LogLinearZeroCurvePtr *arg1 = (LogLinearZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogLinearZeroCurve_data",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LogLinearZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogLinearZeroCurve_data" "', argument " "1"" of type '" "LogLinearZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< LogLinearZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Real,std::allocator< Real > > *) &LogLinearZeroCurvePtr_data(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogLinearZeroCurve_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LogLinearZeroCurvePtr *arg1 = (LogLinearZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogLinearZeroCurve_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LogLinearZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogLinearZeroCurve_dates" "', argument " "1"" of type '" "LogLinearZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< LogLinearZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &LogLinearZeroCurvePtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogLinearZeroCurve_zeroRates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LogLinearZeroCurvePtr *arg1 = (LogLinearZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogLinearZeroCurve_zeroRates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LogLinearZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogLinearZeroCurve_zeroRates" "', argument " "1"" of type '" "LogLinearZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< LogLinearZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Rate,std::allocator< Rate > > *) &LogLinearZeroCurvePtr_zeroRates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogLinearZeroCurve_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LogLinearZeroCurvePtr *arg1 = (LogLinearZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,Rate >,std::allocator< std::pair< Date,Rate > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogLinearZeroCurve_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LogLinearZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogLinearZeroCurve_nodes" "', argument " "1"" of type '" "LogLinearZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< LogLinearZeroCurvePtr * >(argp1);
  {
    try {
      result = LogLinearZeroCurvePtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_LogLinearZeroCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LogLinearZeroCurvePtr *arg1 = (LogLinearZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LogLinearZeroCurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LogLinearZeroCurvePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LogLinearZeroCurve" "', argument " "1"" of type '" "LogLinearZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< LogLinearZeroCurvePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LogLinearZeroCurve_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_LogLinearZeroCurvePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_CubicZeroCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  Cubic *arg5 = 0 ;
  Compounding arg6 ;
  Frequency arg7 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  CubicZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CubicZeroCurve",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Cubic,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CubicZeroCurve" "', argument " "5"" of type '" "Cubic const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "5"" of type '" "Cubic const &""'"); 
  }
  arg5 = reinterpret_cast< Cubic * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CubicZeroCurve" "', argument " "6"" of type '" "Compounding""'");
  } 
  arg6 = static_cast< Compounding >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_CubicZeroCurve" "', argument " "7"" of type '" "Frequency""'");
  } 
  arg7 = static_cast< Frequency >(val7);
  {
    try {
      result = (CubicZeroCurvePtr *)new_CubicZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(Cubic const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CubicZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CubicZeroCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  Cubic *arg5 = 0 ;
  Compounding arg6 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  CubicZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CubicZeroCurve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Cubic,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CubicZeroCurve" "', argument " "5"" of type '" "Cubic const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "5"" of type '" "Cubic const &""'"); 
  }
  arg5 = reinterpret_cast< Cubic * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CubicZeroCurve" "', argument " "6"" of type '" "Compounding""'");
  } 
  arg6 = static_cast< Compounding >(val6);
  {
    try {
      result = (CubicZeroCurvePtr *)new_CubicZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(Cubic const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CubicZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CubicZeroCurve__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  Cubic *arg5 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  CubicZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CubicZeroCurve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_Cubic,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CubicZeroCurve" "', argument " "5"" of type '" "Cubic const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "5"" of type '" "Cubic const &""'"); 
  }
  arg5 = reinterpret_cast< Cubic * >(argp5);
  {
    try {
      result = (CubicZeroCurvePtr *)new_CubicZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(Cubic const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CubicZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CubicZeroCurve__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  CubicZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CubicZeroCurve",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  {
    try {
      result = (CubicZeroCurvePtr *)new_CubicZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CubicZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CubicZeroCurve__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  CubicZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_CubicZeroCurve",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (CubicZeroCurvePtr *)new_CubicZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CubicZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CubicZeroCurve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_CubicZeroCurve__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_CubicZeroCurve__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Cubic, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_CubicZeroCurve__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Cubic, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_CubicZeroCurve__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_Cubic, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_CubicZeroCurve__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CubicZeroCurve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    CubicZeroCurvePtr::CubicZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,Cubic const &,Compounding,Frequency)\n"
    "    CubicZeroCurvePtr::CubicZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,Cubic const &,Compounding)\n"
    "    CubicZeroCurvePtr::CubicZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,Cubic const &)\n"
    "    CubicZeroCurvePtr::CubicZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &)\n"
    "    CubicZeroCurvePtr::CubicZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CubicZeroCurve_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CubicZeroCurvePtr *arg1 = (CubicZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CubicZeroCurve_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CubicZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CubicZeroCurve_times" "', argument " "1"" of type '" "CubicZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< CubicZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Time,std::allocator< Time > > *) &CubicZeroCurvePtr_times(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CubicZeroCurve_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CubicZeroCurvePtr *arg1 = (CubicZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CubicZeroCurve_data",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CubicZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CubicZeroCurve_data" "', argument " "1"" of type '" "CubicZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< CubicZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Real,std::allocator< Real > > *) &CubicZeroCurvePtr_data(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CubicZeroCurve_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CubicZeroCurvePtr *arg1 = (CubicZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CubicZeroCurve_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CubicZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CubicZeroCurve_dates" "', argument " "1"" of type '" "CubicZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< CubicZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &CubicZeroCurvePtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CubicZeroCurve_zeroRates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CubicZeroCurvePtr *arg1 = (CubicZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"CubicZeroCurve_zeroRates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CubicZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CubicZeroCurve_zeroRates" "', argument " "1"" of type '" "CubicZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< CubicZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Rate,std::allocator< Rate > > *) &CubicZeroCurvePtr_zeroRates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CubicZeroCurve_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CubicZeroCurvePtr *arg1 = (CubicZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,Rate >,std::allocator< std::pair< Date,Rate > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"CubicZeroCurve_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CubicZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CubicZeroCurve_nodes" "', argument " "1"" of type '" "CubicZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< CubicZeroCurvePtr * >(argp1);
  {
    try {
      result = CubicZeroCurvePtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CubicZeroCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  CubicZeroCurvePtr *arg1 = (CubicZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_CubicZeroCurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CubicZeroCurvePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CubicZeroCurve" "', argument " "1"" of type '" "CubicZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< CubicZeroCurvePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CubicZeroCurve_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_CubicZeroCurvePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_LogCubicZeroCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  DefaultLogCubic *arg5 = 0 ;
  Compounding arg6 ;
  Frequency arg7 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  LogCubicZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogCubicZeroCurve",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LogCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LogCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_LogCubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DefaultLogCubic,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_LogCubicZeroCurve" "', argument " "5"" of type '" "DefaultLogCubic const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "5"" of type '" "DefaultLogCubic const &""'"); 
  }
  arg5 = reinterpret_cast< DefaultLogCubic * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_LogCubicZeroCurve" "', argument " "6"" of type '" "Compounding""'");
  } 
  arg6 = static_cast< Compounding >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_LogCubicZeroCurve" "', argument " "7"" of type '" "Frequency""'");
  } 
  arg7 = static_cast< Frequency >(val7);
  {
    try {
      result = (LogCubicZeroCurvePtr *)new_LogCubicZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(DefaultLogCubic const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LogCubicZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LogCubicZeroCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  DefaultLogCubic *arg5 = 0 ;
  Compounding arg6 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  LogCubicZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogCubicZeroCurve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LogCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LogCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_LogCubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DefaultLogCubic,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_LogCubicZeroCurve" "', argument " "5"" of type '" "DefaultLogCubic const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "5"" of type '" "DefaultLogCubic const &""'"); 
  }
  arg5 = reinterpret_cast< DefaultLogCubic * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_LogCubicZeroCurve" "', argument " "6"" of type '" "Compounding""'");
  } 
  arg6 = static_cast< Compounding >(val6);
  {
    try {
      result = (LogCubicZeroCurvePtr *)new_LogCubicZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(DefaultLogCubic const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LogCubicZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LogCubicZeroCurve__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  DefaultLogCubic *arg5 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  LogCubicZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogCubicZeroCurve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LogCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LogCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_LogCubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_DefaultLogCubic,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_LogCubicZeroCurve" "', argument " "5"" of type '" "DefaultLogCubic const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "5"" of type '" "DefaultLogCubic const &""'"); 
  }
  arg5 = reinterpret_cast< DefaultLogCubic * >(argp5);
  {
    try {
      result = (LogCubicZeroCurvePtr *)new_LogCubicZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(DefaultLogCubic const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LogCubicZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LogCubicZeroCurve__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  LogCubicZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogCubicZeroCurve",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LogCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LogCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_LogCubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  {
    try {
      result = (LogCubicZeroCurvePtr *)new_LogCubicZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LogCubicZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LogCubicZeroCurve__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  LogCubicZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_LogCubicZeroCurve",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_LogCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_LogCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_LogCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_LogCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (LogCubicZeroCurvePtr *)new_LogCubicZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LogCubicZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_LogCubicZeroCurve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_LogCubicZeroCurve__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_LogCubicZeroCurve__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DefaultLogCubic, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_LogCubicZeroCurve__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DefaultLogCubic, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_LogCubicZeroCurve__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_DefaultLogCubic, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_LogCubicZeroCurve__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_LogCubicZeroCurve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    LogCubicZeroCurvePtr::LogCubicZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,DefaultLogCubic const &,Compounding,Frequency)\n"
    "    LogCubicZeroCurvePtr::LogCubicZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,DefaultLogCubic const &,Compounding)\n"
    "    LogCubicZeroCurvePtr::LogCubicZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,DefaultLogCubic const &)\n"
    "    LogCubicZeroCurvePtr::LogCubicZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &)\n"
    "    LogCubicZeroCurvePtr::LogCubicZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_LogCubicZeroCurve_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LogCubicZeroCurvePtr *arg1 = (LogCubicZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogCubicZeroCurve_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LogCubicZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogCubicZeroCurve_times" "', argument " "1"" of type '" "LogCubicZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< LogCubicZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Time,std::allocator< Time > > *) &LogCubicZeroCurvePtr_times(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogCubicZeroCurve_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LogCubicZeroCurvePtr *arg1 = (LogCubicZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogCubicZeroCurve_data",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LogCubicZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogCubicZeroCurve_data" "', argument " "1"" of type '" "LogCubicZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< LogCubicZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Real,std::allocator< Real > > *) &LogCubicZeroCurvePtr_data(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogCubicZeroCurve_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LogCubicZeroCurvePtr *arg1 = (LogCubicZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogCubicZeroCurve_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LogCubicZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogCubicZeroCurve_dates" "', argument " "1"" of type '" "LogCubicZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< LogCubicZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &LogCubicZeroCurvePtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogCubicZeroCurve_zeroRates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LogCubicZeroCurvePtr *arg1 = (LogCubicZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogCubicZeroCurve_zeroRates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LogCubicZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogCubicZeroCurve_zeroRates" "', argument " "1"" of type '" "LogCubicZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< LogCubicZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Rate,std::allocator< Rate > > *) &LogCubicZeroCurvePtr_zeroRates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_LogCubicZeroCurve_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LogCubicZeroCurvePtr *arg1 = (LogCubicZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,Rate >,std::allocator< std::pair< Date,Rate > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"LogCubicZeroCurve_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LogCubicZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LogCubicZeroCurve_nodes" "', argument " "1"" of type '" "LogCubicZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< LogCubicZeroCurvePtr * >(argp1);
  {
    try {
      result = LogCubicZeroCurvePtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_LogCubicZeroCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  LogCubicZeroCurvePtr *arg1 = (LogCubicZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_LogCubicZeroCurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LogCubicZeroCurvePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LogCubicZeroCurve" "', argument " "1"" of type '" "LogCubicZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< LogCubicZeroCurvePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LogCubicZeroCurve_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_LogCubicZeroCurvePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_ForwardFlatZeroCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  ForwardFlat *arg5 = 0 ;
  Compounding arg6 ;
  Frequency arg7 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  ForwardFlatZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ForwardFlatZeroCurve",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ForwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ForwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ForwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ForwardFlatZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ForwardFlat,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ForwardFlatZeroCurve" "', argument " "5"" of type '" "ForwardFlat const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "5"" of type '" "ForwardFlat const &""'"); 
  }
  arg5 = reinterpret_cast< ForwardFlat * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ForwardFlatZeroCurve" "', argument " "6"" of type '" "Compounding""'");
  } 
  arg6 = static_cast< Compounding >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ForwardFlatZeroCurve" "', argument " "7"" of type '" "Frequency""'");
  } 
  arg7 = static_cast< Frequency >(val7);
  {
    try {
      result = (ForwardFlatZeroCurvePtr *)new_ForwardFlatZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(ForwardFlat const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ForwardFlatZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ForwardFlatZeroCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  ForwardFlat *arg5 = 0 ;
  Compounding arg6 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  ForwardFlatZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ForwardFlatZeroCurve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ForwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ForwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ForwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ForwardFlatZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ForwardFlat,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ForwardFlatZeroCurve" "', argument " "5"" of type '" "ForwardFlat const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "5"" of type '" "ForwardFlat const &""'"); 
  }
  arg5 = reinterpret_cast< ForwardFlat * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ForwardFlatZeroCurve" "', argument " "6"" of type '" "Compounding""'");
  } 
  arg6 = static_cast< Compounding >(val6);
  {
    try {
      result = (ForwardFlatZeroCurvePtr *)new_ForwardFlatZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(ForwardFlat const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ForwardFlatZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ForwardFlatZeroCurve__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  ForwardFlat *arg5 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  ForwardFlatZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ForwardFlatZeroCurve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ForwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ForwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ForwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ForwardFlatZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_ForwardFlat,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_ForwardFlatZeroCurve" "', argument " "5"" of type '" "ForwardFlat const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "5"" of type '" "ForwardFlat const &""'"); 
  }
  arg5 = reinterpret_cast< ForwardFlat * >(argp5);
  {
    try {
      result = (ForwardFlatZeroCurvePtr *)new_ForwardFlatZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(ForwardFlat const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ForwardFlatZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ForwardFlatZeroCurve__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  ForwardFlatZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ForwardFlatZeroCurve",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ForwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ForwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ForwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ForwardFlatZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  {
    try {
      result = (ForwardFlatZeroCurvePtr *)new_ForwardFlatZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ForwardFlatZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ForwardFlatZeroCurve__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  ForwardFlatZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_ForwardFlatZeroCurve",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ForwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ForwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ForwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ForwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (ForwardFlatZeroCurvePtr *)new_ForwardFlatZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ForwardFlatZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ForwardFlatZeroCurve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_ForwardFlatZeroCurve__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_ForwardFlatZeroCurve__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_ForwardFlat, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_ForwardFlatZeroCurve__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_ForwardFlat, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_ForwardFlatZeroCurve__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_ForwardFlat, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_ForwardFlatZeroCurve__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_ForwardFlatZeroCurve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    ForwardFlatZeroCurvePtr::ForwardFlatZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,ForwardFlat const &,Compounding,Frequency)\n"
    "    ForwardFlatZeroCurvePtr::ForwardFlatZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,ForwardFlat const &,Compounding)\n"
    "    ForwardFlatZeroCurvePtr::ForwardFlatZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,ForwardFlat const &)\n"
    "    ForwardFlatZeroCurvePtr::ForwardFlatZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &)\n"
    "    ForwardFlatZeroCurvePtr::ForwardFlatZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ForwardFlatZeroCurve_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardFlatZeroCurvePtr *arg1 = (ForwardFlatZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ForwardFlatZeroCurve_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardFlatZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ForwardFlatZeroCurve_times" "', argument " "1"" of type '" "ForwardFlatZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< ForwardFlatZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Time,std::allocator< Time > > *) &ForwardFlatZeroCurvePtr_times(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ForwardFlatZeroCurve_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardFlatZeroCurvePtr *arg1 = (ForwardFlatZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ForwardFlatZeroCurve_data",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardFlatZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ForwardFlatZeroCurve_data" "', argument " "1"" of type '" "ForwardFlatZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< ForwardFlatZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Real,std::allocator< Real > > *) &ForwardFlatZeroCurvePtr_data(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ForwardFlatZeroCurve_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardFlatZeroCurvePtr *arg1 = (ForwardFlatZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ForwardFlatZeroCurve_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardFlatZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ForwardFlatZeroCurve_dates" "', argument " "1"" of type '" "ForwardFlatZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< ForwardFlatZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &ForwardFlatZeroCurvePtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ForwardFlatZeroCurve_zeroRates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardFlatZeroCurvePtr *arg1 = (ForwardFlatZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"ForwardFlatZeroCurve_zeroRates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardFlatZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ForwardFlatZeroCurve_zeroRates" "', argument " "1"" of type '" "ForwardFlatZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< ForwardFlatZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Rate,std::allocator< Rate > > *) &ForwardFlatZeroCurvePtr_zeroRates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ForwardFlatZeroCurve_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardFlatZeroCurvePtr *arg1 = (ForwardFlatZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,Rate >,std::allocator< std::pair< Date,Rate > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"ForwardFlatZeroCurve_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardFlatZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ForwardFlatZeroCurve_nodes" "', argument " "1"" of type '" "ForwardFlatZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< ForwardFlatZeroCurvePtr * >(argp1);
  {
    try {
      result = ForwardFlatZeroCurvePtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ForwardFlatZeroCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardFlatZeroCurvePtr *arg1 = (ForwardFlatZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_ForwardFlatZeroCurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardFlatZeroCurvePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ForwardFlatZeroCurve" "', argument " "1"" of type '" "ForwardFlatZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< ForwardFlatZeroCurvePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ForwardFlatZeroCurve_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ForwardFlatZeroCurvePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_BackwardFlatZeroCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  BackwardFlat *arg5 = 0 ;
  Compounding arg6 ;
  Frequency arg7 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  BackwardFlatZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BackwardFlatZeroCurve",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BackwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BackwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BackwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_BackwardFlatZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_BackwardFlat,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_BackwardFlatZeroCurve" "', argument " "5"" of type '" "BackwardFlat const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "5"" of type '" "BackwardFlat const &""'"); 
  }
  arg5 = reinterpret_cast< BackwardFlat * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BackwardFlatZeroCurve" "', argument " "6"" of type '" "Compounding""'");
  } 
  arg6 = static_cast< Compounding >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_BackwardFlatZeroCurve" "', argument " "7"" of type '" "Frequency""'");
  } 
  arg7 = static_cast< Frequency >(val7);
  {
    try {
      result = (BackwardFlatZeroCurvePtr *)new_BackwardFlatZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(BackwardFlat const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BackwardFlatZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BackwardFlatZeroCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  BackwardFlat *arg5 = 0 ;
  Compounding arg6 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  BackwardFlatZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BackwardFlatZeroCurve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BackwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BackwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BackwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_BackwardFlatZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_BackwardFlat,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_BackwardFlatZeroCurve" "', argument " "5"" of type '" "BackwardFlat const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "5"" of type '" "BackwardFlat const &""'"); 
  }
  arg5 = reinterpret_cast< BackwardFlat * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BackwardFlatZeroCurve" "', argument " "6"" of type '" "Compounding""'");
  } 
  arg6 = static_cast< Compounding >(val6);
  {
    try {
      result = (BackwardFlatZeroCurvePtr *)new_BackwardFlatZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(BackwardFlat const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BackwardFlatZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BackwardFlatZeroCurve__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  BackwardFlat *arg5 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  BackwardFlatZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BackwardFlatZeroCurve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BackwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BackwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BackwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_BackwardFlatZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_BackwardFlat,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_BackwardFlatZeroCurve" "', argument " "5"" of type '" "BackwardFlat const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "5"" of type '" "BackwardFlat const &""'"); 
  }
  arg5 = reinterpret_cast< BackwardFlat * >(argp5);
  {
    try {
      result = (BackwardFlatZeroCurvePtr *)new_BackwardFlatZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(BackwardFlat const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BackwardFlatZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BackwardFlatZeroCurve__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  BackwardFlatZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BackwardFlatZeroCurve",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BackwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BackwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BackwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_BackwardFlatZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  {
    try {
      result = (BackwardFlatZeroCurvePtr *)new_BackwardFlatZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BackwardFlatZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BackwardFlatZeroCurve__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  BackwardFlatZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_BackwardFlatZeroCurve",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BackwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BackwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BackwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BackwardFlatZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (BackwardFlatZeroCurvePtr *)new_BackwardFlatZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BackwardFlatZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_BackwardFlatZeroCurve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_BackwardFlatZeroCurve__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_BackwardFlatZeroCurve__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_BackwardFlat, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_BackwardFlatZeroCurve__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_BackwardFlat, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_BackwardFlatZeroCurve__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_BackwardFlat, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_BackwardFlatZeroCurve__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BackwardFlatZeroCurve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    BackwardFlatZeroCurvePtr::BackwardFlatZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,BackwardFlat const &,Compounding,Frequency)\n"
    "    BackwardFlatZeroCurvePtr::BackwardFlatZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,BackwardFlat const &,Compounding)\n"
    "    BackwardFlatZeroCurvePtr::BackwardFlatZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,BackwardFlat const &)\n"
    "    BackwardFlatZeroCurvePtr::BackwardFlatZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &)\n"
    "    BackwardFlatZeroCurvePtr::BackwardFlatZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_BackwardFlatZeroCurve_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BackwardFlatZeroCurvePtr *arg1 = (BackwardFlatZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BackwardFlatZeroCurve_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BackwardFlatZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BackwardFlatZeroCurve_times" "', argument " "1"" of type '" "BackwardFlatZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< BackwardFlatZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Time,std::allocator< Time > > *) &BackwardFlatZeroCurvePtr_times(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BackwardFlatZeroCurve_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BackwardFlatZeroCurvePtr *arg1 = (BackwardFlatZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BackwardFlatZeroCurve_data",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BackwardFlatZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BackwardFlatZeroCurve_data" "', argument " "1"" of type '" "BackwardFlatZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< BackwardFlatZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Real,std::allocator< Real > > *) &BackwardFlatZeroCurvePtr_data(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BackwardFlatZeroCurve_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BackwardFlatZeroCurvePtr *arg1 = (BackwardFlatZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BackwardFlatZeroCurve_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BackwardFlatZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BackwardFlatZeroCurve_dates" "', argument " "1"" of type '" "BackwardFlatZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< BackwardFlatZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &BackwardFlatZeroCurvePtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BackwardFlatZeroCurve_zeroRates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BackwardFlatZeroCurvePtr *arg1 = (BackwardFlatZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"BackwardFlatZeroCurve_zeroRates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BackwardFlatZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BackwardFlatZeroCurve_zeroRates" "', argument " "1"" of type '" "BackwardFlatZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< BackwardFlatZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Rate,std::allocator< Rate > > *) &BackwardFlatZeroCurvePtr_zeroRates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_BackwardFlatZeroCurve_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BackwardFlatZeroCurvePtr *arg1 = (BackwardFlatZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,Rate >,std::allocator< std::pair< Date,Rate > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"BackwardFlatZeroCurve_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BackwardFlatZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BackwardFlatZeroCurve_nodes" "', argument " "1"" of type '" "BackwardFlatZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< BackwardFlatZeroCurvePtr * >(argp1);
  {
    try {
      result = BackwardFlatZeroCurvePtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_BackwardFlatZeroCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  BackwardFlatZeroCurvePtr *arg1 = (BackwardFlatZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_BackwardFlatZeroCurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BackwardFlatZeroCurvePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BackwardFlatZeroCurve" "', argument " "1"" of type '" "BackwardFlatZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< BackwardFlatZeroCurvePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *BackwardFlatZeroCurve_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_BackwardFlatZeroCurvePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_MonotonicCubicZeroCurve__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  MonotonicCubic *arg5 = 0 ;
  Compounding arg6 ;
  Frequency arg7 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  MonotonicCubicZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MonotonicCubicZeroCurve",7,7,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_MonotonicCubic,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "5"" of type '" "MonotonicCubic const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "5"" of type '" "MonotonicCubic const &""'"); 
  }
  arg5 = reinterpret_cast< MonotonicCubic * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "6"" of type '" "Compounding""'");
  } 
  arg6 = static_cast< Compounding >(val6);
  ecode7 = SWIG_AsVal_int(obj6, &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "7"" of type '" "Frequency""'");
  } 
  arg7 = static_cast< Frequency >(val7);
  {
    try {
      result = (MonotonicCubicZeroCurvePtr *)new_MonotonicCubicZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(MonotonicCubic const &)*arg5,arg6,arg7);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MonotonicCubicZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MonotonicCubicZeroCurve__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  MonotonicCubic *arg5 = 0 ;
  Compounding arg6 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  MonotonicCubicZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MonotonicCubicZeroCurve",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_MonotonicCubic,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "5"" of type '" "MonotonicCubic const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "5"" of type '" "MonotonicCubic const &""'"); 
  }
  arg5 = reinterpret_cast< MonotonicCubic * >(argp5);
  ecode6 = SWIG_AsVal_int(obj5, &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "6"" of type '" "Compounding""'");
  } 
  arg6 = static_cast< Compounding >(val6);
  {
    try {
      result = (MonotonicCubicZeroCurvePtr *)new_MonotonicCubicZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(MonotonicCubic const &)*arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MonotonicCubicZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MonotonicCubicZeroCurve__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  MonotonicCubic *arg5 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  MonotonicCubicZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MonotonicCubicZeroCurve",5,5,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_MonotonicCubic,  0  | 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "5"" of type '" "MonotonicCubic const &""'"); 
  }
  if (!argp5) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "5"" of type '" "MonotonicCubic const &""'"); 
  }
  arg5 = reinterpret_cast< MonotonicCubic * >(argp5);
  {
    try {
      result = (MonotonicCubicZeroCurvePtr *)new_MonotonicCubicZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4,(MonotonicCubic const &)*arg5);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MonotonicCubicZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MonotonicCubicZeroCurve__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  Calendar *arg4 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  MonotonicCubicZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MonotonicCubicZeroCurve",4,4,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "4"" of type '" "Calendar const &""'"); 
  }
  arg4 = reinterpret_cast< Calendar * >(argp4);
  {
    try {
      result = (MonotonicCubicZeroCurvePtr *)new_MonotonicCubicZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3,(Calendar const &)*arg4);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MonotonicCubicZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MonotonicCubicZeroCurve__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Date,std::allocator< Date > > *arg1 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *arg2 = 0 ;
  DayCounter *arg3 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  MonotonicCubicZeroCurvePtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_MonotonicCubicZeroCurve",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
  {
    std::vector< Date,std::allocator< Date > > *ptr = (std::vector< Date,std::allocator< Date > > *)0;
    res1 = swig::asptr(obj0, &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "1"" of type '" "std::vector< Date,std::allocator< Date > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    std::vector< double,std::allocator< double > > *ptr = (std::vector< double,std::allocator< double > > *)0;
    res2 = swig::asptr(obj1, &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "2"" of type '" "std::vector< Rate,std::allocator< Rate > > const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MonotonicCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MonotonicCubicZeroCurve" "', argument " "3"" of type '" "DayCounter const &""'"); 
  }
  arg3 = reinterpret_cast< DayCounter * >(argp3);
  {
    try {
      result = (MonotonicCubicZeroCurvePtr *)new_MonotonicCubicZeroCurvePtr__SWIG_0((std::vector< Date,std::allocator< Date > > const &)*arg1,(std::vector< double,std::allocator< double > > const &)*arg2,(DayCounter const &)*arg3);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MonotonicCubicZeroCurvePtr, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_MonotonicCubicZeroCurve(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[8] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 7) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 3) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_MonotonicCubicZeroCurve__SWIG_4(self, args);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_MonotonicCubicZeroCurve__SWIG_3(self, args);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_MonotonicCubic, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_new_MonotonicCubicZeroCurve__SWIG_2(self, args);
            }
          }
        }
      }
    }
  }
  if (argc == 6) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_MonotonicCubic, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                return _wrap_new_MonotonicCubicZeroCurve__SWIG_1(self, args);
              }
            }
          }
        }
      }
    }
  }
  if (argc == 7) {
    int _v;
    int res = swig::asptr(argv[0], (std::vector< Date,std::allocator< Date > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = swig::asptr(argv[1], (std::vector< double,std::allocator< double > >**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_DayCounter, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Calendar, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_MonotonicCubic, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              {
                int res = SWIG_AsVal_int(argv[5], NULL);
                _v = SWIG_CheckState(res);
              }
              if (_v) {
                {
                  int res = SWIG_AsVal_int(argv[6], NULL);
                  _v = SWIG_CheckState(res);
                }
                if (_v) {
                  return _wrap_new_MonotonicCubicZeroCurve__SWIG_0(self, args);
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_MonotonicCubicZeroCurve'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    MonotonicCubicZeroCurvePtr::MonotonicCubicZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,MonotonicCubic const &,Compounding,Frequency)\n"
    "    MonotonicCubicZeroCurvePtr::MonotonicCubicZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,MonotonicCubic const &,Compounding)\n"
    "    MonotonicCubicZeroCurvePtr::MonotonicCubicZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &,MonotonicCubic const &)\n"
    "    MonotonicCubicZeroCurvePtr::MonotonicCubicZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &,Calendar const &)\n"
    "    MonotonicCubicZeroCurvePtr::MonotonicCubicZeroCurvePtr(std::vector< Date,std::allocator< Date > > const &,std::vector< Rate,std::allocator< Rate > > const &,DayCounter const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_MonotonicCubicZeroCurve_times(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MonotonicCubicZeroCurvePtr *arg1 = (MonotonicCubicZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Time,std::allocator< Time > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicCubicZeroCurve_times",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MonotonicCubicZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicCubicZeroCurve_times" "', argument " "1"" of type '" "MonotonicCubicZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< MonotonicCubicZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Time,std::allocator< Time > > *) &MonotonicCubicZeroCurvePtr_times(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicCubicZeroCurve_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MonotonicCubicZeroCurvePtr *arg1 = (MonotonicCubicZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Real,std::allocator< Real > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicCubicZeroCurve_data",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MonotonicCubicZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicCubicZeroCurve_data" "', argument " "1"" of type '" "MonotonicCubicZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< MonotonicCubicZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Real,std::allocator< Real > > *) &MonotonicCubicZeroCurvePtr_data(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicCubicZeroCurve_dates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MonotonicCubicZeroCurvePtr *arg1 = (MonotonicCubicZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Date,std::allocator< Date > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicCubicZeroCurve_dates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MonotonicCubicZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicCubicZeroCurve_dates" "', argument " "1"" of type '" "MonotonicCubicZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< MonotonicCubicZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Date,std::allocator< Date > > *) &MonotonicCubicZeroCurvePtr_dates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< Date,std::allocator< Date > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicCubicZeroCurve_zeroRates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MonotonicCubicZeroCurvePtr *arg1 = (MonotonicCubicZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< Rate,std::allocator< Rate > > *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicCubicZeroCurve_zeroRates",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MonotonicCubicZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicCubicZeroCurve_zeroRates" "', argument " "1"" of type '" "MonotonicCubicZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< MonotonicCubicZeroCurvePtr * >(argp1);
  {
    try {
      result = (std::vector< Rate,std::allocator< Rate > > *) &MonotonicCubicZeroCurvePtr_zeroRates(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< double,std::allocator< double > > >(*result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_MonotonicCubicZeroCurve_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MonotonicCubicZeroCurvePtr *arg1 = (MonotonicCubicZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  std::vector< std::pair< Date,Rate >,std::allocator< std::pair< Date,Rate > > > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"MonotonicCubicZeroCurve_nodes",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MonotonicCubicZeroCurvePtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MonotonicCubicZeroCurve_nodes" "', argument " "1"" of type '" "MonotonicCubicZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< MonotonicCubicZeroCurvePtr * >(argp1);
  {
    try {
      result = MonotonicCubicZeroCurvePtr_nodes(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_MonotonicCubicZeroCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  MonotonicCubicZeroCurvePtr *arg1 = (MonotonicCubicZeroCurvePtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_MonotonicCubicZeroCurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MonotonicCubicZeroCurvePtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MonotonicCubicZeroCurve" "', argument " "1"" of type '" "MonotonicCubicZeroCurvePtr *""'"); 
  }
  arg1 = reinterpret_cast< MonotonicCubicZeroCurvePtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *MonotonicCubicZeroCurve_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_MonotonicCubicZeroCurvePtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_as_zerocurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  boost::shared_ptr< YieldTermStructure > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  SwigValueWrapper< ZeroCurvePtr > result;
  
  if(!PyArg_UnpackTuple(args,(char *)"as_zerocurve",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_boost__shared_ptrT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "as_zerocurve" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "as_zerocurve" "', argument " "1"" of type '" "boost::shared_ptr< YieldTermStructure > const &""'"); 
  }
  arg1 = reinterpret_cast< boost::shared_ptr< YieldTermStructure > * >(argp1);
  {
    try {
      result = as_zerocurve((boost::shared_ptr< YieldTermStructure > const &)*arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new ZeroCurvePtr(static_cast< const ZeroCurvePtr& >(result))), SWIGTYPE_p_ZeroCurvePtr, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Forward_forwardValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardPtr *arg1 = (ForwardPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Forward_forwardValue",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Forward_forwardValue" "', argument " "1"" of type '" "ForwardPtr *""'"); 
  }
  arg1 = reinterpret_cast< ForwardPtr * >(argp1);
  {
    try {
      result = (Real)ForwardPtr_forwardValue(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Forward_impliedYield(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardPtr *arg1 = (ForwardPtr *) 0 ;
  Real arg2 ;
  Real arg3 ;
  Date arg4 ;
  Compounding arg5 ;
  SwigValueWrapper< DayCounter > arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  void *argp6 ;
  int res6 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  InterestRate result;
  
  if(!PyArg_UnpackTuple(args,(char *)"Forward_impliedYield",6,6,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Forward_impliedYield" "', argument " "1"" of type '" "ForwardPtr *""'"); 
  }
  arg1 = reinterpret_cast< ForwardPtr * >(argp1);
  ecode2 = SWIG_AsVal_double(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Forward_impliedYield" "', argument " "2"" of type '" "Real""'");
  } 
  arg2 = static_cast< Real >(val2);
  ecode3 = SWIG_AsVal_double(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Forward_impliedYield" "', argument " "3"" of type '" "Real""'");
  } 
  arg3 = static_cast< Real >(val3);
  {
    res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_Date,  0  | 0);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Forward_impliedYield" "', argument " "4"" of type '" "Date""'"); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Forward_impliedYield" "', argument " "4"" of type '" "Date""'");
    } else {
      Date * temp = reinterpret_cast< Date * >(argp4);
      arg4 = *temp;
      if (SWIG_IsNewObj(res4)) delete temp;
    }
  }
  ecode5 = SWIG_AsVal_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Forward_impliedYield" "', argument " "5"" of type '" "Compounding""'");
  } 
  arg5 = static_cast< Compounding >(val5);
  {
    res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Forward_impliedYield" "', argument " "6"" of type '" "DayCounter""'"); 
    }  
    if (!argp6) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Forward_impliedYield" "', argument " "6"" of type '" "DayCounter""'");
    } else {
      DayCounter * temp = reinterpret_cast< DayCounter * >(argp6);
      arg6 = *temp;
      if (SWIG_IsNewObj(res6)) delete temp;
    }
  }
  {
    try {
      result = ForwardPtr_impliedYield(arg1,arg2,arg3,arg4,arg5,arg6);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj((new InterestRate(static_cast< const InterestRate& >(result))), SWIGTYPE_p_InterestRate, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_Forward(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_Forward",0,0)) SWIG_fail;
  {
    try {
      result = (ForwardPtr *)new ForwardPtr();
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ForwardPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Forward(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  ForwardPtr *arg1 = (ForwardPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_Forward",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ForwardPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Forward" "', argument " "1"" of type '" "ForwardPtr *""'"); 
  }
  arg1 = reinterpret_cast< ForwardPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Forward_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_ForwardPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_FixedRateBondForward__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Date *arg2 = 0 ;
  Position::Type arg3 ;
  Real arg4 ;
  Natural arg5 ;
  DayCounter *arg6 = 0 ;
  Calendar *arg7 = 0 ;
  BusinessDayConvention arg8 ;
  FixedRateBondPtr *arg9 = 0 ;
  Handle< YieldTermStructure > *arg10 = 0 ;
  Handle< YieldTermStructure > *arg11 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  void *argp11 = 0 ;
  int res11 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  PyObject * obj10 = 0 ;
  FixedRateBondForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBondForward",11,11,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FixedRateBondForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FixedRateBondForward" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondForward" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FixedRateBondForward" "', argument " "3"" of type '" "Position::Type""'");
  } 
  arg3 = static_cast< Position::Type >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FixedRateBondForward" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FixedRateBondForward" "', argument " "5"" of type '" "Natural""'");
  } 
  arg5 = static_cast< Natural >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FixedRateBondForward" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondForward" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FixedRateBondForward" "', argument " "7"" of type '" "Calendar const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondForward" "', argument " "7"" of type '" "Calendar const &""'"); 
  }
  arg7 = reinterpret_cast< Calendar * >(argp7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FixedRateBondForward" "', argument " "8"" of type '" "BusinessDayConvention""'");
  } 
  arg8 = static_cast< BusinessDayConvention >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_FixedRateBondPtr,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBondForward" "', argument " "9"" of type '" "FixedRateBondPtr const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondForward" "', argument " "9"" of type '" "FixedRateBondPtr const &""'"); 
  }
  arg9 = reinterpret_cast< FixedRateBondPtr * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_FixedRateBondForward" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondForward" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg10 = reinterpret_cast< Handle< YieldTermStructure > * >(argp10);
  res11 = SWIG_ConvertPtr(obj10, &argp11, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res11)) {
    SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "new_FixedRateBondForward" "', argument " "11"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp11) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondForward" "', argument " "11"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg11 = reinterpret_cast< Handle< YieldTermStructure > * >(argp11);
  {
    try {
      result = (FixedRateBondForwardPtr *)new_FixedRateBondForwardPtr__SWIG_0((Date const &)*arg1,(Date const &)*arg2,arg3,arg4,arg5,(DayCounter const &)*arg6,(Calendar const &)*arg7,arg8,(FixedRateBondPtr const &)*arg9,(Handle< YieldTermStructure > const &)*arg10,(Handle< YieldTermStructure > const &)*arg11);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondForwardPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBondForward__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Date *arg2 = 0 ;
  Position::Type arg3 ;
  Real arg4 ;
  Natural arg5 ;
  DayCounter *arg6 = 0 ;
  Calendar *arg7 = 0 ;
  BusinessDayConvention arg8 ;
  FixedRateBondPtr *arg9 = 0 ;
  Handle< YieldTermStructure > *arg10 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  void *argp10 = 0 ;
  int res10 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  PyObject * obj9 = 0 ;
  FixedRateBondForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBondForward",10,10,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FixedRateBondForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FixedRateBondForward" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondForward" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FixedRateBondForward" "', argument " "3"" of type '" "Position::Type""'");
  } 
  arg3 = static_cast< Position::Type >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FixedRateBondForward" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FixedRateBondForward" "', argument " "5"" of type '" "Natural""'");
  } 
  arg5 = static_cast< Natural >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FixedRateBondForward" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondForward" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FixedRateBondForward" "', argument " "7"" of type '" "Calendar const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondForward" "', argument " "7"" of type '" "Calendar const &""'"); 
  }
  arg7 = reinterpret_cast< Calendar * >(argp7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FixedRateBondForward" "', argument " "8"" of type '" "BusinessDayConvention""'");
  } 
  arg8 = static_cast< BusinessDayConvention >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_FixedRateBondPtr,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBondForward" "', argument " "9"" of type '" "FixedRateBondPtr const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondForward" "', argument " "9"" of type '" "FixedRateBondPtr const &""'"); 
  }
  arg9 = reinterpret_cast< FixedRateBondPtr * >(argp9);
  res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "new_FixedRateBondForward" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp10) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondForward" "', argument " "10"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg10 = reinterpret_cast< Handle< YieldTermStructure > * >(argp10);
  {
    try {
      result = (FixedRateBondForwardPtr *)new_FixedRateBondForwardPtr__SWIG_0((Date const &)*arg1,(Date const &)*arg2,arg3,arg4,arg5,(DayCounter const &)*arg6,(Calendar const &)*arg7,arg8,(FixedRateBondPtr const &)*arg9,(Handle< YieldTermStructure > const &)*arg10);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondForwardPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBondForward__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  Date *arg1 = 0 ;
  Date *arg2 = 0 ;
  Position::Type arg3 ;
  Real arg4 ;
  Natural arg5 ;
  DayCounter *arg6 = 0 ;
  Calendar *arg7 = 0 ;
  BusinessDayConvention arg8 ;
  FixedRateBondPtr *arg9 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  PyObject * obj2 = 0 ;
  PyObject * obj3 = 0 ;
  PyObject * obj4 = 0 ;
  PyObject * obj5 = 0 ;
  PyObject * obj6 = 0 ;
  PyObject * obj7 = 0 ;
  PyObject * obj8 = 0 ;
  FixedRateBondForwardPtr *result = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"new_FixedRateBondForward",9,9,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FixedRateBondForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondForward" "', argument " "1"" of type '" "Date const &""'"); 
  }
  arg1 = reinterpret_cast< Date * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Date,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FixedRateBondForward" "', argument " "2"" of type '" "Date const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondForward" "', argument " "2"" of type '" "Date const &""'"); 
  }
  arg2 = reinterpret_cast< Date * >(argp2);
  ecode3 = SWIG_AsVal_int(obj2, &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FixedRateBondForward" "', argument " "3"" of type '" "Position::Type""'");
  } 
  arg3 = static_cast< Position::Type >(val3);
  ecode4 = SWIG_AsVal_double(obj3, &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FixedRateBondForward" "', argument " "4"" of type '" "Real""'");
  } 
  arg4 = static_cast< Real >(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FixedRateBondForward" "', argument " "5"" of type '" "Natural""'");
  } 
  arg5 = static_cast< Natural >(val5);
  res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_DayCounter,  0  | 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_FixedRateBondForward" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  if (!argp6) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondForward" "', argument " "6"" of type '" "DayCounter const &""'"); 
  }
  arg6 = reinterpret_cast< DayCounter * >(argp6);
  res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_Calendar,  0  | 0);
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FixedRateBondForward" "', argument " "7"" of type '" "Calendar const &""'"); 
  }
  if (!argp7) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondForward" "', argument " "7"" of type '" "Calendar const &""'"); 
  }
  arg7 = reinterpret_cast< Calendar * >(argp7);
  ecode8 = SWIG_AsVal_int(obj7, &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FixedRateBondForward" "', argument " "8"" of type '" "BusinessDayConvention""'");
  } 
  arg8 = static_cast< BusinessDayConvention >(val8);
  res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_FixedRateBondPtr,  0  | 0);
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FixedRateBondForward" "', argument " "9"" of type '" "FixedRateBondPtr const &""'"); 
  }
  if (!argp9) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FixedRateBondForward" "', argument " "9"" of type '" "FixedRateBondPtr const &""'"); 
  }
  arg9 = reinterpret_cast< FixedRateBondPtr * >(argp9);
  {
    try {
      result = (FixedRateBondForwardPtr *)new_FixedRateBondForwardPtr__SWIG_0((Date const &)*arg1,(Date const &)*arg2,arg3,arg4,arg5,(DayCounter const &)*arg6,(Calendar const &)*arg7,arg8,(FixedRateBondPtr const &)*arg9);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FixedRateBondForwardPtr, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_FixedRateBondForward(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[12] = {
    0
  };
  Py_ssize_t ii;
  
  if (!PyTuple_Check(args)) SWIG_fail;
  argc = args ? PyObject_Length(args) : 0;
  for (ii = 0; (ii < 11) && (ii < argc); ii++) {
    argv[ii] = PyTuple_GET_ITEM(args,ii);
  }
  if (argc == 9) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Calendar, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_FixedRateBondPtr, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      return _wrap_new_FixedRateBondForward__SWIG_2(self, args);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Calendar, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_FixedRateBondPtr, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        return _wrap_new_FixedRateBondForward__SWIG_1(self, args);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 11) {
    int _v;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Date, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Date, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_double(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_DayCounter, 0);
              _v = SWIG_CheckState(res);
              if (_v) {
                int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_Calendar, 0);
                _v = SWIG_CheckState(res);
                if (_v) {
                  {
                    int res = SWIG_AsVal_int(argv[7], NULL);
                    _v = SWIG_CheckState(res);
                  }
                  if (_v) {
                    int res = SWIG_ConvertPtr(argv[8], 0, SWIGTYPE_p_FixedRateBondPtr, 0);
                    _v = SWIG_CheckState(res);
                    if (_v) {
                      int res = SWIG_ConvertPtr(argv[9], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                      _v = SWIG_CheckState(res);
                      if (_v) {
                        int res = SWIG_ConvertPtr(argv[10], 0, SWIGTYPE_p_HandleT_YieldTermStructure_t, 0);
                        _v = SWIG_CheckState(res);
                        if (_v) {
                          return _wrap_new_FixedRateBondForward__SWIG_0(self, args);
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_FixedRateBondForward'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    FixedRateBondForwardPtr::FixedRateBondForwardPtr(Date const &,Date const &,Position::Type,Real,Natural,DayCounter const &,Calendar const &,BusinessDayConvention,FixedRateBondPtr const &,Handle< YieldTermStructure > const &,Handle< YieldTermStructure > const &)\n"
    "    FixedRateBondForwardPtr::FixedRateBondForwardPtr(Date const &,Date const &,Position::Type,Real,Natural,DayCounter const &,Calendar const &,BusinessDayConvention,FixedRateBondPtr const &,Handle< YieldTermStructure > const &)\n"
    "    FixedRateBondForwardPtr::FixedRateBondForwardPtr(Date const &,Date const &,Position::Type,Real,Natural,DayCounter const &,Calendar const &,BusinessDayConvention,FixedRateBondPtr const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_FixedRateBondForward_forwardPrice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FixedRateBondForwardPtr *arg1 = (FixedRateBondForwardPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FixedRateBondForward_forwardPrice",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FixedRateBondForwardPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedRateBondForward_forwardPrice" "', argument " "1"" of type '" "FixedRateBondForwardPtr *""'"); 
  }
  arg1 = reinterpret_cast< FixedRateBondForwardPtr * >(argp1);
  {
    try {
      result = (Real)FixedRateBondForwardPtr_forwardPrice(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FixedRateBondForward_cleanForwardPrice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FixedRateBondForwardPtr *arg1 = (FixedRateBondForwardPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FixedRateBondForward_cleanForwardPrice",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FixedRateBondForwardPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedRateBondForward_cleanForwardPrice" "', argument " "1"" of type '" "FixedRateBondForwardPtr *""'"); 
  }
  arg1 = reinterpret_cast< FixedRateBondForwardPtr * >(argp1);
  {
    try {
      result = (Real)FixedRateBondForwardPtr_cleanForwardPrice(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FixedRateBondForward_spotIncome(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FixedRateBondForwardPtr *arg1 = (FixedRateBondForwardPtr *) 0 ;
  Handle< YieldTermStructure > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject * obj0 = 0 ;
  PyObject * obj1 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FixedRateBondForward_spotIncome",2,2,&obj0,&obj1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FixedRateBondForwardPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedRateBondForward_spotIncome" "', argument " "1"" of type '" "FixedRateBondForwardPtr *""'"); 
  }
  arg1 = reinterpret_cast< FixedRateBondForwardPtr * >(argp1);
  res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_HandleT_YieldTermStructure_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FixedRateBondForward_spotIncome" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedRateBondForward_spotIncome" "', argument " "2"" of type '" "Handle< YieldTermStructure > const &""'"); 
  }
  arg2 = reinterpret_cast< Handle< YieldTermStructure > * >(argp2);
  {
    try {
      result = (Real)FixedRateBondForwardPtr_spotIncome(arg1,(Handle< YieldTermStructure > const &)*arg2);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_FixedRateBondForward_spotValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FixedRateBondForwardPtr *arg1 = (FixedRateBondForwardPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  Real result;
  
  if(!PyArg_UnpackTuple(args,(char *)"FixedRateBondForward_spotValue",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FixedRateBondForwardPtr, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedRateBondForward_spotValue" "', argument " "1"" of type '" "FixedRateBondForwardPtr *""'"); 
  }
  arg1 = reinterpret_cast< FixedRateBondForwardPtr * >(argp1);
  {
    try {
      result = (Real)FixedRateBondForwardPtr_spotValue(arg1);
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_From_double(static_cast< double >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_FixedRateBondForward(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *resultobj = 0;
  FixedRateBondForwardPtr *arg1 = (FixedRateBondForwardPtr *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject * obj0 = 0 ;
  
  if(!PyArg_UnpackTuple(args,(char *)"delete_FixedRateBondForward",1,1,&obj0)) SWIG_fail;
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FixedRateBondForwardPtr, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FixedRateBondForward" "', argument " "1"" of type '" "FixedRateBondForwardPtr *""'"); 
  }
  arg1 = reinterpret_cast< FixedRateBondForwardPtr * >(argp1);
  {
    try {
      delete arg1;
    } catch (std::out_of_range& e) {
      SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
    } catch (std::exception& e) {
      SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
    } catch (...) {
      SWIG_exception(SWIG_UnknownError,"unknown error");
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *FixedRateBondForward_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj;
  if (!PyArg_UnpackTuple(args,(char *)"swigregister", 1, 1,&obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_FixedRateBondForwardPtr, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

static PyMethodDef SwigMethods[] = {
	 { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL},
	 { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS, NULL},
	 { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS, NULL},
	 { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS, NULL},
	 { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS, NULL},
	 { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS, NULL},
	 { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS, NULL},
	 { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS, NULL},
	 { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS, NULL},
	 { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS, NULL},
	 { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS, NULL},
	 { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS, NULL},
	 { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS, NULL},
	 { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS, NULL},
	 { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS, NULL},
	 { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS, NULL},
	 { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS, NULL},
	 { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS, NULL},
	 { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS, NULL},
	 { (char *)"Period_length", _wrap_Period_length, METH_VARARGS, NULL},
	 { (char *)"Period_units", _wrap_Period_units, METH_VARARGS, NULL},
	 { (char *)"Period_frequency", _wrap_Period_frequency, METH_VARARGS, NULL},
	 { (char *)"new_Period", _wrap_new_Period, METH_VARARGS, NULL},
	 { (char *)"Period___str__", _wrap_Period___str__, METH_VARARGS, NULL},
	 { (char *)"Period___repr__", _wrap_Period___repr__, METH_VARARGS, NULL},
	 { (char *)"Period___neg__", _wrap_Period___neg__, METH_VARARGS, NULL},
	 { (char *)"Period___mul__", _wrap_Period___mul__, METH_VARARGS, NULL},
	 { (char *)"Period___rmul__", _wrap_Period___rmul__, METH_VARARGS, NULL},
	 { (char *)"Period___lt__", _wrap_Period___lt__, METH_VARARGS, NULL},
	 { (char *)"Period___gt__", _wrap_Period___gt__, METH_VARARGS, NULL},
	 { (char *)"Period___le__", _wrap_Period___le__, METH_VARARGS, NULL},
	 { (char *)"Period___ge__", _wrap_Period___ge__, METH_VARARGS, NULL},
	 { (char *)"Period___eq__", _wrap_Period___eq__, METH_VARARGS, NULL},
	 { (char *)"Period___cmp__", _wrap_Period___cmp__, METH_VARARGS, NULL},
	 { (char *)"delete_Period", _wrap_delete_Period, METH_VARARGS, NULL},
	 { (char *)"Period_swigregister", Period_swigregister, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_iterator", _wrap_PeriodVector_iterator, METH_VARARGS, NULL},
	 { (char *)"PeriodVector___nonzero__", _wrap_PeriodVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"PeriodVector___bool__", _wrap_PeriodVector___bool__, METH_VARARGS, NULL},
	 { (char *)"PeriodVector___len__", _wrap_PeriodVector___len__, METH_VARARGS, NULL},
	 { (char *)"PeriodVector___getslice__", _wrap_PeriodVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"PeriodVector___setslice__", _wrap_PeriodVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"PeriodVector___delslice__", _wrap_PeriodVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"PeriodVector___delitem__", _wrap_PeriodVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"PeriodVector___getitem__", _wrap_PeriodVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"PeriodVector___setitem__", _wrap_PeriodVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_pop", _wrap_PeriodVector_pop, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_append", _wrap_PeriodVector_append, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_empty", _wrap_PeriodVector_empty, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_size", _wrap_PeriodVector_size, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_swap", _wrap_PeriodVector_swap, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_begin", _wrap_PeriodVector_begin, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_end", _wrap_PeriodVector_end, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_rbegin", _wrap_PeriodVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_rend", _wrap_PeriodVector_rend, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_clear", _wrap_PeriodVector_clear, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_get_allocator", _wrap_PeriodVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_pop_back", _wrap_PeriodVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_erase", _wrap_PeriodVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_PeriodVector", _wrap_new_PeriodVector, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_push_back", _wrap_PeriodVector_push_back, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_front", _wrap_PeriodVector_front, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_back", _wrap_PeriodVector_back, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_assign", _wrap_PeriodVector_assign, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_resize", _wrap_PeriodVector_resize, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_insert", _wrap_PeriodVector_insert, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_reserve", _wrap_PeriodVector_reserve, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_capacity", _wrap_PeriodVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_PeriodVector", _wrap_delete_PeriodVector, METH_VARARGS, NULL},
	 { (char *)"PeriodVector_swigregister", PeriodVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"Date_weekday", _wrap_Date_weekday, METH_VARARGS, NULL},
	 { (char *)"Date_dayOfMonth", _wrap_Date_dayOfMonth, METH_VARARGS, NULL},
	 { (char *)"Date_dayOfYear", _wrap_Date_dayOfYear, METH_VARARGS, NULL},
	 { (char *)"Date_month", _wrap_Date_month, METH_VARARGS, NULL},
	 { (char *)"Date_year", _wrap_Date_year, METH_VARARGS, NULL},
	 { (char *)"Date_hours", _wrap_Date_hours, METH_VARARGS, NULL},
	 { (char *)"Date_minutes", _wrap_Date_minutes, METH_VARARGS, NULL},
	 { (char *)"Date_seconds", _wrap_Date_seconds, METH_VARARGS, NULL},
	 { (char *)"Date_milliseconds", _wrap_Date_milliseconds, METH_VARARGS, NULL},
	 { (char *)"Date_microseconds", _wrap_Date_microseconds, METH_VARARGS, NULL},
	 { (char *)"Date_fractionOfDay", _wrap_Date_fractionOfDay, METH_VARARGS, NULL},
	 { (char *)"Date_fractionOfSecond", _wrap_Date_fractionOfSecond, METH_VARARGS, NULL},
	 { (char *)"Date_serialNumber", _wrap_Date_serialNumber, METH_VARARGS, NULL},
	 { (char *)"Date_isLeap", _wrap_Date_isLeap, METH_VARARGS, NULL},
	 { (char *)"Date_minDate", _wrap_Date_minDate, METH_VARARGS, NULL},
	 { (char *)"Date_maxDate", _wrap_Date_maxDate, METH_VARARGS, NULL},
	 { (char *)"Date_todaysDate", _wrap_Date_todaysDate, METH_VARARGS, NULL},
	 { (char *)"Date_localDateTime", _wrap_Date_localDateTime, METH_VARARGS, NULL},
	 { (char *)"Date_universalDateTime", _wrap_Date_universalDateTime, METH_VARARGS, NULL},
	 { (char *)"Date_endOfMonth", _wrap_Date_endOfMonth, METH_VARARGS, NULL},
	 { (char *)"Date_isEndOfMonth", _wrap_Date_isEndOfMonth, METH_VARARGS, NULL},
	 { (char *)"Date_nextWeekday", _wrap_Date_nextWeekday, METH_VARARGS, NULL},
	 { (char *)"Date_nthWeekday", _wrap_Date_nthWeekday, METH_VARARGS, NULL},
	 { (char *)"Date___add__", _wrap_Date___add__, METH_VARARGS, NULL},
	 { (char *)"new_Date", _wrap_new_Date, METH_VARARGS, NULL},
	 { (char *)"Date_weekdayNumber", _wrap_Date_weekdayNumber, METH_VARARGS, NULL},
	 { (char *)"Date___str__", _wrap_Date___str__, METH_VARARGS, NULL},
	 { (char *)"Date___repr__", _wrap_Date___repr__, METH_VARARGS, NULL},
	 { (char *)"Date_ISO", _wrap_Date_ISO, METH_VARARGS, NULL},
	 { (char *)"Date___sub__", _wrap_Date___sub__, METH_VARARGS, NULL},
	 { (char *)"Date___eq__", _wrap_Date___eq__, METH_VARARGS, NULL},
	 { (char *)"Date___cmp__", _wrap_Date___cmp__, METH_VARARGS, NULL},
	 { (char *)"Date___nonzero__", _wrap_Date___nonzero__, METH_VARARGS, NULL},
	 { (char *)"Date___bool__", _wrap_Date___bool__, METH_VARARGS, NULL},
	 { (char *)"Date___hash__", _wrap_Date___hash__, METH_VARARGS, NULL},
	 { (char *)"Date___lt__", _wrap_Date___lt__, METH_VARARGS, NULL},
	 { (char *)"Date___gt__", _wrap_Date___gt__, METH_VARARGS, NULL},
	 { (char *)"Date___le__", _wrap_Date___le__, METH_VARARGS, NULL},
	 { (char *)"Date___ge__", _wrap_Date___ge__, METH_VARARGS, NULL},
	 { (char *)"delete_Date", _wrap_delete_Date, METH_VARARGS, NULL},
	 { (char *)"Date_swigregister", Date_swigregister, METH_VARARGS, NULL},
	 { (char *)"DateParser_parseFormatted", _wrap_DateParser_parseFormatted, METH_VARARGS, NULL},
	 { (char *)"DateParser_parseISO", _wrap_DateParser_parseISO, METH_VARARGS, NULL},
	 { (char *)"DateParser_parse", _wrap_DateParser_parse, METH_VARARGS, NULL},
	 { (char *)"new_DateParser", _wrap_new_DateParser, METH_VARARGS, NULL},
	 { (char *)"delete_DateParser", _wrap_delete_DateParser, METH_VARARGS, NULL},
	 { (char *)"DateParser_swigregister", DateParser_swigregister, METH_VARARGS, NULL},
	 { (char *)"PeriodParser_parse", _wrap_PeriodParser_parse, METH_VARARGS, NULL},
	 { (char *)"new_PeriodParser", _wrap_new_PeriodParser, METH_VARARGS, NULL},
	 { (char *)"delete_PeriodParser", _wrap_delete_PeriodParser, METH_VARARGS, NULL},
	 { (char *)"PeriodParser_swigregister", PeriodParser_swigregister, METH_VARARGS, NULL},
	 { (char *)"DateVector_iterator", _wrap_DateVector_iterator, METH_VARARGS, NULL},
	 { (char *)"DateVector___nonzero__", _wrap_DateVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"DateVector___bool__", _wrap_DateVector___bool__, METH_VARARGS, NULL},
	 { (char *)"DateVector___len__", _wrap_DateVector___len__, METH_VARARGS, NULL},
	 { (char *)"DateVector___getslice__", _wrap_DateVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"DateVector___setslice__", _wrap_DateVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"DateVector___delslice__", _wrap_DateVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"DateVector___delitem__", _wrap_DateVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"DateVector___getitem__", _wrap_DateVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"DateVector___setitem__", _wrap_DateVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"DateVector_pop", _wrap_DateVector_pop, METH_VARARGS, NULL},
	 { (char *)"DateVector_append", _wrap_DateVector_append, METH_VARARGS, NULL},
	 { (char *)"DateVector_empty", _wrap_DateVector_empty, METH_VARARGS, NULL},
	 { (char *)"DateVector_size", _wrap_DateVector_size, METH_VARARGS, NULL},
	 { (char *)"DateVector_swap", _wrap_DateVector_swap, METH_VARARGS, NULL},
	 { (char *)"DateVector_begin", _wrap_DateVector_begin, METH_VARARGS, NULL},
	 { (char *)"DateVector_end", _wrap_DateVector_end, METH_VARARGS, NULL},
	 { (char *)"DateVector_rbegin", _wrap_DateVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"DateVector_rend", _wrap_DateVector_rend, METH_VARARGS, NULL},
	 { (char *)"DateVector_clear", _wrap_DateVector_clear, METH_VARARGS, NULL},
	 { (char *)"DateVector_get_allocator", _wrap_DateVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"DateVector_pop_back", _wrap_DateVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"DateVector_erase", _wrap_DateVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_DateVector", _wrap_new_DateVector, METH_VARARGS, NULL},
	 { (char *)"DateVector_push_back", _wrap_DateVector_push_back, METH_VARARGS, NULL},
	 { (char *)"DateVector_front", _wrap_DateVector_front, METH_VARARGS, NULL},
	 { (char *)"DateVector_back", _wrap_DateVector_back, METH_VARARGS, NULL},
	 { (char *)"DateVector_assign", _wrap_DateVector_assign, METH_VARARGS, NULL},
	 { (char *)"DateVector_resize", _wrap_DateVector_resize, METH_VARARGS, NULL},
	 { (char *)"DateVector_insert", _wrap_DateVector_insert, METH_VARARGS, NULL},
	 { (char *)"DateVector_reserve", _wrap_DateVector_reserve, METH_VARARGS, NULL},
	 { (char *)"DateVector_capacity", _wrap_DateVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_DateVector", _wrap_delete_DateVector, METH_VARARGS, NULL},
	 { (char *)"DateVector_swigregister", DateVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"IMM_isIMMdate", _wrap_IMM_isIMMdate, METH_VARARGS, NULL},
	 { (char *)"IMM_isIMMcode", _wrap_IMM_isIMMcode, METH_VARARGS, NULL},
	 { (char *)"IMM_code", _wrap_IMM_code, METH_VARARGS, NULL},
	 { (char *)"IMM_date", _wrap_IMM_date, METH_VARARGS, NULL},
	 { (char *)"IMM_nextDate", _wrap_IMM_nextDate, METH_VARARGS, NULL},
	 { (char *)"IMM_nextCode", _wrap_IMM_nextCode, METH_VARARGS, NULL},
	 { (char *)"new_IMM", _wrap_new_IMM, METH_VARARGS, NULL},
	 { (char *)"delete_IMM", _wrap_delete_IMM, METH_VARARGS, NULL},
	 { (char *)"IMM_swigregister", IMM_swigregister, METH_VARARGS, NULL},
	 { (char *)"ASX_isASXdate", _wrap_ASX_isASXdate, METH_VARARGS, NULL},
	 { (char *)"ASX_isASXcode", _wrap_ASX_isASXcode, METH_VARARGS, NULL},
	 { (char *)"ASX_code", _wrap_ASX_code, METH_VARARGS, NULL},
	 { (char *)"ASX_date", _wrap_ASX_date, METH_VARARGS, NULL},
	 { (char *)"ASX_nextDate", _wrap_ASX_nextDate, METH_VARARGS, NULL},
	 { (char *)"ASX_nextCode", _wrap_ASX_nextCode, METH_VARARGS, NULL},
	 { (char *)"new_ASX", _wrap_new_ASX, METH_VARARGS, NULL},
	 { (char *)"delete_ASX", _wrap_delete_ASX, METH_VARARGS, NULL},
	 { (char *)"ASX_swigregister", ASX_swigregister, METH_VARARGS, NULL},
	 { (char *)"IntVector_iterator", _wrap_IntVector_iterator, METH_VARARGS, NULL},
	 { (char *)"IntVector___nonzero__", _wrap_IntVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"IntVector___bool__", _wrap_IntVector___bool__, METH_VARARGS, NULL},
	 { (char *)"IntVector___len__", _wrap_IntVector___len__, METH_VARARGS, NULL},
	 { (char *)"IntVector___getslice__", _wrap_IntVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"IntVector___setslice__", _wrap_IntVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"IntVector___delslice__", _wrap_IntVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"IntVector___delitem__", _wrap_IntVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"IntVector___getitem__", _wrap_IntVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"IntVector___setitem__", _wrap_IntVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"IntVector_pop", _wrap_IntVector_pop, METH_VARARGS, NULL},
	 { (char *)"IntVector_append", _wrap_IntVector_append, METH_VARARGS, NULL},
	 { (char *)"IntVector_empty", _wrap_IntVector_empty, METH_VARARGS, NULL},
	 { (char *)"IntVector_size", _wrap_IntVector_size, METH_VARARGS, NULL},
	 { (char *)"IntVector_swap", _wrap_IntVector_swap, METH_VARARGS, NULL},
	 { (char *)"IntVector_begin", _wrap_IntVector_begin, METH_VARARGS, NULL},
	 { (char *)"IntVector_end", _wrap_IntVector_end, METH_VARARGS, NULL},
	 { (char *)"IntVector_rbegin", _wrap_IntVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"IntVector_rend", _wrap_IntVector_rend, METH_VARARGS, NULL},
	 { (char *)"IntVector_clear", _wrap_IntVector_clear, METH_VARARGS, NULL},
	 { (char *)"IntVector_get_allocator", _wrap_IntVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"IntVector_pop_back", _wrap_IntVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"IntVector_erase", _wrap_IntVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_IntVector", _wrap_new_IntVector, METH_VARARGS, NULL},
	 { (char *)"IntVector_push_back", _wrap_IntVector_push_back, METH_VARARGS, NULL},
	 { (char *)"IntVector_front", _wrap_IntVector_front, METH_VARARGS, NULL},
	 { (char *)"IntVector_back", _wrap_IntVector_back, METH_VARARGS, NULL},
	 { (char *)"IntVector_assign", _wrap_IntVector_assign, METH_VARARGS, NULL},
	 { (char *)"IntVector_resize", _wrap_IntVector_resize, METH_VARARGS, NULL},
	 { (char *)"IntVector_insert", _wrap_IntVector_insert, METH_VARARGS, NULL},
	 { (char *)"IntVector_reserve", _wrap_IntVector_reserve, METH_VARARGS, NULL},
	 { (char *)"IntVector_capacity", _wrap_IntVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_IntVector", _wrap_delete_IntVector, METH_VARARGS, NULL},
	 { (char *)"IntVector_swigregister", IntVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_iterator", _wrap_UnsignedIntVector_iterator, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector___nonzero__", _wrap_UnsignedIntVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector___bool__", _wrap_UnsignedIntVector___bool__, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector___len__", _wrap_UnsignedIntVector___len__, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector___getslice__", _wrap_UnsignedIntVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector___setslice__", _wrap_UnsignedIntVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector___delslice__", _wrap_UnsignedIntVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector___delitem__", _wrap_UnsignedIntVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector___getitem__", _wrap_UnsignedIntVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector___setitem__", _wrap_UnsignedIntVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_pop", _wrap_UnsignedIntVector_pop, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_append", _wrap_UnsignedIntVector_append, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_empty", _wrap_UnsignedIntVector_empty, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_size", _wrap_UnsignedIntVector_size, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_swap", _wrap_UnsignedIntVector_swap, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_begin", _wrap_UnsignedIntVector_begin, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_end", _wrap_UnsignedIntVector_end, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_rbegin", _wrap_UnsignedIntVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_rend", _wrap_UnsignedIntVector_rend, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_clear", _wrap_UnsignedIntVector_clear, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_get_allocator", _wrap_UnsignedIntVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_pop_back", _wrap_UnsignedIntVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_erase", _wrap_UnsignedIntVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_UnsignedIntVector", _wrap_new_UnsignedIntVector, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_push_back", _wrap_UnsignedIntVector_push_back, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_front", _wrap_UnsignedIntVector_front, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_back", _wrap_UnsignedIntVector_back, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_assign", _wrap_UnsignedIntVector_assign, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_resize", _wrap_UnsignedIntVector_resize, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_insert", _wrap_UnsignedIntVector_insert, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_reserve", _wrap_UnsignedIntVector_reserve, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_capacity", _wrap_UnsignedIntVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_UnsignedIntVector", _wrap_delete_UnsignedIntVector, METH_VARARGS, NULL},
	 { (char *)"UnsignedIntVector_swigregister", UnsignedIntVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_iterator", _wrap_DoubleVector_iterator, METH_VARARGS, NULL},
	 { (char *)"DoubleVector___nonzero__", _wrap_DoubleVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"DoubleVector___bool__", _wrap_DoubleVector___bool__, METH_VARARGS, NULL},
	 { (char *)"DoubleVector___len__", _wrap_DoubleVector___len__, METH_VARARGS, NULL},
	 { (char *)"DoubleVector___getslice__", _wrap_DoubleVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"DoubleVector___setslice__", _wrap_DoubleVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"DoubleVector___delslice__", _wrap_DoubleVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"DoubleVector___delitem__", _wrap_DoubleVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"DoubleVector___getitem__", _wrap_DoubleVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"DoubleVector___setitem__", _wrap_DoubleVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_pop", _wrap_DoubleVector_pop, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_append", _wrap_DoubleVector_append, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_empty", _wrap_DoubleVector_empty, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_size", _wrap_DoubleVector_size, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_swap", _wrap_DoubleVector_swap, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_begin", _wrap_DoubleVector_begin, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_end", _wrap_DoubleVector_end, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_rbegin", _wrap_DoubleVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_rend", _wrap_DoubleVector_rend, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_clear", _wrap_DoubleVector_clear, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_get_allocator", _wrap_DoubleVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_pop_back", _wrap_DoubleVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_erase", _wrap_DoubleVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_DoubleVector", _wrap_new_DoubleVector, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_push_back", _wrap_DoubleVector_push_back, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_front", _wrap_DoubleVector_front, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_back", _wrap_DoubleVector_back, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_assign", _wrap_DoubleVector_assign, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_resize", _wrap_DoubleVector_resize, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_insert", _wrap_DoubleVector_insert, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_reserve", _wrap_DoubleVector_reserve, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_capacity", _wrap_DoubleVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_DoubleVector", _wrap_delete_DoubleVector, METH_VARARGS, NULL},
	 { (char *)"DoubleVector_swigregister", DoubleVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"StrVector_iterator", _wrap_StrVector_iterator, METH_VARARGS, NULL},
	 { (char *)"StrVector___nonzero__", _wrap_StrVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"StrVector___bool__", _wrap_StrVector___bool__, METH_VARARGS, NULL},
	 { (char *)"StrVector___len__", _wrap_StrVector___len__, METH_VARARGS, NULL},
	 { (char *)"StrVector___getslice__", _wrap_StrVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"StrVector___setslice__", _wrap_StrVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"StrVector___delslice__", _wrap_StrVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"StrVector___delitem__", _wrap_StrVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"StrVector___getitem__", _wrap_StrVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"StrVector___setitem__", _wrap_StrVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"StrVector_pop", _wrap_StrVector_pop, METH_VARARGS, NULL},
	 { (char *)"StrVector_append", _wrap_StrVector_append, METH_VARARGS, NULL},
	 { (char *)"StrVector_empty", _wrap_StrVector_empty, METH_VARARGS, NULL},
	 { (char *)"StrVector_size", _wrap_StrVector_size, METH_VARARGS, NULL},
	 { (char *)"StrVector_swap", _wrap_StrVector_swap, METH_VARARGS, NULL},
	 { (char *)"StrVector_begin", _wrap_StrVector_begin, METH_VARARGS, NULL},
	 { (char *)"StrVector_end", _wrap_StrVector_end, METH_VARARGS, NULL},
	 { (char *)"StrVector_rbegin", _wrap_StrVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"StrVector_rend", _wrap_StrVector_rend, METH_VARARGS, NULL},
	 { (char *)"StrVector_clear", _wrap_StrVector_clear, METH_VARARGS, NULL},
	 { (char *)"StrVector_get_allocator", _wrap_StrVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"StrVector_pop_back", _wrap_StrVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"StrVector_erase", _wrap_StrVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_StrVector", _wrap_new_StrVector, METH_VARARGS, NULL},
	 { (char *)"StrVector_push_back", _wrap_StrVector_push_back, METH_VARARGS, NULL},
	 { (char *)"StrVector_front", _wrap_StrVector_front, METH_VARARGS, NULL},
	 { (char *)"StrVector_back", _wrap_StrVector_back, METH_VARARGS, NULL},
	 { (char *)"StrVector_assign", _wrap_StrVector_assign, METH_VARARGS, NULL},
	 { (char *)"StrVector_resize", _wrap_StrVector_resize, METH_VARARGS, NULL},
	 { (char *)"StrVector_insert", _wrap_StrVector_insert, METH_VARARGS, NULL},
	 { (char *)"StrVector_reserve", _wrap_StrVector_reserve, METH_VARARGS, NULL},
	 { (char *)"StrVector_capacity", _wrap_StrVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_StrVector", _wrap_delete_StrVector, METH_VARARGS, NULL},
	 { (char *)"StrVector_swigregister", StrVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"BoolVector_iterator", _wrap_BoolVector_iterator, METH_VARARGS, NULL},
	 { (char *)"BoolVector___nonzero__", _wrap_BoolVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"BoolVector___bool__", _wrap_BoolVector___bool__, METH_VARARGS, NULL},
	 { (char *)"BoolVector___len__", _wrap_BoolVector___len__, METH_VARARGS, NULL},
	 { (char *)"BoolVector___getslice__", _wrap_BoolVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"BoolVector___setslice__", _wrap_BoolVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"BoolVector___delslice__", _wrap_BoolVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"BoolVector___delitem__", _wrap_BoolVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"BoolVector___getitem__", _wrap_BoolVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"BoolVector___setitem__", _wrap_BoolVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"BoolVector_pop", _wrap_BoolVector_pop, METH_VARARGS, NULL},
	 { (char *)"BoolVector_append", _wrap_BoolVector_append, METH_VARARGS, NULL},
	 { (char *)"BoolVector_empty", _wrap_BoolVector_empty, METH_VARARGS, NULL},
	 { (char *)"BoolVector_size", _wrap_BoolVector_size, METH_VARARGS, NULL},
	 { (char *)"BoolVector_swap", _wrap_BoolVector_swap, METH_VARARGS, NULL},
	 { (char *)"BoolVector_begin", _wrap_BoolVector_begin, METH_VARARGS, NULL},
	 { (char *)"BoolVector_end", _wrap_BoolVector_end, METH_VARARGS, NULL},
	 { (char *)"BoolVector_rbegin", _wrap_BoolVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"BoolVector_rend", _wrap_BoolVector_rend, METH_VARARGS, NULL},
	 { (char *)"BoolVector_clear", _wrap_BoolVector_clear, METH_VARARGS, NULL},
	 { (char *)"BoolVector_get_allocator", _wrap_BoolVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"BoolVector_pop_back", _wrap_BoolVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"BoolVector_erase", _wrap_BoolVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_BoolVector", _wrap_new_BoolVector, METH_VARARGS, NULL},
	 { (char *)"BoolVector_push_back", _wrap_BoolVector_push_back, METH_VARARGS, NULL},
	 { (char *)"BoolVector_front", _wrap_BoolVector_front, METH_VARARGS, NULL},
	 { (char *)"BoolVector_back", _wrap_BoolVector_back, METH_VARARGS, NULL},
	 { (char *)"BoolVector_assign", _wrap_BoolVector_assign, METH_VARARGS, NULL},
	 { (char *)"BoolVector_resize", _wrap_BoolVector_resize, METH_VARARGS, NULL},
	 { (char *)"BoolVector_insert", _wrap_BoolVector_insert, METH_VARARGS, NULL},
	 { (char *)"BoolVector_reserve", _wrap_BoolVector_reserve, METH_VARARGS, NULL},
	 { (char *)"BoolVector_capacity", _wrap_BoolVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_BoolVector", _wrap_delete_BoolVector, METH_VARARGS, NULL},
	 { (char *)"BoolVector_swigregister", BoolVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_NodePair", _wrap_new_NodePair, METH_VARARGS, NULL},
	 { (char *)"NodePair_first_set", _wrap_NodePair_first_set, METH_VARARGS, NULL},
	 { (char *)"NodePair_first_get", _wrap_NodePair_first_get, METH_VARARGS, NULL},
	 { (char *)"NodePair_second_set", _wrap_NodePair_second_set, METH_VARARGS, NULL},
	 { (char *)"NodePair_second_get", _wrap_NodePair_second_get, METH_VARARGS, NULL},
	 { (char *)"delete_NodePair", _wrap_delete_NodePair, METH_VARARGS, NULL},
	 { (char *)"NodePair_swigregister", NodePair_swigregister, METH_VARARGS, NULL},
	 { (char *)"NodeVector_iterator", _wrap_NodeVector_iterator, METH_VARARGS, NULL},
	 { (char *)"NodeVector___nonzero__", _wrap_NodeVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"NodeVector___bool__", _wrap_NodeVector___bool__, METH_VARARGS, NULL},
	 { (char *)"NodeVector___len__", _wrap_NodeVector___len__, METH_VARARGS, NULL},
	 { (char *)"NodeVector___getslice__", _wrap_NodeVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"NodeVector___setslice__", _wrap_NodeVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"NodeVector___delslice__", _wrap_NodeVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"NodeVector___delitem__", _wrap_NodeVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"NodeVector___getitem__", _wrap_NodeVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"NodeVector___setitem__", _wrap_NodeVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"NodeVector_pop", _wrap_NodeVector_pop, METH_VARARGS, NULL},
	 { (char *)"NodeVector_append", _wrap_NodeVector_append, METH_VARARGS, NULL},
	 { (char *)"NodeVector_empty", _wrap_NodeVector_empty, METH_VARARGS, NULL},
	 { (char *)"NodeVector_size", _wrap_NodeVector_size, METH_VARARGS, NULL},
	 { (char *)"NodeVector_swap", _wrap_NodeVector_swap, METH_VARARGS, NULL},
	 { (char *)"NodeVector_begin", _wrap_NodeVector_begin, METH_VARARGS, NULL},
	 { (char *)"NodeVector_end", _wrap_NodeVector_end, METH_VARARGS, NULL},
	 { (char *)"NodeVector_rbegin", _wrap_NodeVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"NodeVector_rend", _wrap_NodeVector_rend, METH_VARARGS, NULL},
	 { (char *)"NodeVector_clear", _wrap_NodeVector_clear, METH_VARARGS, NULL},
	 { (char *)"NodeVector_get_allocator", _wrap_NodeVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"NodeVector_pop_back", _wrap_NodeVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"NodeVector_erase", _wrap_NodeVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_NodeVector", _wrap_new_NodeVector, METH_VARARGS, NULL},
	 { (char *)"NodeVector_push_back", _wrap_NodeVector_push_back, METH_VARARGS, NULL},
	 { (char *)"NodeVector_front", _wrap_NodeVector_front, METH_VARARGS, NULL},
	 { (char *)"NodeVector_back", _wrap_NodeVector_back, METH_VARARGS, NULL},
	 { (char *)"NodeVector_assign", _wrap_NodeVector_assign, METH_VARARGS, NULL},
	 { (char *)"NodeVector_resize", _wrap_NodeVector_resize, METH_VARARGS, NULL},
	 { (char *)"NodeVector_insert", _wrap_NodeVector_insert, METH_VARARGS, NULL},
	 { (char *)"NodeVector_reserve", _wrap_NodeVector_reserve, METH_VARARGS, NULL},
	 { (char *)"NodeVector_capacity", _wrap_NodeVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_NodeVector", _wrap_delete_NodeVector, METH_VARARGS, NULL},
	 { (char *)"NodeVector_swigregister", NodeVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"Exercise___deref__", _wrap_Exercise___deref__, METH_VARARGS, NULL},
	 { (char *)"Exercise___nonzero__", _wrap_Exercise___nonzero__, METH_VARARGS, NULL},
	 { (char *)"Exercise___bool__", _wrap_Exercise___bool__, METH_VARARGS, NULL},
	 { (char *)"Exercise_exerciseType", _wrap_Exercise_exerciseType, METH_VARARGS, NULL},
	 { (char *)"new_Exercise", _wrap_new_Exercise, METH_VARARGS, NULL},
	 { (char *)"delete_Exercise", _wrap_delete_Exercise, METH_VARARGS, NULL},
	 { (char *)"Exercise_type", _wrap_Exercise_type, METH_VARARGS, NULL},
	 { (char *)"Exercise_dates", _wrap_Exercise_dates, METH_VARARGS, NULL},
	 { (char *)"Exercise_lastDate", _wrap_Exercise_lastDate, METH_VARARGS, NULL},
	 { (char *)"Exercise_swigregister", Exercise_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EuropeanExercise", _wrap_new_EuropeanExercise, METH_VARARGS, NULL},
	 { (char *)"delete_EuropeanExercise", _wrap_delete_EuropeanExercise, METH_VARARGS, NULL},
	 { (char *)"EuropeanExercise_swigregister", EuropeanExercise_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AmericanExercise", _wrap_new_AmericanExercise, METH_VARARGS, NULL},
	 { (char *)"delete_AmericanExercise", _wrap_delete_AmericanExercise, METH_VARARGS, NULL},
	 { (char *)"AmericanExercise_swigregister", AmericanExercise_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BermudanExercise", _wrap_new_BermudanExercise, METH_VARARGS, NULL},
	 { (char *)"delete_BermudanExercise", _wrap_delete_BermudanExercise, METH_VARARGS, NULL},
	 { (char *)"BermudanExercise_swigregister", BermudanExercise_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_RebatedExercise", _wrap_new_RebatedExercise, METH_VARARGS, NULL},
	 { (char *)"delete_RebatedExercise", _wrap_delete_RebatedExercise, METH_VARARGS, NULL},
	 { (char *)"RebatedExercise_swigregister", RebatedExercise_swigregister, METH_VARARGS, NULL},
	 { (char *)"Observable___deref__", _wrap_Observable___deref__, METH_VARARGS, NULL},
	 { (char *)"Observable___nonzero__", _wrap_Observable___nonzero__, METH_VARARGS, NULL},
	 { (char *)"Observable___bool__", _wrap_Observable___bool__, METH_VARARGS, NULL},
	 { (char *)"new_Observable", _wrap_new_Observable, METH_VARARGS, NULL},
	 { (char *)"delete_Observable", _wrap_delete_Observable, METH_VARARGS, NULL},
	 { (char *)"Observable_swigregister", Observable_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Observer", _wrap_new_Observer, METH_VARARGS, NULL},
	 { (char *)"Observer__registerWith", _wrap_Observer__registerWith, METH_VARARGS, NULL},
	 { (char *)"Observer__unregisterWith", _wrap_Observer__unregisterWith, METH_VARARGS, NULL},
	 { (char *)"delete_Observer", _wrap_delete_Observer, METH_VARARGS, NULL},
	 { (char *)"Observer_swigregister", Observer_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Array", _wrap_new_Array, METH_VARARGS, NULL},
	 { (char *)"Array___len__", _wrap_Array___len__, METH_VARARGS, NULL},
	 { (char *)"Array___str__", _wrap_Array___str__, METH_VARARGS, NULL},
	 { (char *)"Array___add__", _wrap_Array___add__, METH_VARARGS, NULL},
	 { (char *)"Array___sub__", _wrap_Array___sub__, METH_VARARGS, NULL},
	 { (char *)"Array___mul__", _wrap_Array___mul__, METH_VARARGS, NULL},
	 { (char *)"Array___div__", _wrap_Array___div__, METH_VARARGS, NULL},
	 { (char *)"Array___rmul__", _wrap_Array___rmul__, METH_VARARGS, NULL},
	 { (char *)"Array___getslice__", _wrap_Array___getslice__, METH_VARARGS, NULL},
	 { (char *)"Array___setslice__", _wrap_Array___setslice__, METH_VARARGS, NULL},
	 { (char *)"Array___nonzero__", _wrap_Array___nonzero__, METH_VARARGS, NULL},
	 { (char *)"Array___bool__", _wrap_Array___bool__, METH_VARARGS, NULL},
	 { (char *)"Array___getitem__", _wrap_Array___getitem__, METH_VARARGS, NULL},
	 { (char *)"Array___setitem__", _wrap_Array___setitem__, METH_VARARGS, NULL},
	 { (char *)"delete_Array", _wrap_delete_Array, METH_VARARGS, NULL},
	 { (char *)"Array_swigregister", Array_swigregister, METH_VARARGS, NULL},
	 { (char *)"DefaultLexicographicalViewColumn___getitem__", _wrap_DefaultLexicographicalViewColumn___getitem__, METH_VARARGS, NULL},
	 { (char *)"DefaultLexicographicalViewColumn___setitem__", _wrap_DefaultLexicographicalViewColumn___setitem__, METH_VARARGS, NULL},
	 { (char *)"delete_DefaultLexicographicalViewColumn", _wrap_delete_DefaultLexicographicalViewColumn, METH_VARARGS, NULL},
	 { (char *)"DefaultLexicographicalViewColumn_swigregister", DefaultLexicographicalViewColumn_swigregister, METH_VARARGS, NULL},
	 { (char *)"LexicographicalView_xSize", _wrap_LexicographicalView_xSize, METH_VARARGS, NULL},
	 { (char *)"LexicographicalView_ySize", _wrap_LexicographicalView_ySize, METH_VARARGS, NULL},
	 { (char *)"new_LexicographicalView", _wrap_new_LexicographicalView, METH_VARARGS, NULL},
	 { (char *)"LexicographicalView___str__", _wrap_LexicographicalView___str__, METH_VARARGS, NULL},
	 { (char *)"LexicographicalView___getitem__", _wrap_LexicographicalView___getitem__, METH_VARARGS, NULL},
	 { (char *)"delete_LexicographicalView", _wrap_delete_LexicographicalView, METH_VARARGS, NULL},
	 { (char *)"LexicographicalView_swigregister", LexicographicalView_swigregister, METH_VARARGS, NULL},
	 { (char *)"MatrixRow___getitem__", _wrap_MatrixRow___getitem__, METH_VARARGS, NULL},
	 { (char *)"MatrixRow___setitem__", _wrap_MatrixRow___setitem__, METH_VARARGS, NULL},
	 { (char *)"delete_MatrixRow", _wrap_delete_MatrixRow, METH_VARARGS, NULL},
	 { (char *)"MatrixRow_swigregister", MatrixRow_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Matrix", _wrap_new_Matrix, METH_VARARGS, NULL},
	 { (char *)"Matrix_rows", _wrap_Matrix_rows, METH_VARARGS, NULL},
	 { (char *)"Matrix_columns", _wrap_Matrix_columns, METH_VARARGS, NULL},
	 { (char *)"Matrix___str__", _wrap_Matrix___str__, METH_VARARGS, NULL},
	 { (char *)"Matrix___add__", _wrap_Matrix___add__, METH_VARARGS, NULL},
	 { (char *)"Matrix___sub__", _wrap_Matrix___sub__, METH_VARARGS, NULL},
	 { (char *)"Matrix___mul__", _wrap_Matrix___mul__, METH_VARARGS, NULL},
	 { (char *)"Matrix___div__", _wrap_Matrix___div__, METH_VARARGS, NULL},
	 { (char *)"Matrix___getitem__", _wrap_Matrix___getitem__, METH_VARARGS, NULL},
	 { (char *)"Matrix___rmul__", _wrap_Matrix___rmul__, METH_VARARGS, NULL},
	 { (char *)"delete_Matrix", _wrap_delete_Matrix, METH_VARARGS, NULL},
	 { (char *)"Matrix_swigregister", Matrix_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SalvagingAlgorithm", _wrap_new_SalvagingAlgorithm, METH_VARARGS, NULL},
	 { (char *)"delete_SalvagingAlgorithm", _wrap_delete_SalvagingAlgorithm, METH_VARARGS, NULL},
	 { (char *)"SalvagingAlgorithm_swigregister", SalvagingAlgorithm_swigregister, METH_VARARGS, NULL},
	 { (char *)"transpose", _wrap_transpose, METH_VARARGS, NULL},
	 { (char *)"outerProduct", _wrap_outerProduct, METH_VARARGS, NULL},
	 { (char *)"pseudoSqrt", _wrap_pseudoSqrt, METH_VARARGS, NULL},
	 { (char *)"new_SVD", _wrap_new_SVD, METH_VARARGS, NULL},
	 { (char *)"SVD_U", _wrap_SVD_U, METH_VARARGS, NULL},
	 { (char *)"SVD_V", _wrap_SVD_V, METH_VARARGS, NULL},
	 { (char *)"SVD_S", _wrap_SVD_S, METH_VARARGS, NULL},
	 { (char *)"SVD_singularValues", _wrap_SVD_singularValues, METH_VARARGS, NULL},
	 { (char *)"delete_SVD", _wrap_delete_SVD, METH_VARARGS, NULL},
	 { (char *)"SVD_swigregister", SVD_swigregister, METH_VARARGS, NULL},
	 { (char *)"Quote___deref__", _wrap_Quote___deref__, METH_VARARGS, NULL},
	 { (char *)"Quote___nonzero__", _wrap_Quote___nonzero__, METH_VARARGS, NULL},
	 { (char *)"Quote___bool__", _wrap_Quote___bool__, METH_VARARGS, NULL},
	 { (char *)"Quote_asObservable", _wrap_Quote_asObservable, METH_VARARGS, NULL},
	 { (char *)"new_Quote", _wrap_new_Quote, METH_VARARGS, NULL},
	 { (char *)"delete_Quote", _wrap_delete_Quote, METH_VARARGS, NULL},
	 { (char *)"Quote_value", _wrap_Quote_value, METH_VARARGS, NULL},
	 { (char *)"Quote_swigregister", Quote_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_QuoteHandle", _wrap_new_QuoteHandle, METH_VARARGS, NULL},
	 { (char *)"QuoteHandle___deref__", _wrap_QuoteHandle___deref__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandle___nonzero__", _wrap_QuoteHandle___nonzero__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandle___bool__", _wrap_QuoteHandle___bool__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandle_asObservable", _wrap_QuoteHandle_asObservable, METH_VARARGS, NULL},
	 { (char *)"delete_QuoteHandle", _wrap_delete_QuoteHandle, METH_VARARGS, NULL},
	 { (char *)"QuoteHandle_value", _wrap_QuoteHandle_value, METH_VARARGS, NULL},
	 { (char *)"QuoteHandle_swigregister", QuoteHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_RelinkableQuoteHandle", _wrap_new_RelinkableQuoteHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandle_linkTo", _wrap_RelinkableQuoteHandle_linkTo, METH_VARARGS, NULL},
	 { (char *)"delete_RelinkableQuoteHandle", _wrap_delete_RelinkableQuoteHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandle_swigregister", RelinkableQuoteHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SimpleQuote", _wrap_new_SimpleQuote, METH_VARARGS, NULL},
	 { (char *)"SimpleQuote_setValue", _wrap_SimpleQuote_setValue, METH_VARARGS, NULL},
	 { (char *)"delete_SimpleQuote", _wrap_delete_SimpleQuote, METH_VARARGS, NULL},
	 { (char *)"SimpleQuote_swigregister", SimpleQuote_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DerivedQuote", _wrap_new_DerivedQuote, METH_VARARGS, NULL},
	 { (char *)"delete_DerivedQuote", _wrap_delete_DerivedQuote, METH_VARARGS, NULL},
	 { (char *)"DerivedQuote_swigregister", DerivedQuote_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CompositeQuote", _wrap_new_CompositeQuote, METH_VARARGS, NULL},
	 { (char *)"delete_CompositeQuote", _wrap_delete_CompositeQuote, METH_VARARGS, NULL},
	 { (char *)"CompositeQuote_swigregister", CompositeQuote_swigregister, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_iterator", _wrap_QuoteVector_iterator, METH_VARARGS, NULL},
	 { (char *)"QuoteVector___nonzero__", _wrap_QuoteVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"QuoteVector___bool__", _wrap_QuoteVector___bool__, METH_VARARGS, NULL},
	 { (char *)"QuoteVector___len__", _wrap_QuoteVector___len__, METH_VARARGS, NULL},
	 { (char *)"QuoteVector___getslice__", _wrap_QuoteVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"QuoteVector___setslice__", _wrap_QuoteVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"QuoteVector___delslice__", _wrap_QuoteVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"QuoteVector___delitem__", _wrap_QuoteVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"QuoteVector___getitem__", _wrap_QuoteVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"QuoteVector___setitem__", _wrap_QuoteVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_pop", _wrap_QuoteVector_pop, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_append", _wrap_QuoteVector_append, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_empty", _wrap_QuoteVector_empty, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_size", _wrap_QuoteVector_size, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_swap", _wrap_QuoteVector_swap, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_begin", _wrap_QuoteVector_begin, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_end", _wrap_QuoteVector_end, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_rbegin", _wrap_QuoteVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_rend", _wrap_QuoteVector_rend, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_clear", _wrap_QuoteVector_clear, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_get_allocator", _wrap_QuoteVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_pop_back", _wrap_QuoteVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_erase", _wrap_QuoteVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_QuoteVector", _wrap_new_QuoteVector, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_push_back", _wrap_QuoteVector_push_back, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_front", _wrap_QuoteVector_front, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_back", _wrap_QuoteVector_back, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_assign", _wrap_QuoteVector_assign, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_resize", _wrap_QuoteVector_resize, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_insert", _wrap_QuoteVector_insert, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_reserve", _wrap_QuoteVector_reserve, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_capacity", _wrap_QuoteVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_QuoteVector", _wrap_delete_QuoteVector, METH_VARARGS, NULL},
	 { (char *)"QuoteVector_swigregister", QuoteVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_iterator", _wrap_QuoteVectorVector_iterator, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector___nonzero__", _wrap_QuoteVectorVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector___bool__", _wrap_QuoteVectorVector___bool__, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector___len__", _wrap_QuoteVectorVector___len__, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector___getslice__", _wrap_QuoteVectorVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector___setslice__", _wrap_QuoteVectorVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector___delslice__", _wrap_QuoteVectorVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector___delitem__", _wrap_QuoteVectorVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector___getitem__", _wrap_QuoteVectorVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector___setitem__", _wrap_QuoteVectorVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_pop", _wrap_QuoteVectorVector_pop, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_append", _wrap_QuoteVectorVector_append, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_empty", _wrap_QuoteVectorVector_empty, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_size", _wrap_QuoteVectorVector_size, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_swap", _wrap_QuoteVectorVector_swap, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_begin", _wrap_QuoteVectorVector_begin, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_end", _wrap_QuoteVectorVector_end, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_rbegin", _wrap_QuoteVectorVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_rend", _wrap_QuoteVectorVector_rend, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_clear", _wrap_QuoteVectorVector_clear, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_get_allocator", _wrap_QuoteVectorVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_pop_back", _wrap_QuoteVectorVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_erase", _wrap_QuoteVectorVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_QuoteVectorVector", _wrap_new_QuoteVectorVector, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_push_back", _wrap_QuoteVectorVector_push_back, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_front", _wrap_QuoteVectorVector_front, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_back", _wrap_QuoteVectorVector_back, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_assign", _wrap_QuoteVectorVector_assign, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_resize", _wrap_QuoteVectorVector_resize, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_insert", _wrap_QuoteVectorVector_insert, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_reserve", _wrap_QuoteVectorVector_reserve, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_capacity", _wrap_QuoteVectorVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_QuoteVectorVector", _wrap_delete_QuoteVectorVector, METH_VARARGS, NULL},
	 { (char *)"QuoteVectorVector_swigregister", QuoteVectorVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_iterator", _wrap_QuoteHandleVector_iterator, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector___nonzero__", _wrap_QuoteHandleVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector___bool__", _wrap_QuoteHandleVector___bool__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector___len__", _wrap_QuoteHandleVector___len__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector___getslice__", _wrap_QuoteHandleVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector___setslice__", _wrap_QuoteHandleVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector___delslice__", _wrap_QuoteHandleVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector___delitem__", _wrap_QuoteHandleVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector___getitem__", _wrap_QuoteHandleVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector___setitem__", _wrap_QuoteHandleVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_pop", _wrap_QuoteHandleVector_pop, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_append", _wrap_QuoteHandleVector_append, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_empty", _wrap_QuoteHandleVector_empty, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_size", _wrap_QuoteHandleVector_size, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_swap", _wrap_QuoteHandleVector_swap, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_begin", _wrap_QuoteHandleVector_begin, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_end", _wrap_QuoteHandleVector_end, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_rbegin", _wrap_QuoteHandleVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_rend", _wrap_QuoteHandleVector_rend, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_clear", _wrap_QuoteHandleVector_clear, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_get_allocator", _wrap_QuoteHandleVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_pop_back", _wrap_QuoteHandleVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_erase", _wrap_QuoteHandleVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_QuoteHandleVector", _wrap_new_QuoteHandleVector, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_push_back", _wrap_QuoteHandleVector_push_back, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_front", _wrap_QuoteHandleVector_front, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_back", _wrap_QuoteHandleVector_back, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_assign", _wrap_QuoteHandleVector_assign, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_resize", _wrap_QuoteHandleVector_resize, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_insert", _wrap_QuoteHandleVector_insert, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_reserve", _wrap_QuoteHandleVector_reserve, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_capacity", _wrap_QuoteHandleVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_QuoteHandleVector", _wrap_delete_QuoteHandleVector, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVector_swigregister", QuoteHandleVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_iterator", _wrap_QuoteHandleVectorVector_iterator, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector___nonzero__", _wrap_QuoteHandleVectorVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector___bool__", _wrap_QuoteHandleVectorVector___bool__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector___len__", _wrap_QuoteHandleVectorVector___len__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector___getslice__", _wrap_QuoteHandleVectorVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector___setslice__", _wrap_QuoteHandleVectorVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector___delslice__", _wrap_QuoteHandleVectorVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector___delitem__", _wrap_QuoteHandleVectorVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector___getitem__", _wrap_QuoteHandleVectorVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector___setitem__", _wrap_QuoteHandleVectorVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_pop", _wrap_QuoteHandleVectorVector_pop, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_append", _wrap_QuoteHandleVectorVector_append, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_empty", _wrap_QuoteHandleVectorVector_empty, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_size", _wrap_QuoteHandleVectorVector_size, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_swap", _wrap_QuoteHandleVectorVector_swap, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_begin", _wrap_QuoteHandleVectorVector_begin, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_end", _wrap_QuoteHandleVectorVector_end, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_rbegin", _wrap_QuoteHandleVectorVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_rend", _wrap_QuoteHandleVectorVector_rend, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_clear", _wrap_QuoteHandleVectorVector_clear, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_get_allocator", _wrap_QuoteHandleVectorVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_pop_back", _wrap_QuoteHandleVectorVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_erase", _wrap_QuoteHandleVectorVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_QuoteHandleVectorVector", _wrap_new_QuoteHandleVectorVector, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_push_back", _wrap_QuoteHandleVectorVector_push_back, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_front", _wrap_QuoteHandleVectorVector_front, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_back", _wrap_QuoteHandleVectorVector_back, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_assign", _wrap_QuoteHandleVectorVector_assign, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_resize", _wrap_QuoteHandleVectorVector_resize, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_insert", _wrap_QuoteHandleVectorVector_insert, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_reserve", _wrap_QuoteHandleVectorVector_reserve, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_capacity", _wrap_QuoteHandleVectorVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_QuoteHandleVectorVector", _wrap_delete_QuoteHandleVectorVector, METH_VARARGS, NULL},
	 { (char *)"QuoteHandleVectorVector_swigregister", QuoteHandleVectorVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_iterator", _wrap_RelinkableQuoteHandleVector_iterator, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector___nonzero__", _wrap_RelinkableQuoteHandleVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector___bool__", _wrap_RelinkableQuoteHandleVector___bool__, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector___len__", _wrap_RelinkableQuoteHandleVector___len__, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector___getslice__", _wrap_RelinkableQuoteHandleVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector___setslice__", _wrap_RelinkableQuoteHandleVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector___delslice__", _wrap_RelinkableQuoteHandleVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector___delitem__", _wrap_RelinkableQuoteHandleVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector___getitem__", _wrap_RelinkableQuoteHandleVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector___setitem__", _wrap_RelinkableQuoteHandleVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_pop", _wrap_RelinkableQuoteHandleVector_pop, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_append", _wrap_RelinkableQuoteHandleVector_append, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_empty", _wrap_RelinkableQuoteHandleVector_empty, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_size", _wrap_RelinkableQuoteHandleVector_size, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_swap", _wrap_RelinkableQuoteHandleVector_swap, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_begin", _wrap_RelinkableQuoteHandleVector_begin, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_end", _wrap_RelinkableQuoteHandleVector_end, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_rbegin", _wrap_RelinkableQuoteHandleVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_rend", _wrap_RelinkableQuoteHandleVector_rend, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_clear", _wrap_RelinkableQuoteHandleVector_clear, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_get_allocator", _wrap_RelinkableQuoteHandleVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_pop_back", _wrap_RelinkableQuoteHandleVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_erase", _wrap_RelinkableQuoteHandleVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_RelinkableQuoteHandleVector", _wrap_new_RelinkableQuoteHandleVector, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_push_back", _wrap_RelinkableQuoteHandleVector_push_back, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_front", _wrap_RelinkableQuoteHandleVector_front, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_back", _wrap_RelinkableQuoteHandleVector_back, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_assign", _wrap_RelinkableQuoteHandleVector_assign, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_resize", _wrap_RelinkableQuoteHandleVector_resize, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_insert", _wrap_RelinkableQuoteHandleVector_insert, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_reserve", _wrap_RelinkableQuoteHandleVector_reserve, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_capacity", _wrap_RelinkableQuoteHandleVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_RelinkableQuoteHandleVector", _wrap_delete_RelinkableQuoteHandleVector, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVector_swigregister", RelinkableQuoteHandleVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_iterator", _wrap_RelinkableQuoteHandleVectorVector_iterator, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector___nonzero__", _wrap_RelinkableQuoteHandleVectorVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector___bool__", _wrap_RelinkableQuoteHandleVectorVector___bool__, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector___len__", _wrap_RelinkableQuoteHandleVectorVector___len__, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector___getslice__", _wrap_RelinkableQuoteHandleVectorVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector___setslice__", _wrap_RelinkableQuoteHandleVectorVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector___delslice__", _wrap_RelinkableQuoteHandleVectorVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector___delitem__", _wrap_RelinkableQuoteHandleVectorVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector___getitem__", _wrap_RelinkableQuoteHandleVectorVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector___setitem__", _wrap_RelinkableQuoteHandleVectorVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_pop", _wrap_RelinkableQuoteHandleVectorVector_pop, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_append", _wrap_RelinkableQuoteHandleVectorVector_append, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_empty", _wrap_RelinkableQuoteHandleVectorVector_empty, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_size", _wrap_RelinkableQuoteHandleVectorVector_size, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_swap", _wrap_RelinkableQuoteHandleVectorVector_swap, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_begin", _wrap_RelinkableQuoteHandleVectorVector_begin, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_end", _wrap_RelinkableQuoteHandleVectorVector_end, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_rbegin", _wrap_RelinkableQuoteHandleVectorVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_rend", _wrap_RelinkableQuoteHandleVectorVector_rend, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_clear", _wrap_RelinkableQuoteHandleVectorVector_clear, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_get_allocator", _wrap_RelinkableQuoteHandleVectorVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_pop_back", _wrap_RelinkableQuoteHandleVectorVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_erase", _wrap_RelinkableQuoteHandleVectorVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_RelinkableQuoteHandleVectorVector", _wrap_new_RelinkableQuoteHandleVectorVector, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_push_back", _wrap_RelinkableQuoteHandleVectorVector_push_back, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_front", _wrap_RelinkableQuoteHandleVectorVector_front, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_back", _wrap_RelinkableQuoteHandleVectorVector_back, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_assign", _wrap_RelinkableQuoteHandleVectorVector_assign, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_resize", _wrap_RelinkableQuoteHandleVectorVector_resize, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_insert", _wrap_RelinkableQuoteHandleVectorVector_insert, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_reserve", _wrap_RelinkableQuoteHandleVectorVector_reserve, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_capacity", _wrap_RelinkableQuoteHandleVectorVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_RelinkableQuoteHandleVectorVector", _wrap_delete_RelinkableQuoteHandleVectorVector, METH_VARARGS, NULL},
	 { (char *)"RelinkableQuoteHandleVectorVector_swigregister", RelinkableQuoteHandleVectorVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"Calendar_isWeekend", _wrap_Calendar_isWeekend, METH_VARARGS, NULL},
	 { (char *)"Calendar_endOfMonth", _wrap_Calendar_endOfMonth, METH_VARARGS, NULL},
	 { (char *)"Calendar_isBusinessDay", _wrap_Calendar_isBusinessDay, METH_VARARGS, NULL},
	 { (char *)"Calendar_isHoliday", _wrap_Calendar_isHoliday, METH_VARARGS, NULL},
	 { (char *)"Calendar_isEndOfMonth", _wrap_Calendar_isEndOfMonth, METH_VARARGS, NULL},
	 { (char *)"Calendar_addHoliday", _wrap_Calendar_addHoliday, METH_VARARGS, NULL},
	 { (char *)"Calendar_removeHoliday", _wrap_Calendar_removeHoliday, METH_VARARGS, NULL},
	 { (char *)"Calendar_adjust", _wrap_Calendar_adjust, METH_VARARGS, NULL},
	 { (char *)"Calendar_advance", _wrap_Calendar_advance, METH_VARARGS, NULL},
	 { (char *)"Calendar_businessDaysBetween", _wrap_Calendar_businessDaysBetween, METH_VARARGS, NULL},
	 { (char *)"Calendar_name", _wrap_Calendar_name, METH_VARARGS, NULL},
	 { (char *)"Calendar___str__", _wrap_Calendar___str__, METH_VARARGS, NULL},
	 { (char *)"Calendar___eq__", _wrap_Calendar___eq__, METH_VARARGS, NULL},
	 { (char *)"Calendar___ne__", _wrap_Calendar___ne__, METH_VARARGS, NULL},
	 { (char *)"delete_Calendar", _wrap_delete_Calendar, METH_VARARGS, NULL},
	 { (char *)"Calendar_swigregister", Calendar_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Argentina", _wrap_new_Argentina, METH_VARARGS, NULL},
	 { (char *)"delete_Argentina", _wrap_delete_Argentina, METH_VARARGS, NULL},
	 { (char *)"Argentina_swigregister", Argentina_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Australia", _wrap_new_Australia, METH_VARARGS, NULL},
	 { (char *)"delete_Australia", _wrap_delete_Australia, METH_VARARGS, NULL},
	 { (char *)"Australia_swigregister", Australia_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Brazil", _wrap_new_Brazil, METH_VARARGS, NULL},
	 { (char *)"delete_Brazil", _wrap_delete_Brazil, METH_VARARGS, NULL},
	 { (char *)"Brazil_swigregister", Brazil_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Canada", _wrap_new_Canada, METH_VARARGS, NULL},
	 { (char *)"delete_Canada", _wrap_delete_Canada, METH_VARARGS, NULL},
	 { (char *)"Canada_swigregister", Canada_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_China", _wrap_new_China, METH_VARARGS, NULL},
	 { (char *)"delete_China", _wrap_delete_China, METH_VARARGS, NULL},
	 { (char *)"China_swigregister", China_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CzechRepublic", _wrap_new_CzechRepublic, METH_VARARGS, NULL},
	 { (char *)"delete_CzechRepublic", _wrap_delete_CzechRepublic, METH_VARARGS, NULL},
	 { (char *)"CzechRepublic_swigregister", CzechRepublic_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Denmark", _wrap_new_Denmark, METH_VARARGS, NULL},
	 { (char *)"delete_Denmark", _wrap_delete_Denmark, METH_VARARGS, NULL},
	 { (char *)"Denmark_swigregister", Denmark_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Finland", _wrap_new_Finland, METH_VARARGS, NULL},
	 { (char *)"delete_Finland", _wrap_delete_Finland, METH_VARARGS, NULL},
	 { (char *)"Finland_swigregister", Finland_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Germany", _wrap_new_Germany, METH_VARARGS, NULL},
	 { (char *)"delete_Germany", _wrap_delete_Germany, METH_VARARGS, NULL},
	 { (char *)"Germany_swigregister", Germany_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_HongKong", _wrap_new_HongKong, METH_VARARGS, NULL},
	 { (char *)"delete_HongKong", _wrap_delete_HongKong, METH_VARARGS, NULL},
	 { (char *)"HongKong_swigregister", HongKong_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Hungary", _wrap_new_Hungary, METH_VARARGS, NULL},
	 { (char *)"delete_Hungary", _wrap_delete_Hungary, METH_VARARGS, NULL},
	 { (char *)"Hungary_swigregister", Hungary_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Iceland", _wrap_new_Iceland, METH_VARARGS, NULL},
	 { (char *)"delete_Iceland", _wrap_delete_Iceland, METH_VARARGS, NULL},
	 { (char *)"Iceland_swigregister", Iceland_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_India", _wrap_new_India, METH_VARARGS, NULL},
	 { (char *)"delete_India", _wrap_delete_India, METH_VARARGS, NULL},
	 { (char *)"India_swigregister", India_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Indonesia", _wrap_new_Indonesia, METH_VARARGS, NULL},
	 { (char *)"delete_Indonesia", _wrap_delete_Indonesia, METH_VARARGS, NULL},
	 { (char *)"Indonesia_swigregister", Indonesia_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Israel", _wrap_new_Israel, METH_VARARGS, NULL},
	 { (char *)"delete_Israel", _wrap_delete_Israel, METH_VARARGS, NULL},
	 { (char *)"Israel_swigregister", Israel_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Italy", _wrap_new_Italy, METH_VARARGS, NULL},
	 { (char *)"delete_Italy", _wrap_delete_Italy, METH_VARARGS, NULL},
	 { (char *)"Italy_swigregister", Italy_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Japan", _wrap_new_Japan, METH_VARARGS, NULL},
	 { (char *)"delete_Japan", _wrap_delete_Japan, METH_VARARGS, NULL},
	 { (char *)"Japan_swigregister", Japan_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Mexico", _wrap_new_Mexico, METH_VARARGS, NULL},
	 { (char *)"delete_Mexico", _wrap_delete_Mexico, METH_VARARGS, NULL},
	 { (char *)"Mexico_swigregister", Mexico_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_NewZealand", _wrap_new_NewZealand, METH_VARARGS, NULL},
	 { (char *)"delete_NewZealand", _wrap_delete_NewZealand, METH_VARARGS, NULL},
	 { (char *)"NewZealand_swigregister", NewZealand_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Norway", _wrap_new_Norway, METH_VARARGS, NULL},
	 { (char *)"delete_Norway", _wrap_delete_Norway, METH_VARARGS, NULL},
	 { (char *)"Norway_swigregister", Norway_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Poland", _wrap_new_Poland, METH_VARARGS, NULL},
	 { (char *)"delete_Poland", _wrap_delete_Poland, METH_VARARGS, NULL},
	 { (char *)"Poland_swigregister", Poland_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Russia", _wrap_new_Russia, METH_VARARGS, NULL},
	 { (char *)"delete_Russia", _wrap_delete_Russia, METH_VARARGS, NULL},
	 { (char *)"Russia_swigregister", Russia_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Romania", _wrap_new_Romania, METH_VARARGS, NULL},
	 { (char *)"delete_Romania", _wrap_delete_Romania, METH_VARARGS, NULL},
	 { (char *)"Romania_swigregister", Romania_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SaudiArabia", _wrap_new_SaudiArabia, METH_VARARGS, NULL},
	 { (char *)"delete_SaudiArabia", _wrap_delete_SaudiArabia, METH_VARARGS, NULL},
	 { (char *)"SaudiArabia_swigregister", SaudiArabia_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Singapore", _wrap_new_Singapore, METH_VARARGS, NULL},
	 { (char *)"delete_Singapore", _wrap_delete_Singapore, METH_VARARGS, NULL},
	 { (char *)"Singapore_swigregister", Singapore_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Slovakia", _wrap_new_Slovakia, METH_VARARGS, NULL},
	 { (char *)"delete_Slovakia", _wrap_delete_Slovakia, METH_VARARGS, NULL},
	 { (char *)"Slovakia_swigregister", Slovakia_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SouthAfrica", _wrap_new_SouthAfrica, METH_VARARGS, NULL},
	 { (char *)"delete_SouthAfrica", _wrap_delete_SouthAfrica, METH_VARARGS, NULL},
	 { (char *)"SouthAfrica_swigregister", SouthAfrica_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SouthKorea", _wrap_new_SouthKorea, METH_VARARGS, NULL},
	 { (char *)"delete_SouthKorea", _wrap_delete_SouthKorea, METH_VARARGS, NULL},
	 { (char *)"SouthKorea_swigregister", SouthKorea_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Sweden", _wrap_new_Sweden, METH_VARARGS, NULL},
	 { (char *)"delete_Sweden", _wrap_delete_Sweden, METH_VARARGS, NULL},
	 { (char *)"Sweden_swigregister", Sweden_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Switzerland", _wrap_new_Switzerland, METH_VARARGS, NULL},
	 { (char *)"delete_Switzerland", _wrap_delete_Switzerland, METH_VARARGS, NULL},
	 { (char *)"Switzerland_swigregister", Switzerland_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Taiwan", _wrap_new_Taiwan, METH_VARARGS, NULL},
	 { (char *)"delete_Taiwan", _wrap_delete_Taiwan, METH_VARARGS, NULL},
	 { (char *)"Taiwan_swigregister", Taiwan_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_TARGET", _wrap_new_TARGET, METH_VARARGS, NULL},
	 { (char *)"delete_TARGET", _wrap_delete_TARGET, METH_VARARGS, NULL},
	 { (char *)"TARGET_swigregister", TARGET_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Turkey", _wrap_new_Turkey, METH_VARARGS, NULL},
	 { (char *)"delete_Turkey", _wrap_delete_Turkey, METH_VARARGS, NULL},
	 { (char *)"Turkey_swigregister", Turkey_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Ukraine", _wrap_new_Ukraine, METH_VARARGS, NULL},
	 { (char *)"delete_Ukraine", _wrap_delete_Ukraine, METH_VARARGS, NULL},
	 { (char *)"Ukraine_swigregister", Ukraine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_UnitedKingdom", _wrap_new_UnitedKingdom, METH_VARARGS, NULL},
	 { (char *)"delete_UnitedKingdom", _wrap_delete_UnitedKingdom, METH_VARARGS, NULL},
	 { (char *)"UnitedKingdom_swigregister", UnitedKingdom_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_UnitedStates", _wrap_new_UnitedStates, METH_VARARGS, NULL},
	 { (char *)"delete_UnitedStates", _wrap_delete_UnitedStates, METH_VARARGS, NULL},
	 { (char *)"UnitedStates_swigregister", UnitedStates_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_NullCalendar", _wrap_new_NullCalendar, METH_VARARGS, NULL},
	 { (char *)"delete_NullCalendar", _wrap_delete_NullCalendar, METH_VARARGS, NULL},
	 { (char *)"NullCalendar_swigregister", NullCalendar_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_WeekendsOnly", _wrap_new_WeekendsOnly, METH_VARARGS, NULL},
	 { (char *)"delete_WeekendsOnly", _wrap_delete_WeekendsOnly, METH_VARARGS, NULL},
	 { (char *)"WeekendsOnly_swigregister", WeekendsOnly_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_JointCalendar", _wrap_new_JointCalendar, METH_VARARGS, NULL},
	 { (char *)"delete_JointCalendar", _wrap_delete_JointCalendar, METH_VARARGS, NULL},
	 { (char *)"JointCalendar_swigregister", JointCalendar_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BespokeCalendar", _wrap_new_BespokeCalendar, METH_VARARGS, NULL},
	 { (char *)"BespokeCalendar_addWeekend", _wrap_BespokeCalendar_addWeekend, METH_VARARGS, NULL},
	 { (char *)"delete_BespokeCalendar", _wrap_delete_BespokeCalendar, METH_VARARGS, NULL},
	 { (char *)"BespokeCalendar_swigregister", BespokeCalendar_swigregister, METH_VARARGS, NULL},
	 { (char *)"nullInt", _wrap_nullInt, METH_VARARGS, NULL},
	 { (char *)"nullDouble", _wrap_nullDouble, METH_VARARGS, NULL},
	 { (char *)"DayCounter_dayCount", _wrap_DayCounter_dayCount, METH_VARARGS, NULL},
	 { (char *)"DayCounter_yearFraction", _wrap_DayCounter_yearFraction, METH_VARARGS, NULL},
	 { (char *)"DayCounter_name", _wrap_DayCounter_name, METH_VARARGS, NULL},
	 { (char *)"DayCounter___str__", _wrap_DayCounter___str__, METH_VARARGS, NULL},
	 { (char *)"DayCounter___eq__", _wrap_DayCounter___eq__, METH_VARARGS, NULL},
	 { (char *)"DayCounter___ne__", _wrap_DayCounter___ne__, METH_VARARGS, NULL},
	 { (char *)"delete_DayCounter", _wrap_delete_DayCounter, METH_VARARGS, NULL},
	 { (char *)"DayCounter_swigregister", DayCounter_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Actual360", _wrap_new_Actual360, METH_VARARGS, NULL},
	 { (char *)"delete_Actual360", _wrap_delete_Actual360, METH_VARARGS, NULL},
	 { (char *)"Actual360_swigregister", Actual360_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Actual365Fixed", _wrap_new_Actual365Fixed, METH_VARARGS, NULL},
	 { (char *)"delete_Actual365Fixed", _wrap_delete_Actual365Fixed, METH_VARARGS, NULL},
	 { (char *)"Actual365Fixed_swigregister", Actual365Fixed_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Thirty360", _wrap_new_Thirty360, METH_VARARGS, NULL},
	 { (char *)"delete_Thirty360", _wrap_delete_Thirty360, METH_VARARGS, NULL},
	 { (char *)"Thirty360_swigregister", Thirty360_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ActualActual", _wrap_new_ActualActual, METH_VARARGS, NULL},
	 { (char *)"delete_ActualActual", _wrap_delete_ActualActual, METH_VARARGS, NULL},
	 { (char *)"ActualActual_swigregister", ActualActual_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_OneDayCounter", _wrap_new_OneDayCounter, METH_VARARGS, NULL},
	 { (char *)"delete_OneDayCounter", _wrap_delete_OneDayCounter, METH_VARARGS, NULL},
	 { (char *)"OneDayCounter_swigregister", OneDayCounter_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SimpleDayCounter", _wrap_new_SimpleDayCounter, METH_VARARGS, NULL},
	 { (char *)"delete_SimpleDayCounter", _wrap_delete_SimpleDayCounter, METH_VARARGS, NULL},
	 { (char *)"SimpleDayCounter_swigregister", SimpleDayCounter_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Business252", _wrap_new_Business252, METH_VARARGS, NULL},
	 { (char *)"delete_Business252", _wrap_delete_Business252, METH_VARARGS, NULL},
	 { (char *)"Business252_swigregister", Business252_swigregister, METH_VARARGS, NULL},
	 { (char *)"Actual365NoLeap", _wrap_Actual365NoLeap, METH_VARARGS, NULL},
	 { (char *)"new_InterestRate", _wrap_new_InterestRate, METH_VARARGS, NULL},
	 { (char *)"InterestRate_rate", _wrap_InterestRate_rate, METH_VARARGS, NULL},
	 { (char *)"InterestRate_dayCounter", _wrap_InterestRate_dayCounter, METH_VARARGS, NULL},
	 { (char *)"InterestRate_compounding", _wrap_InterestRate_compounding, METH_VARARGS, NULL},
	 { (char *)"InterestRate_frequency", _wrap_InterestRate_frequency, METH_VARARGS, NULL},
	 { (char *)"InterestRate_discountFactor", _wrap_InterestRate_discountFactor, METH_VARARGS, NULL},
	 { (char *)"InterestRate_compoundFactor", _wrap_InterestRate_compoundFactor, METH_VARARGS, NULL},
	 { (char *)"InterestRate_impliedRate", _wrap_InterestRate_impliedRate, METH_VARARGS, NULL},
	 { (char *)"InterestRate_equivalentRate", _wrap_InterestRate_equivalentRate, METH_VARARGS, NULL},
	 { (char *)"InterestRate___str__", _wrap_InterestRate___str__, METH_VARARGS, NULL},
	 { (char *)"delete_InterestRate", _wrap_delete_InterestRate, METH_VARARGS, NULL},
	 { (char *)"InterestRate_swigregister", InterestRate_swigregister, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_iterator", _wrap_InterestRateVector_iterator, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector___nonzero__", _wrap_InterestRateVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector___bool__", _wrap_InterestRateVector___bool__, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector___len__", _wrap_InterestRateVector___len__, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector___getslice__", _wrap_InterestRateVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector___setslice__", _wrap_InterestRateVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector___delslice__", _wrap_InterestRateVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector___delitem__", _wrap_InterestRateVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector___getitem__", _wrap_InterestRateVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector___setitem__", _wrap_InterestRateVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_pop", _wrap_InterestRateVector_pop, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_append", _wrap_InterestRateVector_append, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_empty", _wrap_InterestRateVector_empty, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_size", _wrap_InterestRateVector_size, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_swap", _wrap_InterestRateVector_swap, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_begin", _wrap_InterestRateVector_begin, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_end", _wrap_InterestRateVector_end, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_rbegin", _wrap_InterestRateVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_rend", _wrap_InterestRateVector_rend, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_clear", _wrap_InterestRateVector_clear, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_get_allocator", _wrap_InterestRateVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_pop_back", _wrap_InterestRateVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_erase", _wrap_InterestRateVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_InterestRateVector", _wrap_new_InterestRateVector, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_push_back", _wrap_InterestRateVector_push_back, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_front", _wrap_InterestRateVector_front, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_back", _wrap_InterestRateVector_back, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_assign", _wrap_InterestRateVector_assign, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_resize", _wrap_InterestRateVector_resize, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_insert", _wrap_InterestRateVector_insert, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_reserve", _wrap_InterestRateVector_reserve, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_capacity", _wrap_InterestRateVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_InterestRateVector", _wrap_delete_InterestRateVector, METH_VARARGS, NULL},
	 { (char *)"InterestRateVector_swigregister", InterestRateVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Rounding", _wrap_new_Rounding, METH_VARARGS, NULL},
	 { (char *)"Rounding___call__", _wrap_Rounding___call__, METH_VARARGS, NULL},
	 { (char *)"delete_Rounding", _wrap_delete_Rounding, METH_VARARGS, NULL},
	 { (char *)"Rounding_swigregister", Rounding_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_UpRounding", _wrap_new_UpRounding, METH_VARARGS, NULL},
	 { (char *)"delete_UpRounding", _wrap_delete_UpRounding, METH_VARARGS, NULL},
	 { (char *)"UpRounding_swigregister", UpRounding_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DownRounding", _wrap_new_DownRounding, METH_VARARGS, NULL},
	 { (char *)"delete_DownRounding", _wrap_delete_DownRounding, METH_VARARGS, NULL},
	 { (char *)"DownRounding_swigregister", DownRounding_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ClosestRounding", _wrap_new_ClosestRounding, METH_VARARGS, NULL},
	 { (char *)"delete_ClosestRounding", _wrap_delete_ClosestRounding, METH_VARARGS, NULL},
	 { (char *)"ClosestRounding_swigregister", ClosestRounding_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CeilingTruncation", _wrap_new_CeilingTruncation, METH_VARARGS, NULL},
	 { (char *)"delete_CeilingTruncation", _wrap_delete_CeilingTruncation, METH_VARARGS, NULL},
	 { (char *)"CeilingTruncation_swigregister", CeilingTruncation_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FloorTruncation", _wrap_new_FloorTruncation, METH_VARARGS, NULL},
	 { (char *)"delete_FloorTruncation", _wrap_delete_FloorTruncation, METH_VARARGS, NULL},
	 { (char *)"FloorTruncation_swigregister", FloorTruncation_swigregister, METH_VARARGS, NULL},
	 { (char *)"Currency_name", _wrap_Currency_name, METH_VARARGS, NULL},
	 { (char *)"Currency_code", _wrap_Currency_code, METH_VARARGS, NULL},
	 { (char *)"Currency_numericCode", _wrap_Currency_numericCode, METH_VARARGS, NULL},
	 { (char *)"Currency_symbol", _wrap_Currency_symbol, METH_VARARGS, NULL},
	 { (char *)"Currency_fractionSymbol", _wrap_Currency_fractionSymbol, METH_VARARGS, NULL},
	 { (char *)"Currency_fractionsPerUnit", _wrap_Currency_fractionsPerUnit, METH_VARARGS, NULL},
	 { (char *)"Currency_rounding", _wrap_Currency_rounding, METH_VARARGS, NULL},
	 { (char *)"Currency_format", _wrap_Currency_format, METH_VARARGS, NULL},
	 { (char *)"Currency_empty", _wrap_Currency_empty, METH_VARARGS, NULL},
	 { (char *)"Currency_triangulationCurrency", _wrap_Currency_triangulationCurrency, METH_VARARGS, NULL},
	 { (char *)"Currency___str__", _wrap_Currency___str__, METH_VARARGS, NULL},
	 { (char *)"Currency___eq__", _wrap_Currency___eq__, METH_VARARGS, NULL},
	 { (char *)"Currency___ne__", _wrap_Currency___ne__, METH_VARARGS, NULL},
	 { (char *)"Currency___mul__", _wrap_Currency___mul__, METH_VARARGS, NULL},
	 { (char *)"Currency___rmul__", _wrap_Currency___rmul__, METH_VARARGS, NULL},
	 { (char *)"Currency___nonzero__", _wrap_Currency___nonzero__, METH_VARARGS, NULL},
	 { (char *)"Currency___bool__", _wrap_Currency___bool__, METH_VARARGS, NULL},
	 { (char *)"new_Currency", _wrap_new_Currency, METH_VARARGS, NULL},
	 { (char *)"delete_Currency", _wrap_delete_Currency, METH_VARARGS, NULL},
	 { (char *)"Currency_swigregister", Currency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ARSCurrency", _wrap_new_ARSCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_ARSCurrency", _wrap_delete_ARSCurrency, METH_VARARGS, NULL},
	 { (char *)"ARSCurrency_swigregister", ARSCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ATSCurrency", _wrap_new_ATSCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_ATSCurrency", _wrap_delete_ATSCurrency, METH_VARARGS, NULL},
	 { (char *)"ATSCurrency_swigregister", ATSCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AUDCurrency", _wrap_new_AUDCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_AUDCurrency", _wrap_delete_AUDCurrency, METH_VARARGS, NULL},
	 { (char *)"AUDCurrency_swigregister", AUDCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BDTCurrency", _wrap_new_BDTCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_BDTCurrency", _wrap_delete_BDTCurrency, METH_VARARGS, NULL},
	 { (char *)"BDTCurrency_swigregister", BDTCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BEFCurrency", _wrap_new_BEFCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_BEFCurrency", _wrap_delete_BEFCurrency, METH_VARARGS, NULL},
	 { (char *)"BEFCurrency_swigregister", BEFCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BGLCurrency", _wrap_new_BGLCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_BGLCurrency", _wrap_delete_BGLCurrency, METH_VARARGS, NULL},
	 { (char *)"BGLCurrency_swigregister", BGLCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BRLCurrency", _wrap_new_BRLCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_BRLCurrency", _wrap_delete_BRLCurrency, METH_VARARGS, NULL},
	 { (char *)"BRLCurrency_swigregister", BRLCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BYRCurrency", _wrap_new_BYRCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_BYRCurrency", _wrap_delete_BYRCurrency, METH_VARARGS, NULL},
	 { (char *)"BYRCurrency_swigregister", BYRCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CADCurrency", _wrap_new_CADCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_CADCurrency", _wrap_delete_CADCurrency, METH_VARARGS, NULL},
	 { (char *)"CADCurrency_swigregister", CADCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CHFCurrency", _wrap_new_CHFCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_CHFCurrency", _wrap_delete_CHFCurrency, METH_VARARGS, NULL},
	 { (char *)"CHFCurrency_swigregister", CHFCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CLPCurrency", _wrap_new_CLPCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_CLPCurrency", _wrap_delete_CLPCurrency, METH_VARARGS, NULL},
	 { (char *)"CLPCurrency_swigregister", CLPCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CNYCurrency", _wrap_new_CNYCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_CNYCurrency", _wrap_delete_CNYCurrency, METH_VARARGS, NULL},
	 { (char *)"CNYCurrency_swigregister", CNYCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_COPCurrency", _wrap_new_COPCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_COPCurrency", _wrap_delete_COPCurrency, METH_VARARGS, NULL},
	 { (char *)"COPCurrency_swigregister", COPCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CYPCurrency", _wrap_new_CYPCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_CYPCurrency", _wrap_delete_CYPCurrency, METH_VARARGS, NULL},
	 { (char *)"CYPCurrency_swigregister", CYPCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CZKCurrency", _wrap_new_CZKCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_CZKCurrency", _wrap_delete_CZKCurrency, METH_VARARGS, NULL},
	 { (char *)"CZKCurrency_swigregister", CZKCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DEMCurrency", _wrap_new_DEMCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_DEMCurrency", _wrap_delete_DEMCurrency, METH_VARARGS, NULL},
	 { (char *)"DEMCurrency_swigregister", DEMCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DKKCurrency", _wrap_new_DKKCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_DKKCurrency", _wrap_delete_DKKCurrency, METH_VARARGS, NULL},
	 { (char *)"DKKCurrency_swigregister", DKKCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EEKCurrency", _wrap_new_EEKCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_EEKCurrency", _wrap_delete_EEKCurrency, METH_VARARGS, NULL},
	 { (char *)"EEKCurrency_swigregister", EEKCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ESPCurrency", _wrap_new_ESPCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_ESPCurrency", _wrap_delete_ESPCurrency, METH_VARARGS, NULL},
	 { (char *)"ESPCurrency_swigregister", ESPCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EURCurrency", _wrap_new_EURCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_EURCurrency", _wrap_delete_EURCurrency, METH_VARARGS, NULL},
	 { (char *)"EURCurrency_swigregister", EURCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FIMCurrency", _wrap_new_FIMCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_FIMCurrency", _wrap_delete_FIMCurrency, METH_VARARGS, NULL},
	 { (char *)"FIMCurrency_swigregister", FIMCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FRFCurrency", _wrap_new_FRFCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_FRFCurrency", _wrap_delete_FRFCurrency, METH_VARARGS, NULL},
	 { (char *)"FRFCurrency_swigregister", FRFCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GBPCurrency", _wrap_new_GBPCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_GBPCurrency", _wrap_delete_GBPCurrency, METH_VARARGS, NULL},
	 { (char *)"GBPCurrency_swigregister", GBPCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GRDCurrency", _wrap_new_GRDCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_GRDCurrency", _wrap_delete_GRDCurrency, METH_VARARGS, NULL},
	 { (char *)"GRDCurrency_swigregister", GRDCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_HKDCurrency", _wrap_new_HKDCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_HKDCurrency", _wrap_delete_HKDCurrency, METH_VARARGS, NULL},
	 { (char *)"HKDCurrency_swigregister", HKDCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_HUFCurrency", _wrap_new_HUFCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_HUFCurrency", _wrap_delete_HUFCurrency, METH_VARARGS, NULL},
	 { (char *)"HUFCurrency_swigregister", HUFCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_IEPCurrency", _wrap_new_IEPCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_IEPCurrency", _wrap_delete_IEPCurrency, METH_VARARGS, NULL},
	 { (char *)"IEPCurrency_swigregister", IEPCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_IDRCurrency", _wrap_new_IDRCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_IDRCurrency", _wrap_delete_IDRCurrency, METH_VARARGS, NULL},
	 { (char *)"IDRCurrency_swigregister", IDRCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ILSCurrency", _wrap_new_ILSCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_ILSCurrency", _wrap_delete_ILSCurrency, METH_VARARGS, NULL},
	 { (char *)"ILSCurrency_swigregister", ILSCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_INRCurrency", _wrap_new_INRCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_INRCurrency", _wrap_delete_INRCurrency, METH_VARARGS, NULL},
	 { (char *)"INRCurrency_swigregister", INRCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_IQDCurrency", _wrap_new_IQDCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_IQDCurrency", _wrap_delete_IQDCurrency, METH_VARARGS, NULL},
	 { (char *)"IQDCurrency_swigregister", IQDCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_IRRCurrency", _wrap_new_IRRCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_IRRCurrency", _wrap_delete_IRRCurrency, METH_VARARGS, NULL},
	 { (char *)"IRRCurrency_swigregister", IRRCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ISKCurrency", _wrap_new_ISKCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_ISKCurrency", _wrap_delete_ISKCurrency, METH_VARARGS, NULL},
	 { (char *)"ISKCurrency_swigregister", ISKCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ITLCurrency", _wrap_new_ITLCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_ITLCurrency", _wrap_delete_ITLCurrency, METH_VARARGS, NULL},
	 { (char *)"ITLCurrency_swigregister", ITLCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_JPYCurrency", _wrap_new_JPYCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_JPYCurrency", _wrap_delete_JPYCurrency, METH_VARARGS, NULL},
	 { (char *)"JPYCurrency_swigregister", JPYCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_KRWCurrency", _wrap_new_KRWCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_KRWCurrency", _wrap_delete_KRWCurrency, METH_VARARGS, NULL},
	 { (char *)"KRWCurrency_swigregister", KRWCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_KWDCurrency", _wrap_new_KWDCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_KWDCurrency", _wrap_delete_KWDCurrency, METH_VARARGS, NULL},
	 { (char *)"KWDCurrency_swigregister", KWDCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_LTLCurrency", _wrap_new_LTLCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_LTLCurrency", _wrap_delete_LTLCurrency, METH_VARARGS, NULL},
	 { (char *)"LTLCurrency_swigregister", LTLCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_LUFCurrency", _wrap_new_LUFCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_LUFCurrency", _wrap_delete_LUFCurrency, METH_VARARGS, NULL},
	 { (char *)"LUFCurrency_swigregister", LUFCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_LVLCurrency", _wrap_new_LVLCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_LVLCurrency", _wrap_delete_LVLCurrency, METH_VARARGS, NULL},
	 { (char *)"LVLCurrency_swigregister", LVLCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MTLCurrency", _wrap_new_MTLCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_MTLCurrency", _wrap_delete_MTLCurrency, METH_VARARGS, NULL},
	 { (char *)"MTLCurrency_swigregister", MTLCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MXNCurrency", _wrap_new_MXNCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_MXNCurrency", _wrap_delete_MXNCurrency, METH_VARARGS, NULL},
	 { (char *)"MXNCurrency_swigregister", MXNCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MYRCurrency", _wrap_new_MYRCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_MYRCurrency", _wrap_delete_MYRCurrency, METH_VARARGS, NULL},
	 { (char *)"MYRCurrency_swigregister", MYRCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_NLGCurrency", _wrap_new_NLGCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_NLGCurrency", _wrap_delete_NLGCurrency, METH_VARARGS, NULL},
	 { (char *)"NLGCurrency_swigregister", NLGCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_NOKCurrency", _wrap_new_NOKCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_NOKCurrency", _wrap_delete_NOKCurrency, METH_VARARGS, NULL},
	 { (char *)"NOKCurrency_swigregister", NOKCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_NPRCurrency", _wrap_new_NPRCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_NPRCurrency", _wrap_delete_NPRCurrency, METH_VARARGS, NULL},
	 { (char *)"NPRCurrency_swigregister", NPRCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_NZDCurrency", _wrap_new_NZDCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_NZDCurrency", _wrap_delete_NZDCurrency, METH_VARARGS, NULL},
	 { (char *)"NZDCurrency_swigregister", NZDCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PEHCurrency", _wrap_new_PEHCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_PEHCurrency", _wrap_delete_PEHCurrency, METH_VARARGS, NULL},
	 { (char *)"PEHCurrency_swigregister", PEHCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PEICurrency", _wrap_new_PEICurrency, METH_VARARGS, NULL},
	 { (char *)"delete_PEICurrency", _wrap_delete_PEICurrency, METH_VARARGS, NULL},
	 { (char *)"PEICurrency_swigregister", PEICurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PENCurrency", _wrap_new_PENCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_PENCurrency", _wrap_delete_PENCurrency, METH_VARARGS, NULL},
	 { (char *)"PENCurrency_swigregister", PENCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PKRCurrency", _wrap_new_PKRCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_PKRCurrency", _wrap_delete_PKRCurrency, METH_VARARGS, NULL},
	 { (char *)"PKRCurrency_swigregister", PKRCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PLNCurrency", _wrap_new_PLNCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_PLNCurrency", _wrap_delete_PLNCurrency, METH_VARARGS, NULL},
	 { (char *)"PLNCurrency_swigregister", PLNCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PTECurrency", _wrap_new_PTECurrency, METH_VARARGS, NULL},
	 { (char *)"delete_PTECurrency", _wrap_delete_PTECurrency, METH_VARARGS, NULL},
	 { (char *)"PTECurrency_swigregister", PTECurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ROLCurrency", _wrap_new_ROLCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_ROLCurrency", _wrap_delete_ROLCurrency, METH_VARARGS, NULL},
	 { (char *)"ROLCurrency_swigregister", ROLCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_RONCurrency", _wrap_new_RONCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_RONCurrency", _wrap_delete_RONCurrency, METH_VARARGS, NULL},
	 { (char *)"RONCurrency_swigregister", RONCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_RUBCurrency", _wrap_new_RUBCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_RUBCurrency", _wrap_delete_RUBCurrency, METH_VARARGS, NULL},
	 { (char *)"RUBCurrency_swigregister", RUBCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SARCurrency", _wrap_new_SARCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_SARCurrency", _wrap_delete_SARCurrency, METH_VARARGS, NULL},
	 { (char *)"SARCurrency_swigregister", SARCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SEKCurrency", _wrap_new_SEKCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_SEKCurrency", _wrap_delete_SEKCurrency, METH_VARARGS, NULL},
	 { (char *)"SEKCurrency_swigregister", SEKCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SGDCurrency", _wrap_new_SGDCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_SGDCurrency", _wrap_delete_SGDCurrency, METH_VARARGS, NULL},
	 { (char *)"SGDCurrency_swigregister", SGDCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SITCurrency", _wrap_new_SITCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_SITCurrency", _wrap_delete_SITCurrency, METH_VARARGS, NULL},
	 { (char *)"SITCurrency_swigregister", SITCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SKKCurrency", _wrap_new_SKKCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_SKKCurrency", _wrap_delete_SKKCurrency, METH_VARARGS, NULL},
	 { (char *)"SKKCurrency_swigregister", SKKCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_THBCurrency", _wrap_new_THBCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_THBCurrency", _wrap_delete_THBCurrency, METH_VARARGS, NULL},
	 { (char *)"THBCurrency_swigregister", THBCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_TRLCurrency", _wrap_new_TRLCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_TRLCurrency", _wrap_delete_TRLCurrency, METH_VARARGS, NULL},
	 { (char *)"TRLCurrency_swigregister", TRLCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_TRYCurrency", _wrap_new_TRYCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_TRYCurrency", _wrap_delete_TRYCurrency, METH_VARARGS, NULL},
	 { (char *)"TRYCurrency_swigregister", TRYCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_TTDCurrency", _wrap_new_TTDCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_TTDCurrency", _wrap_delete_TTDCurrency, METH_VARARGS, NULL},
	 { (char *)"TTDCurrency_swigregister", TTDCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_TWDCurrency", _wrap_new_TWDCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_TWDCurrency", _wrap_delete_TWDCurrency, METH_VARARGS, NULL},
	 { (char *)"TWDCurrency_swigregister", TWDCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_USDCurrency", _wrap_new_USDCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_USDCurrency", _wrap_delete_USDCurrency, METH_VARARGS, NULL},
	 { (char *)"USDCurrency_swigregister", USDCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_VEBCurrency", _wrap_new_VEBCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_VEBCurrency", _wrap_delete_VEBCurrency, METH_VARARGS, NULL},
	 { (char *)"VEBCurrency_swigregister", VEBCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_VNDCurrency", _wrap_new_VNDCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_VNDCurrency", _wrap_delete_VNDCurrency, METH_VARARGS, NULL},
	 { (char *)"VNDCurrency_swigregister", VNDCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ZARCurrency", _wrap_new_ZARCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_ZARCurrency", _wrap_delete_ZARCurrency, METH_VARARGS, NULL},
	 { (char *)"ZARCurrency_swigregister", ZARCurrency_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_LinearInterpolation", _wrap_new_LinearInterpolation, METH_VARARGS, NULL},
	 { (char *)"LinearInterpolation___call__", _wrap_LinearInterpolation___call__, METH_VARARGS, NULL},
	 { (char *)"delete_LinearInterpolation", _wrap_delete_LinearInterpolation, METH_VARARGS, NULL},
	 { (char *)"LinearInterpolation_swigregister", LinearInterpolation_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_LogLinearInterpolation", _wrap_new_LogLinearInterpolation, METH_VARARGS, NULL},
	 { (char *)"LogLinearInterpolation___call__", _wrap_LogLinearInterpolation___call__, METH_VARARGS, NULL},
	 { (char *)"delete_LogLinearInterpolation", _wrap_delete_LogLinearInterpolation, METH_VARARGS, NULL},
	 { (char *)"LogLinearInterpolation_swigregister", LogLinearInterpolation_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BackwardFlatInterpolation", _wrap_new_BackwardFlatInterpolation, METH_VARARGS, NULL},
	 { (char *)"BackwardFlatInterpolation___call__", _wrap_BackwardFlatInterpolation___call__, METH_VARARGS, NULL},
	 { (char *)"delete_BackwardFlatInterpolation", _wrap_delete_BackwardFlatInterpolation, METH_VARARGS, NULL},
	 { (char *)"BackwardFlatInterpolation_swigregister", BackwardFlatInterpolation_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ForwardFlatInterpolation", _wrap_new_ForwardFlatInterpolation, METH_VARARGS, NULL},
	 { (char *)"ForwardFlatInterpolation___call__", _wrap_ForwardFlatInterpolation___call__, METH_VARARGS, NULL},
	 { (char *)"delete_ForwardFlatInterpolation", _wrap_delete_ForwardFlatInterpolation, METH_VARARGS, NULL},
	 { (char *)"ForwardFlatInterpolation_swigregister", ForwardFlatInterpolation_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CubicNaturalSpline", _wrap_new_CubicNaturalSpline, METH_VARARGS, NULL},
	 { (char *)"CubicNaturalSpline___call__", _wrap_CubicNaturalSpline___call__, METH_VARARGS, NULL},
	 { (char *)"CubicNaturalSpline_derivative", _wrap_CubicNaturalSpline_derivative, METH_VARARGS, NULL},
	 { (char *)"CubicNaturalSpline_secondDerivative", _wrap_CubicNaturalSpline_secondDerivative, METH_VARARGS, NULL},
	 { (char *)"CubicNaturalSpline_primitive", _wrap_CubicNaturalSpline_primitive, METH_VARARGS, NULL},
	 { (char *)"delete_CubicNaturalSpline", _wrap_delete_CubicNaturalSpline, METH_VARARGS, NULL},
	 { (char *)"CubicNaturalSpline_swigregister", CubicNaturalSpline_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_LogCubicNaturalSpline", _wrap_new_LogCubicNaturalSpline, METH_VARARGS, NULL},
	 { (char *)"LogCubicNaturalSpline___call__", _wrap_LogCubicNaturalSpline___call__, METH_VARARGS, NULL},
	 { (char *)"LogCubicNaturalSpline_derivative", _wrap_LogCubicNaturalSpline_derivative, METH_VARARGS, NULL},
	 { (char *)"LogCubicNaturalSpline_secondDerivative", _wrap_LogCubicNaturalSpline_secondDerivative, METH_VARARGS, NULL},
	 { (char *)"LogCubicNaturalSpline_primitive", _wrap_LogCubicNaturalSpline_primitive, METH_VARARGS, NULL},
	 { (char *)"delete_LogCubicNaturalSpline", _wrap_delete_LogCubicNaturalSpline, METH_VARARGS, NULL},
	 { (char *)"LogCubicNaturalSpline_swigregister", LogCubicNaturalSpline_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MonotonicCubicNaturalSpline", _wrap_new_MonotonicCubicNaturalSpline, METH_VARARGS, NULL},
	 { (char *)"MonotonicCubicNaturalSpline___call__", _wrap_MonotonicCubicNaturalSpline___call__, METH_VARARGS, NULL},
	 { (char *)"MonotonicCubicNaturalSpline_derivative", _wrap_MonotonicCubicNaturalSpline_derivative, METH_VARARGS, NULL},
	 { (char *)"MonotonicCubicNaturalSpline_secondDerivative", _wrap_MonotonicCubicNaturalSpline_secondDerivative, METH_VARARGS, NULL},
	 { (char *)"MonotonicCubicNaturalSpline_primitive", _wrap_MonotonicCubicNaturalSpline_primitive, METH_VARARGS, NULL},
	 { (char *)"delete_MonotonicCubicNaturalSpline", _wrap_delete_MonotonicCubicNaturalSpline, METH_VARARGS, NULL},
	 { (char *)"MonotonicCubicNaturalSpline_swigregister", MonotonicCubicNaturalSpline_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MonotonicLogCubicNaturalSpline", _wrap_new_MonotonicLogCubicNaturalSpline, METH_VARARGS, NULL},
	 { (char *)"MonotonicLogCubicNaturalSpline___call__", _wrap_MonotonicLogCubicNaturalSpline___call__, METH_VARARGS, NULL},
	 { (char *)"MonotonicLogCubicNaturalSpline_derivative", _wrap_MonotonicLogCubicNaturalSpline_derivative, METH_VARARGS, NULL},
	 { (char *)"MonotonicLogCubicNaturalSpline_secondDerivative", _wrap_MonotonicLogCubicNaturalSpline_secondDerivative, METH_VARARGS, NULL},
	 { (char *)"MonotonicLogCubicNaturalSpline_primitive", _wrap_MonotonicLogCubicNaturalSpline_primitive, METH_VARARGS, NULL},
	 { (char *)"delete_MonotonicLogCubicNaturalSpline", _wrap_delete_MonotonicLogCubicNaturalSpline, METH_VARARGS, NULL},
	 { (char *)"MonotonicLogCubicNaturalSpline_swigregister", MonotonicLogCubicNaturalSpline_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_KrugerCubic", _wrap_new_KrugerCubic, METH_VARARGS, NULL},
	 { (char *)"KrugerCubic___call__", _wrap_KrugerCubic___call__, METH_VARARGS, NULL},
	 { (char *)"KrugerCubic_derivative", _wrap_KrugerCubic_derivative, METH_VARARGS, NULL},
	 { (char *)"KrugerCubic_secondDerivative", _wrap_KrugerCubic_secondDerivative, METH_VARARGS, NULL},
	 { (char *)"KrugerCubic_primitive", _wrap_KrugerCubic_primitive, METH_VARARGS, NULL},
	 { (char *)"delete_KrugerCubic", _wrap_delete_KrugerCubic, METH_VARARGS, NULL},
	 { (char *)"KrugerCubic_swigregister", KrugerCubic_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_KrugerLogCubic", _wrap_new_KrugerLogCubic, METH_VARARGS, NULL},
	 { (char *)"KrugerLogCubic___call__", _wrap_KrugerLogCubic___call__, METH_VARARGS, NULL},
	 { (char *)"KrugerLogCubic_derivative", _wrap_KrugerLogCubic_derivative, METH_VARARGS, NULL},
	 { (char *)"KrugerLogCubic_secondDerivative", _wrap_KrugerLogCubic_secondDerivative, METH_VARARGS, NULL},
	 { (char *)"KrugerLogCubic_primitive", _wrap_KrugerLogCubic_primitive, METH_VARARGS, NULL},
	 { (char *)"delete_KrugerLogCubic", _wrap_delete_KrugerLogCubic, METH_VARARGS, NULL},
	 { (char *)"KrugerLogCubic_swigregister", KrugerLogCubic_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FritschButlandCubic", _wrap_new_FritschButlandCubic, METH_VARARGS, NULL},
	 { (char *)"FritschButlandCubic___call__", _wrap_FritschButlandCubic___call__, METH_VARARGS, NULL},
	 { (char *)"FritschButlandCubic_derivative", _wrap_FritschButlandCubic_derivative, METH_VARARGS, NULL},
	 { (char *)"FritschButlandCubic_secondDerivative", _wrap_FritschButlandCubic_secondDerivative, METH_VARARGS, NULL},
	 { (char *)"FritschButlandCubic_primitive", _wrap_FritschButlandCubic_primitive, METH_VARARGS, NULL},
	 { (char *)"delete_FritschButlandCubic", _wrap_delete_FritschButlandCubic, METH_VARARGS, NULL},
	 { (char *)"FritschButlandCubic_swigregister", FritschButlandCubic_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FritschButlandLogCubic", _wrap_new_FritschButlandLogCubic, METH_VARARGS, NULL},
	 { (char *)"FritschButlandLogCubic___call__", _wrap_FritschButlandLogCubic___call__, METH_VARARGS, NULL},
	 { (char *)"FritschButlandLogCubic_derivative", _wrap_FritschButlandLogCubic_derivative, METH_VARARGS, NULL},
	 { (char *)"FritschButlandLogCubic_secondDerivative", _wrap_FritschButlandLogCubic_secondDerivative, METH_VARARGS, NULL},
	 { (char *)"FritschButlandLogCubic_primitive", _wrap_FritschButlandLogCubic_primitive, METH_VARARGS, NULL},
	 { (char *)"delete_FritschButlandLogCubic", _wrap_delete_FritschButlandLogCubic, METH_VARARGS, NULL},
	 { (char *)"FritschButlandLogCubic_swigregister", FritschButlandLogCubic_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Parabolic", _wrap_new_Parabolic, METH_VARARGS, NULL},
	 { (char *)"Parabolic___call__", _wrap_Parabolic___call__, METH_VARARGS, NULL},
	 { (char *)"Parabolic_derivative", _wrap_Parabolic_derivative, METH_VARARGS, NULL},
	 { (char *)"Parabolic_secondDerivative", _wrap_Parabolic_secondDerivative, METH_VARARGS, NULL},
	 { (char *)"Parabolic_primitive", _wrap_Parabolic_primitive, METH_VARARGS, NULL},
	 { (char *)"delete_Parabolic", _wrap_delete_Parabolic, METH_VARARGS, NULL},
	 { (char *)"Parabolic_swigregister", Parabolic_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_LogParabolic", _wrap_new_LogParabolic, METH_VARARGS, NULL},
	 { (char *)"LogParabolic___call__", _wrap_LogParabolic___call__, METH_VARARGS, NULL},
	 { (char *)"LogParabolic_derivative", _wrap_LogParabolic_derivative, METH_VARARGS, NULL},
	 { (char *)"LogParabolic_secondDerivative", _wrap_LogParabolic_secondDerivative, METH_VARARGS, NULL},
	 { (char *)"LogParabolic_primitive", _wrap_LogParabolic_primitive, METH_VARARGS, NULL},
	 { (char *)"delete_LogParabolic", _wrap_delete_LogParabolic, METH_VARARGS, NULL},
	 { (char *)"LogParabolic_swigregister", LogParabolic_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MonotonicParabolic", _wrap_new_MonotonicParabolic, METH_VARARGS, NULL},
	 { (char *)"MonotonicParabolic___call__", _wrap_MonotonicParabolic___call__, METH_VARARGS, NULL},
	 { (char *)"MonotonicParabolic_derivative", _wrap_MonotonicParabolic_derivative, METH_VARARGS, NULL},
	 { (char *)"MonotonicParabolic_secondDerivative", _wrap_MonotonicParabolic_secondDerivative, METH_VARARGS, NULL},
	 { (char *)"MonotonicParabolic_primitive", _wrap_MonotonicParabolic_primitive, METH_VARARGS, NULL},
	 { (char *)"delete_MonotonicParabolic", _wrap_delete_MonotonicParabolic, METH_VARARGS, NULL},
	 { (char *)"MonotonicParabolic_swigregister", MonotonicParabolic_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MonotonicLogParabolic", _wrap_new_MonotonicLogParabolic, METH_VARARGS, NULL},
	 { (char *)"MonotonicLogParabolic___call__", _wrap_MonotonicLogParabolic___call__, METH_VARARGS, NULL},
	 { (char *)"MonotonicLogParabolic_derivative", _wrap_MonotonicLogParabolic_derivative, METH_VARARGS, NULL},
	 { (char *)"MonotonicLogParabolic_secondDerivative", _wrap_MonotonicLogParabolic_secondDerivative, METH_VARARGS, NULL},
	 { (char *)"MonotonicLogParabolic_primitive", _wrap_MonotonicLogParabolic_primitive, METH_VARARGS, NULL},
	 { (char *)"delete_MonotonicLogParabolic", _wrap_delete_MonotonicLogParabolic, METH_VARARGS, NULL},
	 { (char *)"MonotonicLogParabolic_swigregister", MonotonicLogParabolic_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BilinearInterpolation", _wrap_new_BilinearInterpolation, METH_VARARGS, NULL},
	 { (char *)"BilinearInterpolation___call__", _wrap_BilinearInterpolation___call__, METH_VARARGS, NULL},
	 { (char *)"delete_BilinearInterpolation", _wrap_delete_BilinearInterpolation, METH_VARARGS, NULL},
	 { (char *)"BilinearInterpolation_swigregister", BilinearInterpolation_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BicubicSpline", _wrap_new_BicubicSpline, METH_VARARGS, NULL},
	 { (char *)"BicubicSpline___call__", _wrap_BicubicSpline___call__, METH_VARARGS, NULL},
	 { (char *)"delete_BicubicSpline", _wrap_delete_BicubicSpline, METH_VARARGS, NULL},
	 { (char *)"BicubicSpline_swigregister", BicubicSpline_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BackwardFlat", _wrap_new_BackwardFlat, METH_VARARGS, NULL},
	 { (char *)"delete_BackwardFlat", _wrap_delete_BackwardFlat, METH_VARARGS, NULL},
	 { (char *)"BackwardFlat_swigregister", BackwardFlat_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ForwardFlat", _wrap_new_ForwardFlat, METH_VARARGS, NULL},
	 { (char *)"delete_ForwardFlat", _wrap_delete_ForwardFlat, METH_VARARGS, NULL},
	 { (char *)"ForwardFlat_swigregister", ForwardFlat_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Linear", _wrap_new_Linear, METH_VARARGS, NULL},
	 { (char *)"delete_Linear", _wrap_delete_Linear, METH_VARARGS, NULL},
	 { (char *)"Linear_swigregister", Linear_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_LogLinear", _wrap_new_LogLinear, METH_VARARGS, NULL},
	 { (char *)"delete_LogLinear", _wrap_delete_LogLinear, METH_VARARGS, NULL},
	 { (char *)"LogLinear_swigregister", LogLinear_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Cubic", _wrap_new_Cubic, METH_VARARGS, NULL},
	 { (char *)"delete_Cubic", _wrap_delete_Cubic, METH_VARARGS, NULL},
	 { (char *)"Cubic_swigregister", Cubic_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MonotonicCubic", _wrap_new_MonotonicCubic, METH_VARARGS, NULL},
	 { (char *)"delete_MonotonicCubic", _wrap_delete_MonotonicCubic, METH_VARARGS, NULL},
	 { (char *)"MonotonicCubic_swigregister", MonotonicCubic_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DefaultLogCubic", _wrap_new_DefaultLogCubic, METH_VARARGS, NULL},
	 { (char *)"delete_DefaultLogCubic", _wrap_delete_DefaultLogCubic, METH_VARARGS, NULL},
	 { (char *)"DefaultLogCubic_swigregister", DefaultLogCubic_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MonotonicLogCubic", _wrap_new_MonotonicLogCubic, METH_VARARGS, NULL},
	 { (char *)"delete_MonotonicLogCubic", _wrap_delete_MonotonicLogCubic, METH_VARARGS, NULL},
	 { (char *)"MonotonicLogCubic_swigregister", MonotonicLogCubic_swigregister, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructure___deref__", _wrap_YieldTermStructure___deref__, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructure___nonzero__", _wrap_YieldTermStructure___nonzero__, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructure___bool__", _wrap_YieldTermStructure___bool__, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructure_asObservable", _wrap_YieldTermStructure_asObservable, METH_VARARGS, NULL},
	 { (char *)"new_YieldTermStructure", _wrap_new_YieldTermStructure, METH_VARARGS, NULL},
	 { (char *)"delete_YieldTermStructure", _wrap_delete_YieldTermStructure, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructure_dayCounter", _wrap_YieldTermStructure_dayCounter, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructure_calendar", _wrap_YieldTermStructure_calendar, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructure_referenceDate", _wrap_YieldTermStructure_referenceDate, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructure_maxDate", _wrap_YieldTermStructure_maxDate, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructure_maxTime", _wrap_YieldTermStructure_maxTime, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructure_discount", _wrap_YieldTermStructure_discount, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructure_zeroRate", _wrap_YieldTermStructure_zeroRate, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructure_forwardRate", _wrap_YieldTermStructure_forwardRate, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructure_enableExtrapolation", _wrap_YieldTermStructure_enableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructure_disableExtrapolation", _wrap_YieldTermStructure_disableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructure_allowsExtrapolation", _wrap_YieldTermStructure_allowsExtrapolation, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructure_swigregister", YieldTermStructure_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_YieldTermStructureHandle", _wrap_new_YieldTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructureHandle___deref__", _wrap_YieldTermStructureHandle___deref__, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructureHandle___nonzero__", _wrap_YieldTermStructureHandle___nonzero__, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructureHandle___bool__", _wrap_YieldTermStructureHandle___bool__, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructureHandle_asObservable", _wrap_YieldTermStructureHandle_asObservable, METH_VARARGS, NULL},
	 { (char *)"delete_YieldTermStructureHandle", _wrap_delete_YieldTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructureHandle_dayCounter", _wrap_YieldTermStructureHandle_dayCounter, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructureHandle_calendar", _wrap_YieldTermStructureHandle_calendar, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructureHandle_referenceDate", _wrap_YieldTermStructureHandle_referenceDate, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructureHandle_maxDate", _wrap_YieldTermStructureHandle_maxDate, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructureHandle_maxTime", _wrap_YieldTermStructureHandle_maxTime, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructureHandle_discount", _wrap_YieldTermStructureHandle_discount, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructureHandle_zeroRate", _wrap_YieldTermStructureHandle_zeroRate, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructureHandle_forwardRate", _wrap_YieldTermStructureHandle_forwardRate, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructureHandle_enableExtrapolation", _wrap_YieldTermStructureHandle_enableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructureHandle_disableExtrapolation", _wrap_YieldTermStructureHandle_disableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructureHandle_allowsExtrapolation", _wrap_YieldTermStructureHandle_allowsExtrapolation, METH_VARARGS, NULL},
	 { (char *)"YieldTermStructureHandle_swigregister", YieldTermStructureHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_RelinkableYieldTermStructureHandle", _wrap_new_RelinkableYieldTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableYieldTermStructureHandle_linkTo", _wrap_RelinkableYieldTermStructureHandle_linkTo, METH_VARARGS, NULL},
	 { (char *)"delete_RelinkableYieldTermStructureHandle", _wrap_delete_RelinkableYieldTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableYieldTermStructureHandle_swigregister", RelinkableYieldTermStructureHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ImpliedTermStructure", _wrap_new_ImpliedTermStructure, METH_VARARGS, NULL},
	 { (char *)"delete_ImpliedTermStructure", _wrap_delete_ImpliedTermStructure, METH_VARARGS, NULL},
	 { (char *)"ImpliedTermStructure_swigregister", ImpliedTermStructure_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ZeroSpreadedTermStructure", _wrap_new_ZeroSpreadedTermStructure, METH_VARARGS, NULL},
	 { (char *)"delete_ZeroSpreadedTermStructure", _wrap_delete_ZeroSpreadedTermStructure, METH_VARARGS, NULL},
	 { (char *)"ZeroSpreadedTermStructure_swigregister", ZeroSpreadedTermStructure_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ForwardSpreadedTermStructure", _wrap_new_ForwardSpreadedTermStructure, METH_VARARGS, NULL},
	 { (char *)"delete_ForwardSpreadedTermStructure", _wrap_delete_ForwardSpreadedTermStructure, METH_VARARGS, NULL},
	 { (char *)"ForwardSpreadedTermStructure_swigregister", ForwardSpreadedTermStructure_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SpreadedLinearZeroInterpolatedTermStructure", _wrap_new_SpreadedLinearZeroInterpolatedTermStructure, METH_VARARGS, NULL},
	 { (char *)"delete_SpreadedLinearZeroInterpolatedTermStructure", _wrap_delete_SpreadedLinearZeroInterpolatedTermStructure, METH_VARARGS, NULL},
	 { (char *)"SpreadedLinearZeroInterpolatedTermStructure_swigregister", SpreadedLinearZeroInterpolatedTermStructure_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FlatForward", _wrap_new_FlatForward, METH_VARARGS, NULL},
	 { (char *)"delete_FlatForward", _wrap_delete_FlatForward, METH_VARARGS, NULL},
	 { (char *)"FlatForward_swigregister", FlatForward_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_RealTimeSeries", _wrap_new_RealTimeSeries, METH_VARARGS, NULL},
	 { (char *)"RealTimeSeries_dates", _wrap_RealTimeSeries_dates, METH_VARARGS, NULL},
	 { (char *)"RealTimeSeries_values", _wrap_RealTimeSeries_values, METH_VARARGS, NULL},
	 { (char *)"RealTimeSeries___len__", _wrap_RealTimeSeries___len__, METH_VARARGS, NULL},
	 { (char *)"RealTimeSeries___getitem__", _wrap_RealTimeSeries___getitem__, METH_VARARGS, NULL},
	 { (char *)"RealTimeSeries___setitem__", _wrap_RealTimeSeries___setitem__, METH_VARARGS, NULL},
	 { (char *)"delete_RealTimeSeries", _wrap_delete_RealTimeSeries, METH_VARARGS, NULL},
	 { (char *)"RealTimeSeries_swigregister", RealTimeSeries_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_IntervalPriceTimeSeries", _wrap_new_IntervalPriceTimeSeries, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceTimeSeries_dates", _wrap_IntervalPriceTimeSeries_dates, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceTimeSeries_values", _wrap_IntervalPriceTimeSeries_values, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceTimeSeries___len__", _wrap_IntervalPriceTimeSeries___len__, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceTimeSeries___getitem__", _wrap_IntervalPriceTimeSeries___getitem__, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceTimeSeries___setitem__", _wrap_IntervalPriceTimeSeries___setitem__, METH_VARARGS, NULL},
	 { (char *)"delete_IntervalPriceTimeSeries", _wrap_delete_IntervalPriceTimeSeries, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceTimeSeries_swigregister", IntervalPriceTimeSeries_swigregister, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_iterator", _wrap_IntervalPriceVector_iterator, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector___nonzero__", _wrap_IntervalPriceVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector___bool__", _wrap_IntervalPriceVector___bool__, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector___len__", _wrap_IntervalPriceVector___len__, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector___getslice__", _wrap_IntervalPriceVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector___setslice__", _wrap_IntervalPriceVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector___delslice__", _wrap_IntervalPriceVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector___delitem__", _wrap_IntervalPriceVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector___getitem__", _wrap_IntervalPriceVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector___setitem__", _wrap_IntervalPriceVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_pop", _wrap_IntervalPriceVector_pop, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_append", _wrap_IntervalPriceVector_append, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_empty", _wrap_IntervalPriceVector_empty, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_size", _wrap_IntervalPriceVector_size, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_swap", _wrap_IntervalPriceVector_swap, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_begin", _wrap_IntervalPriceVector_begin, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_end", _wrap_IntervalPriceVector_end, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_rbegin", _wrap_IntervalPriceVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_rend", _wrap_IntervalPriceVector_rend, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_clear", _wrap_IntervalPriceVector_clear, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_get_allocator", _wrap_IntervalPriceVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_pop_back", _wrap_IntervalPriceVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_erase", _wrap_IntervalPriceVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_IntervalPriceVector", _wrap_new_IntervalPriceVector, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_push_back", _wrap_IntervalPriceVector_push_back, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_front", _wrap_IntervalPriceVector_front, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_back", _wrap_IntervalPriceVector_back, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_assign", _wrap_IntervalPriceVector_assign, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_resize", _wrap_IntervalPriceVector_resize, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_insert", _wrap_IntervalPriceVector_insert, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_reserve", _wrap_IntervalPriceVector_reserve, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_capacity", _wrap_IntervalPriceVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_IntervalPriceVector", _wrap_delete_IntervalPriceVector, METH_VARARGS, NULL},
	 { (char *)"IntervalPriceVector_swigregister", IntervalPriceVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_IntervalPrice", _wrap_new_IntervalPrice, METH_VARARGS, NULL},
	 { (char *)"IntervalPrice_setValue", _wrap_IntervalPrice_setValue, METH_VARARGS, NULL},
	 { (char *)"IntervalPrice_setValues", _wrap_IntervalPrice_setValues, METH_VARARGS, NULL},
	 { (char *)"IntervalPrice_value", _wrap_IntervalPrice_value, METH_VARARGS, NULL},
	 { (char *)"IntervalPrice_open", _wrap_IntervalPrice_open, METH_VARARGS, NULL},
	 { (char *)"IntervalPrice_close", _wrap_IntervalPrice_close, METH_VARARGS, NULL},
	 { (char *)"IntervalPrice_high", _wrap_IntervalPrice_high, METH_VARARGS, NULL},
	 { (char *)"IntervalPrice_low", _wrap_IntervalPrice_low, METH_VARARGS, NULL},
	 { (char *)"IntervalPrice_makeSeries", _wrap_IntervalPrice_makeSeries, METH_VARARGS, NULL},
	 { (char *)"IntervalPrice_extractValues", _wrap_IntervalPrice_extractValues, METH_VARARGS, NULL},
	 { (char *)"IntervalPrice_extractComponent", _wrap_IntervalPrice_extractComponent, METH_VARARGS, NULL},
	 { (char *)"delete_IntervalPrice", _wrap_delete_IntervalPrice, METH_VARARGS, NULL},
	 { (char *)"IntervalPrice_swigregister", IntervalPrice_swigregister, METH_VARARGS, NULL},
	 { (char *)"IndexManager_instance", _wrap_IndexManager_instance, METH_VARARGS, NULL},
	 { (char *)"IndexManager_setHistory", _wrap_IndexManager_setHistory, METH_VARARGS, NULL},
	 { (char *)"IndexManager_getHistory", _wrap_IndexManager_getHistory, METH_VARARGS, NULL},
	 { (char *)"IndexManager_hasHistory", _wrap_IndexManager_hasHistory, METH_VARARGS, NULL},
	 { (char *)"IndexManager_histories", _wrap_IndexManager_histories, METH_VARARGS, NULL},
	 { (char *)"IndexManager_clearHistory", _wrap_IndexManager_clearHistory, METH_VARARGS, NULL},
	 { (char *)"IndexManager_clearHistories", _wrap_IndexManager_clearHistories, METH_VARARGS, NULL},
	 { (char *)"delete_IndexManager", _wrap_delete_IndexManager, METH_VARARGS, NULL},
	 { (char *)"IndexManager_swigregister", IndexManager_swigregister, METH_VARARGS, NULL},
	 { (char *)"Index___deref__", _wrap_Index___deref__, METH_VARARGS, NULL},
	 { (char *)"Index___nonzero__", _wrap_Index___nonzero__, METH_VARARGS, NULL},
	 { (char *)"Index___bool__", _wrap_Index___bool__, METH_VARARGS, NULL},
	 { (char *)"Index_addFixings", _wrap_Index_addFixings, METH_VARARGS, NULL},
	 { (char *)"Index___str__", _wrap_Index___str__, METH_VARARGS, NULL},
	 { (char *)"Index_asObservable", _wrap_Index_asObservable, METH_VARARGS, NULL},
	 { (char *)"new_Index", _wrap_new_Index, METH_VARARGS, NULL},
	 { (char *)"delete_Index", _wrap_delete_Index, METH_VARARGS, NULL},
	 { (char *)"Index_name", _wrap_Index_name, METH_VARARGS, NULL},
	 { (char *)"Index_fixingCalendar", _wrap_Index_fixingCalendar, METH_VARARGS, NULL},
	 { (char *)"Index_isValidFixingDate", _wrap_Index_isValidFixingDate, METH_VARARGS, NULL},
	 { (char *)"Index_fixing", _wrap_Index_fixing, METH_VARARGS, NULL},
	 { (char *)"Index_addFixing", _wrap_Index_addFixing, METH_VARARGS, NULL},
	 { (char *)"Index_swigregister", Index_swigregister, METH_VARARGS, NULL},
	 { (char *)"InterestRateIndex_familyName", _wrap_InterestRateIndex_familyName, METH_VARARGS, NULL},
	 { (char *)"InterestRateIndex_tenor", _wrap_InterestRateIndex_tenor, METH_VARARGS, NULL},
	 { (char *)"InterestRateIndex_fixingDays", _wrap_InterestRateIndex_fixingDays, METH_VARARGS, NULL},
	 { (char *)"InterestRateIndex_fixingDate", _wrap_InterestRateIndex_fixingDate, METH_VARARGS, NULL},
	 { (char *)"InterestRateIndex_currency", _wrap_InterestRateIndex_currency, METH_VARARGS, NULL},
	 { (char *)"InterestRateIndex_dayCounter", _wrap_InterestRateIndex_dayCounter, METH_VARARGS, NULL},
	 { (char *)"InterestRateIndex_maturityDate", _wrap_InterestRateIndex_maturityDate, METH_VARARGS, NULL},
	 { (char *)"InterestRateIndex_valueDate", _wrap_InterestRateIndex_valueDate, METH_VARARGS, NULL},
	 { (char *)"delete_InterestRateIndex", _wrap_delete_InterestRateIndex, METH_VARARGS, NULL},
	 { (char *)"InterestRateIndex_swigregister", InterestRateIndex_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_IborIndex", _wrap_new_IborIndex, METH_VARARGS, NULL},
	 { (char *)"IborIndex_businessDayConvention", _wrap_IborIndex_businessDayConvention, METH_VARARGS, NULL},
	 { (char *)"IborIndex_endOfMonth", _wrap_IborIndex_endOfMonth, METH_VARARGS, NULL},
	 { (char *)"IborIndex_forwardingTermStructure", _wrap_IborIndex_forwardingTermStructure, METH_VARARGS, NULL},
	 { (char *)"IborIndex_clone", _wrap_IborIndex_clone, METH_VARARGS, NULL},
	 { (char *)"delete_IborIndex", _wrap_delete_IborIndex, METH_VARARGS, NULL},
	 { (char *)"IborIndex_swigregister", IborIndex_swigregister, METH_VARARGS, NULL},
	 { (char *)"as_iborindex", _wrap_as_iborindex, METH_VARARGS, NULL},
	 { (char *)"new_OvernightIndex", _wrap_new_OvernightIndex, METH_VARARGS, NULL},
	 { (char *)"delete_OvernightIndex", _wrap_delete_OvernightIndex, METH_VARARGS, NULL},
	 { (char *)"OvernightIndex_swigregister", OvernightIndex_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Libor", _wrap_new_Libor, METH_VARARGS, NULL},
	 { (char *)"delete_Libor", _wrap_delete_Libor, METH_VARARGS, NULL},
	 { (char *)"Libor_swigregister", Libor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SwapIndex", _wrap_new_SwapIndex, METH_VARARGS, NULL},
	 { (char *)"SwapIndex_fixedLegTenor", _wrap_SwapIndex_fixedLegTenor, METH_VARARGS, NULL},
	 { (char *)"SwapIndex_fixedLegConvention", _wrap_SwapIndex_fixedLegConvention, METH_VARARGS, NULL},
	 { (char *)"SwapIndex_iborIndex", _wrap_SwapIndex_iborIndex, METH_VARARGS, NULL},
	 { (char *)"SwapIndex_forwardingTermStructure", _wrap_SwapIndex_forwardingTermStructure, METH_VARARGS, NULL},
	 { (char *)"delete_SwapIndex", _wrap_delete_SwapIndex, METH_VARARGS, NULL},
	 { (char *)"SwapIndex_swigregister", SwapIndex_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AUDLibor", _wrap_new_AUDLibor, METH_VARARGS, NULL},
	 { (char *)"delete_AUDLibor", _wrap_delete_AUDLibor, METH_VARARGS, NULL},
	 { (char *)"AUDLibor_swigregister", AUDLibor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CADLibor", _wrap_new_CADLibor, METH_VARARGS, NULL},
	 { (char *)"delete_CADLibor", _wrap_delete_CADLibor, METH_VARARGS, NULL},
	 { (char *)"CADLibor_swigregister", CADLibor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Cdor", _wrap_new_Cdor, METH_VARARGS, NULL},
	 { (char *)"delete_Cdor", _wrap_delete_Cdor, METH_VARARGS, NULL},
	 { (char *)"Cdor_swigregister", Cdor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CHFLibor", _wrap_new_CHFLibor, METH_VARARGS, NULL},
	 { (char *)"delete_CHFLibor", _wrap_delete_CHFLibor, METH_VARARGS, NULL},
	 { (char *)"CHFLibor_swigregister", CHFLibor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DKKLibor", _wrap_new_DKKLibor, METH_VARARGS, NULL},
	 { (char *)"delete_DKKLibor", _wrap_delete_DKKLibor, METH_VARARGS, NULL},
	 { (char *)"DKKLibor_swigregister", DKKLibor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Bbsw", _wrap_new_Bbsw, METH_VARARGS, NULL},
	 { (char *)"delete_Bbsw", _wrap_delete_Bbsw, METH_VARARGS, NULL},
	 { (char *)"Bbsw_swigregister", Bbsw_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Bbsw1M", _wrap_new_Bbsw1M, METH_VARARGS, NULL},
	 { (char *)"delete_Bbsw1M", _wrap_delete_Bbsw1M, METH_VARARGS, NULL},
	 { (char *)"Bbsw1M_swigregister", Bbsw1M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Bbsw2M", _wrap_new_Bbsw2M, METH_VARARGS, NULL},
	 { (char *)"delete_Bbsw2M", _wrap_delete_Bbsw2M, METH_VARARGS, NULL},
	 { (char *)"Bbsw2M_swigregister", Bbsw2M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Bbsw3M", _wrap_new_Bbsw3M, METH_VARARGS, NULL},
	 { (char *)"delete_Bbsw3M", _wrap_delete_Bbsw3M, METH_VARARGS, NULL},
	 { (char *)"Bbsw3M_swigregister", Bbsw3M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Bbsw4M", _wrap_new_Bbsw4M, METH_VARARGS, NULL},
	 { (char *)"delete_Bbsw4M", _wrap_delete_Bbsw4M, METH_VARARGS, NULL},
	 { (char *)"Bbsw4M_swigregister", Bbsw4M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Bbsw5M", _wrap_new_Bbsw5M, METH_VARARGS, NULL},
	 { (char *)"delete_Bbsw5M", _wrap_delete_Bbsw5M, METH_VARARGS, NULL},
	 { (char *)"Bbsw5M_swigregister", Bbsw5M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Bbsw6M", _wrap_new_Bbsw6M, METH_VARARGS, NULL},
	 { (char *)"delete_Bbsw6M", _wrap_delete_Bbsw6M, METH_VARARGS, NULL},
	 { (char *)"Bbsw6M_swigregister", Bbsw6M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Bkbm", _wrap_new_Bkbm, METH_VARARGS, NULL},
	 { (char *)"delete_Bkbm", _wrap_delete_Bkbm, METH_VARARGS, NULL},
	 { (char *)"Bkbm_swigregister", Bkbm_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Bkbm1M", _wrap_new_Bkbm1M, METH_VARARGS, NULL},
	 { (char *)"delete_Bkbm1M", _wrap_delete_Bkbm1M, METH_VARARGS, NULL},
	 { (char *)"Bkbm1M_swigregister", Bkbm1M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Bkbm2M", _wrap_new_Bkbm2M, METH_VARARGS, NULL},
	 { (char *)"delete_Bkbm2M", _wrap_delete_Bkbm2M, METH_VARARGS, NULL},
	 { (char *)"Bkbm2M_swigregister", Bkbm2M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Bkbm3M", _wrap_new_Bkbm3M, METH_VARARGS, NULL},
	 { (char *)"delete_Bkbm3M", _wrap_delete_Bkbm3M, METH_VARARGS, NULL},
	 { (char *)"Bkbm3M_swigregister", Bkbm3M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Bkbm4M", _wrap_new_Bkbm4M, METH_VARARGS, NULL},
	 { (char *)"delete_Bkbm4M", _wrap_delete_Bkbm4M, METH_VARARGS, NULL},
	 { (char *)"Bkbm4M_swigregister", Bkbm4M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Bkbm5M", _wrap_new_Bkbm5M, METH_VARARGS, NULL},
	 { (char *)"delete_Bkbm5M", _wrap_delete_Bkbm5M, METH_VARARGS, NULL},
	 { (char *)"Bkbm5M_swigregister", Bkbm5M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Bkbm6M", _wrap_new_Bkbm6M, METH_VARARGS, NULL},
	 { (char *)"delete_Bkbm6M", _wrap_delete_Bkbm6M, METH_VARARGS, NULL},
	 { (char *)"Bkbm6M_swigregister", Bkbm6M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor", _wrap_new_Euribor, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor", _wrap_delete_Euribor, METH_VARARGS, NULL},
	 { (char *)"Euribor_swigregister", Euribor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EuriborSW", _wrap_new_EuriborSW, METH_VARARGS, NULL},
	 { (char *)"delete_EuriborSW", _wrap_delete_EuriborSW, METH_VARARGS, NULL},
	 { (char *)"EuriborSW_swigregister", EuriborSW_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor2W", _wrap_new_Euribor2W, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor2W", _wrap_delete_Euribor2W, METH_VARARGS, NULL},
	 { (char *)"Euribor2W_swigregister", Euribor2W_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor3W", _wrap_new_Euribor3W, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor3W", _wrap_delete_Euribor3W, METH_VARARGS, NULL},
	 { (char *)"Euribor3W_swigregister", Euribor3W_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor1M", _wrap_new_Euribor1M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor1M", _wrap_delete_Euribor1M, METH_VARARGS, NULL},
	 { (char *)"Euribor1M_swigregister", Euribor1M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor2M", _wrap_new_Euribor2M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor2M", _wrap_delete_Euribor2M, METH_VARARGS, NULL},
	 { (char *)"Euribor2M_swigregister", Euribor2M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor3M", _wrap_new_Euribor3M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor3M", _wrap_delete_Euribor3M, METH_VARARGS, NULL},
	 { (char *)"Euribor3M_swigregister", Euribor3M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor4M", _wrap_new_Euribor4M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor4M", _wrap_delete_Euribor4M, METH_VARARGS, NULL},
	 { (char *)"Euribor4M_swigregister", Euribor4M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor5M", _wrap_new_Euribor5M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor5M", _wrap_delete_Euribor5M, METH_VARARGS, NULL},
	 { (char *)"Euribor5M_swigregister", Euribor5M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor6M", _wrap_new_Euribor6M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor6M", _wrap_delete_Euribor6M, METH_VARARGS, NULL},
	 { (char *)"Euribor6M_swigregister", Euribor6M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor7M", _wrap_new_Euribor7M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor7M", _wrap_delete_Euribor7M, METH_VARARGS, NULL},
	 { (char *)"Euribor7M_swigregister", Euribor7M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor8M", _wrap_new_Euribor8M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor8M", _wrap_delete_Euribor8M, METH_VARARGS, NULL},
	 { (char *)"Euribor8M_swigregister", Euribor8M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor9M", _wrap_new_Euribor9M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor9M", _wrap_delete_Euribor9M, METH_VARARGS, NULL},
	 { (char *)"Euribor9M_swigregister", Euribor9M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor10M", _wrap_new_Euribor10M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor10M", _wrap_delete_Euribor10M, METH_VARARGS, NULL},
	 { (char *)"Euribor10M_swigregister", Euribor10M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor11M", _wrap_new_Euribor11M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor11M", _wrap_delete_Euribor11M, METH_VARARGS, NULL},
	 { (char *)"Euribor11M_swigregister", Euribor11M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor1Y", _wrap_new_Euribor1Y, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor1Y", _wrap_delete_Euribor1Y, METH_VARARGS, NULL},
	 { (char *)"Euribor1Y_swigregister", Euribor1Y_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor365", _wrap_new_Euribor365, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor365", _wrap_delete_Euribor365, METH_VARARGS, NULL},
	 { (char *)"Euribor365_swigregister", Euribor365_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor365_SW", _wrap_new_Euribor365_SW, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor365_SW", _wrap_delete_Euribor365_SW, METH_VARARGS, NULL},
	 { (char *)"Euribor365_SW_swigregister", Euribor365_SW_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor365_2W", _wrap_new_Euribor365_2W, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor365_2W", _wrap_delete_Euribor365_2W, METH_VARARGS, NULL},
	 { (char *)"Euribor365_2W_swigregister", Euribor365_2W_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor365_3W", _wrap_new_Euribor365_3W, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor365_3W", _wrap_delete_Euribor365_3W, METH_VARARGS, NULL},
	 { (char *)"Euribor365_3W_swigregister", Euribor365_3W_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor365_1M", _wrap_new_Euribor365_1M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor365_1M", _wrap_delete_Euribor365_1M, METH_VARARGS, NULL},
	 { (char *)"Euribor365_1M_swigregister", Euribor365_1M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor365_2M", _wrap_new_Euribor365_2M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor365_2M", _wrap_delete_Euribor365_2M, METH_VARARGS, NULL},
	 { (char *)"Euribor365_2M_swigregister", Euribor365_2M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor365_3M", _wrap_new_Euribor365_3M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor365_3M", _wrap_delete_Euribor365_3M, METH_VARARGS, NULL},
	 { (char *)"Euribor365_3M_swigregister", Euribor365_3M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor365_4M", _wrap_new_Euribor365_4M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor365_4M", _wrap_delete_Euribor365_4M, METH_VARARGS, NULL},
	 { (char *)"Euribor365_4M_swigregister", Euribor365_4M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor365_5M", _wrap_new_Euribor365_5M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor365_5M", _wrap_delete_Euribor365_5M, METH_VARARGS, NULL},
	 { (char *)"Euribor365_5M_swigregister", Euribor365_5M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor365_6M", _wrap_new_Euribor365_6M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor365_6M", _wrap_delete_Euribor365_6M, METH_VARARGS, NULL},
	 { (char *)"Euribor365_6M_swigregister", Euribor365_6M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor365_7M", _wrap_new_Euribor365_7M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor365_7M", _wrap_delete_Euribor365_7M, METH_VARARGS, NULL},
	 { (char *)"Euribor365_7M_swigregister", Euribor365_7M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor365_8M", _wrap_new_Euribor365_8M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor365_8M", _wrap_delete_Euribor365_8M, METH_VARARGS, NULL},
	 { (char *)"Euribor365_8M_swigregister", Euribor365_8M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor365_9M", _wrap_new_Euribor365_9M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor365_9M", _wrap_delete_Euribor365_9M, METH_VARARGS, NULL},
	 { (char *)"Euribor365_9M_swigregister", Euribor365_9M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor365_10M", _wrap_new_Euribor365_10M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor365_10M", _wrap_delete_Euribor365_10M, METH_VARARGS, NULL},
	 { (char *)"Euribor365_10M_swigregister", Euribor365_10M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor365_11M", _wrap_new_Euribor365_11M, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor365_11M", _wrap_delete_Euribor365_11M, METH_VARARGS, NULL},
	 { (char *)"Euribor365_11M_swigregister", Euribor365_11M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Euribor365_1Y", _wrap_new_Euribor365_1Y, METH_VARARGS, NULL},
	 { (char *)"delete_Euribor365_1Y", _wrap_delete_Euribor365_1Y, METH_VARARGS, NULL},
	 { (char *)"Euribor365_1Y_swigregister", Euribor365_1Y_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EURLibor", _wrap_new_EURLibor, METH_VARARGS, NULL},
	 { (char *)"delete_EURLibor", _wrap_delete_EURLibor, METH_VARARGS, NULL},
	 { (char *)"EURLibor_swigregister", EURLibor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EURLiborSW", _wrap_new_EURLiborSW, METH_VARARGS, NULL},
	 { (char *)"delete_EURLiborSW", _wrap_delete_EURLiborSW, METH_VARARGS, NULL},
	 { (char *)"EURLiborSW_swigregister", EURLiborSW_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EURLibor2W", _wrap_new_EURLibor2W, METH_VARARGS, NULL},
	 { (char *)"delete_EURLibor2W", _wrap_delete_EURLibor2W, METH_VARARGS, NULL},
	 { (char *)"EURLibor2W_swigregister", EURLibor2W_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EURLibor1M", _wrap_new_EURLibor1M, METH_VARARGS, NULL},
	 { (char *)"delete_EURLibor1M", _wrap_delete_EURLibor1M, METH_VARARGS, NULL},
	 { (char *)"EURLibor1M_swigregister", EURLibor1M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EURLibor2M", _wrap_new_EURLibor2M, METH_VARARGS, NULL},
	 { (char *)"delete_EURLibor2M", _wrap_delete_EURLibor2M, METH_VARARGS, NULL},
	 { (char *)"EURLibor2M_swigregister", EURLibor2M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EURLibor3M", _wrap_new_EURLibor3M, METH_VARARGS, NULL},
	 { (char *)"delete_EURLibor3M", _wrap_delete_EURLibor3M, METH_VARARGS, NULL},
	 { (char *)"EURLibor3M_swigregister", EURLibor3M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EURLibor4M", _wrap_new_EURLibor4M, METH_VARARGS, NULL},
	 { (char *)"delete_EURLibor4M", _wrap_delete_EURLibor4M, METH_VARARGS, NULL},
	 { (char *)"EURLibor4M_swigregister", EURLibor4M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EURLibor5M", _wrap_new_EURLibor5M, METH_VARARGS, NULL},
	 { (char *)"delete_EURLibor5M", _wrap_delete_EURLibor5M, METH_VARARGS, NULL},
	 { (char *)"EURLibor5M_swigregister", EURLibor5M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EURLibor6M", _wrap_new_EURLibor6M, METH_VARARGS, NULL},
	 { (char *)"delete_EURLibor6M", _wrap_delete_EURLibor6M, METH_VARARGS, NULL},
	 { (char *)"EURLibor6M_swigregister", EURLibor6M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EURLibor7M", _wrap_new_EURLibor7M, METH_VARARGS, NULL},
	 { (char *)"delete_EURLibor7M", _wrap_delete_EURLibor7M, METH_VARARGS, NULL},
	 { (char *)"EURLibor7M_swigregister", EURLibor7M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EURLibor8M", _wrap_new_EURLibor8M, METH_VARARGS, NULL},
	 { (char *)"delete_EURLibor8M", _wrap_delete_EURLibor8M, METH_VARARGS, NULL},
	 { (char *)"EURLibor8M_swigregister", EURLibor8M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EURLibor9M", _wrap_new_EURLibor9M, METH_VARARGS, NULL},
	 { (char *)"delete_EURLibor9M", _wrap_delete_EURLibor9M, METH_VARARGS, NULL},
	 { (char *)"EURLibor9M_swigregister", EURLibor9M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EURLibor10M", _wrap_new_EURLibor10M, METH_VARARGS, NULL},
	 { (char *)"delete_EURLibor10M", _wrap_delete_EURLibor10M, METH_VARARGS, NULL},
	 { (char *)"EURLibor10M_swigregister", EURLibor10M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EURLibor11M", _wrap_new_EURLibor11M, METH_VARARGS, NULL},
	 { (char *)"delete_EURLibor11M", _wrap_delete_EURLibor11M, METH_VARARGS, NULL},
	 { (char *)"EURLibor11M_swigregister", EURLibor11M_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EURLibor1Y", _wrap_new_EURLibor1Y, METH_VARARGS, NULL},
	 { (char *)"delete_EURLibor1Y", _wrap_delete_EURLibor1Y, METH_VARARGS, NULL},
	 { (char *)"EURLibor1Y_swigregister", EURLibor1Y_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GBPLibor", _wrap_new_GBPLibor, METH_VARARGS, NULL},
	 { (char *)"delete_GBPLibor", _wrap_delete_GBPLibor, METH_VARARGS, NULL},
	 { (char *)"GBPLibor_swigregister", GBPLibor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Jibar", _wrap_new_Jibar, METH_VARARGS, NULL},
	 { (char *)"delete_Jibar", _wrap_delete_Jibar, METH_VARARGS, NULL},
	 { (char *)"Jibar_swigregister", Jibar_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_JPYLibor", _wrap_new_JPYLibor, METH_VARARGS, NULL},
	 { (char *)"delete_JPYLibor", _wrap_delete_JPYLibor, METH_VARARGS, NULL},
	 { (char *)"JPYLibor_swigregister", JPYLibor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_NZDLibor", _wrap_new_NZDLibor, METH_VARARGS, NULL},
	 { (char *)"delete_NZDLibor", _wrap_delete_NZDLibor, METH_VARARGS, NULL},
	 { (char *)"NZDLibor_swigregister", NZDLibor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SEKLibor", _wrap_new_SEKLibor, METH_VARARGS, NULL},
	 { (char *)"delete_SEKLibor", _wrap_delete_SEKLibor, METH_VARARGS, NULL},
	 { (char *)"SEKLibor_swigregister", SEKLibor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Tibor", _wrap_new_Tibor, METH_VARARGS, NULL},
	 { (char *)"delete_Tibor", _wrap_delete_Tibor, METH_VARARGS, NULL},
	 { (char *)"Tibor_swigregister", Tibor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_TRLibor", _wrap_new_TRLibor, METH_VARARGS, NULL},
	 { (char *)"delete_TRLibor", _wrap_delete_TRLibor, METH_VARARGS, NULL},
	 { (char *)"TRLibor_swigregister", TRLibor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_USDLibor", _wrap_new_USDLibor, METH_VARARGS, NULL},
	 { (char *)"delete_USDLibor", _wrap_delete_USDLibor, METH_VARARGS, NULL},
	 { (char *)"USDLibor_swigregister", USDLibor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Zibor", _wrap_new_Zibor, METH_VARARGS, NULL},
	 { (char *)"delete_Zibor", _wrap_delete_Zibor, METH_VARARGS, NULL},
	 { (char *)"Zibor_swigregister", Zibor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Aonia", _wrap_new_Aonia, METH_VARARGS, NULL},
	 { (char *)"delete_Aonia", _wrap_delete_Aonia, METH_VARARGS, NULL},
	 { (char *)"Aonia_swigregister", Aonia_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Eonia", _wrap_new_Eonia, METH_VARARGS, NULL},
	 { (char *)"delete_Eonia", _wrap_delete_Eonia, METH_VARARGS, NULL},
	 { (char *)"Eonia_swigregister", Eonia_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Sonia", _wrap_new_Sonia, METH_VARARGS, NULL},
	 { (char *)"delete_Sonia", _wrap_delete_Sonia, METH_VARARGS, NULL},
	 { (char *)"Sonia_swigregister", Sonia_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FedFunds", _wrap_new_FedFunds, METH_VARARGS, NULL},
	 { (char *)"delete_FedFunds", _wrap_delete_FedFunds, METH_VARARGS, NULL},
	 { (char *)"FedFunds_swigregister", FedFunds_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Nzocr", _wrap_new_Nzocr, METH_VARARGS, NULL},
	 { (char *)"delete_Nzocr", _wrap_delete_Nzocr, METH_VARARGS, NULL},
	 { (char *)"Nzocr_swigregister", Nzocr_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EuriborSwapIsdaFixA", _wrap_new_EuriborSwapIsdaFixA, METH_VARARGS, NULL},
	 { (char *)"delete_EuriborSwapIsdaFixA", _wrap_delete_EuriborSwapIsdaFixA, METH_VARARGS, NULL},
	 { (char *)"EuriborSwapIsdaFixA_swigregister", EuriborSwapIsdaFixA_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EuriborSwapIsdaFixB", _wrap_new_EuriborSwapIsdaFixB, METH_VARARGS, NULL},
	 { (char *)"delete_EuriborSwapIsdaFixB", _wrap_delete_EuriborSwapIsdaFixB, METH_VARARGS, NULL},
	 { (char *)"EuriborSwapIsdaFixB_swigregister", EuriborSwapIsdaFixB_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EuriborSwapIfrFix", _wrap_new_EuriborSwapIfrFix, METH_VARARGS, NULL},
	 { (char *)"delete_EuriborSwapIfrFix", _wrap_delete_EuriborSwapIfrFix, METH_VARARGS, NULL},
	 { (char *)"EuriborSwapIfrFix_swigregister", EuriborSwapIfrFix_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EurLiborSwapIsdaFixA", _wrap_new_EurLiborSwapIsdaFixA, METH_VARARGS, NULL},
	 { (char *)"delete_EurLiborSwapIsdaFixA", _wrap_delete_EurLiborSwapIsdaFixA, METH_VARARGS, NULL},
	 { (char *)"EurLiborSwapIsdaFixA_swigregister", EurLiborSwapIsdaFixA_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EurLiborSwapIsdaFixB", _wrap_new_EurLiborSwapIsdaFixB, METH_VARARGS, NULL},
	 { (char *)"delete_EurLiborSwapIsdaFixB", _wrap_delete_EurLiborSwapIsdaFixB, METH_VARARGS, NULL},
	 { (char *)"EurLiborSwapIsdaFixB_swigregister", EurLiborSwapIsdaFixB_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EurLiborSwapIfrFix", _wrap_new_EurLiborSwapIfrFix, METH_VARARGS, NULL},
	 { (char *)"delete_EurLiborSwapIfrFix", _wrap_delete_EurLiborSwapIfrFix, METH_VARARGS, NULL},
	 { (char *)"EurLiborSwapIfrFix_swigregister", EurLiborSwapIfrFix_swigregister, METH_VARARGS, NULL},
	 { (char *)"Brent_setMaxEvaluations", _wrap_Brent_setMaxEvaluations, METH_VARARGS, NULL},
	 { (char *)"Brent_setLowerBound", _wrap_Brent_setLowerBound, METH_VARARGS, NULL},
	 { (char *)"Brent_setUpperBound", _wrap_Brent_setUpperBound, METH_VARARGS, NULL},
	 { (char *)"Brent_solve", _wrap_Brent_solve, METH_VARARGS, NULL},
	 { (char *)"new_Brent", _wrap_new_Brent, METH_VARARGS, NULL},
	 { (char *)"delete_Brent", _wrap_delete_Brent, METH_VARARGS, NULL},
	 { (char *)"Brent_swigregister", Brent_swigregister, METH_VARARGS, NULL},
	 { (char *)"Bisection_setMaxEvaluations", _wrap_Bisection_setMaxEvaluations, METH_VARARGS, NULL},
	 { (char *)"Bisection_setLowerBound", _wrap_Bisection_setLowerBound, METH_VARARGS, NULL},
	 { (char *)"Bisection_setUpperBound", _wrap_Bisection_setUpperBound, METH_VARARGS, NULL},
	 { (char *)"Bisection_solve", _wrap_Bisection_solve, METH_VARARGS, NULL},
	 { (char *)"new_Bisection", _wrap_new_Bisection, METH_VARARGS, NULL},
	 { (char *)"delete_Bisection", _wrap_delete_Bisection, METH_VARARGS, NULL},
	 { (char *)"Bisection_swigregister", Bisection_swigregister, METH_VARARGS, NULL},
	 { (char *)"FalsePosition_setMaxEvaluations", _wrap_FalsePosition_setMaxEvaluations, METH_VARARGS, NULL},
	 { (char *)"FalsePosition_setLowerBound", _wrap_FalsePosition_setLowerBound, METH_VARARGS, NULL},
	 { (char *)"FalsePosition_setUpperBound", _wrap_FalsePosition_setUpperBound, METH_VARARGS, NULL},
	 { (char *)"FalsePosition_solve", _wrap_FalsePosition_solve, METH_VARARGS, NULL},
	 { (char *)"new_FalsePosition", _wrap_new_FalsePosition, METH_VARARGS, NULL},
	 { (char *)"delete_FalsePosition", _wrap_delete_FalsePosition, METH_VARARGS, NULL},
	 { (char *)"FalsePosition_swigregister", FalsePosition_swigregister, METH_VARARGS, NULL},
	 { (char *)"Ridder_setMaxEvaluations", _wrap_Ridder_setMaxEvaluations, METH_VARARGS, NULL},
	 { (char *)"Ridder_setLowerBound", _wrap_Ridder_setLowerBound, METH_VARARGS, NULL},
	 { (char *)"Ridder_setUpperBound", _wrap_Ridder_setUpperBound, METH_VARARGS, NULL},
	 { (char *)"Ridder_solve", _wrap_Ridder_solve, METH_VARARGS, NULL},
	 { (char *)"new_Ridder", _wrap_new_Ridder, METH_VARARGS, NULL},
	 { (char *)"delete_Ridder", _wrap_delete_Ridder, METH_VARARGS, NULL},
	 { (char *)"Ridder_swigregister", Ridder_swigregister, METH_VARARGS, NULL},
	 { (char *)"Secant_setMaxEvaluations", _wrap_Secant_setMaxEvaluations, METH_VARARGS, NULL},
	 { (char *)"Secant_setLowerBound", _wrap_Secant_setLowerBound, METH_VARARGS, NULL},
	 { (char *)"Secant_setUpperBound", _wrap_Secant_setUpperBound, METH_VARARGS, NULL},
	 { (char *)"Secant_solve", _wrap_Secant_solve, METH_VARARGS, NULL},
	 { (char *)"new_Secant", _wrap_new_Secant, METH_VARARGS, NULL},
	 { (char *)"delete_Secant", _wrap_delete_Secant, METH_VARARGS, NULL},
	 { (char *)"Secant_swigregister", Secant_swigregister, METH_VARARGS, NULL},
	 { (char *)"Newton_setMaxEvaluations", _wrap_Newton_setMaxEvaluations, METH_VARARGS, NULL},
	 { (char *)"Newton_setLowerBound", _wrap_Newton_setLowerBound, METH_VARARGS, NULL},
	 { (char *)"Newton_setUpperBound", _wrap_Newton_setUpperBound, METH_VARARGS, NULL},
	 { (char *)"Newton_solve", _wrap_Newton_solve, METH_VARARGS, NULL},
	 { (char *)"new_Newton", _wrap_new_Newton, METH_VARARGS, NULL},
	 { (char *)"delete_Newton", _wrap_delete_Newton, METH_VARARGS, NULL},
	 { (char *)"Newton_swigregister", Newton_swigregister, METH_VARARGS, NULL},
	 { (char *)"NewtonSafe_setMaxEvaluations", _wrap_NewtonSafe_setMaxEvaluations, METH_VARARGS, NULL},
	 { (char *)"NewtonSafe_setLowerBound", _wrap_NewtonSafe_setLowerBound, METH_VARARGS, NULL},
	 { (char *)"NewtonSafe_setUpperBound", _wrap_NewtonSafe_setUpperBound, METH_VARARGS, NULL},
	 { (char *)"NewtonSafe_solve", _wrap_NewtonSafe_solve, METH_VARARGS, NULL},
	 { (char *)"new_NewtonSafe", _wrap_new_NewtonSafe, METH_VARARGS, NULL},
	 { (char *)"delete_NewtonSafe", _wrap_delete_NewtonSafe, METH_VARARGS, NULL},
	 { (char *)"NewtonSafe_swigregister", NewtonSafe_swigregister, METH_VARARGS, NULL},
	 { (char *)"delete_Constraint", _wrap_delete_Constraint, METH_VARARGS, NULL},
	 { (char *)"Constraint_swigregister", Constraint_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BoundaryConstraint", _wrap_new_BoundaryConstraint, METH_VARARGS, NULL},
	 { (char *)"delete_BoundaryConstraint", _wrap_delete_BoundaryConstraint, METH_VARARGS, NULL},
	 { (char *)"BoundaryConstraint_swigregister", BoundaryConstraint_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_NoConstraint", _wrap_new_NoConstraint, METH_VARARGS, NULL},
	 { (char *)"delete_NoConstraint", _wrap_delete_NoConstraint, METH_VARARGS, NULL},
	 { (char *)"NoConstraint_swigregister", NoConstraint_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PositiveConstraint", _wrap_new_PositiveConstraint, METH_VARARGS, NULL},
	 { (char *)"delete_PositiveConstraint", _wrap_delete_PositiveConstraint, METH_VARARGS, NULL},
	 { (char *)"PositiveConstraint_swigregister", PositiveConstraint_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CompositeConstraint", _wrap_new_CompositeConstraint, METH_VARARGS, NULL},
	 { (char *)"delete_CompositeConstraint", _wrap_delete_CompositeConstraint, METH_VARARGS, NULL},
	 { (char *)"CompositeConstraint_swigregister", CompositeConstraint_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_NonhomogeneousBoundaryConstraint", _wrap_new_NonhomogeneousBoundaryConstraint, METH_VARARGS, NULL},
	 { (char *)"delete_NonhomogeneousBoundaryConstraint", _wrap_delete_NonhomogeneousBoundaryConstraint, METH_VARARGS, NULL},
	 { (char *)"NonhomogeneousBoundaryConstraint_swigregister", NonhomogeneousBoundaryConstraint_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EndCriteria", _wrap_new_EndCriteria, METH_VARARGS, NULL},
	 { (char *)"EndCriteria___call__", _wrap_EndCriteria___call__, METH_VARARGS, NULL},
	 { (char *)"delete_EndCriteria", _wrap_delete_EndCriteria, METH_VARARGS, NULL},
	 { (char *)"EndCriteria_swigregister", EndCriteria_swigregister, METH_VARARGS, NULL},
	 { (char *)"delete_OptimizationMethod", _wrap_delete_OptimizationMethod, METH_VARARGS, NULL},
	 { (char *)"OptimizationMethod_swigregister", OptimizationMethod_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ConjugateGradient", _wrap_new_ConjugateGradient, METH_VARARGS, NULL},
	 { (char *)"delete_ConjugateGradient", _wrap_delete_ConjugateGradient, METH_VARARGS, NULL},
	 { (char *)"ConjugateGradient_swigregister", ConjugateGradient_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Simplex", _wrap_new_Simplex, METH_VARARGS, NULL},
	 { (char *)"delete_Simplex", _wrap_delete_Simplex, METH_VARARGS, NULL},
	 { (char *)"Simplex_swigregister", Simplex_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SteepestDescent", _wrap_new_SteepestDescent, METH_VARARGS, NULL},
	 { (char *)"delete_SteepestDescent", _wrap_delete_SteepestDescent, METH_VARARGS, NULL},
	 { (char *)"SteepestDescent_swigregister", SteepestDescent_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BFGS", _wrap_new_BFGS, METH_VARARGS, NULL},
	 { (char *)"delete_BFGS", _wrap_delete_BFGS, METH_VARARGS, NULL},
	 { (char *)"BFGS_swigregister", BFGS_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_LevenbergMarquardt", _wrap_new_LevenbergMarquardt, METH_VARARGS, NULL},
	 { (char *)"delete_LevenbergMarquardt", _wrap_delete_LevenbergMarquardt, METH_VARARGS, NULL},
	 { (char *)"LevenbergMarquardt_swigregister", LevenbergMarquardt_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DifferentialEvolution", _wrap_new_DifferentialEvolution, METH_VARARGS, NULL},
	 { (char *)"delete_DifferentialEvolution", _wrap_delete_DifferentialEvolution, METH_VARARGS, NULL},
	 { (char *)"DifferentialEvolution_swigregister", DifferentialEvolution_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SamplerGaussian", _wrap_new_SamplerGaussian, METH_VARARGS, NULL},
	 { (char *)"delete_SamplerGaussian", _wrap_delete_SamplerGaussian, METH_VARARGS, NULL},
	 { (char *)"SamplerGaussian_swigregister", SamplerGaussian_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SamplerLogNormal", _wrap_new_SamplerLogNormal, METH_VARARGS, NULL},
	 { (char *)"delete_SamplerLogNormal", _wrap_delete_SamplerLogNormal, METH_VARARGS, NULL},
	 { (char *)"SamplerLogNormal_swigregister", SamplerLogNormal_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SamplerMirrorGaussian", _wrap_new_SamplerMirrorGaussian, METH_VARARGS, NULL},
	 { (char *)"delete_SamplerMirrorGaussian", _wrap_delete_SamplerMirrorGaussian, METH_VARARGS, NULL},
	 { (char *)"SamplerMirrorGaussian_swigregister", SamplerMirrorGaussian_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ProbabilityBoltzmannDownhill", _wrap_new_ProbabilityBoltzmannDownhill, METH_VARARGS, NULL},
	 { (char *)"delete_ProbabilityBoltzmannDownhill", _wrap_delete_ProbabilityBoltzmannDownhill, METH_VARARGS, NULL},
	 { (char *)"ProbabilityBoltzmannDownhill_swigregister", ProbabilityBoltzmannDownhill_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_TemperatureExponential", _wrap_new_TemperatureExponential, METH_VARARGS, NULL},
	 { (char *)"delete_TemperatureExponential", _wrap_delete_TemperatureExponential, METH_VARARGS, NULL},
	 { (char *)"TemperatureExponential_swigregister", TemperatureExponential_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ReannealingTrivial", _wrap_new_ReannealingTrivial, METH_VARARGS, NULL},
	 { (char *)"delete_ReannealingTrivial", _wrap_delete_ReannealingTrivial, METH_VARARGS, NULL},
	 { (char *)"ReannealingTrivial_swigregister", ReannealingTrivial_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GaussianSimulatedAnnealing", _wrap_new_GaussianSimulatedAnnealing, METH_VARARGS, NULL},
	 { (char *)"delete_GaussianSimulatedAnnealing", _wrap_delete_GaussianSimulatedAnnealing, METH_VARARGS, NULL},
	 { (char *)"GaussianSimulatedAnnealing_swigregister", GaussianSimulatedAnnealing_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MirrorGaussianSimulatedAnnealing", _wrap_new_MirrorGaussianSimulatedAnnealing, METH_VARARGS, NULL},
	 { (char *)"delete_MirrorGaussianSimulatedAnnealing", _wrap_delete_MirrorGaussianSimulatedAnnealing, METH_VARARGS, NULL},
	 { (char *)"MirrorGaussianSimulatedAnnealing_swigregister", MirrorGaussianSimulatedAnnealing_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_LogNormalSimulatedAnnealing", _wrap_new_LogNormalSimulatedAnnealing, METH_VARARGS, NULL},
	 { (char *)"delete_LogNormalSimulatedAnnealing", _wrap_delete_LogNormalSimulatedAnnealing, METH_VARARGS, NULL},
	 { (char *)"LogNormalSimulatedAnnealing_swigregister", LogNormalSimulatedAnnealing_swigregister, METH_VARARGS, NULL},
	 { (char *)"Optimizer_solve", _wrap_Optimizer_solve, METH_VARARGS, NULL},
	 { (char *)"new_Optimizer", _wrap_new_Optimizer, METH_VARARGS, NULL},
	 { (char *)"delete_Optimizer", _wrap_delete_Optimizer, METH_VARARGS, NULL},
	 { (char *)"Optimizer_swigregister", Optimizer_swigregister, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure___deref__", _wrap_BlackVolTermStructure___deref__, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure___nonzero__", _wrap_BlackVolTermStructure___nonzero__, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure___bool__", _wrap_BlackVolTermStructure___bool__, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure_asObservable", _wrap_BlackVolTermStructure_asObservable, METH_VARARGS, NULL},
	 { (char *)"new_BlackVolTermStructure", _wrap_new_BlackVolTermStructure, METH_VARARGS, NULL},
	 { (char *)"delete_BlackVolTermStructure", _wrap_delete_BlackVolTermStructure, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure_referenceDate", _wrap_BlackVolTermStructure_referenceDate, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure_dayCounter", _wrap_BlackVolTermStructure_dayCounter, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure_calendar", _wrap_BlackVolTermStructure_calendar, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure_maxDate", _wrap_BlackVolTermStructure_maxDate, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure_maxTime", _wrap_BlackVolTermStructure_maxTime, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure_minStrike", _wrap_BlackVolTermStructure_minStrike, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure_maxStrike", _wrap_BlackVolTermStructure_maxStrike, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure_blackVol", _wrap_BlackVolTermStructure_blackVol, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure_blackVariance", _wrap_BlackVolTermStructure_blackVariance, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure_blackForwardVol", _wrap_BlackVolTermStructure_blackForwardVol, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure_blackForwardVariance", _wrap_BlackVolTermStructure_blackForwardVariance, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure_enableExtrapolation", _wrap_BlackVolTermStructure_enableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure_disableExtrapolation", _wrap_BlackVolTermStructure_disableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure_allowsExtrapolation", _wrap_BlackVolTermStructure_allowsExtrapolation, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructure_swigregister", BlackVolTermStructure_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BlackVolTermStructureHandle", _wrap_new_BlackVolTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle___deref__", _wrap_BlackVolTermStructureHandle___deref__, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle___nonzero__", _wrap_BlackVolTermStructureHandle___nonzero__, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle___bool__", _wrap_BlackVolTermStructureHandle___bool__, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle_asObservable", _wrap_BlackVolTermStructureHandle_asObservable, METH_VARARGS, NULL},
	 { (char *)"delete_BlackVolTermStructureHandle", _wrap_delete_BlackVolTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle_referenceDate", _wrap_BlackVolTermStructureHandle_referenceDate, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle_dayCounter", _wrap_BlackVolTermStructureHandle_dayCounter, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle_calendar", _wrap_BlackVolTermStructureHandle_calendar, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle_maxDate", _wrap_BlackVolTermStructureHandle_maxDate, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle_maxTime", _wrap_BlackVolTermStructureHandle_maxTime, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle_minStrike", _wrap_BlackVolTermStructureHandle_minStrike, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle_maxStrike", _wrap_BlackVolTermStructureHandle_maxStrike, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle_blackVol", _wrap_BlackVolTermStructureHandle_blackVol, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle_blackVariance", _wrap_BlackVolTermStructureHandle_blackVariance, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle_blackForwardVol", _wrap_BlackVolTermStructureHandle_blackForwardVol, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle_blackForwardVariance", _wrap_BlackVolTermStructureHandle_blackForwardVariance, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle_enableExtrapolation", _wrap_BlackVolTermStructureHandle_enableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle_disableExtrapolation", _wrap_BlackVolTermStructureHandle_disableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle_allowsExtrapolation", _wrap_BlackVolTermStructureHandle_allowsExtrapolation, METH_VARARGS, NULL},
	 { (char *)"BlackVolTermStructureHandle_swigregister", BlackVolTermStructureHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_RelinkableBlackVolTermStructureHandle", _wrap_new_RelinkableBlackVolTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableBlackVolTermStructureHandle_linkTo", _wrap_RelinkableBlackVolTermStructureHandle_linkTo, METH_VARARGS, NULL},
	 { (char *)"delete_RelinkableBlackVolTermStructureHandle", _wrap_delete_RelinkableBlackVolTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableBlackVolTermStructureHandle_swigregister", RelinkableBlackVolTermStructureHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructure___deref__", _wrap_LocalVolTermStructure___deref__, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructure___nonzero__", _wrap_LocalVolTermStructure___nonzero__, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructure___bool__", _wrap_LocalVolTermStructure___bool__, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructure_asObservable", _wrap_LocalVolTermStructure_asObservable, METH_VARARGS, NULL},
	 { (char *)"new_LocalVolTermStructure", _wrap_new_LocalVolTermStructure, METH_VARARGS, NULL},
	 { (char *)"delete_LocalVolTermStructure", _wrap_delete_LocalVolTermStructure, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructure_referenceDate", _wrap_LocalVolTermStructure_referenceDate, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructure_dayCounter", _wrap_LocalVolTermStructure_dayCounter, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructure_calendar", _wrap_LocalVolTermStructure_calendar, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructure_maxDate", _wrap_LocalVolTermStructure_maxDate, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructure_maxTime", _wrap_LocalVolTermStructure_maxTime, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructure_minStrike", _wrap_LocalVolTermStructure_minStrike, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructure_maxStrike", _wrap_LocalVolTermStructure_maxStrike, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructure_localVol", _wrap_LocalVolTermStructure_localVol, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructure_enableExtrapolation", _wrap_LocalVolTermStructure_enableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructure_disableExtrapolation", _wrap_LocalVolTermStructure_disableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructure_allowsExtrapolation", _wrap_LocalVolTermStructure_allowsExtrapolation, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructure_swigregister", LocalVolTermStructure_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_LocalVolTermStructureHandle", _wrap_new_LocalVolTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructureHandle___deref__", _wrap_LocalVolTermStructureHandle___deref__, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructureHandle___nonzero__", _wrap_LocalVolTermStructureHandle___nonzero__, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructureHandle___bool__", _wrap_LocalVolTermStructureHandle___bool__, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructureHandle_asObservable", _wrap_LocalVolTermStructureHandle_asObservable, METH_VARARGS, NULL},
	 { (char *)"delete_LocalVolTermStructureHandle", _wrap_delete_LocalVolTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructureHandle_referenceDate", _wrap_LocalVolTermStructureHandle_referenceDate, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructureHandle_dayCounter", _wrap_LocalVolTermStructureHandle_dayCounter, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructureHandle_calendar", _wrap_LocalVolTermStructureHandle_calendar, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructureHandle_maxDate", _wrap_LocalVolTermStructureHandle_maxDate, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructureHandle_maxTime", _wrap_LocalVolTermStructureHandle_maxTime, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructureHandle_minStrike", _wrap_LocalVolTermStructureHandle_minStrike, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructureHandle_maxStrike", _wrap_LocalVolTermStructureHandle_maxStrike, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructureHandle_localVol", _wrap_LocalVolTermStructureHandle_localVol, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructureHandle_enableExtrapolation", _wrap_LocalVolTermStructureHandle_enableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructureHandle_disableExtrapolation", _wrap_LocalVolTermStructureHandle_disableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructureHandle_allowsExtrapolation", _wrap_LocalVolTermStructureHandle_allowsExtrapolation, METH_VARARGS, NULL},
	 { (char *)"LocalVolTermStructureHandle_swigregister", LocalVolTermStructureHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_RelinkableLocalVolTermStructureHandle", _wrap_new_RelinkableLocalVolTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableLocalVolTermStructureHandle_linkTo", _wrap_RelinkableLocalVolTermStructureHandle_linkTo, METH_VARARGS, NULL},
	 { (char *)"delete_RelinkableLocalVolTermStructureHandle", _wrap_delete_RelinkableLocalVolTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableLocalVolTermStructureHandle_swigregister", RelinkableLocalVolTermStructureHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructure___deref__", _wrap_OptionletVolatilityStructure___deref__, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructure___nonzero__", _wrap_OptionletVolatilityStructure___nonzero__, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructure___bool__", _wrap_OptionletVolatilityStructure___bool__, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructure_asObservable", _wrap_OptionletVolatilityStructure_asObservable, METH_VARARGS, NULL},
	 { (char *)"new_OptionletVolatilityStructure", _wrap_new_OptionletVolatilityStructure, METH_VARARGS, NULL},
	 { (char *)"delete_OptionletVolatilityStructure", _wrap_delete_OptionletVolatilityStructure, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructure_referenceDate", _wrap_OptionletVolatilityStructure_referenceDate, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructure_dayCounter", _wrap_OptionletVolatilityStructure_dayCounter, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructure_calendar", _wrap_OptionletVolatilityStructure_calendar, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructure_maxDate", _wrap_OptionletVolatilityStructure_maxDate, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructure_maxTime", _wrap_OptionletVolatilityStructure_maxTime, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructure_minStrike", _wrap_OptionletVolatilityStructure_minStrike, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructure_maxStrike", _wrap_OptionletVolatilityStructure_maxStrike, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructure_volatility", _wrap_OptionletVolatilityStructure_volatility, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructure_blackVariance", _wrap_OptionletVolatilityStructure_blackVariance, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructure_enableExtrapolation", _wrap_OptionletVolatilityStructure_enableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructure_disableExtrapolation", _wrap_OptionletVolatilityStructure_disableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructure_allowsExtrapolation", _wrap_OptionletVolatilityStructure_allowsExtrapolation, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructure_swigregister", OptionletVolatilityStructure_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_OptionletVolatilityStructureHandle", _wrap_new_OptionletVolatilityStructureHandle, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructureHandle___deref__", _wrap_OptionletVolatilityStructureHandle___deref__, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructureHandle___nonzero__", _wrap_OptionletVolatilityStructureHandle___nonzero__, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructureHandle___bool__", _wrap_OptionletVolatilityStructureHandle___bool__, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructureHandle_asObservable", _wrap_OptionletVolatilityStructureHandle_asObservable, METH_VARARGS, NULL},
	 { (char *)"delete_OptionletVolatilityStructureHandle", _wrap_delete_OptionletVolatilityStructureHandle, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructureHandle_referenceDate", _wrap_OptionletVolatilityStructureHandle_referenceDate, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructureHandle_dayCounter", _wrap_OptionletVolatilityStructureHandle_dayCounter, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructureHandle_calendar", _wrap_OptionletVolatilityStructureHandle_calendar, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructureHandle_maxDate", _wrap_OptionletVolatilityStructureHandle_maxDate, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructureHandle_maxTime", _wrap_OptionletVolatilityStructureHandle_maxTime, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructureHandle_minStrike", _wrap_OptionletVolatilityStructureHandle_minStrike, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructureHandle_maxStrike", _wrap_OptionletVolatilityStructureHandle_maxStrike, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructureHandle_volatility", _wrap_OptionletVolatilityStructureHandle_volatility, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructureHandle_blackVariance", _wrap_OptionletVolatilityStructureHandle_blackVariance, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructureHandle_enableExtrapolation", _wrap_OptionletVolatilityStructureHandle_enableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructureHandle_disableExtrapolation", _wrap_OptionletVolatilityStructureHandle_disableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructureHandle_allowsExtrapolation", _wrap_OptionletVolatilityStructureHandle_allowsExtrapolation, METH_VARARGS, NULL},
	 { (char *)"OptionletVolatilityStructureHandle_swigregister", OptionletVolatilityStructureHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_RelinkableOptionletVolatilityStructureHandle", _wrap_new_RelinkableOptionletVolatilityStructureHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableOptionletVolatilityStructureHandle_linkTo", _wrap_RelinkableOptionletVolatilityStructureHandle_linkTo, METH_VARARGS, NULL},
	 { (char *)"delete_RelinkableOptionletVolatilityStructureHandle", _wrap_delete_RelinkableOptionletVolatilityStructureHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableOptionletVolatilityStructureHandle_swigregister", RelinkableOptionletVolatilityStructureHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructure___deref__", _wrap_SwaptionVolatilityStructure___deref__, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructure___nonzero__", _wrap_SwaptionVolatilityStructure___nonzero__, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructure___bool__", _wrap_SwaptionVolatilityStructure___bool__, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructure_asObservable", _wrap_SwaptionVolatilityStructure_asObservable, METH_VARARGS, NULL},
	 { (char *)"new_SwaptionVolatilityStructure", _wrap_new_SwaptionVolatilityStructure, METH_VARARGS, NULL},
	 { (char *)"delete_SwaptionVolatilityStructure", _wrap_delete_SwaptionVolatilityStructure, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructure_referenceDate", _wrap_SwaptionVolatilityStructure_referenceDate, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructure_dayCounter", _wrap_SwaptionVolatilityStructure_dayCounter, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructure_calendar", _wrap_SwaptionVolatilityStructure_calendar, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructure_maxSwapTenor", _wrap_SwaptionVolatilityStructure_maxSwapTenor, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructure_maxSwapLength", _wrap_SwaptionVolatilityStructure_maxSwapLength, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructure_minStrike", _wrap_SwaptionVolatilityStructure_minStrike, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructure_maxStrike", _wrap_SwaptionVolatilityStructure_maxStrike, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructure_volatility", _wrap_SwaptionVolatilityStructure_volatility, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructure_blackVariance", _wrap_SwaptionVolatilityStructure_blackVariance, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructure_optionDateFromTenor", _wrap_SwaptionVolatilityStructure_optionDateFromTenor, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructure_enableExtrapolation", _wrap_SwaptionVolatilityStructure_enableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructure_disableExtrapolation", _wrap_SwaptionVolatilityStructure_disableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructure_allowsExtrapolation", _wrap_SwaptionVolatilityStructure_allowsExtrapolation, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructure_swigregister", SwaptionVolatilityStructure_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SwaptionVolatilityStructureHandle", _wrap_new_SwaptionVolatilityStructureHandle, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructureHandle___deref__", _wrap_SwaptionVolatilityStructureHandle___deref__, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructureHandle___nonzero__", _wrap_SwaptionVolatilityStructureHandle___nonzero__, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructureHandle___bool__", _wrap_SwaptionVolatilityStructureHandle___bool__, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructureHandle_asObservable", _wrap_SwaptionVolatilityStructureHandle_asObservable, METH_VARARGS, NULL},
	 { (char *)"delete_SwaptionVolatilityStructureHandle", _wrap_delete_SwaptionVolatilityStructureHandle, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructureHandle_referenceDate", _wrap_SwaptionVolatilityStructureHandle_referenceDate, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructureHandle_dayCounter", _wrap_SwaptionVolatilityStructureHandle_dayCounter, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructureHandle_calendar", _wrap_SwaptionVolatilityStructureHandle_calendar, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructureHandle_maxSwapTenor", _wrap_SwaptionVolatilityStructureHandle_maxSwapTenor, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructureHandle_maxSwapLength", _wrap_SwaptionVolatilityStructureHandle_maxSwapLength, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructureHandle_minStrike", _wrap_SwaptionVolatilityStructureHandle_minStrike, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructureHandle_maxStrike", _wrap_SwaptionVolatilityStructureHandle_maxStrike, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructureHandle_volatility", _wrap_SwaptionVolatilityStructureHandle_volatility, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructureHandle_blackVariance", _wrap_SwaptionVolatilityStructureHandle_blackVariance, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructureHandle_optionDateFromTenor", _wrap_SwaptionVolatilityStructureHandle_optionDateFromTenor, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructureHandle_enableExtrapolation", _wrap_SwaptionVolatilityStructureHandle_enableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructureHandle_disableExtrapolation", _wrap_SwaptionVolatilityStructureHandle_disableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructureHandle_allowsExtrapolation", _wrap_SwaptionVolatilityStructureHandle_allowsExtrapolation, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityStructureHandle_swigregister", SwaptionVolatilityStructureHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_RelinkableSwaptionVolatilityStructureHandle", _wrap_new_RelinkableSwaptionVolatilityStructureHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableSwaptionVolatilityStructureHandle_linkTo", _wrap_RelinkableSwaptionVolatilityStructureHandle_linkTo, METH_VARARGS, NULL},
	 { (char *)"delete_RelinkableSwaptionVolatilityStructureHandle", _wrap_delete_RelinkableSwaptionVolatilityStructureHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableSwaptionVolatilityStructureHandle_swigregister", RelinkableSwaptionVolatilityStructureHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BlackConstantVol", _wrap_new_BlackConstantVol, METH_VARARGS, NULL},
	 { (char *)"delete_BlackConstantVol", _wrap_delete_BlackConstantVol, METH_VARARGS, NULL},
	 { (char *)"BlackConstantVol_swigregister", BlackConstantVol_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BlackVarianceCurve", _wrap_new_BlackVarianceCurve, METH_VARARGS, NULL},
	 { (char *)"delete_BlackVarianceCurve", _wrap_delete_BlackVarianceCurve, METH_VARARGS, NULL},
	 { (char *)"BlackVarianceCurve_swigregister", BlackVarianceCurve_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BlackVarianceSurface", (PyCFunction) _wrap_new_BlackVarianceSurface, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"BlackVarianceSurface_setInterpolation", _wrap_BlackVarianceSurface_setInterpolation, METH_VARARGS, NULL},
	 { (char *)"delete_BlackVarianceSurface", _wrap_delete_BlackVarianceSurface, METH_VARARGS, NULL},
	 { (char *)"BlackVarianceSurface_swigregister", BlackVarianceSurface_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_LocalConstantVol", _wrap_new_LocalConstantVol, METH_VARARGS, NULL},
	 { (char *)"delete_LocalConstantVol", _wrap_delete_LocalConstantVol, METH_VARARGS, NULL},
	 { (char *)"LocalConstantVol_swigregister", LocalConstantVol_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_LocalVolSurface", _wrap_new_LocalVolSurface, METH_VARARGS, NULL},
	 { (char *)"delete_LocalVolSurface", _wrap_delete_LocalVolSurface, METH_VARARGS, NULL},
	 { (char *)"LocalVolSurface_swigregister", LocalVolSurface_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ConstantOptionletVolatility", _wrap_new_ConstantOptionletVolatility, METH_VARARGS, NULL},
	 { (char *)"delete_ConstantOptionletVolatility", _wrap_delete_ConstantOptionletVolatility, METH_VARARGS, NULL},
	 { (char *)"ConstantOptionletVolatility_swigregister", ConstantOptionletVolatility_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ConstantSwaptionVolatility", _wrap_new_ConstantSwaptionVolatility, METH_VARARGS, NULL},
	 { (char *)"delete_ConstantSwaptionVolatility", _wrap_delete_ConstantSwaptionVolatility, METH_VARARGS, NULL},
	 { (char *)"ConstantSwaptionVolatility_swigregister", ConstantSwaptionVolatility_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SwaptionVolatilityMatrix", _wrap_new_SwaptionVolatilityMatrix, METH_VARARGS, NULL},
	 { (char *)"delete_SwaptionVolatilityMatrix", _wrap_delete_SwaptionVolatilityMatrix, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolatilityMatrix_swigregister", SwaptionVolatilityMatrix_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SwaptionVolCube1", _wrap_new_SwaptionVolCube1, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolCube1_sparseSabrParameters", _wrap_SwaptionVolCube1_sparseSabrParameters, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolCube1_denseSabrParameters", _wrap_SwaptionVolCube1_denseSabrParameters, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolCube1_marketVolCube", _wrap_SwaptionVolCube1_marketVolCube, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolCube1_volCubeAtmCalibrated", _wrap_SwaptionVolCube1_volCubeAtmCalibrated, METH_VARARGS, NULL},
	 { (char *)"delete_SwaptionVolCube1", _wrap_delete_SwaptionVolCube1, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolCube1_swigregister", SwaptionVolCube1_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SwaptionVolCube2", _wrap_new_SwaptionVolCube2, METH_VARARGS, NULL},
	 { (char *)"delete_SwaptionVolCube2", _wrap_delete_SwaptionVolCube2, METH_VARARGS, NULL},
	 { (char *)"SwaptionVolCube2_swigregister", SwaptionVolCube2_swigregister, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess___deref__", _wrap_StochasticProcess___deref__, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess___nonzero__", _wrap_StochasticProcess___nonzero__, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess___bool__", _wrap_StochasticProcess___bool__, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess_asObservable", _wrap_StochasticProcess_asObservable, METH_VARARGS, NULL},
	 { (char *)"new_StochasticProcess", _wrap_new_StochasticProcess, METH_VARARGS, NULL},
	 { (char *)"delete_StochasticProcess", _wrap_delete_StochasticProcess, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess_size", _wrap_StochasticProcess_size, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess_factors", _wrap_StochasticProcess_factors, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess_initialValues", _wrap_StochasticProcess_initialValues, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess_drift", _wrap_StochasticProcess_drift, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess_diffusion", _wrap_StochasticProcess_diffusion, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess_expectation", _wrap_StochasticProcess_expectation, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess_stdDeviation", _wrap_StochasticProcess_stdDeviation, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess_covariance", _wrap_StochasticProcess_covariance, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess_evolve", _wrap_StochasticProcess_evolve, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess_swigregister", StochasticProcess_swigregister, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_iterator", _wrap_StochasticProcessVector_iterator, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector___nonzero__", _wrap_StochasticProcessVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector___bool__", _wrap_StochasticProcessVector___bool__, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector___len__", _wrap_StochasticProcessVector___len__, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector___getslice__", _wrap_StochasticProcessVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector___setslice__", _wrap_StochasticProcessVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector___delslice__", _wrap_StochasticProcessVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector___delitem__", _wrap_StochasticProcessVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector___getitem__", _wrap_StochasticProcessVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector___setitem__", _wrap_StochasticProcessVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_pop", _wrap_StochasticProcessVector_pop, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_append", _wrap_StochasticProcessVector_append, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_empty", _wrap_StochasticProcessVector_empty, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_size", _wrap_StochasticProcessVector_size, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_swap", _wrap_StochasticProcessVector_swap, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_begin", _wrap_StochasticProcessVector_begin, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_end", _wrap_StochasticProcessVector_end, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_rbegin", _wrap_StochasticProcessVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_rend", _wrap_StochasticProcessVector_rend, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_clear", _wrap_StochasticProcessVector_clear, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_get_allocator", _wrap_StochasticProcessVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_pop_back", _wrap_StochasticProcessVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_erase", _wrap_StochasticProcessVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_StochasticProcessVector", _wrap_new_StochasticProcessVector, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_push_back", _wrap_StochasticProcessVector_push_back, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_front", _wrap_StochasticProcessVector_front, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_back", _wrap_StochasticProcessVector_back, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_assign", _wrap_StochasticProcessVector_assign, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_resize", _wrap_StochasticProcessVector_resize, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_insert", _wrap_StochasticProcessVector_insert, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_reserve", _wrap_StochasticProcessVector_reserve, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_capacity", _wrap_StochasticProcessVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_StochasticProcessVector", _wrap_delete_StochasticProcessVector, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessVector_swigregister", StochasticProcessVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess1D_x0", _wrap_StochasticProcess1D_x0, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess1D_drift", _wrap_StochasticProcess1D_drift, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess1D_diffusion", _wrap_StochasticProcess1D_diffusion, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess1D_expectation", _wrap_StochasticProcess1D_expectation, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess1D_stdDeviation", _wrap_StochasticProcess1D_stdDeviation, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess1D_variance", _wrap_StochasticProcess1D_variance, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess1D_evolve", _wrap_StochasticProcess1D_evolve, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess1D_apply", _wrap_StochasticProcess1D_apply, METH_VARARGS, NULL},
	 { (char *)"delete_StochasticProcess1D", _wrap_delete_StochasticProcess1D, METH_VARARGS, NULL},
	 { (char *)"StochasticProcess1D_swigregister", StochasticProcess1D_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GeneralizedBlackScholesProcess", _wrap_new_GeneralizedBlackScholesProcess, METH_VARARGS, NULL},
	 { (char *)"GeneralizedBlackScholesProcess_stateVariable", _wrap_GeneralizedBlackScholesProcess_stateVariable, METH_VARARGS, NULL},
	 { (char *)"GeneralizedBlackScholesProcess_dividendYield", _wrap_GeneralizedBlackScholesProcess_dividendYield, METH_VARARGS, NULL},
	 { (char *)"GeneralizedBlackScholesProcess_riskFreeRate", _wrap_GeneralizedBlackScholesProcess_riskFreeRate, METH_VARARGS, NULL},
	 { (char *)"GeneralizedBlackScholesProcess_blackVolatility", _wrap_GeneralizedBlackScholesProcess_blackVolatility, METH_VARARGS, NULL},
	 { (char *)"delete_GeneralizedBlackScholesProcess", _wrap_delete_GeneralizedBlackScholesProcess, METH_VARARGS, NULL},
	 { (char *)"GeneralizedBlackScholesProcess_swigregister", GeneralizedBlackScholesProcess_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BlackScholesProcess", _wrap_new_BlackScholesProcess, METH_VARARGS, NULL},
	 { (char *)"delete_BlackScholesProcess", _wrap_delete_BlackScholesProcess, METH_VARARGS, NULL},
	 { (char *)"BlackScholesProcess_swigregister", BlackScholesProcess_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BlackScholesMertonProcess", _wrap_new_BlackScholesMertonProcess, METH_VARARGS, NULL},
	 { (char *)"delete_BlackScholesMertonProcess", _wrap_delete_BlackScholesMertonProcess, METH_VARARGS, NULL},
	 { (char *)"BlackScholesMertonProcess_swigregister", BlackScholesMertonProcess_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BlackProcess", _wrap_new_BlackProcess, METH_VARARGS, NULL},
	 { (char *)"delete_BlackProcess", _wrap_delete_BlackProcess, METH_VARARGS, NULL},
	 { (char *)"BlackProcess_swigregister", BlackProcess_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GarmanKohlagenProcess", _wrap_new_GarmanKohlagenProcess, METH_VARARGS, NULL},
	 { (char *)"delete_GarmanKohlagenProcess", _wrap_delete_GarmanKohlagenProcess, METH_VARARGS, NULL},
	 { (char *)"GarmanKohlagenProcess_swigregister", GarmanKohlagenProcess_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Merton76Process", _wrap_new_Merton76Process, METH_VARARGS, NULL},
	 { (char *)"delete_Merton76Process", _wrap_delete_Merton76Process, METH_VARARGS, NULL},
	 { (char *)"Merton76Process_swigregister", Merton76Process_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_StochasticProcessArray", _wrap_new_StochasticProcessArray, METH_VARARGS, NULL},
	 { (char *)"delete_StochasticProcessArray", _wrap_delete_StochasticProcessArray, METH_VARARGS, NULL},
	 { (char *)"StochasticProcessArray_swigregister", StochasticProcessArray_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GeometricBrownianMotionProcess", _wrap_new_GeometricBrownianMotionProcess, METH_VARARGS, NULL},
	 { (char *)"delete_GeometricBrownianMotionProcess", _wrap_delete_GeometricBrownianMotionProcess, METH_VARARGS, NULL},
	 { (char *)"GeometricBrownianMotionProcess_swigregister", GeometricBrownianMotionProcess_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_VarianceGammaProcess", _wrap_new_VarianceGammaProcess, METH_VARARGS, NULL},
	 { (char *)"delete_VarianceGammaProcess", _wrap_delete_VarianceGammaProcess, METH_VARARGS, NULL},
	 { (char *)"VarianceGammaProcess_swigregister", VarianceGammaProcess_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_HestonProcess", _wrap_new_HestonProcess, METH_VARARGS, NULL},
	 { (char *)"HestonProcess_s0", _wrap_HestonProcess_s0, METH_VARARGS, NULL},
	 { (char *)"HestonProcess_dividendYield", _wrap_HestonProcess_dividendYield, METH_VARARGS, NULL},
	 { (char *)"HestonProcess_riskFreeRate", _wrap_HestonProcess_riskFreeRate, METH_VARARGS, NULL},
	 { (char *)"delete_HestonProcess", _wrap_delete_HestonProcess, METH_VARARGS, NULL},
	 { (char *)"HestonProcess_swigregister", HestonProcess_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BatesProcess", _wrap_new_BatesProcess, METH_VARARGS, NULL},
	 { (char *)"delete_BatesProcess", _wrap_delete_BatesProcess, METH_VARARGS, NULL},
	 { (char *)"BatesProcess_swigregister", BatesProcess_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_HullWhiteProcess", _wrap_new_HullWhiteProcess, METH_VARARGS, NULL},
	 { (char *)"delete_HullWhiteProcess", _wrap_delete_HullWhiteProcess, METH_VARARGS, NULL},
	 { (char *)"HullWhiteProcess_swigregister", HullWhiteProcess_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_HullWhiteForwardProcess", _wrap_new_HullWhiteForwardProcess, METH_VARARGS, NULL},
	 { (char *)"HullWhiteForwardProcess_alpha", _wrap_HullWhiteForwardProcess_alpha, METH_VARARGS, NULL},
	 { (char *)"HullWhiteForwardProcess_M_T", _wrap_HullWhiteForwardProcess_M_T, METH_VARARGS, NULL},
	 { (char *)"HullWhiteForwardProcess_B", _wrap_HullWhiteForwardProcess_B, METH_VARARGS, NULL},
	 { (char *)"HullWhiteForwardProcess_setForwardMeasureTime", _wrap_HullWhiteForwardProcess_setForwardMeasureTime, METH_VARARGS, NULL},
	 { (char *)"delete_HullWhiteForwardProcess", _wrap_delete_HullWhiteForwardProcess, METH_VARARGS, NULL},
	 { (char *)"HullWhiteForwardProcess_swigregister", HullWhiteForwardProcess_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GsrProcess", _wrap_new_GsrProcess, METH_VARARGS, NULL},
	 { (char *)"GsrProcess_sigma", _wrap_GsrProcess_sigma, METH_VARARGS, NULL},
	 { (char *)"GsrProcess_reversion", _wrap_GsrProcess_reversion, METH_VARARGS, NULL},
	 { (char *)"GsrProcess_y", _wrap_GsrProcess_y, METH_VARARGS, NULL},
	 { (char *)"GsrProcess_G", _wrap_GsrProcess_G, METH_VARARGS, NULL},
	 { (char *)"GsrProcess_setForwardMeasureTime", _wrap_GsrProcess_setForwardMeasureTime, METH_VARARGS, NULL},
	 { (char *)"delete_GsrProcess", _wrap_delete_GsrProcess, METH_VARARGS, NULL},
	 { (char *)"GsrProcess_swigregister", GsrProcess_swigregister, METH_VARARGS, NULL},
	 { (char *)"as_gsr_process", _wrap_as_gsr_process, METH_VARARGS, NULL},
	 { (char *)"PricingEngine___deref__", _wrap_PricingEngine___deref__, METH_VARARGS, NULL},
	 { (char *)"PricingEngine___nonzero__", _wrap_PricingEngine___nonzero__, METH_VARARGS, NULL},
	 { (char *)"PricingEngine___bool__", _wrap_PricingEngine___bool__, METH_VARARGS, NULL},
	 { (char *)"new_PricingEngine", _wrap_new_PricingEngine, METH_VARARGS, NULL},
	 { (char *)"delete_PricingEngine", _wrap_delete_PricingEngine, METH_VARARGS, NULL},
	 { (char *)"PricingEngine_swigregister", PricingEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"Instrument___deref__", _wrap_Instrument___deref__, METH_VARARGS, NULL},
	 { (char *)"Instrument___nonzero__", _wrap_Instrument___nonzero__, METH_VARARGS, NULL},
	 { (char *)"Instrument___bool__", _wrap_Instrument___bool__, METH_VARARGS, NULL},
	 { (char *)"Instrument_asObservable", _wrap_Instrument_asObservable, METH_VARARGS, NULL},
	 { (char *)"new_Instrument", _wrap_new_Instrument, METH_VARARGS, NULL},
	 { (char *)"delete_Instrument", _wrap_delete_Instrument, METH_VARARGS, NULL},
	 { (char *)"Instrument_NPV", _wrap_Instrument_NPV, METH_VARARGS, NULL},
	 { (char *)"Instrument_errorEstimate", _wrap_Instrument_errorEstimate, METH_VARARGS, NULL},
	 { (char *)"Instrument_isExpired", _wrap_Instrument_isExpired, METH_VARARGS, NULL},
	 { (char *)"Instrument_setPricingEngine", _wrap_Instrument_setPricingEngine, METH_VARARGS, NULL},
	 { (char *)"Instrument_recalculate", _wrap_Instrument_recalculate, METH_VARARGS, NULL},
	 { (char *)"Instrument_freeze", _wrap_Instrument_freeze, METH_VARARGS, NULL},
	 { (char *)"Instrument_unfreeze", _wrap_Instrument_unfreeze, METH_VARARGS, NULL},
	 { (char *)"Instrument_swigregister", Instrument_swigregister, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_iterator", _wrap_InstrumentVector_iterator, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector___nonzero__", _wrap_InstrumentVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector___bool__", _wrap_InstrumentVector___bool__, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector___len__", _wrap_InstrumentVector___len__, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector___getslice__", _wrap_InstrumentVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector___setslice__", _wrap_InstrumentVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector___delslice__", _wrap_InstrumentVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector___delitem__", _wrap_InstrumentVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector___getitem__", _wrap_InstrumentVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector___setitem__", _wrap_InstrumentVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_pop", _wrap_InstrumentVector_pop, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_append", _wrap_InstrumentVector_append, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_empty", _wrap_InstrumentVector_empty, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_size", _wrap_InstrumentVector_size, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_swap", _wrap_InstrumentVector_swap, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_begin", _wrap_InstrumentVector_begin, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_end", _wrap_InstrumentVector_end, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_rbegin", _wrap_InstrumentVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_rend", _wrap_InstrumentVector_rend, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_clear", _wrap_InstrumentVector_clear, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_get_allocator", _wrap_InstrumentVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_pop_back", _wrap_InstrumentVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_erase", _wrap_InstrumentVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_InstrumentVector", _wrap_new_InstrumentVector, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_push_back", _wrap_InstrumentVector_push_back, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_front", _wrap_InstrumentVector_front, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_back", _wrap_InstrumentVector_back, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_assign", _wrap_InstrumentVector_assign, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_resize", _wrap_InstrumentVector_resize, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_insert", _wrap_InstrumentVector_insert, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_reserve", _wrap_InstrumentVector_reserve, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_capacity", _wrap_InstrumentVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_InstrumentVector", _wrap_delete_InstrumentVector, METH_VARARGS, NULL},
	 { (char *)"InstrumentVector_swigregister", InstrumentVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Stock", _wrap_new_Stock, METH_VARARGS, NULL},
	 { (char *)"delete_Stock", _wrap_delete_Stock, METH_VARARGS, NULL},
	 { (char *)"Stock_swigregister", Stock_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CompositeInstrument", _wrap_new_CompositeInstrument, METH_VARARGS, NULL},
	 { (char *)"CompositeInstrument_add", _wrap_CompositeInstrument_add, METH_VARARGS, NULL},
	 { (char *)"CompositeInstrument_subtract", _wrap_CompositeInstrument_subtract, METH_VARARGS, NULL},
	 { (char *)"delete_CompositeInstrument", _wrap_delete_CompositeInstrument, METH_VARARGS, NULL},
	 { (char *)"CompositeInstrument_swigregister", CompositeInstrument_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DateGeneration", _wrap_new_DateGeneration, METH_VARARGS, NULL},
	 { (char *)"delete_DateGeneration", _wrap_delete_DateGeneration, METH_VARARGS, NULL},
	 { (char *)"DateGeneration_swigregister", DateGeneration_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Schedule", _wrap_new_Schedule, METH_VARARGS, NULL},
	 { (char *)"Schedule___len__", _wrap_Schedule___len__, METH_VARARGS, NULL},
	 { (char *)"Schedule_isRegular", _wrap_Schedule_isRegular, METH_VARARGS, NULL},
	 { (char *)"Schedule_until", _wrap_Schedule_until, METH_VARARGS, NULL},
	 { (char *)"Schedule___getitem__", _wrap_Schedule___getitem__, METH_VARARGS, NULL},
	 { (char *)"delete_Schedule", _wrap_delete_Schedule, METH_VARARGS, NULL},
	 { (char *)"Schedule_swigregister", Schedule_swigregister, METH_VARARGS, NULL},
	 { (char *)"CashFlow___deref__", _wrap_CashFlow___deref__, METH_VARARGS, NULL},
	 { (char *)"CashFlow___nonzero__", _wrap_CashFlow___nonzero__, METH_VARARGS, NULL},
	 { (char *)"CashFlow___bool__", _wrap_CashFlow___bool__, METH_VARARGS, NULL},
	 { (char *)"CashFlow_asObservable", _wrap_CashFlow_asObservable, METH_VARARGS, NULL},
	 { (char *)"new_CashFlow", _wrap_new_CashFlow, METH_VARARGS, NULL},
	 { (char *)"delete_CashFlow", _wrap_delete_CashFlow, METH_VARARGS, NULL},
	 { (char *)"CashFlow_amount", _wrap_CashFlow_amount, METH_VARARGS, NULL},
	 { (char *)"CashFlow_date", _wrap_CashFlow_date, METH_VARARGS, NULL},
	 { (char *)"CashFlow_swigregister", CashFlow_swigregister, METH_VARARGS, NULL},
	 { (char *)"Leg_iterator", _wrap_Leg_iterator, METH_VARARGS, NULL},
	 { (char *)"Leg___nonzero__", _wrap_Leg___nonzero__, METH_VARARGS, NULL},
	 { (char *)"Leg___bool__", _wrap_Leg___bool__, METH_VARARGS, NULL},
	 { (char *)"Leg___len__", _wrap_Leg___len__, METH_VARARGS, NULL},
	 { (char *)"Leg___getslice__", _wrap_Leg___getslice__, METH_VARARGS, NULL},
	 { (char *)"Leg___setslice__", _wrap_Leg___setslice__, METH_VARARGS, NULL},
	 { (char *)"Leg___delslice__", _wrap_Leg___delslice__, METH_VARARGS, NULL},
	 { (char *)"Leg___delitem__", _wrap_Leg___delitem__, METH_VARARGS, NULL},
	 { (char *)"Leg___getitem__", _wrap_Leg___getitem__, METH_VARARGS, NULL},
	 { (char *)"Leg___setitem__", _wrap_Leg___setitem__, METH_VARARGS, NULL},
	 { (char *)"Leg_pop", _wrap_Leg_pop, METH_VARARGS, NULL},
	 { (char *)"Leg_append", _wrap_Leg_append, METH_VARARGS, NULL},
	 { (char *)"Leg_empty", _wrap_Leg_empty, METH_VARARGS, NULL},
	 { (char *)"Leg_size", _wrap_Leg_size, METH_VARARGS, NULL},
	 { (char *)"Leg_swap", _wrap_Leg_swap, METH_VARARGS, NULL},
	 { (char *)"Leg_begin", _wrap_Leg_begin, METH_VARARGS, NULL},
	 { (char *)"Leg_end", _wrap_Leg_end, METH_VARARGS, NULL},
	 { (char *)"Leg_rbegin", _wrap_Leg_rbegin, METH_VARARGS, NULL},
	 { (char *)"Leg_rend", _wrap_Leg_rend, METH_VARARGS, NULL},
	 { (char *)"Leg_clear", _wrap_Leg_clear, METH_VARARGS, NULL},
	 { (char *)"Leg_get_allocator", _wrap_Leg_get_allocator, METH_VARARGS, NULL},
	 { (char *)"Leg_pop_back", _wrap_Leg_pop_back, METH_VARARGS, NULL},
	 { (char *)"Leg_erase", _wrap_Leg_erase, METH_VARARGS, NULL},
	 { (char *)"new_Leg", _wrap_new_Leg, METH_VARARGS, NULL},
	 { (char *)"Leg_push_back", _wrap_Leg_push_back, METH_VARARGS, NULL},
	 { (char *)"Leg_front", _wrap_Leg_front, METH_VARARGS, NULL},
	 { (char *)"Leg_back", _wrap_Leg_back, METH_VARARGS, NULL},
	 { (char *)"Leg_assign", _wrap_Leg_assign, METH_VARARGS, NULL},
	 { (char *)"Leg_resize", _wrap_Leg_resize, METH_VARARGS, NULL},
	 { (char *)"Leg_insert", _wrap_Leg_insert, METH_VARARGS, NULL},
	 { (char *)"Leg_reserve", _wrap_Leg_reserve, METH_VARARGS, NULL},
	 { (char *)"Leg_capacity", _wrap_Leg_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_Leg", _wrap_delete_Leg, METH_VARARGS, NULL},
	 { (char *)"Leg_swigregister", Leg_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SimpleCashFlow", _wrap_new_SimpleCashFlow, METH_VARARGS, NULL},
	 { (char *)"delete_SimpleCashFlow", _wrap_delete_SimpleCashFlow, METH_VARARGS, NULL},
	 { (char *)"SimpleCashFlow_swigregister", SimpleCashFlow_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Redemption", _wrap_new_Redemption, METH_VARARGS, NULL},
	 { (char *)"delete_Redemption", _wrap_delete_Redemption, METH_VARARGS, NULL},
	 { (char *)"Redemption_swigregister", Redemption_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AmortizingPayment", _wrap_new_AmortizingPayment, METH_VARARGS, NULL},
	 { (char *)"delete_AmortizingPayment", _wrap_delete_AmortizingPayment, METH_VARARGS, NULL},
	 { (char *)"AmortizingPayment_swigregister", AmortizingPayment_swigregister, METH_VARARGS, NULL},
	 { (char *)"Coupon_nominal", _wrap_Coupon_nominal, METH_VARARGS, NULL},
	 { (char *)"Coupon_accrualStartDate", _wrap_Coupon_accrualStartDate, METH_VARARGS, NULL},
	 { (char *)"Coupon_accrualEndDate", _wrap_Coupon_accrualEndDate, METH_VARARGS, NULL},
	 { (char *)"Coupon_referencePeriodStart", _wrap_Coupon_referencePeriodStart, METH_VARARGS, NULL},
	 { (char *)"Coupon_referencePeriodEnd", _wrap_Coupon_referencePeriodEnd, METH_VARARGS, NULL},
	 { (char *)"Coupon_exCouponDate", _wrap_Coupon_exCouponDate, METH_VARARGS, NULL},
	 { (char *)"Coupon_rate", _wrap_Coupon_rate, METH_VARARGS, NULL},
	 { (char *)"Coupon_accrualPeriod", _wrap_Coupon_accrualPeriod, METH_VARARGS, NULL},
	 { (char *)"Coupon_accrualDays", _wrap_Coupon_accrualDays, METH_VARARGS, NULL},
	 { (char *)"Coupon_dayCounter", _wrap_Coupon_dayCounter, METH_VARARGS, NULL},
	 { (char *)"Coupon_accruedAmount", _wrap_Coupon_accruedAmount, METH_VARARGS, NULL},
	 { (char *)"delete_Coupon", _wrap_delete_Coupon, METH_VARARGS, NULL},
	 { (char *)"Coupon_swigregister", Coupon_swigregister, METH_VARARGS, NULL},
	 { (char *)"as_coupon", _wrap_as_coupon, METH_VARARGS, NULL},
	 { (char *)"new_FixedRateCoupon", (PyCFunction) _wrap_new_FixedRateCoupon, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"FixedRateCoupon_interestRate", _wrap_FixedRateCoupon_interestRate, METH_VARARGS, NULL},
	 { (char *)"delete_FixedRateCoupon", _wrap_delete_FixedRateCoupon, METH_VARARGS, NULL},
	 { (char *)"FixedRateCoupon_swigregister", FixedRateCoupon_swigregister, METH_VARARGS, NULL},
	 { (char *)"as_fixed_rate_coupon", _wrap_as_fixed_rate_coupon, METH_VARARGS, NULL},
	 { (char *)"FloatingRateCouponPricer___deref__", _wrap_FloatingRateCouponPricer___deref__, METH_VARARGS, NULL},
	 { (char *)"FloatingRateCouponPricer___nonzero__", _wrap_FloatingRateCouponPricer___nonzero__, METH_VARARGS, NULL},
	 { (char *)"FloatingRateCouponPricer___bool__", _wrap_FloatingRateCouponPricer___bool__, METH_VARARGS, NULL},
	 { (char *)"new_FloatingRateCouponPricer", _wrap_new_FloatingRateCouponPricer, METH_VARARGS, NULL},
	 { (char *)"delete_FloatingRateCouponPricer", _wrap_delete_FloatingRateCouponPricer, METH_VARARGS, NULL},
	 { (char *)"FloatingRateCouponPricer_swigregister", FloatingRateCouponPricer_swigregister, METH_VARARGS, NULL},
	 { (char *)"setCouponPricer", _wrap_setCouponPricer, METH_VARARGS, NULL},
	 { (char *)"FloatingRateCoupon_fixingDate", _wrap_FloatingRateCoupon_fixingDate, METH_VARARGS, NULL},
	 { (char *)"FloatingRateCoupon_fixingDays", _wrap_FloatingRateCoupon_fixingDays, METH_VARARGS, NULL},
	 { (char *)"FloatingRateCoupon_isInArrears", _wrap_FloatingRateCoupon_isInArrears, METH_VARARGS, NULL},
	 { (char *)"FloatingRateCoupon_gearing", _wrap_FloatingRateCoupon_gearing, METH_VARARGS, NULL},
	 { (char *)"FloatingRateCoupon_spread", _wrap_FloatingRateCoupon_spread, METH_VARARGS, NULL},
	 { (char *)"FloatingRateCoupon_indexFixing", _wrap_FloatingRateCoupon_indexFixing, METH_VARARGS, NULL},
	 { (char *)"FloatingRateCoupon_adjustedFixing", _wrap_FloatingRateCoupon_adjustedFixing, METH_VARARGS, NULL},
	 { (char *)"FloatingRateCoupon_convexityAdjustment", _wrap_FloatingRateCoupon_convexityAdjustment, METH_VARARGS, NULL},
	 { (char *)"FloatingRateCoupon_price", _wrap_FloatingRateCoupon_price, METH_VARARGS, NULL},
	 { (char *)"FloatingRateCoupon_index", _wrap_FloatingRateCoupon_index, METH_VARARGS, NULL},
	 { (char *)"FloatingRateCoupon_setPricer", _wrap_FloatingRateCoupon_setPricer, METH_VARARGS, NULL},
	 { (char *)"delete_FloatingRateCoupon", _wrap_delete_FloatingRateCoupon, METH_VARARGS, NULL},
	 { (char *)"FloatingRateCoupon_swigregister", FloatingRateCoupon_swigregister, METH_VARARGS, NULL},
	 { (char *)"as_floating_rate_coupon", _wrap_as_floating_rate_coupon, METH_VARARGS, NULL},
	 { (char *)"new_CappedFlooredCoupon", (PyCFunction) _wrap_new_CappedFlooredCoupon, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"CappedFlooredCoupon_cap", _wrap_CappedFlooredCoupon_cap, METH_VARARGS, NULL},
	 { (char *)"CappedFlooredCoupon_floor", _wrap_CappedFlooredCoupon_floor, METH_VARARGS, NULL},
	 { (char *)"CappedFlooredCoupon_effectiveCap", _wrap_CappedFlooredCoupon_effectiveCap, METH_VARARGS, NULL},
	 { (char *)"CappedFlooredCoupon_effectiveFloor", _wrap_CappedFlooredCoupon_effectiveFloor, METH_VARARGS, NULL},
	 { (char *)"CappedFlooredCoupon_isCapped", _wrap_CappedFlooredCoupon_isCapped, METH_VARARGS, NULL},
	 { (char *)"CappedFlooredCoupon_isFloored", _wrap_CappedFlooredCoupon_isFloored, METH_VARARGS, NULL},
	 { (char *)"CappedFlooredCoupon_setPricer", _wrap_CappedFlooredCoupon_setPricer, METH_VARARGS, NULL},
	 { (char *)"delete_CappedFlooredCoupon", _wrap_delete_CappedFlooredCoupon, METH_VARARGS, NULL},
	 { (char *)"CappedFlooredCoupon_swigregister", CappedFlooredCoupon_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_IborCoupon", (PyCFunction) _wrap_new_IborCoupon, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"delete_IborCoupon", _wrap_delete_IborCoupon, METH_VARARGS, NULL},
	 { (char *)"IborCoupon_swigregister", IborCoupon_swigregister, METH_VARARGS, NULL},
	 { (char *)"IborCouponPricer_capletVolatility", _wrap_IborCouponPricer_capletVolatility, METH_VARARGS, NULL},
	 { (char *)"IborCouponPricer_setCapletVolatility", _wrap_IborCouponPricer_setCapletVolatility, METH_VARARGS, NULL},
	 { (char *)"delete_IborCouponPricer", _wrap_delete_IborCouponPricer, METH_VARARGS, NULL},
	 { (char *)"IborCouponPricer_swigregister", IborCouponPricer_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BlackIborCouponPricer", _wrap_new_BlackIborCouponPricer, METH_VARARGS, NULL},
	 { (char *)"delete_BlackIborCouponPricer", _wrap_delete_BlackIborCouponPricer, METH_VARARGS, NULL},
	 { (char *)"BlackIborCouponPricer_swigregister", BlackIborCouponPricer_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CmsCoupon", (PyCFunction) _wrap_new_CmsCoupon, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"delete_CmsCoupon", _wrap_delete_CmsCoupon, METH_VARARGS, NULL},
	 { (char *)"CmsCoupon_swigregister", CmsCoupon_swigregister, METH_VARARGS, NULL},
	 { (char *)"CmsCouponPricer_swaptionVolatility", _wrap_CmsCouponPricer_swaptionVolatility, METH_VARARGS, NULL},
	 { (char *)"CmsCouponPricer_setSwaptionVolatility", _wrap_CmsCouponPricer_setSwaptionVolatility, METH_VARARGS, NULL},
	 { (char *)"delete_CmsCouponPricer", _wrap_delete_CmsCouponPricer, METH_VARARGS, NULL},
	 { (char *)"CmsCouponPricer_swigregister", CmsCouponPricer_swigregister, METH_VARARGS, NULL},
	 { (char *)"delete_GFunctionFactory", _wrap_delete_GFunctionFactory, METH_VARARGS, NULL},
	 { (char *)"GFunctionFactory_swigregister", GFunctionFactory_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AnalyticHaganPricer", _wrap_new_AnalyticHaganPricer, METH_VARARGS, NULL},
	 { (char *)"delete_AnalyticHaganPricer", _wrap_delete_AnalyticHaganPricer, METH_VARARGS, NULL},
	 { (char *)"AnalyticHaganPricer_swigregister", AnalyticHaganPricer_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_NumericHaganPricer", _wrap_new_NumericHaganPricer, METH_VARARGS, NULL},
	 { (char *)"delete_NumericHaganPricer", _wrap_delete_NumericHaganPricer, METH_VARARGS, NULL},
	 { (char *)"NumericHaganPricer_swigregister", NumericHaganPricer_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CappedFlooredCmsCoupon", _wrap_new_CappedFlooredCmsCoupon, METH_VARARGS, NULL},
	 { (char *)"delete_CappedFlooredCmsCoupon", _wrap_delete_CappedFlooredCmsCoupon, METH_VARARGS, NULL},
	 { (char *)"CappedFlooredCmsCoupon_swigregister", CappedFlooredCmsCoupon_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_LinearTsrPricer", _wrap_new_LinearTsrPricer, METH_VARARGS, NULL},
	 { (char *)"delete_LinearTsrPricer", _wrap_delete_LinearTsrPricer, METH_VARARGS, NULL},
	 { (char *)"LinearTsrPricer_swigregister", LinearTsrPricer_swigregister, METH_VARARGS, NULL},
	 { (char *)"FixedRateLeg", (PyCFunction) _wrap_FixedRateLeg, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"IborLeg", (PyCFunction) _wrap_IborLeg, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"CmsLeg", (PyCFunction) _wrap_CmsLeg, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"CmsZeroLeg", (PyCFunction) _wrap_CmsZeroLeg, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"new_Duration", _wrap_new_Duration, METH_VARARGS, NULL},
	 { (char *)"delete_Duration", _wrap_delete_Duration, METH_VARARGS, NULL},
	 { (char *)"Duration_swigregister", Duration_swigregister, METH_VARARGS, NULL},
	 { (char *)"CashFlows_startDate", _wrap_CashFlows_startDate, METH_VARARGS, NULL},
	 { (char *)"CashFlows_maturityDate", _wrap_CashFlows_maturityDate, METH_VARARGS, NULL},
	 { (char *)"CashFlows_npv", _wrap_CashFlows_npv, METH_VARARGS, NULL},
	 { (char *)"CashFlows_bps", _wrap_CashFlows_bps, METH_VARARGS, NULL},
	 { (char *)"CashFlows_atmRate", _wrap_CashFlows_atmRate, METH_VARARGS, NULL},
	 { (char *)"CashFlows_yieldRate", _wrap_CashFlows_yieldRate, METH_VARARGS, NULL},
	 { (char *)"CashFlows_duration", _wrap_CashFlows_duration, METH_VARARGS, NULL},
	 { (char *)"CashFlows_convexity", _wrap_CashFlows_convexity, METH_VARARGS, NULL},
	 { (char *)"CashFlows_basisPointValue", _wrap_CashFlows_basisPointValue, METH_VARARGS, NULL},
	 { (char *)"CashFlows_zSpread", _wrap_CashFlows_zSpread, METH_VARARGS, NULL},
	 { (char *)"delete_CashFlows", _wrap_delete_CashFlows, METH_VARARGS, NULL},
	 { (char *)"CashFlows_swigregister", CashFlows_swigregister, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelper___deref__", _wrap_CalibrationHelper___deref__, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelper___nonzero__", _wrap_CalibrationHelper___nonzero__, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelper___bool__", _wrap_CalibrationHelper___bool__, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelper_swaptionExpiryDate", _wrap_CalibrationHelper_swaptionExpiryDate, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelper_swaptionStrike", _wrap_CalibrationHelper_swaptionStrike, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelper_swaptionNominal", _wrap_CalibrationHelper_swaptionNominal, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelper_swaptionMaturityDate", _wrap_CalibrationHelper_swaptionMaturityDate, METH_VARARGS, NULL},
	 { (char *)"new_CalibrationHelper", _wrap_new_CalibrationHelper, METH_VARARGS, NULL},
	 { (char *)"delete_CalibrationHelper", _wrap_delete_CalibrationHelper, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelper_setPricingEngine", _wrap_CalibrationHelper_setPricingEngine, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelper_marketValue", _wrap_CalibrationHelper_marketValue, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelper_modelValue", _wrap_CalibrationHelper_modelValue, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelper_calibrationError", _wrap_CalibrationHelper_calibrationError, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelper_impliedVolatility", _wrap_CalibrationHelper_impliedVolatility, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelper_blackPrice", _wrap_CalibrationHelper_blackPrice, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelper_volatility", _wrap_CalibrationHelper_volatility, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelper_volatilityType", _wrap_CalibrationHelper_volatilityType, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelper_swigregister", CalibrationHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SwaptionHelper", _wrap_new_SwaptionHelper, METH_VARARGS, NULL},
	 { (char *)"SwaptionHelper_times", _wrap_SwaptionHelper_times, METH_VARARGS, NULL},
	 { (char *)"delete_SwaptionHelper", _wrap_delete_SwaptionHelper, METH_VARARGS, NULL},
	 { (char *)"SwaptionHelper_swigregister", SwaptionHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CapHelper", _wrap_new_CapHelper, METH_VARARGS, NULL},
	 { (char *)"CapHelper_times", _wrap_CapHelper_times, METH_VARARGS, NULL},
	 { (char *)"delete_CapHelper", _wrap_delete_CapHelper, METH_VARARGS, NULL},
	 { (char *)"CapHelper_swigregister", CapHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_HestonModelHelper", _wrap_new_HestonModelHelper, METH_VARARGS, NULL},
	 { (char *)"delete_HestonModelHelper", _wrap_delete_HestonModelHelper, METH_VARARGS, NULL},
	 { (char *)"HestonModelHelper_swigregister", HestonModelHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_iterator", _wrap_CalibrationHelperVector_iterator, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector___nonzero__", _wrap_CalibrationHelperVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector___bool__", _wrap_CalibrationHelperVector___bool__, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector___len__", _wrap_CalibrationHelperVector___len__, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector___getslice__", _wrap_CalibrationHelperVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector___setslice__", _wrap_CalibrationHelperVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector___delslice__", _wrap_CalibrationHelperVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector___delitem__", _wrap_CalibrationHelperVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector___getitem__", _wrap_CalibrationHelperVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector___setitem__", _wrap_CalibrationHelperVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_pop", _wrap_CalibrationHelperVector_pop, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_append", _wrap_CalibrationHelperVector_append, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_empty", _wrap_CalibrationHelperVector_empty, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_size", _wrap_CalibrationHelperVector_size, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_swap", _wrap_CalibrationHelperVector_swap, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_begin", _wrap_CalibrationHelperVector_begin, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_end", _wrap_CalibrationHelperVector_end, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_rbegin", _wrap_CalibrationHelperVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_rend", _wrap_CalibrationHelperVector_rend, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_clear", _wrap_CalibrationHelperVector_clear, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_get_allocator", _wrap_CalibrationHelperVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_pop_back", _wrap_CalibrationHelperVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_erase", _wrap_CalibrationHelperVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_CalibrationHelperVector", _wrap_new_CalibrationHelperVector, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_push_back", _wrap_CalibrationHelperVector_push_back, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_front", _wrap_CalibrationHelperVector_front, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_back", _wrap_CalibrationHelperVector_back, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_assign", _wrap_CalibrationHelperVector_assign, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_resize", _wrap_CalibrationHelperVector_resize, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_insert", _wrap_CalibrationHelperVector_insert, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_reserve", _wrap_CalibrationHelperVector_reserve, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_capacity", _wrap_CalibrationHelperVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_CalibrationHelperVector", _wrap_delete_CalibrationHelperVector, METH_VARARGS, NULL},
	 { (char *)"CalibrationHelperVector_swigregister", CalibrationHelperVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"CalibratedModel___deref__", _wrap_CalibratedModel___deref__, METH_VARARGS, NULL},
	 { (char *)"CalibratedModel___nonzero__", _wrap_CalibratedModel___nonzero__, METH_VARARGS, NULL},
	 { (char *)"CalibratedModel___bool__", _wrap_CalibratedModel___bool__, METH_VARARGS, NULL},
	 { (char *)"CalibratedModel_asObservable", _wrap_CalibratedModel_asObservable, METH_VARARGS, NULL},
	 { (char *)"new_CalibratedModel", _wrap_new_CalibratedModel, METH_VARARGS, NULL},
	 { (char *)"delete_CalibratedModel", _wrap_delete_CalibratedModel, METH_VARARGS, NULL},
	 { (char *)"CalibratedModel_params", _wrap_CalibratedModel_params, METH_VARARGS, NULL},
	 { (char *)"CalibratedModel_calibrate", _wrap_CalibratedModel_calibrate, METH_VARARGS, NULL},
	 { (char *)"CalibratedModel_setParams", _wrap_CalibratedModel_setParams, METH_VARARGS, NULL},
	 { (char *)"CalibratedModel_value", _wrap_CalibratedModel_value, METH_VARARGS, NULL},
	 { (char *)"CalibratedModel_swigregister", CalibratedModel_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CalibratedModelHandle", _wrap_new_CalibratedModelHandle, METH_VARARGS, NULL},
	 { (char *)"CalibratedModelHandle___deref__", _wrap_CalibratedModelHandle___deref__, METH_VARARGS, NULL},
	 { (char *)"CalibratedModelHandle___nonzero__", _wrap_CalibratedModelHandle___nonzero__, METH_VARARGS, NULL},
	 { (char *)"CalibratedModelHandle___bool__", _wrap_CalibratedModelHandle___bool__, METH_VARARGS, NULL},
	 { (char *)"CalibratedModelHandle_asObservable", _wrap_CalibratedModelHandle_asObservable, METH_VARARGS, NULL},
	 { (char *)"delete_CalibratedModelHandle", _wrap_delete_CalibratedModelHandle, METH_VARARGS, NULL},
	 { (char *)"CalibratedModelHandle_params", _wrap_CalibratedModelHandle_params, METH_VARARGS, NULL},
	 { (char *)"CalibratedModelHandle_calibrate", _wrap_CalibratedModelHandle_calibrate, METH_VARARGS, NULL},
	 { (char *)"CalibratedModelHandle_setParams", _wrap_CalibratedModelHandle_setParams, METH_VARARGS, NULL},
	 { (char *)"CalibratedModelHandle_value", _wrap_CalibratedModelHandle_value, METH_VARARGS, NULL},
	 { (char *)"CalibratedModelHandle_swigregister", CalibratedModelHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_RelinkableCalibratedModelHandle", _wrap_new_RelinkableCalibratedModelHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableCalibratedModelHandle_linkTo", _wrap_RelinkableCalibratedModelHandle_linkTo, METH_VARARGS, NULL},
	 { (char *)"delete_RelinkableCalibratedModelHandle", _wrap_delete_RelinkableCalibratedModelHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableCalibratedModelHandle_swigregister", RelinkableCalibratedModelHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_TimeGrid", _wrap_new_TimeGrid, METH_VARARGS, NULL},
	 { (char *)"TimeGrid___len__", _wrap_TimeGrid___len__, METH_VARARGS, NULL},
	 { (char *)"TimeGrid___getitem__", _wrap_TimeGrid___getitem__, METH_VARARGS, NULL},
	 { (char *)"TimeGrid_dt", _wrap_TimeGrid_dt, METH_VARARGS, NULL},
	 { (char *)"delete_TimeGrid", _wrap_delete_TimeGrid, METH_VARARGS, NULL},
	 { (char *)"TimeGrid_swigregister", TimeGrid_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Parameter", _wrap_new_Parameter, METH_VARARGS, NULL},
	 { (char *)"Parameter_params", _wrap_Parameter_params, METH_VARARGS, NULL},
	 { (char *)"Parameter_setParam", _wrap_Parameter_setParam, METH_VARARGS, NULL},
	 { (char *)"Parameter_testParams", _wrap_Parameter_testParams, METH_VARARGS, NULL},
	 { (char *)"Parameter_size", _wrap_Parameter_size, METH_VARARGS, NULL},
	 { (char *)"Parameter___call__", _wrap_Parameter___call__, METH_VARARGS, NULL},
	 { (char *)"Parameter_constraint", _wrap_Parameter_constraint, METH_VARARGS, NULL},
	 { (char *)"delete_Parameter", _wrap_delete_Parameter, METH_VARARGS, NULL},
	 { (char *)"Parameter_swigregister", Parameter_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ConstantParameter", _wrap_new_ConstantParameter, METH_VARARGS, NULL},
	 { (char *)"delete_ConstantParameter", _wrap_delete_ConstantParameter, METH_VARARGS, NULL},
	 { (char *)"ConstantParameter_swigregister", ConstantParameter_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_NullParameter", _wrap_new_NullParameter, METH_VARARGS, NULL},
	 { (char *)"delete_NullParameter", _wrap_delete_NullParameter, METH_VARARGS, NULL},
	 { (char *)"NullParameter_swigregister", NullParameter_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PiecewiseConstantParameter", _wrap_new_PiecewiseConstantParameter, METH_VARARGS, NULL},
	 { (char *)"delete_PiecewiseConstantParameter", _wrap_delete_PiecewiseConstantParameter, METH_VARARGS, NULL},
	 { (char *)"PiecewiseConstantParameter_swigregister", PiecewiseConstantParameter_swigregister, METH_VARARGS, NULL},
	 { (char *)"delete_Option", _wrap_delete_Option, METH_VARARGS, NULL},
	 { (char *)"Option_swigregister", Option_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Barrier", _wrap_new_Barrier, METH_VARARGS, NULL},
	 { (char *)"delete_Barrier", _wrap_delete_Barrier, METH_VARARGS, NULL},
	 { (char *)"Barrier_swigregister", Barrier_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DoubleBarrier", _wrap_new_DoubleBarrier, METH_VARARGS, NULL},
	 { (char *)"delete_DoubleBarrier", _wrap_delete_DoubleBarrier, METH_VARARGS, NULL},
	 { (char *)"DoubleBarrier_swigregister", DoubleBarrier_swigregister, METH_VARARGS, NULL},
	 { (char *)"Payoff___deref__", _wrap_Payoff___deref__, METH_VARARGS, NULL},
	 { (char *)"Payoff___nonzero__", _wrap_Payoff___nonzero__, METH_VARARGS, NULL},
	 { (char *)"Payoff___bool__", _wrap_Payoff___bool__, METH_VARARGS, NULL},
	 { (char *)"new_Payoff", _wrap_new_Payoff, METH_VARARGS, NULL},
	 { (char *)"delete_Payoff", _wrap_delete_Payoff, METH_VARARGS, NULL},
	 { (char *)"Payoff___call__", _wrap_Payoff___call__, METH_VARARGS, NULL},
	 { (char *)"Payoff_swigregister", Payoff_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_VanillaOption", _wrap_new_VanillaOption, METH_VARARGS, NULL},
	 { (char *)"VanillaOption_priceCurve", _wrap_VanillaOption_priceCurve, METH_VARARGS, NULL},
	 { (char *)"VanillaOption_impliedVolatility", _wrap_VanillaOption_impliedVolatility, METH_VARARGS, NULL},
	 { (char *)"VanillaOption_delta", _wrap_VanillaOption_delta, METH_VARARGS, NULL},
	 { (char *)"VanillaOption_gamma", _wrap_VanillaOption_gamma, METH_VARARGS, NULL},
	 { (char *)"VanillaOption_theta", _wrap_VanillaOption_theta, METH_VARARGS, NULL},
	 { (char *)"VanillaOption_thetaPerDay", _wrap_VanillaOption_thetaPerDay, METH_VARARGS, NULL},
	 { (char *)"VanillaOption_vega", _wrap_VanillaOption_vega, METH_VARARGS, NULL},
	 { (char *)"VanillaOption_rho", _wrap_VanillaOption_rho, METH_VARARGS, NULL},
	 { (char *)"VanillaOption_dividendRho", _wrap_VanillaOption_dividendRho, METH_VARARGS, NULL},
	 { (char *)"VanillaOption_strikeSensitivity", _wrap_VanillaOption_strikeSensitivity, METH_VARARGS, NULL},
	 { (char *)"delete_VanillaOption", _wrap_delete_VanillaOption, METH_VARARGS, NULL},
	 { (char *)"VanillaOption_swigregister", VanillaOption_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EuropeanOption", _wrap_new_EuropeanOption, METH_VARARGS, NULL},
	 { (char *)"delete_EuropeanOption", _wrap_delete_EuropeanOption, METH_VARARGS, NULL},
	 { (char *)"EuropeanOption_swigregister", EuropeanOption_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ForwardVanillaOption", _wrap_new_ForwardVanillaOption, METH_VARARGS, NULL},
	 { (char *)"delete_ForwardVanillaOption", _wrap_delete_ForwardVanillaOption, METH_VARARGS, NULL},
	 { (char *)"ForwardVanillaOption_swigregister", ForwardVanillaOption_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_QuantoVanillaOption", _wrap_new_QuantoVanillaOption, METH_VARARGS, NULL},
	 { (char *)"QuantoVanillaOption_qvega", _wrap_QuantoVanillaOption_qvega, METH_VARARGS, NULL},
	 { (char *)"QuantoVanillaOption_qrho", _wrap_QuantoVanillaOption_qrho, METH_VARARGS, NULL},
	 { (char *)"QuantoVanillaOption_qlambda", _wrap_QuantoVanillaOption_qlambda, METH_VARARGS, NULL},
	 { (char *)"delete_QuantoVanillaOption", _wrap_delete_QuantoVanillaOption, METH_VARARGS, NULL},
	 { (char *)"QuantoVanillaOption_swigregister", QuantoVanillaOption_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_QuantoForwardVanillaOption", _wrap_new_QuantoForwardVanillaOption, METH_VARARGS, NULL},
	 { (char *)"delete_QuantoForwardVanillaOption", _wrap_delete_QuantoForwardVanillaOption, METH_VARARGS, NULL},
	 { (char *)"QuantoForwardVanillaOption_swigregister", QuantoForwardVanillaOption_swigregister, METH_VARARGS, NULL},
	 { (char *)"MultiAssetOption_delta", _wrap_MultiAssetOption_delta, METH_VARARGS, NULL},
	 { (char *)"MultiAssetOption_gamma", _wrap_MultiAssetOption_gamma, METH_VARARGS, NULL},
	 { (char *)"MultiAssetOption_theta", _wrap_MultiAssetOption_theta, METH_VARARGS, NULL},
	 { (char *)"MultiAssetOption_vega", _wrap_MultiAssetOption_vega, METH_VARARGS, NULL},
	 { (char *)"MultiAssetOption_rho", _wrap_MultiAssetOption_rho, METH_VARARGS, NULL},
	 { (char *)"MultiAssetOption_dividendRho", _wrap_MultiAssetOption_dividendRho, METH_VARARGS, NULL},
	 { (char *)"new_MultiAssetOption", _wrap_new_MultiAssetOption, METH_VARARGS, NULL},
	 { (char *)"delete_MultiAssetOption", _wrap_delete_MultiAssetOption, METH_VARARGS, NULL},
	 { (char *)"MultiAssetOption_swigregister", MultiAssetOption_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AnalyticEuropeanEngine", _wrap_new_AnalyticEuropeanEngine, METH_VARARGS, NULL},
	 { (char *)"delete_AnalyticEuropeanEngine", _wrap_delete_AnalyticEuropeanEngine, METH_VARARGS, NULL},
	 { (char *)"AnalyticEuropeanEngine_swigregister", AnalyticEuropeanEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_HestonModel", _wrap_new_HestonModel, METH_VARARGS, NULL},
	 { (char *)"HestonModel_theta", _wrap_HestonModel_theta, METH_VARARGS, NULL},
	 { (char *)"HestonModel_kappa", _wrap_HestonModel_kappa, METH_VARARGS, NULL},
	 { (char *)"HestonModel_sigma", _wrap_HestonModel_sigma, METH_VARARGS, NULL},
	 { (char *)"HestonModel_rho", _wrap_HestonModel_rho, METH_VARARGS, NULL},
	 { (char *)"HestonModel_v0", _wrap_HestonModel_v0, METH_VARARGS, NULL},
	 { (char *)"delete_HestonModel", _wrap_delete_HestonModel, METH_VARARGS, NULL},
	 { (char *)"HestonModel_swigregister", HestonModel_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PiecewiseTimeDependentHestonModel", _wrap_new_PiecewiseTimeDependentHestonModel, METH_VARARGS, NULL},
	 { (char *)"PiecewiseTimeDependentHestonModel_theta", _wrap_PiecewiseTimeDependentHestonModel_theta, METH_VARARGS, NULL},
	 { (char *)"PiecewiseTimeDependentHestonModel_kappa", _wrap_PiecewiseTimeDependentHestonModel_kappa, METH_VARARGS, NULL},
	 { (char *)"PiecewiseTimeDependentHestonModel_sigma", _wrap_PiecewiseTimeDependentHestonModel_sigma, METH_VARARGS, NULL},
	 { (char *)"PiecewiseTimeDependentHestonModel_rho", _wrap_PiecewiseTimeDependentHestonModel_rho, METH_VARARGS, NULL},
	 { (char *)"PiecewiseTimeDependentHestonModel_v0", _wrap_PiecewiseTimeDependentHestonModel_v0, METH_VARARGS, NULL},
	 { (char *)"PiecewiseTimeDependentHestonModel_s0", _wrap_PiecewiseTimeDependentHestonModel_s0, METH_VARARGS, NULL},
	 { (char *)"PiecewiseTimeDependentHestonModel_timeGrid", _wrap_PiecewiseTimeDependentHestonModel_timeGrid, METH_VARARGS, NULL},
	 { (char *)"PiecewiseTimeDependentHestonModel_dividendYield", _wrap_PiecewiseTimeDependentHestonModel_dividendYield, METH_VARARGS, NULL},
	 { (char *)"PiecewiseTimeDependentHestonModel_riskFreeRate", _wrap_PiecewiseTimeDependentHestonModel_riskFreeRate, METH_VARARGS, NULL},
	 { (char *)"delete_PiecewiseTimeDependentHestonModel", _wrap_delete_PiecewiseTimeDependentHestonModel, METH_VARARGS, NULL},
	 { (char *)"PiecewiseTimeDependentHestonModel_swigregister", PiecewiseTimeDependentHestonModel_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AnalyticHestonEngine", _wrap_new_AnalyticHestonEngine, METH_VARARGS, NULL},
	 { (char *)"delete_AnalyticHestonEngine", _wrap_delete_AnalyticHestonEngine, METH_VARARGS, NULL},
	 { (char *)"AnalyticHestonEngine_swigregister", AnalyticHestonEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AnalyticPTDHestonEngine", _wrap_new_AnalyticPTDHestonEngine, METH_VARARGS, NULL},
	 { (char *)"delete_AnalyticPTDHestonEngine", _wrap_delete_AnalyticPTDHestonEngine, METH_VARARGS, NULL},
	 { (char *)"AnalyticPTDHestonEngine_swigregister", AnalyticPTDHestonEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BatesModel", _wrap_new_BatesModel, METH_VARARGS, NULL},
	 { (char *)"BatesModel_nu", _wrap_BatesModel_nu, METH_VARARGS, NULL},
	 { (char *)"BatesModel_delta", _wrap_BatesModel_delta, METH_VARARGS, NULL},
	 { (char *)"BatesModel_lambda_parameter", _wrap_BatesModel_lambda_parameter, METH_VARARGS, NULL},
	 { (char *)"delete_BatesModel", _wrap_delete_BatesModel, METH_VARARGS, NULL},
	 { (char *)"BatesModel_swigregister", BatesModel_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BatesEngine", _wrap_new_BatesEngine, METH_VARARGS, NULL},
	 { (char *)"delete_BatesEngine", _wrap_delete_BatesEngine, METH_VARARGS, NULL},
	 { (char *)"BatesEngine_swigregister", BatesEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_IntegralEngine", _wrap_new_IntegralEngine, METH_VARARGS, NULL},
	 { (char *)"delete_IntegralEngine", _wrap_delete_IntegralEngine, METH_VARARGS, NULL},
	 { (char *)"IntegralEngine_swigregister", IntegralEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FDBermudanEngine", _wrap_new_FDBermudanEngine, METH_VARARGS, NULL},
	 { (char *)"delete_FDBermudanEngine", _wrap_delete_FDBermudanEngine, METH_VARARGS, NULL},
	 { (char *)"FDBermudanEngine_swigregister", FDBermudanEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FDEuropeanEngine", _wrap_new_FDEuropeanEngine, METH_VARARGS, NULL},
	 { (char *)"delete_FDEuropeanEngine", _wrap_delete_FDEuropeanEngine, METH_VARARGS, NULL},
	 { (char *)"FDEuropeanEngine_swigregister", FDEuropeanEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BinomialVanillaEngine", _wrap_new_BinomialVanillaEngine, METH_VARARGS, NULL},
	 { (char *)"delete_BinomialVanillaEngine", _wrap_delete_BinomialVanillaEngine, METH_VARARGS, NULL},
	 { (char *)"BinomialVanillaEngine_swigregister", BinomialVanillaEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MCEuropeanEngine", (PyCFunction) _wrap_new_MCEuropeanEngine, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"delete_MCEuropeanEngine", _wrap_delete_MCEuropeanEngine, METH_VARARGS, NULL},
	 { (char *)"MCEuropeanEngine_swigregister", MCEuropeanEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FDAmericanEngine", _wrap_new_FDAmericanEngine, METH_VARARGS, NULL},
	 { (char *)"delete_FDAmericanEngine", _wrap_delete_FDAmericanEngine, METH_VARARGS, NULL},
	 { (char *)"FDAmericanEngine_swigregister", FDAmericanEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FdBlackScholesVanillaEngine", _wrap_new_FdBlackScholesVanillaEngine, METH_VARARGS, NULL},
	 { (char *)"delete_FdBlackScholesVanillaEngine", _wrap_delete_FdBlackScholesVanillaEngine, METH_VARARGS, NULL},
	 { (char *)"FdBlackScholesVanillaEngine_swigregister", FdBlackScholesVanillaEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FdBatesVanillaEngine", _wrap_new_FdBatesVanillaEngine, METH_VARARGS, NULL},
	 { (char *)"delete_FdBatesVanillaEngine", _wrap_delete_FdBatesVanillaEngine, METH_VARARGS, NULL},
	 { (char *)"FdBatesVanillaEngine_swigregister", FdBatesVanillaEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ContinuousArithmeticAsianLevyEngine", _wrap_new_ContinuousArithmeticAsianLevyEngine, METH_VARARGS, NULL},
	 { (char *)"delete_ContinuousArithmeticAsianLevyEngine", _wrap_delete_ContinuousArithmeticAsianLevyEngine, METH_VARARGS, NULL},
	 { (char *)"ContinuousArithmeticAsianLevyEngine_swigregister", ContinuousArithmeticAsianLevyEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FdBlackScholesAsianEngine", _wrap_new_FdBlackScholesAsianEngine, METH_VARARGS, NULL},
	 { (char *)"delete_FdBlackScholesAsianEngine", _wrap_delete_FdBlackScholesAsianEngine, METH_VARARGS, NULL},
	 { (char *)"FdBlackScholesAsianEngine_swigregister", FdBlackScholesAsianEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FDShoutEngine", _wrap_new_FDShoutEngine, METH_VARARGS, NULL},
	 { (char *)"delete_FDShoutEngine", _wrap_delete_FDShoutEngine, METH_VARARGS, NULL},
	 { (char *)"FDShoutEngine_swigregister", FDShoutEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BaroneAdesiWhaleyEngine", _wrap_new_BaroneAdesiWhaleyEngine, METH_VARARGS, NULL},
	 { (char *)"delete_BaroneAdesiWhaleyEngine", _wrap_delete_BaroneAdesiWhaleyEngine, METH_VARARGS, NULL},
	 { (char *)"BaroneAdesiWhaleyEngine_swigregister", BaroneAdesiWhaleyEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BjerksundStenslandEngine", _wrap_new_BjerksundStenslandEngine, METH_VARARGS, NULL},
	 { (char *)"delete_BjerksundStenslandEngine", _wrap_delete_BjerksundStenslandEngine, METH_VARARGS, NULL},
	 { (char *)"BjerksundStenslandEngine_swigregister", BjerksundStenslandEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AnalyticDigitalAmericanEngine", _wrap_new_AnalyticDigitalAmericanEngine, METH_VARARGS, NULL},
	 { (char *)"delete_AnalyticDigitalAmericanEngine", _wrap_delete_AnalyticDigitalAmericanEngine, METH_VARARGS, NULL},
	 { (char *)"AnalyticDigitalAmericanEngine_swigregister", AnalyticDigitalAmericanEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AnalyticDigitalAmericanKOEngine", _wrap_new_AnalyticDigitalAmericanKOEngine, METH_VARARGS, NULL},
	 { (char *)"delete_AnalyticDigitalAmericanKOEngine", _wrap_delete_AnalyticDigitalAmericanKOEngine, METH_VARARGS, NULL},
	 { (char *)"AnalyticDigitalAmericanKOEngine_swigregister", AnalyticDigitalAmericanKOEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DividendVanillaOption", _wrap_new_DividendVanillaOption, METH_VARARGS, NULL},
	 { (char *)"DividendVanillaOption_priceCurve", _wrap_DividendVanillaOption_priceCurve, METH_VARARGS, NULL},
	 { (char *)"DividendVanillaOption_impliedVolatility", _wrap_DividendVanillaOption_impliedVolatility, METH_VARARGS, NULL},
	 { (char *)"DividendVanillaOption_delta", _wrap_DividendVanillaOption_delta, METH_VARARGS, NULL},
	 { (char *)"DividendVanillaOption_gamma", _wrap_DividendVanillaOption_gamma, METH_VARARGS, NULL},
	 { (char *)"DividendVanillaOption_theta", _wrap_DividendVanillaOption_theta, METH_VARARGS, NULL},
	 { (char *)"DividendVanillaOption_thetaPerDay", _wrap_DividendVanillaOption_thetaPerDay, METH_VARARGS, NULL},
	 { (char *)"DividendVanillaOption_vega", _wrap_DividendVanillaOption_vega, METH_VARARGS, NULL},
	 { (char *)"DividendVanillaOption_rho", _wrap_DividendVanillaOption_rho, METH_VARARGS, NULL},
	 { (char *)"DividendVanillaOption_dividendRho", _wrap_DividendVanillaOption_dividendRho, METH_VARARGS, NULL},
	 { (char *)"DividendVanillaOption_strikeSensitivity", _wrap_DividendVanillaOption_strikeSensitivity, METH_VARARGS, NULL},
	 { (char *)"delete_DividendVanillaOption", _wrap_delete_DividendVanillaOption, METH_VARARGS, NULL},
	 { (char *)"DividendVanillaOption_swigregister", DividendVanillaOption_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AnalyticDividendEuropeanEngine", _wrap_new_AnalyticDividendEuropeanEngine, METH_VARARGS, NULL},
	 { (char *)"delete_AnalyticDividendEuropeanEngine", _wrap_delete_AnalyticDividendEuropeanEngine, METH_VARARGS, NULL},
	 { (char *)"AnalyticDividendEuropeanEngine_swigregister", AnalyticDividendEuropeanEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FDDividendEuropeanEngine", _wrap_new_FDDividendEuropeanEngine, METH_VARARGS, NULL},
	 { (char *)"delete_FDDividendEuropeanEngine", _wrap_delete_FDDividendEuropeanEngine, METH_VARARGS, NULL},
	 { (char *)"FDDividendEuropeanEngine_swigregister", FDDividendEuropeanEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FDDividendAmericanEngine", _wrap_new_FDDividendAmericanEngine, METH_VARARGS, NULL},
	 { (char *)"delete_FDDividendAmericanEngine", _wrap_delete_FDDividendAmericanEngine, METH_VARARGS, NULL},
	 { (char *)"FDDividendAmericanEngine_swigregister", FDDividendAmericanEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BarrierOption", _wrap_new_BarrierOption, METH_VARARGS, NULL},
	 { (char *)"BarrierOption_priceCurve", _wrap_BarrierOption_priceCurve, METH_VARARGS, NULL},
	 { (char *)"BarrierOption_impliedVolatility", _wrap_BarrierOption_impliedVolatility, METH_VARARGS, NULL},
	 { (char *)"BarrierOption_delta", _wrap_BarrierOption_delta, METH_VARARGS, NULL},
	 { (char *)"BarrierOption_gamma", _wrap_BarrierOption_gamma, METH_VARARGS, NULL},
	 { (char *)"BarrierOption_theta", _wrap_BarrierOption_theta, METH_VARARGS, NULL},
	 { (char *)"BarrierOption_thetaPerDay", _wrap_BarrierOption_thetaPerDay, METH_VARARGS, NULL},
	 { (char *)"BarrierOption_vega", _wrap_BarrierOption_vega, METH_VARARGS, NULL},
	 { (char *)"BarrierOption_rho", _wrap_BarrierOption_rho, METH_VARARGS, NULL},
	 { (char *)"BarrierOption_dividendRho", _wrap_BarrierOption_dividendRho, METH_VARARGS, NULL},
	 { (char *)"BarrierOption_strikeSensitivity", _wrap_BarrierOption_strikeSensitivity, METH_VARARGS, NULL},
	 { (char *)"delete_BarrierOption", _wrap_delete_BarrierOption, METH_VARARGS, NULL},
	 { (char *)"BarrierOption_swigregister", BarrierOption_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AnalyticBarrierEngine", _wrap_new_AnalyticBarrierEngine, METH_VARARGS, NULL},
	 { (char *)"delete_AnalyticBarrierEngine", _wrap_delete_AnalyticBarrierEngine, METH_VARARGS, NULL},
	 { (char *)"AnalyticBarrierEngine_swigregister", AnalyticBarrierEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MCBarrierEngine", (PyCFunction) _wrap_new_MCBarrierEngine, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"delete_MCBarrierEngine", _wrap_delete_MCBarrierEngine, METH_VARARGS, NULL},
	 { (char *)"MCBarrierEngine_swigregister", MCBarrierEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FdmSchemeDesc", _wrap_new_FdmSchemeDesc, METH_VARARGS, NULL},
	 { (char *)"FdmSchemeDesc_type_get", _wrap_FdmSchemeDesc_type_get, METH_VARARGS, NULL},
	 { (char *)"FdmSchemeDesc_theta_get", _wrap_FdmSchemeDesc_theta_get, METH_VARARGS, NULL},
	 { (char *)"FdmSchemeDesc_mu_get", _wrap_FdmSchemeDesc_mu_get, METH_VARARGS, NULL},
	 { (char *)"FdmSchemeDesc_Douglas", _wrap_FdmSchemeDesc_Douglas, METH_VARARGS, NULL},
	 { (char *)"FdmSchemeDesc_ImplicitEuler", _wrap_FdmSchemeDesc_ImplicitEuler, METH_VARARGS, NULL},
	 { (char *)"FdmSchemeDesc_ExplicitEuler", _wrap_FdmSchemeDesc_ExplicitEuler, METH_VARARGS, NULL},
	 { (char *)"FdmSchemeDesc_CraigSneyd", _wrap_FdmSchemeDesc_CraigSneyd, METH_VARARGS, NULL},
	 { (char *)"FdmSchemeDesc_ModifiedCraigSneyd", _wrap_FdmSchemeDesc_ModifiedCraigSneyd, METH_VARARGS, NULL},
	 { (char *)"FdmSchemeDesc_Hundsdorfer", _wrap_FdmSchemeDesc_Hundsdorfer, METH_VARARGS, NULL},
	 { (char *)"FdmSchemeDesc_ModifiedHundsdorfer", _wrap_FdmSchemeDesc_ModifiedHundsdorfer, METH_VARARGS, NULL},
	 { (char *)"delete_FdmSchemeDesc", _wrap_delete_FdmSchemeDesc, METH_VARARGS, NULL},
	 { (char *)"FdmSchemeDesc_swigregister", FdmSchemeDesc_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FdBlackScholesBarrierEngine", _wrap_new_FdBlackScholesBarrierEngine, METH_VARARGS, NULL},
	 { (char *)"delete_FdBlackScholesBarrierEngine", _wrap_delete_FdBlackScholesBarrierEngine, METH_VARARGS, NULL},
	 { (char *)"FdBlackScholesBarrierEngine_swigregister", FdBlackScholesBarrierEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AnalyticBinaryBarrierEngine", _wrap_new_AnalyticBinaryBarrierEngine, METH_VARARGS, NULL},
	 { (char *)"delete_AnalyticBinaryBarrierEngine", _wrap_delete_AnalyticBinaryBarrierEngine, METH_VARARGS, NULL},
	 { (char *)"AnalyticBinaryBarrierEngine_swigregister", AnalyticBinaryBarrierEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BinomialBarrierEngine", _wrap_new_BinomialBarrierEngine, METH_VARARGS, (char *)"\n"
		"Binomial Engine for barrier options.\n"
		"Features different binomial models, selected by the type parameters.\n"
		"Uses Boyle-Lau adjustment for optimize steps and Derman-Kani optimization to speed\n"
		"up convergence.\n"
		"Type values:\n"
		"    crr or coxrossrubinstein:        Cox-Ross-Rubinstein model\n"
		"    jr  or jarrowrudd:               Jarrow-Rudd model\n"
		"    eqp or additiveeqpbinomialtree:  Additive EQP model\n"
		"    trigeorgis:                      Trigeorgis model\n"
		"    tian:                            Tian model\n"
		"    lr  or leisenreimer              Leisen-Reimer model\n"
		"    j4  or joshi4:                   Joshi 4th (smoothed) model\n"
		"\n"
		"Boyle-Lau adjustment is controlled by parameter max_steps.\n"
		"If max_steps is equal to steps Boyle-Lau is disabled.\n"
		"Il max_steps is 0 (default value), max_steps is calculated by capping it to \n"
		"5*steps when Boyle-Lau would need more than 1000 steps.\n"
		"If max_steps is specified, it would limit binomial steps to this value.\n"
		"\n"
		""},
	 { (char *)"delete_BinomialBarrierEngine", _wrap_delete_BinomialBarrierEngine, METH_VARARGS, NULL},
	 { (char *)"BinomialBarrierEngine_swigregister", BinomialBarrierEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ForwardEuropeanEngine", _wrap_new_ForwardEuropeanEngine, METH_VARARGS, NULL},
	 { (char *)"delete_ForwardEuropeanEngine", _wrap_delete_ForwardEuropeanEngine, METH_VARARGS, NULL},
	 { (char *)"ForwardEuropeanEngine_swigregister", ForwardEuropeanEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_QuantoEuropeanEngine", _wrap_new_QuantoEuropeanEngine, METH_VARARGS, NULL},
	 { (char *)"delete_QuantoEuropeanEngine", _wrap_delete_QuantoEuropeanEngine, METH_VARARGS, NULL},
	 { (char *)"QuantoEuropeanEngine_swigregister", QuantoEuropeanEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_QuantoForwardEuropeanEngine", _wrap_new_QuantoForwardEuropeanEngine, METH_VARARGS, NULL},
	 { (char *)"delete_QuantoForwardEuropeanEngine", _wrap_delete_QuantoForwardEuropeanEngine, METH_VARARGS, NULL},
	 { (char *)"QuantoForwardEuropeanEngine_swigregister", QuantoForwardEuropeanEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BlackCalculator", _wrap_new_BlackCalculator, METH_VARARGS, NULL},
	 { (char *)"BlackCalculator_value", _wrap_BlackCalculator_value, METH_VARARGS, NULL},
	 { (char *)"BlackCalculator_deltaForward", _wrap_BlackCalculator_deltaForward, METH_VARARGS, NULL},
	 { (char *)"BlackCalculator_delta", _wrap_BlackCalculator_delta, METH_VARARGS, NULL},
	 { (char *)"BlackCalculator_elasticityForward", _wrap_BlackCalculator_elasticityForward, METH_VARARGS, NULL},
	 { (char *)"BlackCalculator_elasticity", _wrap_BlackCalculator_elasticity, METH_VARARGS, NULL},
	 { (char *)"BlackCalculator_gammaForward", _wrap_BlackCalculator_gammaForward, METH_VARARGS, NULL},
	 { (char *)"BlackCalculator_gamma", _wrap_BlackCalculator_gamma, METH_VARARGS, NULL},
	 { (char *)"BlackCalculator_theta", _wrap_BlackCalculator_theta, METH_VARARGS, NULL},
	 { (char *)"BlackCalculator_thetaPerDay", _wrap_BlackCalculator_thetaPerDay, METH_VARARGS, NULL},
	 { (char *)"BlackCalculator_vega", _wrap_BlackCalculator_vega, METH_VARARGS, NULL},
	 { (char *)"BlackCalculator_rho", _wrap_BlackCalculator_rho, METH_VARARGS, NULL},
	 { (char *)"BlackCalculator_dividendRho", _wrap_BlackCalculator_dividendRho, METH_VARARGS, NULL},
	 { (char *)"BlackCalculator_itmCashProbability", _wrap_BlackCalculator_itmCashProbability, METH_VARARGS, NULL},
	 { (char *)"BlackCalculator_itmAssetProbability", _wrap_BlackCalculator_itmAssetProbability, METH_VARARGS, NULL},
	 { (char *)"BlackCalculator_strikeSensitivity", _wrap_BlackCalculator_strikeSensitivity, METH_VARARGS, NULL},
	 { (char *)"BlackCalculator_alpha", _wrap_BlackCalculator_alpha, METH_VARARGS, NULL},
	 { (char *)"BlackCalculator_beta", _wrap_BlackCalculator_beta, METH_VARARGS, NULL},
	 { (char *)"delete_BlackCalculator", _wrap_delete_BlackCalculator, METH_VARARGS, NULL},
	 { (char *)"BlackCalculator_swigregister", BlackCalculator_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Average", _wrap_new_Average, METH_VARARGS, NULL},
	 { (char *)"delete_Average", _wrap_delete_Average, METH_VARARGS, NULL},
	 { (char *)"Average_swigregister", Average_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ContinuousAveragingAsianOption", _wrap_new_ContinuousAveragingAsianOption, METH_VARARGS, NULL},
	 { (char *)"ContinuousAveragingAsianOption_delta", _wrap_ContinuousAveragingAsianOption_delta, METH_VARARGS, NULL},
	 { (char *)"ContinuousAveragingAsianOption_gamma", _wrap_ContinuousAveragingAsianOption_gamma, METH_VARARGS, NULL},
	 { (char *)"ContinuousAveragingAsianOption_theta", _wrap_ContinuousAveragingAsianOption_theta, METH_VARARGS, NULL},
	 { (char *)"ContinuousAveragingAsianOption_thetaPerDay", _wrap_ContinuousAveragingAsianOption_thetaPerDay, METH_VARARGS, NULL},
	 { (char *)"ContinuousAveragingAsianOption_vega", _wrap_ContinuousAveragingAsianOption_vega, METH_VARARGS, NULL},
	 { (char *)"ContinuousAveragingAsianOption_rho", _wrap_ContinuousAveragingAsianOption_rho, METH_VARARGS, NULL},
	 { (char *)"ContinuousAveragingAsianOption_dividendRho", _wrap_ContinuousAveragingAsianOption_dividendRho, METH_VARARGS, NULL},
	 { (char *)"ContinuousAveragingAsianOption_strikeSensitivity", _wrap_ContinuousAveragingAsianOption_strikeSensitivity, METH_VARARGS, NULL},
	 { (char *)"delete_ContinuousAveragingAsianOption", _wrap_delete_ContinuousAveragingAsianOption, METH_VARARGS, NULL},
	 { (char *)"ContinuousAveragingAsianOption_swigregister", ContinuousAveragingAsianOption_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DiscreteAveragingAsianOption", _wrap_new_DiscreteAveragingAsianOption, METH_VARARGS, NULL},
	 { (char *)"DiscreteAveragingAsianOption_delta", _wrap_DiscreteAveragingAsianOption_delta, METH_VARARGS, NULL},
	 { (char *)"DiscreteAveragingAsianOption_gamma", _wrap_DiscreteAveragingAsianOption_gamma, METH_VARARGS, NULL},
	 { (char *)"DiscreteAveragingAsianOption_theta", _wrap_DiscreteAveragingAsianOption_theta, METH_VARARGS, NULL},
	 { (char *)"DiscreteAveragingAsianOption_thetaPerDay", _wrap_DiscreteAveragingAsianOption_thetaPerDay, METH_VARARGS, NULL},
	 { (char *)"DiscreteAveragingAsianOption_vega", _wrap_DiscreteAveragingAsianOption_vega, METH_VARARGS, NULL},
	 { (char *)"DiscreteAveragingAsianOption_rho", _wrap_DiscreteAveragingAsianOption_rho, METH_VARARGS, NULL},
	 { (char *)"DiscreteAveragingAsianOption_dividendRho", _wrap_DiscreteAveragingAsianOption_dividendRho, METH_VARARGS, NULL},
	 { (char *)"DiscreteAveragingAsianOption_strikeSensitivity", _wrap_DiscreteAveragingAsianOption_strikeSensitivity, METH_VARARGS, NULL},
	 { (char *)"delete_DiscreteAveragingAsianOption", _wrap_delete_DiscreteAveragingAsianOption, METH_VARARGS, NULL},
	 { (char *)"DiscreteAveragingAsianOption_swigregister", DiscreteAveragingAsianOption_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AnalyticContinuousGeometricAveragePriceAsianEngine", _wrap_new_AnalyticContinuousGeometricAveragePriceAsianEngine, METH_VARARGS, NULL},
	 { (char *)"delete_AnalyticContinuousGeometricAveragePriceAsianEngine", _wrap_delete_AnalyticContinuousGeometricAveragePriceAsianEngine, METH_VARARGS, NULL},
	 { (char *)"AnalyticContinuousGeometricAveragePriceAsianEngine_swigregister", AnalyticContinuousGeometricAveragePriceAsianEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AnalyticDiscreteGeometricAveragePriceAsianEngine", _wrap_new_AnalyticDiscreteGeometricAveragePriceAsianEngine, METH_VARARGS, NULL},
	 { (char *)"delete_AnalyticDiscreteGeometricAveragePriceAsianEngine", _wrap_delete_AnalyticDiscreteGeometricAveragePriceAsianEngine, METH_VARARGS, NULL},
	 { (char *)"AnalyticDiscreteGeometricAveragePriceAsianEngine_swigregister", AnalyticDiscreteGeometricAveragePriceAsianEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AnalyticDiscreteGeometricAverageStrikeAsianEngine", _wrap_new_AnalyticDiscreteGeometricAverageStrikeAsianEngine, METH_VARARGS, NULL},
	 { (char *)"delete_AnalyticDiscreteGeometricAverageStrikeAsianEngine", _wrap_delete_AnalyticDiscreteGeometricAverageStrikeAsianEngine, METH_VARARGS, NULL},
	 { (char *)"AnalyticDiscreteGeometricAverageStrikeAsianEngine_swigregister", AnalyticDiscreteGeometricAverageStrikeAsianEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MCDiscreteArithmeticAPEngine", (PyCFunction) _wrap_new_MCDiscreteArithmeticAPEngine, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"delete_MCDiscreteArithmeticAPEngine", _wrap_delete_MCDiscreteArithmeticAPEngine, METH_VARARGS, NULL},
	 { (char *)"MCDiscreteArithmeticAPEngine_swigregister", MCDiscreteArithmeticAPEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MCDiscreteArithmeticASEngine", (PyCFunction) _wrap_new_MCDiscreteArithmeticASEngine, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"delete_MCDiscreteArithmeticASEngine", _wrap_delete_MCDiscreteArithmeticASEngine, METH_VARARGS, NULL},
	 { (char *)"MCDiscreteArithmeticASEngine_swigregister", MCDiscreteArithmeticASEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MCDiscreteGeometricAPEngine", (PyCFunction) _wrap_new_MCDiscreteGeometricAPEngine, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"delete_MCDiscreteGeometricAPEngine", _wrap_delete_MCDiscreteGeometricAPEngine, METH_VARARGS, NULL},
	 { (char *)"MCDiscreteGeometricAPEngine_swigregister", MCDiscreteGeometricAPEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_VarianceGammaEngine", _wrap_new_VarianceGammaEngine, METH_VARARGS, NULL},
	 { (char *)"delete_VarianceGammaEngine", _wrap_delete_VarianceGammaEngine, METH_VARARGS, NULL},
	 { (char *)"VarianceGammaEngine_swigregister", VarianceGammaEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FFTVarianceGammaEngine", _wrap_new_FFTVarianceGammaEngine, METH_VARARGS, NULL},
	 { (char *)"FFTVarianceGammaEngine_precalculate", _wrap_FFTVarianceGammaEngine_precalculate, METH_VARARGS, NULL},
	 { (char *)"delete_FFTVarianceGammaEngine", _wrap_delete_FFTVarianceGammaEngine, METH_VARARGS, NULL},
	 { (char *)"FFTVarianceGammaEngine_swigregister", FFTVarianceGammaEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DoubleBarrierOption", _wrap_new_DoubleBarrierOption, METH_VARARGS, NULL},
	 { (char *)"DoubleBarrierOption_delta", _wrap_DoubleBarrierOption_delta, METH_VARARGS, NULL},
	 { (char *)"DoubleBarrierOption_gamma", _wrap_DoubleBarrierOption_gamma, METH_VARARGS, NULL},
	 { (char *)"DoubleBarrierOption_theta", _wrap_DoubleBarrierOption_theta, METH_VARARGS, NULL},
	 { (char *)"DoubleBarrierOption_thetaPerDay", _wrap_DoubleBarrierOption_thetaPerDay, METH_VARARGS, NULL},
	 { (char *)"DoubleBarrierOption_vega", _wrap_DoubleBarrierOption_vega, METH_VARARGS, NULL},
	 { (char *)"DoubleBarrierOption_rho", _wrap_DoubleBarrierOption_rho, METH_VARARGS, NULL},
	 { (char *)"DoubleBarrierOption_dividendRho", _wrap_DoubleBarrierOption_dividendRho, METH_VARARGS, NULL},
	 { (char *)"DoubleBarrierOption_strikeSensitivity", _wrap_DoubleBarrierOption_strikeSensitivity, METH_VARARGS, NULL},
	 { (char *)"delete_DoubleBarrierOption", _wrap_delete_DoubleBarrierOption, METH_VARARGS, NULL},
	 { (char *)"DoubleBarrierOption_swigregister", DoubleBarrierOption_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_QuantoDoubleBarrierOption", _wrap_new_QuantoDoubleBarrierOption, METH_VARARGS, NULL},
	 { (char *)"QuantoDoubleBarrierOption_qvega", _wrap_QuantoDoubleBarrierOption_qvega, METH_VARARGS, NULL},
	 { (char *)"QuantoDoubleBarrierOption_qrho", _wrap_QuantoDoubleBarrierOption_qrho, METH_VARARGS, NULL},
	 { (char *)"QuantoDoubleBarrierOption_qlambda", _wrap_QuantoDoubleBarrierOption_qlambda, METH_VARARGS, NULL},
	 { (char *)"delete_QuantoDoubleBarrierOption", _wrap_delete_QuantoDoubleBarrierOption, METH_VARARGS, NULL},
	 { (char *)"QuantoDoubleBarrierOption_swigregister", QuantoDoubleBarrierOption_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AnalyticDoubleBarrierEngine", _wrap_new_AnalyticDoubleBarrierEngine, METH_VARARGS, (char *)"Double barrier engine implementing Ikeda-Kunitomo series."},
	 { (char *)"delete_AnalyticDoubleBarrierEngine", _wrap_delete_AnalyticDoubleBarrierEngine, METH_VARARGS, NULL},
	 { (char *)"AnalyticDoubleBarrierEngine_swigregister", AnalyticDoubleBarrierEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_WulinYongDoubleBarrierEngine", _wrap_new_WulinYongDoubleBarrierEngine, METH_VARARGS, NULL},
	 { (char *)"delete_WulinYongDoubleBarrierEngine", _wrap_delete_WulinYongDoubleBarrierEngine, METH_VARARGS, NULL},
	 { (char *)"WulinYongDoubleBarrierEngine_swigregister", WulinYongDoubleBarrierEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"DeltaVolQuote___deref__", _wrap_DeltaVolQuote___deref__, METH_VARARGS, NULL},
	 { (char *)"DeltaVolQuote___nonzero__", _wrap_DeltaVolQuote___nonzero__, METH_VARARGS, NULL},
	 { (char *)"DeltaVolQuote___bool__", _wrap_DeltaVolQuote___bool__, METH_VARARGS, NULL},
	 { (char *)"DeltaVolQuote_asObservable", _wrap_DeltaVolQuote_asObservable, METH_VARARGS, NULL},
	 { (char *)"new_DeltaVolQuote", _wrap_new_DeltaVolQuote, METH_VARARGS, NULL},
	 { (char *)"delete_DeltaVolQuote", _wrap_delete_DeltaVolQuote, METH_VARARGS, NULL},
	 { (char *)"DeltaVolQuote_value", _wrap_DeltaVolQuote_value, METH_VARARGS, NULL},
	 { (char *)"DeltaVolQuote_swigregister", DeltaVolQuote_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DeltaVolQuoteHandle", _wrap_new_DeltaVolQuoteHandle, METH_VARARGS, NULL},
	 { (char *)"DeltaVolQuoteHandle___deref__", _wrap_DeltaVolQuoteHandle___deref__, METH_VARARGS, NULL},
	 { (char *)"DeltaVolQuoteHandle___nonzero__", _wrap_DeltaVolQuoteHandle___nonzero__, METH_VARARGS, NULL},
	 { (char *)"DeltaVolQuoteHandle___bool__", _wrap_DeltaVolQuoteHandle___bool__, METH_VARARGS, NULL},
	 { (char *)"DeltaVolQuoteHandle_asObservable", _wrap_DeltaVolQuoteHandle_asObservable, METH_VARARGS, NULL},
	 { (char *)"delete_DeltaVolQuoteHandle", _wrap_delete_DeltaVolQuoteHandle, METH_VARARGS, NULL},
	 { (char *)"DeltaVolQuoteHandle_value", _wrap_DeltaVolQuoteHandle_value, METH_VARARGS, NULL},
	 { (char *)"DeltaVolQuoteHandle_swigregister", DeltaVolQuoteHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_RelinkableDeltaVolQuoteHandle", _wrap_new_RelinkableDeltaVolQuoteHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableDeltaVolQuoteHandle_linkTo", _wrap_RelinkableDeltaVolQuoteHandle_linkTo, METH_VARARGS, NULL},
	 { (char *)"delete_RelinkableDeltaVolQuoteHandle", _wrap_delete_RelinkableDeltaVolQuoteHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableDeltaVolQuoteHandle_swigregister", RelinkableDeltaVolQuoteHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_VannaVolgaDoubleBarrierEngine", _wrap_new_VannaVolgaDoubleBarrierEngine, METH_VARARGS, (char *)"\n"
		"\n"
		"Vanna-Volga engine for double barrier options.\n"
		"Supports different double barrier engines, selected by the type parameters.\n"
		"Type values:\n"
		"    ik or analytic:  Ikeda-Kunitomo standard engine (default)\n"
		"    wo:              Wulin-Yong engine\n"
		"\n"
		""},
	 { (char *)"delete_VannaVolgaDoubleBarrierEngine", _wrap_delete_VannaVolgaDoubleBarrierEngine, METH_VARARGS, NULL},
	 { (char *)"VannaVolgaDoubleBarrierEngine_swigregister", VannaVolgaDoubleBarrierEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AnalyticDoubleBarrierBinaryEngine", _wrap_new_AnalyticDoubleBarrierBinaryEngine, METH_VARARGS, NULL},
	 { (char *)"delete_AnalyticDoubleBarrierBinaryEngine", _wrap_delete_AnalyticDoubleBarrierBinaryEngine, METH_VARARGS, NULL},
	 { (char *)"AnalyticDoubleBarrierBinaryEngine_swigregister", AnalyticDoubleBarrierBinaryEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BinomialDoubleBarrierEngine", _wrap_new_BinomialDoubleBarrierEngine, METH_VARARGS, (char *)"\n"
		"Binomial Engine for double barrier options.\n"
		"Features different binomial models, selected by the type parameters.\n"
		"Uses Derman-Kani optimization to speed up convergence.\n"
		"Type values:\n"
		"    crr or coxrossrubinstein:        Cox-Ross-Rubinstein model\n"
		"    jr  or jarrowrudd:               Jarrow-Rudd model\n"
		"    eqp or additiveeqpbinomialtree:  Additive EQP model\n"
		"    trigeorgis:                      Trigeorgis model\n"
		"    tian:                            Tian model\n"
		"    lr  or leisenreimer              Leisen-Reimer model\n"
		"    j4  or joshi4:                   Joshi 4th (smoothed) model\n"
		"\n"
		""},
	 { (char *)"delete_BinomialDoubleBarrierEngine", _wrap_delete_BinomialDoubleBarrierEngine, METH_VARARGS, NULL},
	 { (char *)"BinomialDoubleBarrierEngine_swigregister", BinomialDoubleBarrierEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PlainVanillaPayoff", _wrap_new_PlainVanillaPayoff, METH_VARARGS, NULL},
	 { (char *)"PlainVanillaPayoff_optionType", _wrap_PlainVanillaPayoff_optionType, METH_VARARGS, NULL},
	 { (char *)"PlainVanillaPayoff_strike", _wrap_PlainVanillaPayoff_strike, METH_VARARGS, NULL},
	 { (char *)"delete_PlainVanillaPayoff", _wrap_delete_PlainVanillaPayoff, METH_VARARGS, NULL},
	 { (char *)"PlainVanillaPayoff_swigregister", PlainVanillaPayoff_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PercentageStrikePayoff", _wrap_new_PercentageStrikePayoff, METH_VARARGS, NULL},
	 { (char *)"delete_PercentageStrikePayoff", _wrap_delete_PercentageStrikePayoff, METH_VARARGS, NULL},
	 { (char *)"PercentageStrikePayoff_swigregister", PercentageStrikePayoff_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CashOrNothingPayoff", _wrap_new_CashOrNothingPayoff, METH_VARARGS, NULL},
	 { (char *)"delete_CashOrNothingPayoff", _wrap_delete_CashOrNothingPayoff, METH_VARARGS, NULL},
	 { (char *)"CashOrNothingPayoff_swigregister", CashOrNothingPayoff_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AssetOrNothingPayoff", _wrap_new_AssetOrNothingPayoff, METH_VARARGS, NULL},
	 { (char *)"delete_AssetOrNothingPayoff", _wrap_delete_AssetOrNothingPayoff, METH_VARARGS, NULL},
	 { (char *)"AssetOrNothingPayoff_swigregister", AssetOrNothingPayoff_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SuperSharePayoff", _wrap_new_SuperSharePayoff, METH_VARARGS, NULL},
	 { (char *)"delete_SuperSharePayoff", _wrap_delete_SuperSharePayoff, METH_VARARGS, NULL},
	 { (char *)"SuperSharePayoff_swigregister", SuperSharePayoff_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GapPayoff", _wrap_new_GapPayoff, METH_VARARGS, NULL},
	 { (char *)"delete_GapPayoff", _wrap_delete_GapPayoff, METH_VARARGS, NULL},
	 { (char *)"GapPayoff_swigregister", GapPayoff_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BasketPayoff", _wrap_new_BasketPayoff, METH_VARARGS, NULL},
	 { (char *)"delete_BasketPayoff", _wrap_delete_BasketPayoff, METH_VARARGS, NULL},
	 { (char *)"BasketPayoff_swigregister", BasketPayoff_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MinBasketPayoff", _wrap_new_MinBasketPayoff, METH_VARARGS, NULL},
	 { (char *)"delete_MinBasketPayoff", _wrap_delete_MinBasketPayoff, METH_VARARGS, NULL},
	 { (char *)"MinBasketPayoff_swigregister", MinBasketPayoff_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MaxBasketPayoff", _wrap_new_MaxBasketPayoff, METH_VARARGS, NULL},
	 { (char *)"delete_MaxBasketPayoff", _wrap_delete_MaxBasketPayoff, METH_VARARGS, NULL},
	 { (char *)"MaxBasketPayoff_swigregister", MaxBasketPayoff_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AverageBasketPayoff", _wrap_new_AverageBasketPayoff, METH_VARARGS, NULL},
	 { (char *)"delete_AverageBasketPayoff", _wrap_delete_AverageBasketPayoff, METH_VARARGS, NULL},
	 { (char *)"AverageBasketPayoff_swigregister", AverageBasketPayoff_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BasketOption", _wrap_new_BasketOption, METH_VARARGS, NULL},
	 { (char *)"delete_BasketOption", _wrap_delete_BasketOption, METH_VARARGS, NULL},
	 { (char *)"BasketOption_swigregister", BasketOption_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MCEuropeanBasketEngine", (PyCFunction) _wrap_new_MCEuropeanBasketEngine, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"delete_MCEuropeanBasketEngine", _wrap_delete_MCEuropeanBasketEngine, METH_VARARGS, NULL},
	 { (char *)"MCEuropeanBasketEngine_swigregister", MCEuropeanBasketEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MCAmericanBasketEngine", (PyCFunction) _wrap_new_MCAmericanBasketEngine, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"delete_MCAmericanBasketEngine", _wrap_delete_MCAmericanBasketEngine, METH_VARARGS, NULL},
	 { (char *)"MCAmericanBasketEngine_swigregister", MCAmericanBasketEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_StulzEngine", _wrap_new_StulzEngine, METH_VARARGS, NULL},
	 { (char *)"delete_StulzEngine", _wrap_delete_StulzEngine, METH_VARARGS, NULL},
	 { (char *)"StulzEngine_swigregister", StulzEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EverestOption", _wrap_new_EverestOption, METH_VARARGS, NULL},
	 { (char *)"delete_EverestOption", _wrap_delete_EverestOption, METH_VARARGS, NULL},
	 { (char *)"EverestOption_swigregister", EverestOption_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MCEverestEngine", (PyCFunction) _wrap_new_MCEverestEngine, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"delete_MCEverestEngine", _wrap_delete_MCEverestEngine, METH_VARARGS, NULL},
	 { (char *)"MCEverestEngine_swigregister", MCEverestEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_HimalayaOption", _wrap_new_HimalayaOption, METH_VARARGS, NULL},
	 { (char *)"delete_HimalayaOption", _wrap_delete_HimalayaOption, METH_VARARGS, NULL},
	 { (char *)"HimalayaOption_swigregister", HimalayaOption_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MCHimalayaEngine", (PyCFunction) _wrap_new_MCHimalayaEngine, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"delete_MCHimalayaEngine", _wrap_delete_MCHimalayaEngine, METH_VARARGS, NULL},
	 { (char *)"MCHimalayaEngine_swigregister", MCHimalayaEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"blackFormula", _wrap_blackFormula, METH_VARARGS, NULL},
	 { (char *)"blackFormulaImpliedStdDev", _wrap_blackFormulaImpliedStdDev, METH_VARARGS, NULL},
	 { (char *)"blackFormulaCashItmProbability", _wrap_blackFormulaCashItmProbability, METH_VARARGS, NULL},
	 { (char *)"bachelierBlackFormula", _wrap_bachelierBlackFormula, METH_VARARGS, NULL},
	 { (char *)"bachelierBlackFormulaImpliedVol", _wrap_bachelierBlackFormulaImpliedVol, METH_VARARGS, NULL},
	 { (char *)"new_BlackDeltaCalculator", _wrap_new_BlackDeltaCalculator, METH_VARARGS, NULL},
	 { (char *)"BlackDeltaCalculator_deltaFromStrike", _wrap_BlackDeltaCalculator_deltaFromStrike, METH_VARARGS, NULL},
	 { (char *)"BlackDeltaCalculator_strikeFromDelta", _wrap_BlackDeltaCalculator_strikeFromDelta, METH_VARARGS, NULL},
	 { (char *)"BlackDeltaCalculator_atmStrike", _wrap_BlackDeltaCalculator_atmStrike, METH_VARARGS, NULL},
	 { (char *)"delete_BlackDeltaCalculator", _wrap_delete_BlackDeltaCalculator, METH_VARARGS, NULL},
	 { (char *)"BlackDeltaCalculator_swigregister", BlackDeltaCalculator_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CallabilityPrice", _wrap_new_CallabilityPrice, METH_VARARGS, NULL},
	 { (char *)"CallabilityPrice_amount", _wrap_CallabilityPrice_amount, METH_VARARGS, NULL},
	 { (char *)"CallabilityPrice_type", _wrap_CallabilityPrice_type, METH_VARARGS, NULL},
	 { (char *)"delete_CallabilityPrice", _wrap_delete_CallabilityPrice, METH_VARARGS, NULL},
	 { (char *)"CallabilityPrice_swigregister", CallabilityPrice_swigregister, METH_VARARGS, NULL},
	 { (char *)"Callability___deref__", _wrap_Callability___deref__, METH_VARARGS, NULL},
	 { (char *)"Callability___nonzero__", _wrap_Callability___nonzero__, METH_VARARGS, NULL},
	 { (char *)"Callability___bool__", _wrap_Callability___bool__, METH_VARARGS, NULL},
	 { (char *)"new_Callability", _wrap_new_Callability, METH_VARARGS, NULL},
	 { (char *)"delete_Callability", _wrap_delete_Callability, METH_VARARGS, NULL},
	 { (char *)"Callability_price", _wrap_Callability_price, METH_VARARGS, NULL},
	 { (char *)"Callability_type", _wrap_Callability_type, METH_VARARGS, NULL},
	 { (char *)"Callability_date", _wrap_Callability_date, METH_VARARGS, NULL},
	 { (char *)"Callability_swigregister", Callability_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SoftCallability", _wrap_new_SoftCallability, METH_VARARGS, NULL},
	 { (char *)"delete_SoftCallability", _wrap_delete_SoftCallability, METH_VARARGS, NULL},
	 { (char *)"SoftCallability_swigregister", SoftCallability_swigregister, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_iterator", _wrap_CallabilitySchedule_iterator, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule___nonzero__", _wrap_CallabilitySchedule___nonzero__, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule___bool__", _wrap_CallabilitySchedule___bool__, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule___len__", _wrap_CallabilitySchedule___len__, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule___getslice__", _wrap_CallabilitySchedule___getslice__, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule___setslice__", _wrap_CallabilitySchedule___setslice__, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule___delslice__", _wrap_CallabilitySchedule___delslice__, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule___delitem__", _wrap_CallabilitySchedule___delitem__, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule___getitem__", _wrap_CallabilitySchedule___getitem__, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule___setitem__", _wrap_CallabilitySchedule___setitem__, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_pop", _wrap_CallabilitySchedule_pop, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_append", _wrap_CallabilitySchedule_append, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_empty", _wrap_CallabilitySchedule_empty, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_size", _wrap_CallabilitySchedule_size, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_swap", _wrap_CallabilitySchedule_swap, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_begin", _wrap_CallabilitySchedule_begin, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_end", _wrap_CallabilitySchedule_end, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_rbegin", _wrap_CallabilitySchedule_rbegin, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_rend", _wrap_CallabilitySchedule_rend, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_clear", _wrap_CallabilitySchedule_clear, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_get_allocator", _wrap_CallabilitySchedule_get_allocator, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_pop_back", _wrap_CallabilitySchedule_pop_back, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_erase", _wrap_CallabilitySchedule_erase, METH_VARARGS, NULL},
	 { (char *)"new_CallabilitySchedule", _wrap_new_CallabilitySchedule, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_push_back", _wrap_CallabilitySchedule_push_back, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_front", _wrap_CallabilitySchedule_front, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_back", _wrap_CallabilitySchedule_back, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_assign", _wrap_CallabilitySchedule_assign, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_resize", _wrap_CallabilitySchedule_resize, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_insert", _wrap_CallabilitySchedule_insert, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_reserve", _wrap_CallabilitySchedule_reserve, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_capacity", _wrap_CallabilitySchedule_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_CallabilitySchedule", _wrap_delete_CallabilitySchedule, METH_VARARGS, NULL},
	 { (char *)"CallabilitySchedule_swigregister", CallabilitySchedule_swigregister, METH_VARARGS, NULL},
	 { (char *)"Seasonality___deref__", _wrap_Seasonality___deref__, METH_VARARGS, NULL},
	 { (char *)"Seasonality___nonzero__", _wrap_Seasonality___nonzero__, METH_VARARGS, NULL},
	 { (char *)"Seasonality___bool__", _wrap_Seasonality___bool__, METH_VARARGS, NULL},
	 { (char *)"new_Seasonality", _wrap_new_Seasonality, METH_VARARGS, NULL},
	 { (char *)"delete_Seasonality", _wrap_delete_Seasonality, METH_VARARGS, NULL},
	 { (char *)"Seasonality_correctZeroRate", _wrap_Seasonality_correctZeroRate, METH_VARARGS, NULL},
	 { (char *)"Seasonality_correctYoYRate", _wrap_Seasonality_correctYoYRate, METH_VARARGS, NULL},
	 { (char *)"Seasonality_isConsistent", _wrap_Seasonality_isConsistent, METH_VARARGS, NULL},
	 { (char *)"Seasonality_swigregister", Seasonality_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MultiplicativePriceSeasonalityPtr", _wrap_new_MultiplicativePriceSeasonalityPtr, METH_VARARGS, NULL},
	 { (char *)"delete_MultiplicativePriceSeasonalityPtr", _wrap_delete_MultiplicativePriceSeasonalityPtr, METH_VARARGS, NULL},
	 { (char *)"MultiplicativePriceSeasonalityPtr_swigregister", MultiplicativePriceSeasonalityPtr_swigregister, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure___deref__", _wrap_YoYInflationTermStructure___deref__, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure___nonzero__", _wrap_YoYInflationTermStructure___nonzero__, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure___bool__", _wrap_YoYInflationTermStructure___bool__, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_asObservable", _wrap_YoYInflationTermStructure_asObservable, METH_VARARGS, NULL},
	 { (char *)"new_YoYInflationTermStructure", _wrap_new_YoYInflationTermStructure, METH_VARARGS, NULL},
	 { (char *)"delete_YoYInflationTermStructure", _wrap_delete_YoYInflationTermStructure, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_yoyRate", _wrap_YoYInflationTermStructure_yoyRate, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_dayCounter", _wrap_YoYInflationTermStructure_dayCounter, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_calendar", _wrap_YoYInflationTermStructure_calendar, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_referenceDate", _wrap_YoYInflationTermStructure_referenceDate, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_maxDate", _wrap_YoYInflationTermStructure_maxDate, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_maxTime", _wrap_YoYInflationTermStructure_maxTime, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_observationLag", _wrap_YoYInflationTermStructure_observationLag, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_frequency", _wrap_YoYInflationTermStructure_frequency, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_indexIsInterpolated", _wrap_YoYInflationTermStructure_indexIsInterpolated, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_baseRate", _wrap_YoYInflationTermStructure_baseRate, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_nominalTermStructure", _wrap_YoYInflationTermStructure_nominalTermStructure, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_baseDate", _wrap_YoYInflationTermStructure_baseDate, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_setSeasonality", _wrap_YoYInflationTermStructure_setSeasonality, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_seasonality", _wrap_YoYInflationTermStructure_seasonality, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_hasSeasonality", _wrap_YoYInflationTermStructure_hasSeasonality, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_enableExtrapolation", _wrap_YoYInflationTermStructure_enableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_disableExtrapolation", _wrap_YoYInflationTermStructure_disableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_allowsExtrapolation", _wrap_YoYInflationTermStructure_allowsExtrapolation, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructure_swigregister", YoYInflationTermStructure_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_YoYInflationTermStructureHandle", _wrap_new_YoYInflationTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle___deref__", _wrap_YoYInflationTermStructureHandle___deref__, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle___nonzero__", _wrap_YoYInflationTermStructureHandle___nonzero__, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle___bool__", _wrap_YoYInflationTermStructureHandle___bool__, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_asObservable", _wrap_YoYInflationTermStructureHandle_asObservable, METH_VARARGS, NULL},
	 { (char *)"delete_YoYInflationTermStructureHandle", _wrap_delete_YoYInflationTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_yoyRate", _wrap_YoYInflationTermStructureHandle_yoyRate, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_dayCounter", _wrap_YoYInflationTermStructureHandle_dayCounter, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_calendar", _wrap_YoYInflationTermStructureHandle_calendar, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_referenceDate", _wrap_YoYInflationTermStructureHandle_referenceDate, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_maxDate", _wrap_YoYInflationTermStructureHandle_maxDate, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_maxTime", _wrap_YoYInflationTermStructureHandle_maxTime, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_observationLag", _wrap_YoYInflationTermStructureHandle_observationLag, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_frequency", _wrap_YoYInflationTermStructureHandle_frequency, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_indexIsInterpolated", _wrap_YoYInflationTermStructureHandle_indexIsInterpolated, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_baseRate", _wrap_YoYInflationTermStructureHandle_baseRate, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_nominalTermStructure", _wrap_YoYInflationTermStructureHandle_nominalTermStructure, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_baseDate", _wrap_YoYInflationTermStructureHandle_baseDate, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_setSeasonality", _wrap_YoYInflationTermStructureHandle_setSeasonality, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_seasonality", _wrap_YoYInflationTermStructureHandle_seasonality, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_hasSeasonality", _wrap_YoYInflationTermStructureHandle_hasSeasonality, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_enableExtrapolation", _wrap_YoYInflationTermStructureHandle_enableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_disableExtrapolation", _wrap_YoYInflationTermStructureHandle_disableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_allowsExtrapolation", _wrap_YoYInflationTermStructureHandle_allowsExtrapolation, METH_VARARGS, NULL},
	 { (char *)"YoYInflationTermStructureHandle_swigregister", YoYInflationTermStructureHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_RelinkableYoYInflationTermStructureHandle", _wrap_new_RelinkableYoYInflationTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableYoYInflationTermStructureHandle_linkTo", _wrap_RelinkableYoYInflationTermStructureHandle_linkTo, METH_VARARGS, NULL},
	 { (char *)"delete_RelinkableYoYInflationTermStructureHandle", _wrap_delete_RelinkableYoYInflationTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableYoYInflationTermStructureHandle_swigregister", RelinkableYoYInflationTermStructureHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure___deref__", _wrap_ZeroInflationTermStructure___deref__, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure___nonzero__", _wrap_ZeroInflationTermStructure___nonzero__, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure___bool__", _wrap_ZeroInflationTermStructure___bool__, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_asObservable", _wrap_ZeroInflationTermStructure_asObservable, METH_VARARGS, NULL},
	 { (char *)"new_ZeroInflationTermStructure", _wrap_new_ZeroInflationTermStructure, METH_VARARGS, NULL},
	 { (char *)"delete_ZeroInflationTermStructure", _wrap_delete_ZeroInflationTermStructure, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_zeroRate", _wrap_ZeroInflationTermStructure_zeroRate, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_dayCounter", _wrap_ZeroInflationTermStructure_dayCounter, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_calendar", _wrap_ZeroInflationTermStructure_calendar, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_referenceDate", _wrap_ZeroInflationTermStructure_referenceDate, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_maxDate", _wrap_ZeroInflationTermStructure_maxDate, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_maxTime", _wrap_ZeroInflationTermStructure_maxTime, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_observationLag", _wrap_ZeroInflationTermStructure_observationLag, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_frequency", _wrap_ZeroInflationTermStructure_frequency, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_indexIsInterpolated", _wrap_ZeroInflationTermStructure_indexIsInterpolated, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_baseRate", _wrap_ZeroInflationTermStructure_baseRate, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_nominalTermStructure", _wrap_ZeroInflationTermStructure_nominalTermStructure, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_baseDate", _wrap_ZeroInflationTermStructure_baseDate, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_setSeasonality", _wrap_ZeroInflationTermStructure_setSeasonality, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_seasonality", _wrap_ZeroInflationTermStructure_seasonality, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_hasSeasonality", _wrap_ZeroInflationTermStructure_hasSeasonality, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_enableExtrapolation", _wrap_ZeroInflationTermStructure_enableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_disableExtrapolation", _wrap_ZeroInflationTermStructure_disableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_allowsExtrapolation", _wrap_ZeroInflationTermStructure_allowsExtrapolation, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructure_swigregister", ZeroInflationTermStructure_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ZeroInflationTermStructureHandle", _wrap_new_ZeroInflationTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle___deref__", _wrap_ZeroInflationTermStructureHandle___deref__, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle___nonzero__", _wrap_ZeroInflationTermStructureHandle___nonzero__, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle___bool__", _wrap_ZeroInflationTermStructureHandle___bool__, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_asObservable", _wrap_ZeroInflationTermStructureHandle_asObservable, METH_VARARGS, NULL},
	 { (char *)"delete_ZeroInflationTermStructureHandle", _wrap_delete_ZeroInflationTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_zeroRate", _wrap_ZeroInflationTermStructureHandle_zeroRate, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_dayCounter", _wrap_ZeroInflationTermStructureHandle_dayCounter, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_calendar", _wrap_ZeroInflationTermStructureHandle_calendar, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_referenceDate", _wrap_ZeroInflationTermStructureHandle_referenceDate, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_maxDate", _wrap_ZeroInflationTermStructureHandle_maxDate, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_maxTime", _wrap_ZeroInflationTermStructureHandle_maxTime, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_observationLag", _wrap_ZeroInflationTermStructureHandle_observationLag, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_frequency", _wrap_ZeroInflationTermStructureHandle_frequency, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_indexIsInterpolated", _wrap_ZeroInflationTermStructureHandle_indexIsInterpolated, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_baseRate", _wrap_ZeroInflationTermStructureHandle_baseRate, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_nominalTermStructure", _wrap_ZeroInflationTermStructureHandle_nominalTermStructure, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_baseDate", _wrap_ZeroInflationTermStructureHandle_baseDate, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_setSeasonality", _wrap_ZeroInflationTermStructureHandle_setSeasonality, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_seasonality", _wrap_ZeroInflationTermStructureHandle_seasonality, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_hasSeasonality", _wrap_ZeroInflationTermStructureHandle_hasSeasonality, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_enableExtrapolation", _wrap_ZeroInflationTermStructureHandle_enableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_disableExtrapolation", _wrap_ZeroInflationTermStructureHandle_disableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_allowsExtrapolation", _wrap_ZeroInflationTermStructureHandle_allowsExtrapolation, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationTermStructureHandle_swigregister", ZeroInflationTermStructureHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_RelinkableZeroInflationTermStructureHandle", _wrap_new_RelinkableZeroInflationTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableZeroInflationTermStructureHandle_linkTo", _wrap_RelinkableZeroInflationTermStructureHandle_linkTo, METH_VARARGS, NULL},
	 { (char *)"delete_RelinkableZeroInflationTermStructureHandle", _wrap_delete_RelinkableZeroInflationTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableZeroInflationTermStructureHandle_swigregister", RelinkableZeroInflationTermStructureHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"Region_name", _wrap_Region_name, METH_VARARGS, NULL},
	 { (char *)"Region_code", _wrap_Region_code, METH_VARARGS, NULL},
	 { (char *)"delete_Region", _wrap_delete_Region, METH_VARARGS, NULL},
	 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CustomRegion", _wrap_new_CustomRegion, METH_VARARGS, NULL},
	 { (char *)"delete_CustomRegion", _wrap_delete_CustomRegion, METH_VARARGS, NULL},
	 { (char *)"CustomRegion_swigregister", CustomRegion_swigregister, METH_VARARGS, NULL},
	 { (char *)"InflationIndex_interpolated", _wrap_InflationIndex_interpolated, METH_VARARGS, NULL},
	 { (char *)"InflationIndex_frequency", _wrap_InflationIndex_frequency, METH_VARARGS, NULL},
	 { (char *)"InflationIndex_availabilityLag", _wrap_InflationIndex_availabilityLag, METH_VARARGS, NULL},
	 { (char *)"InflationIndex_currency", _wrap_InflationIndex_currency, METH_VARARGS, NULL},
	 { (char *)"delete_InflationIndex", _wrap_delete_InflationIndex, METH_VARARGS, NULL},
	 { (char *)"InflationIndex_swigregister", InflationIndex_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ZeroInflationIndex", _wrap_new_ZeroInflationIndex, METH_VARARGS, NULL},
	 { (char *)"delete_ZeroInflationIndex", _wrap_delete_ZeroInflationIndex, METH_VARARGS, NULL},
	 { (char *)"ZeroInflationIndex_swigregister", ZeroInflationIndex_swigregister, METH_VARARGS, NULL},
	 { (char *)"delete_YoYInflationIndex", _wrap_delete_YoYInflationIndex, METH_VARARGS, NULL},
	 { (char *)"YoYInflationIndex_swigregister", YoYInflationIndex_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EUHICP", _wrap_new_EUHICP, METH_VARARGS, NULL},
	 { (char *)"delete_EUHICP", _wrap_delete_EUHICP, METH_VARARGS, NULL},
	 { (char *)"EUHICP_swigregister", EUHICP_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_EUHICPXT", _wrap_new_EUHICPXT, METH_VARARGS, NULL},
	 { (char *)"delete_EUHICPXT", _wrap_delete_EUHICPXT, METH_VARARGS, NULL},
	 { (char *)"EUHICPXT_swigregister", EUHICPXT_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FRHICP", _wrap_new_FRHICP, METH_VARARGS, NULL},
	 { (char *)"delete_FRHICP", _wrap_delete_FRHICP, METH_VARARGS, NULL},
	 { (char *)"FRHICP_swigregister", FRHICP_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_UKRPI", _wrap_new_UKRPI, METH_VARARGS, NULL},
	 { (char *)"delete_UKRPI", _wrap_delete_UKRPI, METH_VARARGS, NULL},
	 { (char *)"UKRPI_swigregister", UKRPI_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_USCPI", _wrap_new_USCPI, METH_VARARGS, NULL},
	 { (char *)"delete_USCPI", _wrap_delete_USCPI, METH_VARARGS, NULL},
	 { (char *)"USCPI_swigregister", USCPI_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ZACPI", _wrap_new_ZACPI, METH_VARARGS, NULL},
	 { (char *)"delete_ZACPI", _wrap_delete_ZACPI, METH_VARARGS, NULL},
	 { (char *)"ZACPI_swigregister", ZACPI_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_YYEUHICP", _wrap_new_YYEUHICP, METH_VARARGS, NULL},
	 { (char *)"delete_YYEUHICP", _wrap_delete_YYEUHICP, METH_VARARGS, NULL},
	 { (char *)"YYEUHICP_swigregister", YYEUHICP_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_YYEUHICPXT", _wrap_new_YYEUHICPXT, METH_VARARGS, NULL},
	 { (char *)"delete_YYEUHICPXT", _wrap_delete_YYEUHICPXT, METH_VARARGS, NULL},
	 { (char *)"YYEUHICPXT_swigregister", YYEUHICPXT_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_YYFRHICP", _wrap_new_YYFRHICP, METH_VARARGS, NULL},
	 { (char *)"delete_YYFRHICP", _wrap_delete_YYFRHICP, METH_VARARGS, NULL},
	 { (char *)"YYFRHICP_swigregister", YYFRHICP_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_YYUKRPI", _wrap_new_YYUKRPI, METH_VARARGS, NULL},
	 { (char *)"delete_YYUKRPI", _wrap_delete_YYUKRPI, METH_VARARGS, NULL},
	 { (char *)"YYUKRPI_swigregister", YYUKRPI_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_YYUSCPI", _wrap_new_YYUSCPI, METH_VARARGS, NULL},
	 { (char *)"delete_YYUSCPI", _wrap_delete_YYUSCPI, METH_VARARGS, NULL},
	 { (char *)"YYUSCPI_swigregister", YYUSCPI_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_YYZACPI", _wrap_new_YYZACPI, METH_VARARGS, NULL},
	 { (char *)"delete_YYZACPI", _wrap_delete_YYZACPI, METH_VARARGS, NULL},
	 { (char *)"YYZACPI_swigregister", YYZACPI_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CPI", _wrap_new_CPI, METH_VARARGS, NULL},
	 { (char *)"delete_CPI", _wrap_delete_CPI, METH_VARARGS, NULL},
	 { (char *)"CPI_swigregister", CPI_swigregister, METH_VARARGS, NULL},
	 { (char *)"ZeroHelper___deref__", _wrap_ZeroHelper___deref__, METH_VARARGS, NULL},
	 { (char *)"ZeroHelper___nonzero__", _wrap_ZeroHelper___nonzero__, METH_VARARGS, NULL},
	 { (char *)"ZeroHelper___bool__", _wrap_ZeroHelper___bool__, METH_VARARGS, NULL},
	 { (char *)"new_ZeroHelper", _wrap_new_ZeroHelper, METH_VARARGS, NULL},
	 { (char *)"delete_ZeroHelper", _wrap_delete_ZeroHelper, METH_VARARGS, NULL},
	 { (char *)"ZeroHelper_swigregister", ZeroHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"YoYHelper___deref__", _wrap_YoYHelper___deref__, METH_VARARGS, NULL},
	 { (char *)"YoYHelper___nonzero__", _wrap_YoYHelper___nonzero__, METH_VARARGS, NULL},
	 { (char *)"YoYHelper___bool__", _wrap_YoYHelper___bool__, METH_VARARGS, NULL},
	 { (char *)"new_YoYHelper", _wrap_new_YoYHelper, METH_VARARGS, NULL},
	 { (char *)"delete_YoYHelper", _wrap_delete_YoYHelper, METH_VARARGS, NULL},
	 { (char *)"YoYHelper_swigregister", YoYHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_iterator", _wrap_ZeroHelperVector_iterator, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector___nonzero__", _wrap_ZeroHelperVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector___bool__", _wrap_ZeroHelperVector___bool__, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector___len__", _wrap_ZeroHelperVector___len__, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector___getslice__", _wrap_ZeroHelperVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector___setslice__", _wrap_ZeroHelperVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector___delslice__", _wrap_ZeroHelperVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector___delitem__", _wrap_ZeroHelperVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector___getitem__", _wrap_ZeroHelperVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector___setitem__", _wrap_ZeroHelperVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_pop", _wrap_ZeroHelperVector_pop, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_append", _wrap_ZeroHelperVector_append, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_empty", _wrap_ZeroHelperVector_empty, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_size", _wrap_ZeroHelperVector_size, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_swap", _wrap_ZeroHelperVector_swap, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_begin", _wrap_ZeroHelperVector_begin, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_end", _wrap_ZeroHelperVector_end, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_rbegin", _wrap_ZeroHelperVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_rend", _wrap_ZeroHelperVector_rend, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_clear", _wrap_ZeroHelperVector_clear, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_get_allocator", _wrap_ZeroHelperVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_pop_back", _wrap_ZeroHelperVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_erase", _wrap_ZeroHelperVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_ZeroHelperVector", _wrap_new_ZeroHelperVector, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_push_back", _wrap_ZeroHelperVector_push_back, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_front", _wrap_ZeroHelperVector_front, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_back", _wrap_ZeroHelperVector_back, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_assign", _wrap_ZeroHelperVector_assign, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_resize", _wrap_ZeroHelperVector_resize, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_insert", _wrap_ZeroHelperVector_insert, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_reserve", _wrap_ZeroHelperVector_reserve, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_capacity", _wrap_ZeroHelperVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_ZeroHelperVector", _wrap_delete_ZeroHelperVector, METH_VARARGS, NULL},
	 { (char *)"ZeroHelperVector_swigregister", ZeroHelperVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_iterator", _wrap_YoYHelperVector_iterator, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector___nonzero__", _wrap_YoYHelperVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector___bool__", _wrap_YoYHelperVector___bool__, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector___len__", _wrap_YoYHelperVector___len__, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector___getslice__", _wrap_YoYHelperVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector___setslice__", _wrap_YoYHelperVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector___delslice__", _wrap_YoYHelperVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector___delitem__", _wrap_YoYHelperVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector___getitem__", _wrap_YoYHelperVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector___setitem__", _wrap_YoYHelperVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_pop", _wrap_YoYHelperVector_pop, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_append", _wrap_YoYHelperVector_append, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_empty", _wrap_YoYHelperVector_empty, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_size", _wrap_YoYHelperVector_size, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_swap", _wrap_YoYHelperVector_swap, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_begin", _wrap_YoYHelperVector_begin, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_end", _wrap_YoYHelperVector_end, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_rbegin", _wrap_YoYHelperVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_rend", _wrap_YoYHelperVector_rend, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_clear", _wrap_YoYHelperVector_clear, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_get_allocator", _wrap_YoYHelperVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_pop_back", _wrap_YoYHelperVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_erase", _wrap_YoYHelperVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_YoYHelperVector", _wrap_new_YoYHelperVector, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_push_back", _wrap_YoYHelperVector_push_back, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_front", _wrap_YoYHelperVector_front, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_back", _wrap_YoYHelperVector_back, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_assign", _wrap_YoYHelperVector_assign, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_resize", _wrap_YoYHelperVector_resize, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_insert", _wrap_YoYHelperVector_insert, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_reserve", _wrap_YoYHelperVector_reserve, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_capacity", _wrap_YoYHelperVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_YoYHelperVector", _wrap_delete_YoYHelperVector, METH_VARARGS, NULL},
	 { (char *)"YoYHelperVector_swigregister", YoYHelperVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ZeroCouponInflationSwapHelper", _wrap_new_ZeroCouponInflationSwapHelper, METH_VARARGS, NULL},
	 { (char *)"delete_ZeroCouponInflationSwapHelper", _wrap_delete_ZeroCouponInflationSwapHelper, METH_VARARGS, NULL},
	 { (char *)"ZeroCouponInflationSwapHelper_swigregister", ZeroCouponInflationSwapHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_YearOnYearInflationSwapHelper", _wrap_new_YearOnYearInflationSwapHelper, METH_VARARGS, NULL},
	 { (char *)"delete_YearOnYearInflationSwapHelper", _wrap_delete_YearOnYearInflationSwapHelper, METH_VARARGS, NULL},
	 { (char *)"YearOnYearInflationSwapHelper_swigregister", YearOnYearInflationSwapHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PiecewiseZeroInflation", (PyCFunction) _wrap_new_PiecewiseZeroInflation, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"PiecewiseZeroInflation_dates", _wrap_PiecewiseZeroInflation_dates, METH_VARARGS, NULL},
	 { (char *)"PiecewiseZeroInflation_times", _wrap_PiecewiseZeroInflation_times, METH_VARARGS, NULL},
	 { (char *)"PiecewiseZeroInflation_nodes", _wrap_PiecewiseZeroInflation_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_PiecewiseZeroInflation", _wrap_delete_PiecewiseZeroInflation, METH_VARARGS, NULL},
	 { (char *)"PiecewiseZeroInflation_swigregister", PiecewiseZeroInflation_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PiecewiseYoYInflation", (PyCFunction) _wrap_new_PiecewiseYoYInflation, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"PiecewiseYoYInflation_dates", _wrap_PiecewiseYoYInflation_dates, METH_VARARGS, NULL},
	 { (char *)"PiecewiseYoYInflation_times", _wrap_PiecewiseYoYInflation_times, METH_VARARGS, NULL},
	 { (char *)"PiecewiseYoYInflation_nodes", _wrap_PiecewiseYoYInflation_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_PiecewiseYoYInflation", _wrap_delete_PiecewiseYoYInflation, METH_VARARGS, NULL},
	 { (char *)"PiecewiseYoYInflation_swigregister", PiecewiseYoYInflation_swigregister, METH_VARARGS, NULL},
	 { (char *)"inflationBaseDate", _wrap_inflationBaseDate, METH_VARARGS, NULL},
	 { (char *)"new_ZeroCouponInflationSwap", _wrap_new_ZeroCouponInflationSwap, METH_VARARGS, NULL},
	 { (char *)"ZeroCouponInflationSwap_fairRate", _wrap_ZeroCouponInflationSwap_fairRate, METH_VARARGS, NULL},
	 { (char *)"ZeroCouponInflationSwap_fixedLeg", _wrap_ZeroCouponInflationSwap_fixedLeg, METH_VARARGS, NULL},
	 { (char *)"ZeroCouponInflationSwap_inflationLeg", _wrap_ZeroCouponInflationSwap_inflationLeg, METH_VARARGS, NULL},
	 { (char *)"ZeroCouponInflationSwap_type", _wrap_ZeroCouponInflationSwap_type, METH_VARARGS, NULL},
	 { (char *)"delete_ZeroCouponInflationSwap", _wrap_delete_ZeroCouponInflationSwap, METH_VARARGS, NULL},
	 { (char *)"ZeroCouponInflationSwap_swigregister", ZeroCouponInflationSwap_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_YearOnYearInflationSwap", _wrap_new_YearOnYearInflationSwap, METH_VARARGS, NULL},
	 { (char *)"YearOnYearInflationSwap_fairRate", _wrap_YearOnYearInflationSwap_fairRate, METH_VARARGS, NULL},
	 { (char *)"delete_YearOnYearInflationSwap", _wrap_delete_YearOnYearInflationSwap, METH_VARARGS, NULL},
	 { (char *)"YearOnYearInflationSwap_swigregister", YearOnYearInflationSwap_swigregister, METH_VARARGS, NULL},
	 { (char *)"YoYInflationCapFloor_impliedVolatility", _wrap_YoYInflationCapFloor_impliedVolatility, METH_VARARGS, NULL},
	 { (char *)"new_YoYInflationCapFloor", _wrap_new_YoYInflationCapFloor, METH_VARARGS, NULL},
	 { (char *)"delete_YoYInflationCapFloor", _wrap_delete_YoYInflationCapFloor, METH_VARARGS, NULL},
	 { (char *)"YoYInflationCapFloor_swigregister", YoYInflationCapFloor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_YoYInflationCap", _wrap_new_YoYInflationCap, METH_VARARGS, NULL},
	 { (char *)"delete_YoYInflationCap", _wrap_delete_YoYInflationCap, METH_VARARGS, NULL},
	 { (char *)"YoYInflationCap_swigregister", YoYInflationCap_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_YoYInflationFloor", _wrap_new_YoYInflationFloor, METH_VARARGS, NULL},
	 { (char *)"delete_YoYInflationFloor", _wrap_delete_YoYInflationFloor, METH_VARARGS, NULL},
	 { (char *)"YoYInflationFloor_swigregister", YoYInflationFloor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_YoYInflationCollar", _wrap_new_YoYInflationCollar, METH_VARARGS, NULL},
	 { (char *)"delete_YoYInflationCollar", _wrap_delete_YoYInflationCollar, METH_VARARGS, NULL},
	 { (char *)"YoYInflationCollar_swigregister", YoYInflationCollar_swigregister, METH_VARARGS, NULL},
	 { (char *)"ShortRateModel___deref__", _wrap_ShortRateModel___deref__, METH_VARARGS, NULL},
	 { (char *)"ShortRateModel___nonzero__", _wrap_ShortRateModel___nonzero__, METH_VARARGS, NULL},
	 { (char *)"ShortRateModel___bool__", _wrap_ShortRateModel___bool__, METH_VARARGS, NULL},
	 { (char *)"ShortRateModel_asObservable", _wrap_ShortRateModel_asObservable, METH_VARARGS, NULL},
	 { (char *)"new_ShortRateModel", _wrap_new_ShortRateModel, METH_VARARGS, NULL},
	 { (char *)"delete_ShortRateModel", _wrap_delete_ShortRateModel, METH_VARARGS, NULL},
	 { (char *)"ShortRateModel_params", _wrap_ShortRateModel_params, METH_VARARGS, NULL},
	 { (char *)"ShortRateModel_calibrate", _wrap_ShortRateModel_calibrate, METH_VARARGS, NULL},
	 { (char *)"ShortRateModel_value", _wrap_ShortRateModel_value, METH_VARARGS, NULL},
	 { (char *)"ShortRateModel_endCriteria", _wrap_ShortRateModel_endCriteria, METH_VARARGS, NULL},
	 { (char *)"ShortRateModel_setParams", _wrap_ShortRateModel_setParams, METH_VARARGS, NULL},
	 { (char *)"ShortRateModel_swigregister", ShortRateModel_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ShortRateModelHandle", _wrap_new_ShortRateModelHandle, METH_VARARGS, NULL},
	 { (char *)"ShortRateModelHandle___deref__", _wrap_ShortRateModelHandle___deref__, METH_VARARGS, NULL},
	 { (char *)"ShortRateModelHandle___nonzero__", _wrap_ShortRateModelHandle___nonzero__, METH_VARARGS, NULL},
	 { (char *)"ShortRateModelHandle___bool__", _wrap_ShortRateModelHandle___bool__, METH_VARARGS, NULL},
	 { (char *)"ShortRateModelHandle_asObservable", _wrap_ShortRateModelHandle_asObservable, METH_VARARGS, NULL},
	 { (char *)"delete_ShortRateModelHandle", _wrap_delete_ShortRateModelHandle, METH_VARARGS, NULL},
	 { (char *)"ShortRateModelHandle_params", _wrap_ShortRateModelHandle_params, METH_VARARGS, NULL},
	 { (char *)"ShortRateModelHandle_calibrate", _wrap_ShortRateModelHandle_calibrate, METH_VARARGS, NULL},
	 { (char *)"ShortRateModelHandle_value", _wrap_ShortRateModelHandle_value, METH_VARARGS, NULL},
	 { (char *)"ShortRateModelHandle_endCriteria", _wrap_ShortRateModelHandle_endCriteria, METH_VARARGS, NULL},
	 { (char *)"ShortRateModelHandle_setParams", _wrap_ShortRateModelHandle_setParams, METH_VARARGS, NULL},
	 { (char *)"ShortRateModelHandle_swigregister", ShortRateModelHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_RelinkableShortRateModelHandle", _wrap_new_RelinkableShortRateModelHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableShortRateModelHandle_linkTo", _wrap_RelinkableShortRateModelHandle_linkTo, METH_VARARGS, NULL},
	 { (char *)"delete_RelinkableShortRateModelHandle", _wrap_delete_RelinkableShortRateModelHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableShortRateModelHandle_swigregister", RelinkableShortRateModelHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Vasicek", _wrap_new_Vasicek, METH_VARARGS, NULL},
	 { (char *)"Vasicek_discount", _wrap_Vasicek_discount, METH_VARARGS, NULL},
	 { (char *)"Vasicek_discountBond", _wrap_Vasicek_discountBond, METH_VARARGS, NULL},
	 { (char *)"delete_Vasicek", _wrap_delete_Vasicek, METH_VARARGS, NULL},
	 { (char *)"Vasicek_swigregister", Vasicek_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_HullWhite", _wrap_new_HullWhite, METH_VARARGS, NULL},
	 { (char *)"HullWhite_discount", _wrap_HullWhite_discount, METH_VARARGS, NULL},
	 { (char *)"HullWhite_discountBond", _wrap_HullWhite_discountBond, METH_VARARGS, NULL},
	 { (char *)"HullWhite_convexityBias", _wrap_HullWhite_convexityBias, METH_VARARGS, NULL},
	 { (char *)"delete_HullWhite", _wrap_delete_HullWhite, METH_VARARGS, NULL},
	 { (char *)"HullWhite_swigregister", HullWhite_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BlackKarasinski", _wrap_new_BlackKarasinski, METH_VARARGS, NULL},
	 { (char *)"delete_BlackKarasinski", _wrap_delete_BlackKarasinski, METH_VARARGS, NULL},
	 { (char *)"BlackKarasinski_swigregister", BlackKarasinski_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_G2", _wrap_new_G2, METH_VARARGS, NULL},
	 { (char *)"G2_discount", _wrap_G2_discount, METH_VARARGS, NULL},
	 { (char *)"G2_discountBond", _wrap_G2_discountBond, METH_VARARGS, NULL},
	 { (char *)"delete_G2", _wrap_delete_G2, METH_VARARGS, NULL},
	 { (char *)"G2_swigregister", G2_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_JamshidianSwaptionEngine", _wrap_new_JamshidianSwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"delete_JamshidianSwaptionEngine", _wrap_delete_JamshidianSwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"JamshidianSwaptionEngine_swigregister", JamshidianSwaptionEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_TreeSwaptionEngine", _wrap_new_TreeSwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"delete_TreeSwaptionEngine", _wrap_delete_TreeSwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"TreeSwaptionEngine_swigregister", TreeSwaptionEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AnalyticCapFloorEngine", _wrap_new_AnalyticCapFloorEngine, METH_VARARGS, NULL},
	 { (char *)"delete_AnalyticCapFloorEngine", _wrap_delete_AnalyticCapFloorEngine, METH_VARARGS, NULL},
	 { (char *)"AnalyticCapFloorEngine_swigregister", AnalyticCapFloorEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_TreeCapFloorEngine", _wrap_new_TreeCapFloorEngine, METH_VARARGS, NULL},
	 { (char *)"delete_TreeCapFloorEngine", _wrap_delete_TreeCapFloorEngine, METH_VARARGS, NULL},
	 { (char *)"TreeCapFloorEngine_swigregister", TreeCapFloorEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_G2SwaptionEngine", _wrap_new_G2SwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"delete_G2SwaptionEngine", _wrap_delete_G2SwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"G2SwaptionEngine_swigregister", G2SwaptionEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FdG2SwaptionEngine", _wrap_new_FdG2SwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"delete_FdG2SwaptionEngine", _wrap_delete_FdG2SwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"FdG2SwaptionEngine_swigregister", FdG2SwaptionEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FdHullWhiteSwaptionEngine", _wrap_new_FdHullWhiteSwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"delete_FdHullWhiteSwaptionEngine", _wrap_delete_FdHullWhiteSwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"FdHullWhiteSwaptionEngine_swigregister", FdHullWhiteSwaptionEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Bond", _wrap_new_Bond, METH_VARARGS, NULL},
	 { (char *)"Bond_nextCouponRate", _wrap_Bond_nextCouponRate, METH_VARARGS, NULL},
	 { (char *)"Bond_previousCouponRate", _wrap_Bond_previousCouponRate, METH_VARARGS, NULL},
	 { (char *)"Bond_settlementDays", _wrap_Bond_settlementDays, METH_VARARGS, NULL},
	 { (char *)"Bond_settlementDate", _wrap_Bond_settlementDate, METH_VARARGS, NULL},
	 { (char *)"Bond_startDate", _wrap_Bond_startDate, METH_VARARGS, NULL},
	 { (char *)"Bond_maturityDate", _wrap_Bond_maturityDate, METH_VARARGS, NULL},
	 { (char *)"Bond_issueDate", _wrap_Bond_issueDate, METH_VARARGS, NULL},
	 { (char *)"Bond_cashflows", _wrap_Bond_cashflows, METH_VARARGS, NULL},
	 { (char *)"Bond_redemptions", _wrap_Bond_redemptions, METH_VARARGS, NULL},
	 { (char *)"Bond_redemption", _wrap_Bond_redemption, METH_VARARGS, NULL},
	 { (char *)"Bond_calendar", _wrap_Bond_calendar, METH_VARARGS, NULL},
	 { (char *)"Bond_notionals", _wrap_Bond_notionals, METH_VARARGS, NULL},
	 { (char *)"Bond_notional", _wrap_Bond_notional, METH_VARARGS, NULL},
	 { (char *)"Bond_cleanPrice", _wrap_Bond_cleanPrice, METH_VARARGS, NULL},
	 { (char *)"Bond_dirtyPrice", _wrap_Bond_dirtyPrice, METH_VARARGS, NULL},
	 { (char *)"Bond_bondYield", _wrap_Bond_bondYield, METH_VARARGS, NULL},
	 { (char *)"Bond_accruedAmount", _wrap_Bond_accruedAmount, METH_VARARGS, NULL},
	 { (char *)"Bond_settlementValue", _wrap_Bond_settlementValue, METH_VARARGS, NULL},
	 { (char *)"delete_Bond", _wrap_delete_Bond, METH_VARARGS, NULL},
	 { (char *)"Bond_swigregister", Bond_swigregister, METH_VARARGS, NULL},
	 { (char *)"cleanPriceFromZSpread", _wrap_cleanPriceFromZSpread, METH_VARARGS, NULL},
	 { (char *)"new_ZeroCouponBond", (PyCFunction) _wrap_new_ZeroCouponBond, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"delete_ZeroCouponBond", _wrap_delete_ZeroCouponBond, METH_VARARGS, NULL},
	 { (char *)"ZeroCouponBond_swigregister", ZeroCouponBond_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FixedRateBond", _wrap_new_FixedRateBond, METH_VARARGS, NULL},
	 { (char *)"FixedRateBond_frequency", _wrap_FixedRateBond_frequency, METH_VARARGS, NULL},
	 { (char *)"FixedRateBond_dayCounter", _wrap_FixedRateBond_dayCounter, METH_VARARGS, NULL},
	 { (char *)"delete_FixedRateBond", _wrap_delete_FixedRateBond, METH_VARARGS, NULL},
	 { (char *)"FixedRateBond_swigregister", FixedRateBond_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FloatingRateBond", (PyCFunction) _wrap_new_FloatingRateBond, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"delete_FloatingRateBond", _wrap_delete_FloatingRateBond, METH_VARARGS, NULL},
	 { (char *)"FloatingRateBond_swigregister", FloatingRateBond_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CmsRateBond", (PyCFunction) _wrap_new_CmsRateBond, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"delete_CmsRateBond", _wrap_delete_CmsRateBond, METH_VARARGS, NULL},
	 { (char *)"CmsRateBond_swigregister", CmsRateBond_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DiscountingBondEngine", _wrap_new_DiscountingBondEngine, METH_VARARGS, NULL},
	 { (char *)"delete_DiscountingBondEngine", _wrap_delete_DiscountingBondEngine, METH_VARARGS, NULL},
	 { (char *)"DiscountingBondEngine_swigregister", DiscountingBondEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CallableFixedRateBond", (PyCFunction) _wrap_new_CallableFixedRateBond, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"CallableFixedRateBond_OAS", _wrap_CallableFixedRateBond_OAS, METH_VARARGS, NULL},
	 { (char *)"CallableFixedRateBond_cleanPriceOAS", _wrap_CallableFixedRateBond_cleanPriceOAS, METH_VARARGS, NULL},
	 { (char *)"CallableFixedRateBond_effectiveDuration", _wrap_CallableFixedRateBond_effectiveDuration, METH_VARARGS, NULL},
	 { (char *)"CallableFixedRateBond_effectiveConvexity", _wrap_CallableFixedRateBond_effectiveConvexity, METH_VARARGS, NULL},
	 { (char *)"delete_CallableFixedRateBond", _wrap_delete_CallableFixedRateBond, METH_VARARGS, NULL},
	 { (char *)"CallableFixedRateBond_swigregister", CallableFixedRateBond_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_TreeCallableFixedRateBondEngine", _wrap_new_TreeCallableFixedRateBondEngine, METH_VARARGS, NULL},
	 { (char *)"delete_TreeCallableFixedRateBondEngine", _wrap_delete_TreeCallableFixedRateBondEngine, METH_VARARGS, NULL},
	 { (char *)"TreeCallableFixedRateBondEngine_swigregister", TreeCallableFixedRateBondEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BlackCallableFixedRateBondEngine", _wrap_new_BlackCallableFixedRateBondEngine, METH_VARARGS, NULL},
	 { (char *)"delete_BlackCallableFixedRateBondEngine", _wrap_delete_BlackCallableFixedRateBondEngine, METH_VARARGS, NULL},
	 { (char *)"BlackCallableFixedRateBondEngine_swigregister", BlackCallableFixedRateBondEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CPIBond", (PyCFunction) _wrap_new_CPIBond, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"delete_CPIBond", _wrap_delete_CPIBond, METH_VARARGS, NULL},
	 { (char *)"CPIBond_swigregister", CPIBond_swigregister, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_startDate", _wrap_BondFunctions_startDate, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_maturityDate", _wrap_BondFunctions_maturityDate, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_isTradable", _wrap_BondFunctions_isTradable, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_previousCashFlowDate", _wrap_BondFunctions_previousCashFlowDate, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_nextCashFlowDate", _wrap_BondFunctions_nextCashFlowDate, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_previousCashFlowAmount", _wrap_BondFunctions_previousCashFlowAmount, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_nextCashFlowAmount", _wrap_BondFunctions_nextCashFlowAmount, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_previousCouponRate", _wrap_BondFunctions_previousCouponRate, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_nextCouponRate", _wrap_BondFunctions_nextCouponRate, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_accrualStartDate", _wrap_BondFunctions_accrualStartDate, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_accrualEndDate", _wrap_BondFunctions_accrualEndDate, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_accrualPeriod", _wrap_BondFunctions_accrualPeriod, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_accrualDays", _wrap_BondFunctions_accrualDays, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_accruedPeriod", _wrap_BondFunctions_accruedPeriod, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_accruedDays", _wrap_BondFunctions_accruedDays, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_accruedAmount", _wrap_BondFunctions_accruedAmount, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_atmRate", _wrap_BondFunctions_atmRate, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_cleanPrice", _wrap_BondFunctions_cleanPrice, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_bps", _wrap_BondFunctions_bps, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_bondYield", _wrap_BondFunctions_bondYield, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_yieldBrent", _wrap_BondFunctions_yieldBrent, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_yieldBisection", _wrap_BondFunctions_yieldBisection, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_yieldFalsePosition", _wrap_BondFunctions_yieldFalsePosition, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_yieldRidder", _wrap_BondFunctions_yieldRidder, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_yieldSecant", _wrap_BondFunctions_yieldSecant, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_yieldNewton", _wrap_BondFunctions_yieldNewton, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_yieldNewtonSafe", _wrap_BondFunctions_yieldNewtonSafe, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_duration", _wrap_BondFunctions_duration, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_convexity", _wrap_BondFunctions_convexity, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_basisPointValue", _wrap_BondFunctions_basisPointValue, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_yieldValueBasisPoint", _wrap_BondFunctions_yieldValueBasisPoint, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_zSpread", _wrap_BondFunctions_zSpread, METH_VARARGS, NULL},
	 { (char *)"new_BondFunctions", _wrap_new_BondFunctions, METH_VARARGS, NULL},
	 { (char *)"delete_BondFunctions", _wrap_delete_BondFunctions, METH_VARARGS, NULL},
	 { (char *)"BondFunctions_swigregister", BondFunctions_swigregister, METH_VARARGS, NULL},
	 { (char *)"CapFloor_impliedVolatility", _wrap_CapFloor_impliedVolatility, METH_VARARGS, NULL},
	 { (char *)"CapFloor_floatingLeg", _wrap_CapFloor_floatingLeg, METH_VARARGS, NULL},
	 { (char *)"CapFloor_capRates", _wrap_CapFloor_capRates, METH_VARARGS, NULL},
	 { (char *)"CapFloor_floorRates", _wrap_CapFloor_floorRates, METH_VARARGS, NULL},
	 { (char *)"CapFloor_startDate", _wrap_CapFloor_startDate, METH_VARARGS, NULL},
	 { (char *)"CapFloor_maturityDate", _wrap_CapFloor_maturityDate, METH_VARARGS, NULL},
	 { (char *)"CapFloor_atmRate", _wrap_CapFloor_atmRate, METH_VARARGS, NULL},
	 { (char *)"new_CapFloor", _wrap_new_CapFloor, METH_VARARGS, NULL},
	 { (char *)"delete_CapFloor", _wrap_delete_CapFloor, METH_VARARGS, NULL},
	 { (char *)"CapFloor_swigregister", CapFloor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Cap", _wrap_new_Cap, METH_VARARGS, NULL},
	 { (char *)"delete_Cap", _wrap_delete_Cap, METH_VARARGS, NULL},
	 { (char *)"Cap_swigregister", Cap_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Floor", _wrap_new_Floor, METH_VARARGS, NULL},
	 { (char *)"delete_Floor", _wrap_delete_Floor, METH_VARARGS, NULL},
	 { (char *)"Floor_swigregister", Floor_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Collar", _wrap_new_Collar, METH_VARARGS, NULL},
	 { (char *)"delete_Collar", _wrap_delete_Collar, METH_VARARGS, NULL},
	 { (char *)"Collar_swigregister", Collar_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BlackCapFloorEngine", _wrap_new_BlackCapFloorEngine, METH_VARARGS, NULL},
	 { (char *)"delete_BlackCapFloorEngine", _wrap_delete_BlackCapFloorEngine, METH_VARARGS, NULL},
	 { (char *)"BlackCapFloorEngine_swigregister", BlackCapFloorEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BachelierCapFloorEngine", _wrap_new_BachelierCapFloorEngine, METH_VARARGS, NULL},
	 { (char *)"delete_BachelierCapFloorEngine", _wrap_delete_BachelierCapFloorEngine, METH_VARARGS, NULL},
	 { (char *)"BachelierCapFloorEngine_swigregister", BachelierCapFloorEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"Dividend___deref__", _wrap_Dividend___deref__, METH_VARARGS, NULL},
	 { (char *)"Dividend___nonzero__", _wrap_Dividend___nonzero__, METH_VARARGS, NULL},
	 { (char *)"Dividend___bool__", _wrap_Dividend___bool__, METH_VARARGS, NULL},
	 { (char *)"new_Dividend", _wrap_new_Dividend, METH_VARARGS, NULL},
	 { (char *)"delete_Dividend", _wrap_delete_Dividend, METH_VARARGS, NULL},
	 { (char *)"Dividend_amount", _wrap_Dividend_amount, METH_VARARGS, NULL},
	 { (char *)"Dividend_date", _wrap_Dividend_date, METH_VARARGS, NULL},
	 { (char *)"Dividend_swigregister", Dividend_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FixedDividend", _wrap_new_FixedDividend, METH_VARARGS, NULL},
	 { (char *)"delete_FixedDividend", _wrap_delete_FixedDividend, METH_VARARGS, NULL},
	 { (char *)"FixedDividend_swigregister", FixedDividend_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FractionalDividend", _wrap_new_FractionalDividend, METH_VARARGS, NULL},
	 { (char *)"delete_FractionalDividend", _wrap_delete_FractionalDividend, METH_VARARGS, NULL},
	 { (char *)"FractionalDividend_swigregister", FractionalDividend_swigregister, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_iterator", _wrap_DividendSchedule_iterator, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule___nonzero__", _wrap_DividendSchedule___nonzero__, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule___bool__", _wrap_DividendSchedule___bool__, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule___len__", _wrap_DividendSchedule___len__, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule___getslice__", _wrap_DividendSchedule___getslice__, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule___setslice__", _wrap_DividendSchedule___setslice__, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule___delslice__", _wrap_DividendSchedule___delslice__, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule___delitem__", _wrap_DividendSchedule___delitem__, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule___getitem__", _wrap_DividendSchedule___getitem__, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule___setitem__", _wrap_DividendSchedule___setitem__, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_pop", _wrap_DividendSchedule_pop, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_append", _wrap_DividendSchedule_append, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_empty", _wrap_DividendSchedule_empty, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_size", _wrap_DividendSchedule_size, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_swap", _wrap_DividendSchedule_swap, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_begin", _wrap_DividendSchedule_begin, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_end", _wrap_DividendSchedule_end, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_rbegin", _wrap_DividendSchedule_rbegin, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_rend", _wrap_DividendSchedule_rend, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_clear", _wrap_DividendSchedule_clear, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_get_allocator", _wrap_DividendSchedule_get_allocator, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_pop_back", _wrap_DividendSchedule_pop_back, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_erase", _wrap_DividendSchedule_erase, METH_VARARGS, NULL},
	 { (char *)"new_DividendSchedule", _wrap_new_DividendSchedule, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_push_back", _wrap_DividendSchedule_push_back, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_front", _wrap_DividendSchedule_front, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_back", _wrap_DividendSchedule_back, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_assign", _wrap_DividendSchedule_assign, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_resize", _wrap_DividendSchedule_resize, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_insert", _wrap_DividendSchedule_insert, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_reserve", _wrap_DividendSchedule_reserve, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_capacity", _wrap_DividendSchedule_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_DividendSchedule", _wrap_delete_DividendSchedule, METH_VARARGS, NULL},
	 { (char *)"DividendSchedule_swigregister", DividendSchedule_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ConvertibleZeroCouponBond", _wrap_new_ConvertibleZeroCouponBond, METH_VARARGS, NULL},
	 { (char *)"delete_ConvertibleZeroCouponBond", _wrap_delete_ConvertibleZeroCouponBond, METH_VARARGS, NULL},
	 { (char *)"ConvertibleZeroCouponBond_swigregister", ConvertibleZeroCouponBond_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ConvertibleFixedCouponBond", _wrap_new_ConvertibleFixedCouponBond, METH_VARARGS, NULL},
	 { (char *)"delete_ConvertibleFixedCouponBond", _wrap_delete_ConvertibleFixedCouponBond, METH_VARARGS, NULL},
	 { (char *)"ConvertibleFixedCouponBond_swigregister", ConvertibleFixedCouponBond_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ConvertibleFloatingRateBond", _wrap_new_ConvertibleFloatingRateBond, METH_VARARGS, NULL},
	 { (char *)"delete_ConvertibleFloatingRateBond", _wrap_delete_ConvertibleFloatingRateBond, METH_VARARGS, NULL},
	 { (char *)"ConvertibleFloatingRateBond_swigregister", ConvertibleFloatingRateBond_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BinomialConvertibleEngine", _wrap_new_BinomialConvertibleEngine, METH_VARARGS, NULL},
	 { (char *)"delete_BinomialConvertibleEngine", _wrap_delete_BinomialConvertibleEngine, METH_VARARGS, NULL},
	 { (char *)"BinomialConvertibleEngine_swigregister", BinomialConvertibleEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructure___deref__", _wrap_DefaultProbabilityTermStructure___deref__, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructure___nonzero__", _wrap_DefaultProbabilityTermStructure___nonzero__, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructure___bool__", _wrap_DefaultProbabilityTermStructure___bool__, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructure_asObservable", _wrap_DefaultProbabilityTermStructure_asObservable, METH_VARARGS, NULL},
	 { (char *)"new_DefaultProbabilityTermStructure", _wrap_new_DefaultProbabilityTermStructure, METH_VARARGS, NULL},
	 { (char *)"delete_DefaultProbabilityTermStructure", _wrap_delete_DefaultProbabilityTermStructure, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructure_dayCounter", _wrap_DefaultProbabilityTermStructure_dayCounter, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructure_calendar", _wrap_DefaultProbabilityTermStructure_calendar, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructure_referenceDate", _wrap_DefaultProbabilityTermStructure_referenceDate, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructure_maxDate", _wrap_DefaultProbabilityTermStructure_maxDate, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructure_maxTime", _wrap_DefaultProbabilityTermStructure_maxTime, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructure_defaultProbability", _wrap_DefaultProbabilityTermStructure_defaultProbability, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructure_survivalProbability", _wrap_DefaultProbabilityTermStructure_survivalProbability, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructure_defaultDensity", _wrap_DefaultProbabilityTermStructure_defaultDensity, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructure_hazardRate", _wrap_DefaultProbabilityTermStructure_hazardRate, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructure_enableExtrapolation", _wrap_DefaultProbabilityTermStructure_enableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructure_disableExtrapolation", _wrap_DefaultProbabilityTermStructure_disableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructure_allowsExtrapolation", _wrap_DefaultProbabilityTermStructure_allowsExtrapolation, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructure_swigregister", DefaultProbabilityTermStructure_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DefaultProbabilityTermStructureHandle", _wrap_new_DefaultProbabilityTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructureHandle___deref__", _wrap_DefaultProbabilityTermStructureHandle___deref__, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructureHandle___nonzero__", _wrap_DefaultProbabilityTermStructureHandle___nonzero__, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructureHandle___bool__", _wrap_DefaultProbabilityTermStructureHandle___bool__, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructureHandle_asObservable", _wrap_DefaultProbabilityTermStructureHandle_asObservable, METH_VARARGS, NULL},
	 { (char *)"delete_DefaultProbabilityTermStructureHandle", _wrap_delete_DefaultProbabilityTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructureHandle_dayCounter", _wrap_DefaultProbabilityTermStructureHandle_dayCounter, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructureHandle_calendar", _wrap_DefaultProbabilityTermStructureHandle_calendar, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructureHandle_referenceDate", _wrap_DefaultProbabilityTermStructureHandle_referenceDate, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructureHandle_maxDate", _wrap_DefaultProbabilityTermStructureHandle_maxDate, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructureHandle_maxTime", _wrap_DefaultProbabilityTermStructureHandle_maxTime, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructureHandle_defaultProbability", _wrap_DefaultProbabilityTermStructureHandle_defaultProbability, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructureHandle_survivalProbability", _wrap_DefaultProbabilityTermStructureHandle_survivalProbability, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructureHandle_defaultDensity", _wrap_DefaultProbabilityTermStructureHandle_defaultDensity, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructureHandle_hazardRate", _wrap_DefaultProbabilityTermStructureHandle_hazardRate, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructureHandle_enableExtrapolation", _wrap_DefaultProbabilityTermStructureHandle_enableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructureHandle_disableExtrapolation", _wrap_DefaultProbabilityTermStructureHandle_disableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructureHandle_allowsExtrapolation", _wrap_DefaultProbabilityTermStructureHandle_allowsExtrapolation, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityTermStructureHandle_swigregister", DefaultProbabilityTermStructureHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_RelinkableDefaultProbabilityTermStructureHandle", _wrap_new_RelinkableDefaultProbabilityTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableDefaultProbabilityTermStructureHandle_linkTo", _wrap_RelinkableDefaultProbabilityTermStructureHandle_linkTo, METH_VARARGS, NULL},
	 { (char *)"delete_RelinkableDefaultProbabilityTermStructureHandle", _wrap_delete_RelinkableDefaultProbabilityTermStructureHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableDefaultProbabilityTermStructureHandle_swigregister", RelinkableDefaultProbabilityTermStructureHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FlatHazardRate", _wrap_new_FlatHazardRate, METH_VARARGS, NULL},
	 { (char *)"delete_FlatHazardRate", _wrap_delete_FlatHazardRate, METH_VARARGS, NULL},
	 { (char *)"FlatHazardRate_swigregister", FlatHazardRate_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_HazardRateCurve", _wrap_new_HazardRateCurve, METH_VARARGS, NULL},
	 { (char *)"HazardRateCurve_dates", _wrap_HazardRateCurve_dates, METH_VARARGS, NULL},
	 { (char *)"HazardRateCurve_hazardRates", _wrap_HazardRateCurve_hazardRates, METH_VARARGS, NULL},
	 { (char *)"HazardRateCurve_nodes", _wrap_HazardRateCurve_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_HazardRateCurve", _wrap_delete_HazardRateCurve, METH_VARARGS, NULL},
	 { (char *)"HazardRateCurve_swigregister", HazardRateCurve_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DefaultDensityCurve", _wrap_new_DefaultDensityCurve, METH_VARARGS, NULL},
	 { (char *)"DefaultDensityCurve_dates", _wrap_DefaultDensityCurve_dates, METH_VARARGS, NULL},
	 { (char *)"DefaultDensityCurve_defaultDensities", _wrap_DefaultDensityCurve_defaultDensities, METH_VARARGS, NULL},
	 { (char *)"DefaultDensityCurve_nodes", _wrap_DefaultDensityCurve_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_DefaultDensityCurve", _wrap_delete_DefaultDensityCurve, METH_VARARGS, NULL},
	 { (char *)"DefaultDensityCurve_swigregister", DefaultDensityCurve_swigregister, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelper___deref__", _wrap_DefaultProbabilityHelper___deref__, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelper___nonzero__", _wrap_DefaultProbabilityHelper___nonzero__, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelper___bool__", _wrap_DefaultProbabilityHelper___bool__, METH_VARARGS, NULL},
	 { (char *)"new_DefaultProbabilityHelper", _wrap_new_DefaultProbabilityHelper, METH_VARARGS, NULL},
	 { (char *)"delete_DefaultProbabilityHelper", _wrap_delete_DefaultProbabilityHelper, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelper_swigregister", DefaultProbabilityHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_iterator", _wrap_DefaultProbabilityHelperVector_iterator, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector___nonzero__", _wrap_DefaultProbabilityHelperVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector___bool__", _wrap_DefaultProbabilityHelperVector___bool__, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector___len__", _wrap_DefaultProbabilityHelperVector___len__, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector___getslice__", _wrap_DefaultProbabilityHelperVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector___setslice__", _wrap_DefaultProbabilityHelperVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector___delslice__", _wrap_DefaultProbabilityHelperVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector___delitem__", _wrap_DefaultProbabilityHelperVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector___getitem__", _wrap_DefaultProbabilityHelperVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector___setitem__", _wrap_DefaultProbabilityHelperVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_pop", _wrap_DefaultProbabilityHelperVector_pop, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_append", _wrap_DefaultProbabilityHelperVector_append, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_empty", _wrap_DefaultProbabilityHelperVector_empty, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_size", _wrap_DefaultProbabilityHelperVector_size, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_swap", _wrap_DefaultProbabilityHelperVector_swap, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_begin", _wrap_DefaultProbabilityHelperVector_begin, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_end", _wrap_DefaultProbabilityHelperVector_end, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_rbegin", _wrap_DefaultProbabilityHelperVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_rend", _wrap_DefaultProbabilityHelperVector_rend, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_clear", _wrap_DefaultProbabilityHelperVector_clear, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_get_allocator", _wrap_DefaultProbabilityHelperVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_pop_back", _wrap_DefaultProbabilityHelperVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_erase", _wrap_DefaultProbabilityHelperVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_DefaultProbabilityHelperVector", _wrap_new_DefaultProbabilityHelperVector, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_push_back", _wrap_DefaultProbabilityHelperVector_push_back, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_front", _wrap_DefaultProbabilityHelperVector_front, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_back", _wrap_DefaultProbabilityHelperVector_back, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_assign", _wrap_DefaultProbabilityHelperVector_assign, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_resize", _wrap_DefaultProbabilityHelperVector_resize, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_insert", _wrap_DefaultProbabilityHelperVector_insert, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_reserve", _wrap_DefaultProbabilityHelperVector_reserve, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_capacity", _wrap_DefaultProbabilityHelperVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_DefaultProbabilityHelperVector", _wrap_delete_DefaultProbabilityHelperVector, METH_VARARGS, NULL},
	 { (char *)"DefaultProbabilityHelperVector_swigregister", DefaultProbabilityHelperVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SpreadCdsHelper", _wrap_new_SpreadCdsHelper, METH_VARARGS, NULL},
	 { (char *)"delete_SpreadCdsHelper", _wrap_delete_SpreadCdsHelper, METH_VARARGS, NULL},
	 { (char *)"SpreadCdsHelper_swigregister", SpreadCdsHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_UpfrontCdsHelper", _wrap_new_UpfrontCdsHelper, METH_VARARGS, NULL},
	 { (char *)"delete_UpfrontCdsHelper", _wrap_delete_UpfrontCdsHelper, METH_VARARGS, NULL},
	 { (char *)"UpfrontCdsHelper_swigregister", UpfrontCdsHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_HazardRate", _wrap_new_HazardRate, METH_VARARGS, NULL},
	 { (char *)"delete_HazardRate", _wrap_delete_HazardRate, METH_VARARGS, NULL},
	 { (char *)"HazardRate_swigregister", HazardRate_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DefaultDensity", _wrap_new_DefaultDensity, METH_VARARGS, NULL},
	 { (char *)"delete_DefaultDensity", _wrap_delete_DefaultDensity, METH_VARARGS, NULL},
	 { (char *)"DefaultDensity_swigregister", DefaultDensity_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PiecewiseFlatHazardRate", _wrap_new_PiecewiseFlatHazardRate, METH_VARARGS, NULL},
	 { (char *)"PiecewiseFlatHazardRate_dates", _wrap_PiecewiseFlatHazardRate_dates, METH_VARARGS, NULL},
	 { (char *)"PiecewiseFlatHazardRate_times", _wrap_PiecewiseFlatHazardRate_times, METH_VARARGS, NULL},
	 { (char *)"PiecewiseFlatHazardRate_nodes", _wrap_PiecewiseFlatHazardRate_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_PiecewiseFlatHazardRate", _wrap_delete_PiecewiseFlatHazardRate, METH_VARARGS, NULL},
	 { (char *)"PiecewiseFlatHazardRate_swigregister", PiecewiseFlatHazardRate_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Protection", _wrap_new_Protection, METH_VARARGS, NULL},
	 { (char *)"delete_Protection", _wrap_delete_Protection, METH_VARARGS, NULL},
	 { (char *)"Protection_swigregister", Protection_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CreditDefaultSwap", _wrap_new_CreditDefaultSwap, METH_VARARGS, NULL},
	 { (char *)"CreditDefaultSwap_side", _wrap_CreditDefaultSwap_side, METH_VARARGS, NULL},
	 { (char *)"CreditDefaultSwap_notional", _wrap_CreditDefaultSwap_notional, METH_VARARGS, NULL},
	 { (char *)"CreditDefaultSwap_runningSpread", _wrap_CreditDefaultSwap_runningSpread, METH_VARARGS, NULL},
	 { (char *)"CreditDefaultSwap_upfront", _wrap_CreditDefaultSwap_upfront, METH_VARARGS, NULL},
	 { (char *)"CreditDefaultSwap_settlesAccrual", _wrap_CreditDefaultSwap_settlesAccrual, METH_VARARGS, NULL},
	 { (char *)"CreditDefaultSwap_paysAtDefaultTime", _wrap_CreditDefaultSwap_paysAtDefaultTime, METH_VARARGS, NULL},
	 { (char *)"CreditDefaultSwap_fairSpread", _wrap_CreditDefaultSwap_fairSpread, METH_VARARGS, NULL},
	 { (char *)"CreditDefaultSwap_fairUpfront", _wrap_CreditDefaultSwap_fairUpfront, METH_VARARGS, NULL},
	 { (char *)"CreditDefaultSwap_couponLegBPS", _wrap_CreditDefaultSwap_couponLegBPS, METH_VARARGS, NULL},
	 { (char *)"CreditDefaultSwap_couponLegNPV", _wrap_CreditDefaultSwap_couponLegNPV, METH_VARARGS, NULL},
	 { (char *)"CreditDefaultSwap_defaultLegNPV", _wrap_CreditDefaultSwap_defaultLegNPV, METH_VARARGS, NULL},
	 { (char *)"CreditDefaultSwap_upfrontBPS", _wrap_CreditDefaultSwap_upfrontBPS, METH_VARARGS, NULL},
	 { (char *)"CreditDefaultSwap_upfrontNPV", _wrap_CreditDefaultSwap_upfrontNPV, METH_VARARGS, NULL},
	 { (char *)"CreditDefaultSwap_impliedHazardRate", _wrap_CreditDefaultSwap_impliedHazardRate, METH_VARARGS, NULL},
	 { (char *)"CreditDefaultSwap_coupons", _wrap_CreditDefaultSwap_coupons, METH_VARARGS, NULL},
	 { (char *)"delete_CreditDefaultSwap", _wrap_delete_CreditDefaultSwap, METH_VARARGS, NULL},
	 { (char *)"CreditDefaultSwap_swigregister", CreditDefaultSwap_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MidPointCdsEngine", _wrap_new_MidPointCdsEngine, METH_VARARGS, NULL},
	 { (char *)"delete_MidPointCdsEngine", _wrap_delete_MidPointCdsEngine, METH_VARARGS, NULL},
	 { (char *)"MidPointCdsEngine_swigregister", MidPointCdsEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_IntegralCdsEngine", _wrap_new_IntegralCdsEngine, METH_VARARGS, NULL},
	 { (char *)"delete_IntegralCdsEngine", _wrap_delete_IntegralCdsEngine, METH_VARARGS, NULL},
	 { (char *)"IntegralCdsEngine_swigregister", IntegralCdsEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DiscountCurve", _wrap_new_DiscountCurve, METH_VARARGS, NULL},
	 { (char *)"DiscountCurve_times", _wrap_DiscountCurve_times, METH_VARARGS, NULL},
	 { (char *)"DiscountCurve_data", _wrap_DiscountCurve_data, METH_VARARGS, NULL},
	 { (char *)"DiscountCurve_dates", _wrap_DiscountCurve_dates, METH_VARARGS, NULL},
	 { (char *)"DiscountCurve_discounts", _wrap_DiscountCurve_discounts, METH_VARARGS, NULL},
	 { (char *)"DiscountCurve_nodes", _wrap_DiscountCurve_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_DiscountCurve", _wrap_delete_DiscountCurve, METH_VARARGS, NULL},
	 { (char *)"DiscountCurve_swigregister", DiscountCurve_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_NormalDistribution", _wrap_new_NormalDistribution, METH_VARARGS, NULL},
	 { (char *)"NormalDistribution___call__", _wrap_NormalDistribution___call__, METH_VARARGS, NULL},
	 { (char *)"NormalDistribution_derivative", _wrap_NormalDistribution_derivative, METH_VARARGS, NULL},
	 { (char *)"delete_NormalDistribution", _wrap_delete_NormalDistribution, METH_VARARGS, NULL},
	 { (char *)"NormalDistribution_swigregister", NormalDistribution_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CumulativeNormalDistribution", _wrap_new_CumulativeNormalDistribution, METH_VARARGS, NULL},
	 { (char *)"CumulativeNormalDistribution___call__", _wrap_CumulativeNormalDistribution___call__, METH_VARARGS, NULL},
	 { (char *)"CumulativeNormalDistribution_derivative", _wrap_CumulativeNormalDistribution_derivative, METH_VARARGS, NULL},
	 { (char *)"delete_CumulativeNormalDistribution", _wrap_delete_CumulativeNormalDistribution, METH_VARARGS, NULL},
	 { (char *)"CumulativeNormalDistribution_swigregister", CumulativeNormalDistribution_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_InverseCumulativeNormal", _wrap_new_InverseCumulativeNormal, METH_VARARGS, NULL},
	 { (char *)"InverseCumulativeNormal___call__", _wrap_InverseCumulativeNormal___call__, METH_VARARGS, NULL},
	 { (char *)"delete_InverseCumulativeNormal", _wrap_delete_InverseCumulativeNormal, METH_VARARGS, NULL},
	 { (char *)"InverseCumulativeNormal_swigregister", InverseCumulativeNormal_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MoroInverseCumulativeNormal", _wrap_new_MoroInverseCumulativeNormal, METH_VARARGS, NULL},
	 { (char *)"MoroInverseCumulativeNormal___call__", _wrap_MoroInverseCumulativeNormal___call__, METH_VARARGS, NULL},
	 { (char *)"delete_MoroInverseCumulativeNormal", _wrap_delete_MoroInverseCumulativeNormal, METH_VARARGS, NULL},
	 { (char *)"MoroInverseCumulativeNormal_swigregister", MoroInverseCumulativeNormal_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BivariateCumulativeNormalDistribution", _wrap_new_BivariateCumulativeNormalDistribution, METH_VARARGS, NULL},
	 { (char *)"BivariateCumulativeNormalDistribution___call__", _wrap_BivariateCumulativeNormalDistribution___call__, METH_VARARGS, NULL},
	 { (char *)"delete_BivariateCumulativeNormalDistribution", _wrap_delete_BivariateCumulativeNormalDistribution, METH_VARARGS, NULL},
	 { (char *)"BivariateCumulativeNormalDistribution_swigregister", BivariateCumulativeNormalDistribution_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BinomialDistribution", _wrap_new_BinomialDistribution, METH_VARARGS, NULL},
	 { (char *)"BinomialDistribution___call__", _wrap_BinomialDistribution___call__, METH_VARARGS, NULL},
	 { (char *)"delete_BinomialDistribution", _wrap_delete_BinomialDistribution, METH_VARARGS, NULL},
	 { (char *)"BinomialDistribution_swigregister", BinomialDistribution_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CumulativeBinomialDistribution", _wrap_new_CumulativeBinomialDistribution, METH_VARARGS, NULL},
	 { (char *)"CumulativeBinomialDistribution___call__", _wrap_CumulativeBinomialDistribution___call__, METH_VARARGS, NULL},
	 { (char *)"delete_CumulativeBinomialDistribution", _wrap_delete_CumulativeBinomialDistribution, METH_VARARGS, NULL},
	 { (char *)"CumulativeBinomialDistribution_swigregister", CumulativeBinomialDistribution_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BivariateCumulativeNormalDistributionDr78", _wrap_new_BivariateCumulativeNormalDistributionDr78, METH_VARARGS, NULL},
	 { (char *)"BivariateCumulativeNormalDistributionDr78___call__", _wrap_BivariateCumulativeNormalDistributionDr78___call__, METH_VARARGS, NULL},
	 { (char *)"delete_BivariateCumulativeNormalDistributionDr78", _wrap_delete_BivariateCumulativeNormalDistributionDr78, METH_VARARGS, NULL},
	 { (char *)"BivariateCumulativeNormalDistributionDr78_swigregister", BivariateCumulativeNormalDistributionDr78_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BivariateCumulativeNormalDistributionWe04DP", _wrap_new_BivariateCumulativeNormalDistributionWe04DP, METH_VARARGS, NULL},
	 { (char *)"BivariateCumulativeNormalDistributionWe04DP___call__", _wrap_BivariateCumulativeNormalDistributionWe04DP___call__, METH_VARARGS, NULL},
	 { (char *)"delete_BivariateCumulativeNormalDistributionWe04DP", _wrap_delete_BivariateCumulativeNormalDistributionWe04DP, METH_VARARGS, NULL},
	 { (char *)"BivariateCumulativeNormalDistributionWe04DP_swigregister", BivariateCumulativeNormalDistributionWe04DP_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CumulativeChiSquareDistribution", _wrap_new_CumulativeChiSquareDistribution, METH_VARARGS, NULL},
	 { (char *)"CumulativeChiSquareDistribution___call__", _wrap_CumulativeChiSquareDistribution___call__, METH_VARARGS, NULL},
	 { (char *)"delete_CumulativeChiSquareDistribution", _wrap_delete_CumulativeChiSquareDistribution, METH_VARARGS, NULL},
	 { (char *)"CumulativeChiSquareDistribution_swigregister", CumulativeChiSquareDistribution_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_NonCentralCumulativeChiSquareDistribution", _wrap_new_NonCentralCumulativeChiSquareDistribution, METH_VARARGS, NULL},
	 { (char *)"NonCentralCumulativeChiSquareDistribution___call__", _wrap_NonCentralCumulativeChiSquareDistribution___call__, METH_VARARGS, NULL},
	 { (char *)"delete_NonCentralCumulativeChiSquareDistribution", _wrap_delete_NonCentralCumulativeChiSquareDistribution, METH_VARARGS, NULL},
	 { (char *)"NonCentralCumulativeChiSquareDistribution_swigregister", NonCentralCumulativeChiSquareDistribution_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_InverseNonCentralCumulativeChiSquareDistribution", _wrap_new_InverseNonCentralCumulativeChiSquareDistribution, METH_VARARGS, NULL},
	 { (char *)"InverseNonCentralCumulativeChiSquareDistribution___call__", _wrap_InverseNonCentralCumulativeChiSquareDistribution___call__, METH_VARARGS, NULL},
	 { (char *)"delete_InverseNonCentralCumulativeChiSquareDistribution", _wrap_delete_InverseNonCentralCumulativeChiSquareDistribution, METH_VARARGS, NULL},
	 { (char *)"InverseNonCentralCumulativeChiSquareDistribution_swigregister", InverseNonCentralCumulativeChiSquareDistribution_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CumulativeGammaDistribution", _wrap_new_CumulativeGammaDistribution, METH_VARARGS, NULL},
	 { (char *)"CumulativeGammaDistribution___call__", _wrap_CumulativeGammaDistribution___call__, METH_VARARGS, NULL},
	 { (char *)"delete_CumulativeGammaDistribution", _wrap_delete_CumulativeGammaDistribution, METH_VARARGS, NULL},
	 { (char *)"CumulativeGammaDistribution_swigregister", CumulativeGammaDistribution_swigregister, METH_VARARGS, NULL},
	 { (char *)"GammaFunction_logValue", _wrap_GammaFunction_logValue, METH_VARARGS, NULL},
	 { (char *)"new_GammaFunction", _wrap_new_GammaFunction, METH_VARARGS, NULL},
	 { (char *)"delete_GammaFunction", _wrap_delete_GammaFunction, METH_VARARGS, NULL},
	 { (char *)"GammaFunction_swigregister", GammaFunction_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PoissonDistribution", _wrap_new_PoissonDistribution, METH_VARARGS, NULL},
	 { (char *)"PoissonDistribution___call__", _wrap_PoissonDistribution___call__, METH_VARARGS, NULL},
	 { (char *)"delete_PoissonDistribution", _wrap_delete_PoissonDistribution, METH_VARARGS, NULL},
	 { (char *)"PoissonDistribution_swigregister", PoissonDistribution_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CumulativePoissonDistribution", _wrap_new_CumulativePoissonDistribution, METH_VARARGS, NULL},
	 { (char *)"CumulativePoissonDistribution___call__", _wrap_CumulativePoissonDistribution___call__, METH_VARARGS, NULL},
	 { (char *)"delete_CumulativePoissonDistribution", _wrap_delete_CumulativePoissonDistribution, METH_VARARGS, NULL},
	 { (char *)"CumulativePoissonDistribution_swigregister", CumulativePoissonDistribution_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_InverseCumulativePoisson", _wrap_new_InverseCumulativePoisson, METH_VARARGS, NULL},
	 { (char *)"InverseCumulativePoisson___call__", _wrap_InverseCumulativePoisson___call__, METH_VARARGS, NULL},
	 { (char *)"delete_InverseCumulativePoisson", _wrap_delete_InverseCumulativePoisson, METH_VARARGS, NULL},
	 { (char *)"InverseCumulativePoisson_swigregister", InverseCumulativePoisson_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_StudentDistribution", _wrap_new_StudentDistribution, METH_VARARGS, NULL},
	 { (char *)"StudentDistribution___call__", _wrap_StudentDistribution___call__, METH_VARARGS, NULL},
	 { (char *)"delete_StudentDistribution", _wrap_delete_StudentDistribution, METH_VARARGS, NULL},
	 { (char *)"StudentDistribution_swigregister", StudentDistribution_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CumulativeStudentDistribution", _wrap_new_CumulativeStudentDistribution, METH_VARARGS, NULL},
	 { (char *)"CumulativeStudentDistribution___call__", _wrap_CumulativeStudentDistribution___call__, METH_VARARGS, NULL},
	 { (char *)"delete_CumulativeStudentDistribution", _wrap_delete_CumulativeStudentDistribution, METH_VARARGS, NULL},
	 { (char *)"CumulativeStudentDistribution_swigregister", CumulativeStudentDistribution_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_InverseCumulativeStudent", _wrap_new_InverseCumulativeStudent, METH_VARARGS, NULL},
	 { (char *)"InverseCumulativeStudent___call__", _wrap_InverseCumulativeStudent___call__, METH_VARARGS, NULL},
	 { (char *)"delete_InverseCumulativeStudent", _wrap_delete_InverseCumulativeStudent, METH_VARARGS, NULL},
	 { (char *)"InverseCumulativeStudent_swigregister", InverseCumulativeStudent_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Money", _wrap_new_Money, METH_VARARGS, NULL},
	 { (char *)"Money_currency", _wrap_Money_currency, METH_VARARGS, NULL},
	 { (char *)"Money_value", _wrap_Money_value, METH_VARARGS, NULL},
	 { (char *)"Money_rounded", _wrap_Money_rounded, METH_VARARGS, NULL},
	 { (char *)"Money___pos__", _wrap_Money___pos__, METH_VARARGS, NULL},
	 { (char *)"Money___neg__", _wrap_Money___neg__, METH_VARARGS, NULL},
	 { (char *)"Money___add__", _wrap_Money___add__, METH_VARARGS, NULL},
	 { (char *)"Money___sub__", _wrap_Money___sub__, METH_VARARGS, NULL},
	 { (char *)"Money___mul__", _wrap_Money___mul__, METH_VARARGS, NULL},
	 { (char *)"Money___truediv__", _wrap_Money___truediv__, METH_VARARGS, NULL},
	 { (char *)"Money___rmul__", _wrap_Money___rmul__, METH_VARARGS, NULL},
	 { (char *)"Money___lt__", _wrap_Money___lt__, METH_VARARGS, NULL},
	 { (char *)"Money___gt__", _wrap_Money___gt__, METH_VARARGS, NULL},
	 { (char *)"Money___le__", _wrap_Money___le__, METH_VARARGS, NULL},
	 { (char *)"Money___ge__", _wrap_Money___ge__, METH_VARARGS, NULL},
	 { (char *)"Money___cmp__", _wrap_Money___cmp__, METH_VARARGS, NULL},
	 { (char *)"Money___str__", _wrap_Money___str__, METH_VARARGS, NULL},
	 { (char *)"Money_setConversionType", _wrap_Money_setConversionType, METH_VARARGS, NULL},
	 { (char *)"Money_setBaseCurrency", _wrap_Money_setBaseCurrency, METH_VARARGS, NULL},
	 { (char *)"delete_Money", _wrap_delete_Money, METH_VARARGS, NULL},
	 { (char *)"Money_swigregister", Money_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ExchangeRate", _wrap_new_ExchangeRate, METH_VARARGS, NULL},
	 { (char *)"ExchangeRate_source", _wrap_ExchangeRate_source, METH_VARARGS, NULL},
	 { (char *)"ExchangeRate_target", _wrap_ExchangeRate_target, METH_VARARGS, NULL},
	 { (char *)"ExchangeRate_type", _wrap_ExchangeRate_type, METH_VARARGS, NULL},
	 { (char *)"ExchangeRate_rate", _wrap_ExchangeRate_rate, METH_VARARGS, NULL},
	 { (char *)"ExchangeRate_exchange", _wrap_ExchangeRate_exchange, METH_VARARGS, NULL},
	 { (char *)"ExchangeRate_chain", _wrap_ExchangeRate_chain, METH_VARARGS, NULL},
	 { (char *)"delete_ExchangeRate", _wrap_delete_ExchangeRate, METH_VARARGS, NULL},
	 { (char *)"ExchangeRate_swigregister", ExchangeRate_swigregister, METH_VARARGS, NULL},
	 { (char *)"ExchangeRateManager_instance", _wrap_ExchangeRateManager_instance, METH_VARARGS, NULL},
	 { (char *)"ExchangeRateManager_add", _wrap_ExchangeRateManager_add, METH_VARARGS, NULL},
	 { (char *)"ExchangeRateManager_lookup", _wrap_ExchangeRateManager_lookup, METH_VARARGS, NULL},
	 { (char *)"ExchangeRateManager_clear", _wrap_ExchangeRateManager_clear, METH_VARARGS, NULL},
	 { (char *)"delete_ExchangeRateManager", _wrap_delete_ExchangeRateManager, METH_VARARGS, NULL},
	 { (char *)"ExchangeRateManager_swigregister", ExchangeRateManager_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Futures", _wrap_new_Futures, METH_VARARGS, NULL},
	 { (char *)"delete_Futures", _wrap_delete_Futures, METH_VARARGS, NULL},
	 { (char *)"Futures_swigregister", Futures_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_TimeBasket", _wrap_new_TimeBasket, METH_VARARGS, NULL},
	 { (char *)"TimeBasket___len__", _wrap_TimeBasket___len__, METH_VARARGS, NULL},
	 { (char *)"TimeBasket_rebin", _wrap_TimeBasket_rebin, METH_VARARGS, NULL},
	 { (char *)"TimeBasket___getitem__", _wrap_TimeBasket___getitem__, METH_VARARGS, NULL},
	 { (char *)"TimeBasket___setitem__", _wrap_TimeBasket___setitem__, METH_VARARGS, NULL},
	 { (char *)"TimeBasket_items", _wrap_TimeBasket_items, METH_VARARGS, NULL},
	 { (char *)"TimeBasket___contains__", _wrap_TimeBasket___contains__, METH_VARARGS, NULL},
	 { (char *)"TimeBasket___iter__", _wrap_TimeBasket___iter__, METH_VARARGS, NULL},
	 { (char *)"delete_TimeBasket", _wrap_delete_TimeBasket, METH_VARARGS, NULL},
	 { (char *)"TimeBasket_swigregister", TimeBasket_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Swap", _wrap_new_Swap, METH_VARARGS, NULL},
	 { (char *)"Swap_startDate", _wrap_Swap_startDate, METH_VARARGS, NULL},
	 { (char *)"Swap_maturityDate", _wrap_Swap_maturityDate, METH_VARARGS, NULL},
	 { (char *)"Swap_leg", _wrap_Swap_leg, METH_VARARGS, NULL},
	 { (char *)"Swap_legNPV", _wrap_Swap_legNPV, METH_VARARGS, NULL},
	 { (char *)"delete_Swap", _wrap_delete_Swap, METH_VARARGS, NULL},
	 { (char *)"Swap_swigregister", Swap_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_VanillaSwap", _wrap_new_VanillaSwap, METH_VARARGS, NULL},
	 { (char *)"VanillaSwap_fairRate", _wrap_VanillaSwap_fairRate, METH_VARARGS, NULL},
	 { (char *)"VanillaSwap_fairSpread", _wrap_VanillaSwap_fairSpread, METH_VARARGS, NULL},
	 { (char *)"VanillaSwap_fixedLegBPS", _wrap_VanillaSwap_fixedLegBPS, METH_VARARGS, NULL},
	 { (char *)"VanillaSwap_floatingLegBPS", _wrap_VanillaSwap_floatingLegBPS, METH_VARARGS, NULL},
	 { (char *)"VanillaSwap_fixedLegNPV", _wrap_VanillaSwap_fixedLegNPV, METH_VARARGS, NULL},
	 { (char *)"VanillaSwap_floatingLegNPV", _wrap_VanillaSwap_floatingLegNPV, METH_VARARGS, NULL},
	 { (char *)"VanillaSwap_fixedLeg", _wrap_VanillaSwap_fixedLeg, METH_VARARGS, NULL},
	 { (char *)"VanillaSwap_floatingLeg", _wrap_VanillaSwap_floatingLeg, METH_VARARGS, NULL},
	 { (char *)"VanillaSwap_nominal", _wrap_VanillaSwap_nominal, METH_VARARGS, NULL},
	 { (char *)"VanillaSwap_fixedSchedule", _wrap_VanillaSwap_fixedSchedule, METH_VARARGS, NULL},
	 { (char *)"VanillaSwap_floatingSchedule", _wrap_VanillaSwap_floatingSchedule, METH_VARARGS, NULL},
	 { (char *)"VanillaSwap_fixedRate", _wrap_VanillaSwap_fixedRate, METH_VARARGS, NULL},
	 { (char *)"VanillaSwap_spread", _wrap_VanillaSwap_spread, METH_VARARGS, NULL},
	 { (char *)"VanillaSwap_floatingDayCount", _wrap_VanillaSwap_floatingDayCount, METH_VARARGS, NULL},
	 { (char *)"VanillaSwap_fixedDayCount", _wrap_VanillaSwap_fixedDayCount, METH_VARARGS, NULL},
	 { (char *)"delete_VanillaSwap", _wrap_delete_VanillaSwap, METH_VARARGS, NULL},
	 { (char *)"VanillaSwap_swigregister", VanillaSwap_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_NonstandardSwap", _wrap_new_NonstandardSwap, METH_VARARGS, NULL},
	 { (char *)"NonstandardSwap_fixedLeg", _wrap_NonstandardSwap_fixedLeg, METH_VARARGS, NULL},
	 { (char *)"NonstandardSwap_floatingLeg", _wrap_NonstandardSwap_floatingLeg, METH_VARARGS, NULL},
	 { (char *)"NonstandardSwap_fixedNominals", _wrap_NonstandardSwap_fixedNominals, METH_VARARGS, NULL},
	 { (char *)"NonstandardSwap_floatingNominals", _wrap_NonstandardSwap_floatingNominals, METH_VARARGS, NULL},
	 { (char *)"NonstandardSwap_fixedSchedule", _wrap_NonstandardSwap_fixedSchedule, METH_VARARGS, NULL},
	 { (char *)"NonstandardSwap_floatingSchedule", _wrap_NonstandardSwap_floatingSchedule, METH_VARARGS, NULL},
	 { (char *)"NonstandardSwap_fixedRate", _wrap_NonstandardSwap_fixedRate, METH_VARARGS, NULL},
	 { (char *)"NonstandardSwap_spreads", _wrap_NonstandardSwap_spreads, METH_VARARGS, NULL},
	 { (char *)"NonstandardSwap_gearings", _wrap_NonstandardSwap_gearings, METH_VARARGS, NULL},
	 { (char *)"NonstandardSwap_floatingDayCount", _wrap_NonstandardSwap_floatingDayCount, METH_VARARGS, NULL},
	 { (char *)"NonstandardSwap_fixedDayCount", _wrap_NonstandardSwap_fixedDayCount, METH_VARARGS, NULL},
	 { (char *)"delete_NonstandardSwap", _wrap_delete_NonstandardSwap, METH_VARARGS, NULL},
	 { (char *)"NonstandardSwap_swigregister", NonstandardSwap_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DiscountingSwapEngine", _wrap_new_DiscountingSwapEngine, METH_VARARGS, NULL},
	 { (char *)"delete_DiscountingSwapEngine", _wrap_delete_DiscountingSwapEngine, METH_VARARGS, NULL},
	 { (char *)"DiscountingSwapEngine_swigregister", DiscountingSwapEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_AssetSwap", (PyCFunction) _wrap_new_AssetSwap, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"AssetSwap_fairCleanPrice", _wrap_AssetSwap_fairCleanPrice, METH_VARARGS, NULL},
	 { (char *)"AssetSwap_fairSpread", _wrap_AssetSwap_fairSpread, METH_VARARGS, NULL},
	 { (char *)"delete_AssetSwap", _wrap_delete_AssetSwap, METH_VARARGS, NULL},
	 { (char *)"AssetSwap_swigregister", AssetSwap_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FloatFloatSwap", _wrap_new_FloatFloatSwap, METH_VARARGS, NULL},
	 { (char *)"delete_FloatFloatSwap", _wrap_delete_FloatFloatSwap, METH_VARARGS, NULL},
	 { (char *)"FloatFloatSwap_swigregister", FloatFloatSwap_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Pillar", _wrap_new_Pillar, METH_VARARGS, NULL},
	 { (char *)"delete_Pillar", _wrap_delete_Pillar, METH_VARARGS, NULL},
	 { (char *)"Pillar_swigregister", Pillar_swigregister, METH_VARARGS, NULL},
	 { (char *)"RateHelper___deref__", _wrap_RateHelper___deref__, METH_VARARGS, NULL},
	 { (char *)"RateHelper___nonzero__", _wrap_RateHelper___nonzero__, METH_VARARGS, NULL},
	 { (char *)"RateHelper___bool__", _wrap_RateHelper___bool__, METH_VARARGS, NULL},
	 { (char *)"new_RateHelper", _wrap_new_RateHelper, METH_VARARGS, NULL},
	 { (char *)"delete_RateHelper", _wrap_delete_RateHelper, METH_VARARGS, NULL},
	 { (char *)"RateHelper_quote", _wrap_RateHelper_quote, METH_VARARGS, NULL},
	 { (char *)"RateHelper_latestDate", _wrap_RateHelper_latestDate, METH_VARARGS, NULL},
	 { (char *)"RateHelper_swigregister", RateHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DepositRateHelper", _wrap_new_DepositRateHelper, METH_VARARGS, NULL},
	 { (char *)"delete_DepositRateHelper", _wrap_delete_DepositRateHelper, METH_VARARGS, NULL},
	 { (char *)"DepositRateHelper_swigregister", DepositRateHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FraRateHelper", _wrap_new_FraRateHelper, METH_VARARGS, NULL},
	 { (char *)"delete_FraRateHelper", _wrap_delete_FraRateHelper, METH_VARARGS, NULL},
	 { (char *)"FraRateHelper_swigregister", FraRateHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FuturesRateHelper", _wrap_new_FuturesRateHelper, METH_VARARGS, NULL},
	 { (char *)"delete_FuturesRateHelper", _wrap_delete_FuturesRateHelper, METH_VARARGS, NULL},
	 { (char *)"FuturesRateHelper_swigregister", FuturesRateHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SwapRateHelper", _wrap_new_SwapRateHelper, METH_VARARGS, NULL},
	 { (char *)"SwapRateHelper_swap", _wrap_SwapRateHelper_swap, METH_VARARGS, NULL},
	 { (char *)"delete_SwapRateHelper", _wrap_delete_SwapRateHelper, METH_VARARGS, NULL},
	 { (char *)"SwapRateHelper_swigregister", SwapRateHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BondHelper", _wrap_new_BondHelper, METH_VARARGS, NULL},
	 { (char *)"BondHelper_bond", _wrap_BondHelper_bond, METH_VARARGS, NULL},
	 { (char *)"delete_BondHelper", _wrap_delete_BondHelper, METH_VARARGS, NULL},
	 { (char *)"BondHelper_swigregister", BondHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FixedRateBondHelper", _wrap_new_FixedRateBondHelper, METH_VARARGS, NULL},
	 { (char *)"FixedRateBondHelper_bond", _wrap_FixedRateBondHelper_bond, METH_VARARGS, NULL},
	 { (char *)"delete_FixedRateBondHelper", _wrap_delete_FixedRateBondHelper, METH_VARARGS, NULL},
	 { (char *)"FixedRateBondHelper_swigregister", FixedRateBondHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_OISRateHelper", _wrap_new_OISRateHelper, METH_VARARGS, NULL},
	 { (char *)"delete_OISRateHelper", _wrap_delete_OISRateHelper, METH_VARARGS, NULL},
	 { (char *)"OISRateHelper_swigregister", OISRateHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DatedOISRateHelper", _wrap_new_DatedOISRateHelper, METH_VARARGS, NULL},
	 { (char *)"delete_DatedOISRateHelper", _wrap_delete_DatedOISRateHelper, METH_VARARGS, NULL},
	 { (char *)"DatedOISRateHelper_swigregister", DatedOISRateHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FxSwapRateHelper", _wrap_new_FxSwapRateHelper, METH_VARARGS, NULL},
	 { (char *)"delete_FxSwapRateHelper", _wrap_delete_FxSwapRateHelper, METH_VARARGS, NULL},
	 { (char *)"FxSwapRateHelper_swigregister", FxSwapRateHelper_swigregister, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_iterator", _wrap_RateHelperVector_iterator, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector___nonzero__", _wrap_RateHelperVector___nonzero__, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector___bool__", _wrap_RateHelperVector___bool__, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector___len__", _wrap_RateHelperVector___len__, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector___getslice__", _wrap_RateHelperVector___getslice__, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector___setslice__", _wrap_RateHelperVector___setslice__, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector___delslice__", _wrap_RateHelperVector___delslice__, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector___delitem__", _wrap_RateHelperVector___delitem__, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector___getitem__", _wrap_RateHelperVector___getitem__, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector___setitem__", _wrap_RateHelperVector___setitem__, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_pop", _wrap_RateHelperVector_pop, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_append", _wrap_RateHelperVector_append, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_empty", _wrap_RateHelperVector_empty, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_size", _wrap_RateHelperVector_size, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_swap", _wrap_RateHelperVector_swap, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_begin", _wrap_RateHelperVector_begin, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_end", _wrap_RateHelperVector_end, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_rbegin", _wrap_RateHelperVector_rbegin, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_rend", _wrap_RateHelperVector_rend, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_clear", _wrap_RateHelperVector_clear, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_get_allocator", _wrap_RateHelperVector_get_allocator, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_pop_back", _wrap_RateHelperVector_pop_back, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_erase", _wrap_RateHelperVector_erase, METH_VARARGS, NULL},
	 { (char *)"new_RateHelperVector", _wrap_new_RateHelperVector, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_push_back", _wrap_RateHelperVector_push_back, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_front", _wrap_RateHelperVector_front, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_back", _wrap_RateHelperVector_back, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_assign", _wrap_RateHelperVector_assign, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_resize", _wrap_RateHelperVector_resize, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_insert", _wrap_RateHelperVector_insert, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_reserve", _wrap_RateHelperVector_reserve, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_capacity", _wrap_RateHelperVector_capacity, METH_VARARGS, NULL},
	 { (char *)"delete_RateHelperVector", _wrap_delete_RateHelperVector, METH_VARARGS, NULL},
	 { (char *)"RateHelperVector_swigregister", RateHelperVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"delete_FittingMethod", _wrap_delete_FittingMethod, METH_VARARGS, NULL},
	 { (char *)"FittingMethod_size", _wrap_FittingMethod_size, METH_VARARGS, NULL},
	 { (char *)"FittingMethod_solution", _wrap_FittingMethod_solution, METH_VARARGS, NULL},
	 { (char *)"FittingMethod_numberOfIterations", _wrap_FittingMethod_numberOfIterations, METH_VARARGS, NULL},
	 { (char *)"FittingMethod_minimumCostValue", _wrap_FittingMethod_minimumCostValue, METH_VARARGS, NULL},
	 { (char *)"FittingMethod_constrainAtZero", _wrap_FittingMethod_constrainAtZero, METH_VARARGS, NULL},
	 { (char *)"FittingMethod_weights", _wrap_FittingMethod_weights, METH_VARARGS, NULL},
	 { (char *)"FittingMethod_swigregister", FittingMethod_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FittedBondDiscountCurve", _wrap_new_FittedBondDiscountCurve, METH_VARARGS, NULL},
	 { (char *)"FittedBondDiscountCurve_fitResults", _wrap_FittedBondDiscountCurve_fitResults, METH_VARARGS, NULL},
	 { (char *)"delete_FittedBondDiscountCurve", _wrap_delete_FittedBondDiscountCurve, METH_VARARGS, NULL},
	 { (char *)"FittedBondDiscountCurve_swigregister", FittedBondDiscountCurve_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ExponentialSplinesFitting", _wrap_new_ExponentialSplinesFitting, METH_VARARGS, NULL},
	 { (char *)"delete_ExponentialSplinesFitting", _wrap_delete_ExponentialSplinesFitting, METH_VARARGS, NULL},
	 { (char *)"ExponentialSplinesFitting_swigregister", ExponentialSplinesFitting_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_NelsonSiegelFitting", _wrap_new_NelsonSiegelFitting, METH_VARARGS, NULL},
	 { (char *)"delete_NelsonSiegelFitting", _wrap_delete_NelsonSiegelFitting, METH_VARARGS, NULL},
	 { (char *)"NelsonSiegelFitting_swigregister", NelsonSiegelFitting_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SvenssonFitting", _wrap_new_SvenssonFitting, METH_VARARGS, NULL},
	 { (char *)"delete_SvenssonFitting", _wrap_delete_SvenssonFitting, METH_VARARGS, NULL},
	 { (char *)"SvenssonFitting_swigregister", SvenssonFitting_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CubicBSplinesFitting", _wrap_new_CubicBSplinesFitting, METH_VARARGS, NULL},
	 { (char *)"CubicBSplinesFitting_basisFunction", _wrap_CubicBSplinesFitting_basisFunction, METH_VARARGS, NULL},
	 { (char *)"delete_CubicBSplinesFitting", _wrap_delete_CubicBSplinesFitting, METH_VARARGS, NULL},
	 { (char *)"CubicBSplinesFitting_swigregister", CubicBSplinesFitting_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SimplePolynomialFitting", _wrap_new_SimplePolynomialFitting, METH_VARARGS, NULL},
	 { (char *)"delete_SimplePolynomialFitting", _wrap_delete_SimplePolynomialFitting, METH_VARARGS, NULL},
	 { (char *)"SimplePolynomialFitting_swigregister", SimplePolynomialFitting_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ForwardCurve", _wrap_new_ForwardCurve, METH_VARARGS, NULL},
	 { (char *)"ForwardCurve_dates", _wrap_ForwardCurve_dates, METH_VARARGS, NULL},
	 { (char *)"ForwardCurve_forwards", _wrap_ForwardCurve_forwards, METH_VARARGS, NULL},
	 { (char *)"ForwardCurve_nodes", _wrap_ForwardCurve_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_ForwardCurve", _wrap_delete_ForwardCurve, METH_VARARGS, NULL},
	 { (char *)"ForwardCurve_swigregister", ForwardCurve_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Position", _wrap_new_Position, METH_VARARGS, NULL},
	 { (char *)"delete_Position", _wrap_delete_Position, METH_VARARGS, NULL},
	 { (char *)"Position_swigregister", Position_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ForwardRateAgreement", _wrap_new_ForwardRateAgreement, METH_VARARGS, NULL},
	 { (char *)"ForwardRateAgreement_spotIncome", _wrap_ForwardRateAgreement_spotIncome, METH_VARARGS, NULL},
	 { (char *)"ForwardRateAgreement_spotValue", _wrap_ForwardRateAgreement_spotValue, METH_VARARGS, NULL},
	 { (char *)"ForwardRateAgreement_forwardRate", _wrap_ForwardRateAgreement_forwardRate, METH_VARARGS, NULL},
	 { (char *)"delete_ForwardRateAgreement", _wrap_delete_ForwardRateAgreement, METH_VARARGS, NULL},
	 { (char *)"ForwardRateAgreement_swigregister", ForwardRateAgreement_swigregister, METH_VARARGS, NULL},
	 { (char *)"Gaussian1dModel___deref__", _wrap_Gaussian1dModel___deref__, METH_VARARGS, NULL},
	 { (char *)"Gaussian1dModel___nonzero__", _wrap_Gaussian1dModel___nonzero__, METH_VARARGS, NULL},
	 { (char *)"Gaussian1dModel___bool__", _wrap_Gaussian1dModel___bool__, METH_VARARGS, NULL},
	 { (char *)"new_Gaussian1dModel", _wrap_new_Gaussian1dModel, METH_VARARGS, NULL},
	 { (char *)"delete_Gaussian1dModel", _wrap_delete_Gaussian1dModel, METH_VARARGS, NULL},
	 { (char *)"Gaussian1dModel_stateProcess", _wrap_Gaussian1dModel_stateProcess, METH_VARARGS, NULL},
	 { (char *)"Gaussian1dModel_numeraire", _wrap_Gaussian1dModel_numeraire, METH_VARARGS, NULL},
	 { (char *)"Gaussian1dModel_zerobond", _wrap_Gaussian1dModel_zerobond, METH_VARARGS, NULL},
	 { (char *)"Gaussian1dModel_zerobondOption", _wrap_Gaussian1dModel_zerobondOption, METH_VARARGS, NULL},
	 { (char *)"Gaussian1dModel_forwardRate", _wrap_Gaussian1dModel_forwardRate, METH_VARARGS, NULL},
	 { (char *)"Gaussian1dModel_swapRate", _wrap_Gaussian1dModel_swapRate, METH_VARARGS, NULL},
	 { (char *)"Gaussian1dModel_swapAnnuity", _wrap_Gaussian1dModel_swapAnnuity, METH_VARARGS, NULL},
	 { (char *)"Gaussian1dModel_swigregister", Gaussian1dModel_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Gsr", _wrap_new_Gsr, METH_VARARGS, NULL},
	 { (char *)"Gsr_calibrateVolatilitiesIterative", _wrap_Gsr_calibrateVolatilitiesIterative, METH_VARARGS, NULL},
	 { (char *)"Gsr_calibrate", _wrap_Gsr_calibrate, METH_VARARGS, NULL},
	 { (char *)"Gsr_params", _wrap_Gsr_params, METH_VARARGS, NULL},
	 { (char *)"Gsr_value", _wrap_Gsr_value, METH_VARARGS, NULL},
	 { (char *)"Gsr_endCriteria", _wrap_Gsr_endCriteria, METH_VARARGS, NULL},
	 { (char *)"Gsr_setParams", _wrap_Gsr_setParams, METH_VARARGS, NULL},
	 { (char *)"Gsr_functionEvaluation", _wrap_Gsr_functionEvaluation, METH_VARARGS, NULL},
	 { (char *)"Gsr_reversion", _wrap_Gsr_reversion, METH_VARARGS, NULL},
	 { (char *)"Gsr_volatility", _wrap_Gsr_volatility, METH_VARARGS, NULL},
	 { (char *)"delete_Gsr", _wrap_delete_Gsr, METH_VARARGS, NULL},
	 { (char *)"Gsr_swigregister", Gsr_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MarkovFunctionalSettings", _wrap_new_MarkovFunctionalSettings, METH_VARARGS, NULL},
	 { (char *)"delete_MarkovFunctionalSettings", _wrap_delete_MarkovFunctionalSettings, METH_VARARGS, NULL},
	 { (char *)"MarkovFunctionalSettings_swigregister", MarkovFunctionalSettings_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MarkovFunctional", _wrap_new_MarkovFunctional, METH_VARARGS, NULL},
	 { (char *)"MarkovFunctional_calibrate", _wrap_MarkovFunctional_calibrate, METH_VARARGS, NULL},
	 { (char *)"MarkovFunctional_volatility", _wrap_MarkovFunctional_volatility, METH_VARARGS, NULL},
	 { (char *)"delete_MarkovFunctional", _wrap_delete_MarkovFunctional, METH_VARARGS, NULL},
	 { (char *)"MarkovFunctional_swigregister", MarkovFunctional_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Gaussian1dSwaptionEngine", _wrap_new_Gaussian1dSwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"delete_Gaussian1dSwaptionEngine", _wrap_delete_Gaussian1dSwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"Gaussian1dSwaptionEngine_swigregister", Gaussian1dSwaptionEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Gaussian1dJamshidianSwaptionEngine", _wrap_new_Gaussian1dJamshidianSwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"delete_Gaussian1dJamshidianSwaptionEngine", _wrap_delete_Gaussian1dJamshidianSwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"Gaussian1dJamshidianSwaptionEngine_swigregister", Gaussian1dJamshidianSwaptionEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Gaussian1dNonstandardSwaptionEngine", _wrap_new_Gaussian1dNonstandardSwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"delete_Gaussian1dNonstandardSwaptionEngine", _wrap_delete_Gaussian1dNonstandardSwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"Gaussian1dNonstandardSwaptionEngine_swigregister", Gaussian1dNonstandardSwaptionEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Gaussian1dFloatFloatSwaptionEngine", _wrap_new_Gaussian1dFloatFloatSwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"delete_Gaussian1dFloatFloatSwaptionEngine", _wrap_delete_Gaussian1dFloatFloatSwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"Gaussian1dFloatFloatSwaptionEngine_swigregister", Gaussian1dFloatFloatSwaptionEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SegmentIntegral", _wrap_new_SegmentIntegral, METH_VARARGS, NULL},
	 { (char *)"SegmentIntegral___call__", _wrap_SegmentIntegral___call__, METH_VARARGS, NULL},
	 { (char *)"delete_SegmentIntegral", _wrap_delete_SegmentIntegral, METH_VARARGS, NULL},
	 { (char *)"SegmentIntegral_swigregister", SegmentIntegral_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_TrapezoidIntegralDefault", _wrap_new_TrapezoidIntegralDefault, METH_VARARGS, NULL},
	 { (char *)"TrapezoidIntegralDefault___call__", _wrap_TrapezoidIntegralDefault___call__, METH_VARARGS, NULL},
	 { (char *)"delete_TrapezoidIntegralDefault", _wrap_delete_TrapezoidIntegralDefault, METH_VARARGS, NULL},
	 { (char *)"TrapezoidIntegralDefault_swigregister", TrapezoidIntegralDefault_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_TrapezoidIntegralMidPoint", _wrap_new_TrapezoidIntegralMidPoint, METH_VARARGS, NULL},
	 { (char *)"TrapezoidIntegralMidPoint___call__", _wrap_TrapezoidIntegralMidPoint___call__, METH_VARARGS, NULL},
	 { (char *)"delete_TrapezoidIntegralMidPoint", _wrap_delete_TrapezoidIntegralMidPoint, METH_VARARGS, NULL},
	 { (char *)"TrapezoidIntegralMidPoint_swigregister", TrapezoidIntegralMidPoint_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SimpsonIntegral", _wrap_new_SimpsonIntegral, METH_VARARGS, NULL},
	 { (char *)"SimpsonIntegral___call__", _wrap_SimpsonIntegral___call__, METH_VARARGS, NULL},
	 { (char *)"delete_SimpsonIntegral", _wrap_delete_SimpsonIntegral, METH_VARARGS, NULL},
	 { (char *)"SimpsonIntegral_swigregister", SimpsonIntegral_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GaussKronrodAdaptive", _wrap_new_GaussKronrodAdaptive, METH_VARARGS, NULL},
	 { (char *)"GaussKronrodAdaptive___call__", _wrap_GaussKronrodAdaptive___call__, METH_VARARGS, NULL},
	 { (char *)"delete_GaussKronrodAdaptive", _wrap_delete_GaussKronrodAdaptive, METH_VARARGS, NULL},
	 { (char *)"GaussKronrodAdaptive_swigregister", GaussKronrodAdaptive_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GaussKronrodNonAdaptive", _wrap_new_GaussKronrodNonAdaptive, METH_VARARGS, NULL},
	 { (char *)"GaussKronrodNonAdaptive___call__", _wrap_GaussKronrodNonAdaptive___call__, METH_VARARGS, NULL},
	 { (char *)"delete_GaussKronrodNonAdaptive", _wrap_delete_GaussKronrodNonAdaptive, METH_VARARGS, NULL},
	 { (char *)"GaussKronrodNonAdaptive_swigregister", GaussKronrodNonAdaptive_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GaussLobattoIntegral", _wrap_new_GaussLobattoIntegral, METH_VARARGS, NULL},
	 { (char *)"GaussLobattoIntegral___call__", _wrap_GaussLobattoIntegral___call__, METH_VARARGS, NULL},
	 { (char *)"delete_GaussLobattoIntegral", _wrap_delete_GaussLobattoIntegral, METH_VARARGS, NULL},
	 { (char *)"GaussLobattoIntegral_swigregister", GaussLobattoIntegral_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GaussLaguerreIntegration", _wrap_new_GaussLaguerreIntegration, METH_VARARGS, NULL},
	 { (char *)"GaussLaguerreIntegration___call__", _wrap_GaussLaguerreIntegration___call__, METH_VARARGS, NULL},
	 { (char *)"delete_GaussLaguerreIntegration", _wrap_delete_GaussLaguerreIntegration, METH_VARARGS, NULL},
	 { (char *)"GaussLaguerreIntegration_swigregister", GaussLaguerreIntegration_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GaussHermiteIntegration", _wrap_new_GaussHermiteIntegration, METH_VARARGS, NULL},
	 { (char *)"GaussHermiteIntegration___call__", _wrap_GaussHermiteIntegration___call__, METH_VARARGS, NULL},
	 { (char *)"delete_GaussHermiteIntegration", _wrap_delete_GaussHermiteIntegration, METH_VARARGS, NULL},
	 { (char *)"GaussHermiteIntegration_swigregister", GaussHermiteIntegration_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GaussJacobiIntegration", _wrap_new_GaussJacobiIntegration, METH_VARARGS, NULL},
	 { (char *)"GaussJacobiIntegration___call__", _wrap_GaussJacobiIntegration___call__, METH_VARARGS, NULL},
	 { (char *)"delete_GaussJacobiIntegration", _wrap_delete_GaussJacobiIntegration, METH_VARARGS, NULL},
	 { (char *)"GaussJacobiIntegration_swigregister", GaussJacobiIntegration_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GaussHyperbolicIntegration", _wrap_new_GaussHyperbolicIntegration, METH_VARARGS, NULL},
	 { (char *)"GaussHyperbolicIntegration___call__", _wrap_GaussHyperbolicIntegration___call__, METH_VARARGS, NULL},
	 { (char *)"delete_GaussHyperbolicIntegration", _wrap_delete_GaussHyperbolicIntegration, METH_VARARGS, NULL},
	 { (char *)"GaussHyperbolicIntegration_swigregister", GaussHyperbolicIntegration_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GaussLegendreIntegration", _wrap_new_GaussLegendreIntegration, METH_VARARGS, NULL},
	 { (char *)"GaussLegendreIntegration___call__", _wrap_GaussLegendreIntegration___call__, METH_VARARGS, NULL},
	 { (char *)"delete_GaussLegendreIntegration", _wrap_delete_GaussLegendreIntegration, METH_VARARGS, NULL},
	 { (char *)"GaussLegendreIntegration_swigregister", GaussLegendreIntegration_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GaussChebyshevIntegration", _wrap_new_GaussChebyshevIntegration, METH_VARARGS, NULL},
	 { (char *)"GaussChebyshevIntegration___call__", _wrap_GaussChebyshevIntegration___call__, METH_VARARGS, NULL},
	 { (char *)"delete_GaussChebyshevIntegration", _wrap_delete_GaussChebyshevIntegration, METH_VARARGS, NULL},
	 { (char *)"GaussChebyshevIntegration_swigregister", GaussChebyshevIntegration_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GaussChebyshev2ndIntegration", _wrap_new_GaussChebyshev2ndIntegration, METH_VARARGS, NULL},
	 { (char *)"GaussChebyshev2ndIntegration___call__", _wrap_GaussChebyshev2ndIntegration___call__, METH_VARARGS, NULL},
	 { (char *)"delete_GaussChebyshev2ndIntegration", _wrap_delete_GaussChebyshev2ndIntegration, METH_VARARGS, NULL},
	 { (char *)"GaussChebyshev2ndIntegration_swigregister", GaussChebyshev2ndIntegration_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GaussGegenbauerIntegration", _wrap_new_GaussGegenbauerIntegration, METH_VARARGS, NULL},
	 { (char *)"GaussGegenbauerIntegration___call__", _wrap_GaussGegenbauerIntegration___call__, METH_VARARGS, NULL},
	 { (char *)"delete_GaussGegenbauerIntegration", _wrap_delete_GaussGegenbauerIntegration, METH_VARARGS, NULL},
	 { (char *)"GaussGegenbauerIntegration_swigregister", GaussGegenbauerIntegration_swigregister, METH_VARARGS, NULL},
	 { (char *)"SampleNumber_value", _wrap_SampleNumber_value, METH_VARARGS, NULL},
	 { (char *)"SampleNumber_weight", _wrap_SampleNumber_weight, METH_VARARGS, NULL},
	 { (char *)"delete_SampleNumber", _wrap_delete_SampleNumber, METH_VARARGS, NULL},
	 { (char *)"SampleNumber_swigregister", SampleNumber_swigregister, METH_VARARGS, NULL},
	 { (char *)"SampleArray_value", _wrap_SampleArray_value, METH_VARARGS, NULL},
	 { (char *)"SampleArray_weight", _wrap_SampleArray_weight, METH_VARARGS, NULL},
	 { (char *)"delete_SampleArray", _wrap_delete_SampleArray, METH_VARARGS, NULL},
	 { (char *)"SampleArray_swigregister", SampleArray_swigregister, METH_VARARGS, NULL},
	 { (char *)"SampleRealVector_value", _wrap_SampleRealVector_value, METH_VARARGS, NULL},
	 { (char *)"SampleRealVector_weight", _wrap_SampleRealVector_weight, METH_VARARGS, NULL},
	 { (char *)"delete_SampleRealVector", _wrap_delete_SampleRealVector, METH_VARARGS, NULL},
	 { (char *)"SampleRealVector_swigregister", SampleRealVector_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_LecuyerUniformRng", _wrap_new_LecuyerUniformRng, METH_VARARGS, NULL},
	 { (char *)"LecuyerUniformRng_next", _wrap_LecuyerUniformRng_next, METH_VARARGS, NULL},
	 { (char *)"delete_LecuyerUniformRng", _wrap_delete_LecuyerUniformRng, METH_VARARGS, NULL},
	 { (char *)"LecuyerUniformRng_swigregister", LecuyerUniformRng_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_KnuthUniformRng", _wrap_new_KnuthUniformRng, METH_VARARGS, NULL},
	 { (char *)"KnuthUniformRng_next", _wrap_KnuthUniformRng_next, METH_VARARGS, NULL},
	 { (char *)"delete_KnuthUniformRng", _wrap_delete_KnuthUniformRng, METH_VARARGS, NULL},
	 { (char *)"KnuthUniformRng_swigregister", KnuthUniformRng_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MersenneTwisterUniformRng", _wrap_new_MersenneTwisterUniformRng, METH_VARARGS, NULL},
	 { (char *)"MersenneTwisterUniformRng_next", _wrap_MersenneTwisterUniformRng_next, METH_VARARGS, NULL},
	 { (char *)"delete_MersenneTwisterUniformRng", _wrap_delete_MersenneTwisterUniformRng, METH_VARARGS, NULL},
	 { (char *)"MersenneTwisterUniformRng_swigregister", MersenneTwisterUniformRng_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_UniformRandomGenerator", _wrap_new_UniformRandomGenerator, METH_VARARGS, NULL},
	 { (char *)"UniformRandomGenerator_next", _wrap_UniformRandomGenerator_next, METH_VARARGS, NULL},
	 { (char *)"UniformRandomGenerator_nextValue", _wrap_UniformRandomGenerator_nextValue, METH_VARARGS, NULL},
	 { (char *)"delete_UniformRandomGenerator", _wrap_delete_UniformRandomGenerator, METH_VARARGS, NULL},
	 { (char *)"UniformRandomGenerator_swigregister", UniformRandomGenerator_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CentralLimitLecuyerGaussianRng", _wrap_new_CentralLimitLecuyerGaussianRng, METH_VARARGS, NULL},
	 { (char *)"CentralLimitLecuyerGaussianRng_next", _wrap_CentralLimitLecuyerGaussianRng_next, METH_VARARGS, NULL},
	 { (char *)"delete_CentralLimitLecuyerGaussianRng", _wrap_delete_CentralLimitLecuyerGaussianRng, METH_VARARGS, NULL},
	 { (char *)"CentralLimitLecuyerGaussianRng_swigregister", CentralLimitLecuyerGaussianRng_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CentralLimitKnuthGaussianRng", _wrap_new_CentralLimitKnuthGaussianRng, METH_VARARGS, NULL},
	 { (char *)"CentralLimitKnuthGaussianRng_next", _wrap_CentralLimitKnuthGaussianRng_next, METH_VARARGS, NULL},
	 { (char *)"delete_CentralLimitKnuthGaussianRng", _wrap_delete_CentralLimitKnuthGaussianRng, METH_VARARGS, NULL},
	 { (char *)"CentralLimitKnuthGaussianRng_swigregister", CentralLimitKnuthGaussianRng_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CentralLimitMersenneTwisterGaussianRng", _wrap_new_CentralLimitMersenneTwisterGaussianRng, METH_VARARGS, NULL},
	 { (char *)"CentralLimitMersenneTwisterGaussianRng_next", _wrap_CentralLimitMersenneTwisterGaussianRng_next, METH_VARARGS, NULL},
	 { (char *)"delete_CentralLimitMersenneTwisterGaussianRng", _wrap_delete_CentralLimitMersenneTwisterGaussianRng, METH_VARARGS, NULL},
	 { (char *)"CentralLimitMersenneTwisterGaussianRng_swigregister", CentralLimitMersenneTwisterGaussianRng_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BoxMullerLecuyerGaussianRng", _wrap_new_BoxMullerLecuyerGaussianRng, METH_VARARGS, NULL},
	 { (char *)"BoxMullerLecuyerGaussianRng_next", _wrap_BoxMullerLecuyerGaussianRng_next, METH_VARARGS, NULL},
	 { (char *)"delete_BoxMullerLecuyerGaussianRng", _wrap_delete_BoxMullerLecuyerGaussianRng, METH_VARARGS, NULL},
	 { (char *)"BoxMullerLecuyerGaussianRng_swigregister", BoxMullerLecuyerGaussianRng_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BoxMullerKnuthGaussianRng", _wrap_new_BoxMullerKnuthGaussianRng, METH_VARARGS, NULL},
	 { (char *)"BoxMullerKnuthGaussianRng_next", _wrap_BoxMullerKnuthGaussianRng_next, METH_VARARGS, NULL},
	 { (char *)"delete_BoxMullerKnuthGaussianRng", _wrap_delete_BoxMullerKnuthGaussianRng, METH_VARARGS, NULL},
	 { (char *)"BoxMullerKnuthGaussianRng_swigregister", BoxMullerKnuthGaussianRng_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BoxMullerMersenneTwisterGaussianRng", _wrap_new_BoxMullerMersenneTwisterGaussianRng, METH_VARARGS, NULL},
	 { (char *)"BoxMullerMersenneTwisterGaussianRng_next", _wrap_BoxMullerMersenneTwisterGaussianRng_next, METH_VARARGS, NULL},
	 { (char *)"delete_BoxMullerMersenneTwisterGaussianRng", _wrap_delete_BoxMullerMersenneTwisterGaussianRng, METH_VARARGS, NULL},
	 { (char *)"BoxMullerMersenneTwisterGaussianRng_swigregister", BoxMullerMersenneTwisterGaussianRng_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MoroInvCumulativeLecuyerGaussianRng", _wrap_new_MoroInvCumulativeLecuyerGaussianRng, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeLecuyerGaussianRng_next", _wrap_MoroInvCumulativeLecuyerGaussianRng_next, METH_VARARGS, NULL},
	 { (char *)"delete_MoroInvCumulativeLecuyerGaussianRng", _wrap_delete_MoroInvCumulativeLecuyerGaussianRng, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeLecuyerGaussianRng_swigregister", MoroInvCumulativeLecuyerGaussianRng_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MoroInvCumulativeKnuthGaussianRng", _wrap_new_MoroInvCumulativeKnuthGaussianRng, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeKnuthGaussianRng_next", _wrap_MoroInvCumulativeKnuthGaussianRng_next, METH_VARARGS, NULL},
	 { (char *)"delete_MoroInvCumulativeKnuthGaussianRng", _wrap_delete_MoroInvCumulativeKnuthGaussianRng, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeKnuthGaussianRng_swigregister", MoroInvCumulativeKnuthGaussianRng_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MoroInvCumulativeMersenneTwisterGaussianRng", _wrap_new_MoroInvCumulativeMersenneTwisterGaussianRng, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeMersenneTwisterGaussianRng_next", _wrap_MoroInvCumulativeMersenneTwisterGaussianRng_next, METH_VARARGS, NULL},
	 { (char *)"delete_MoroInvCumulativeMersenneTwisterGaussianRng", _wrap_delete_MoroInvCumulativeMersenneTwisterGaussianRng, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeMersenneTwisterGaussianRng_swigregister", MoroInvCumulativeMersenneTwisterGaussianRng_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_InvCumulativeLecuyerGaussianRng", _wrap_new_InvCumulativeLecuyerGaussianRng, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeLecuyerGaussianRng_next", _wrap_InvCumulativeLecuyerGaussianRng_next, METH_VARARGS, NULL},
	 { (char *)"delete_InvCumulativeLecuyerGaussianRng", _wrap_delete_InvCumulativeLecuyerGaussianRng, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeLecuyerGaussianRng_swigregister", InvCumulativeLecuyerGaussianRng_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_InvCumulativeKnuthGaussianRng", _wrap_new_InvCumulativeKnuthGaussianRng, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeKnuthGaussianRng_next", _wrap_InvCumulativeKnuthGaussianRng_next, METH_VARARGS, NULL},
	 { (char *)"delete_InvCumulativeKnuthGaussianRng", _wrap_delete_InvCumulativeKnuthGaussianRng, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeKnuthGaussianRng_swigregister", InvCumulativeKnuthGaussianRng_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_InvCumulativeMersenneTwisterGaussianRng", _wrap_new_InvCumulativeMersenneTwisterGaussianRng, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeMersenneTwisterGaussianRng_next", _wrap_InvCumulativeMersenneTwisterGaussianRng_next, METH_VARARGS, NULL},
	 { (char *)"delete_InvCumulativeMersenneTwisterGaussianRng", _wrap_delete_InvCumulativeMersenneTwisterGaussianRng, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeMersenneTwisterGaussianRng_swigregister", InvCumulativeMersenneTwisterGaussianRng_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GaussianRandomGenerator", _wrap_new_GaussianRandomGenerator, METH_VARARGS, NULL},
	 { (char *)"GaussianRandomGenerator_next", _wrap_GaussianRandomGenerator_next, METH_VARARGS, NULL},
	 { (char *)"GaussianRandomGenerator_nextValue", _wrap_GaussianRandomGenerator_nextValue, METH_VARARGS, NULL},
	 { (char *)"delete_GaussianRandomGenerator", _wrap_delete_GaussianRandomGenerator, METH_VARARGS, NULL},
	 { (char *)"GaussianRandomGenerator_swigregister", GaussianRandomGenerator_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_HaltonRsg", _wrap_new_HaltonRsg, METH_VARARGS, NULL},
	 { (char *)"HaltonRsg_nextSequence", _wrap_HaltonRsg_nextSequence, METH_VARARGS, NULL},
	 { (char *)"HaltonRsg_lastSequence", _wrap_HaltonRsg_lastSequence, METH_VARARGS, NULL},
	 { (char *)"HaltonRsg_dimension", _wrap_HaltonRsg_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_HaltonRsg", _wrap_delete_HaltonRsg, METH_VARARGS, NULL},
	 { (char *)"HaltonRsg_swigregister", HaltonRsg_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SobolRsg", _wrap_new_SobolRsg, METH_VARARGS, NULL},
	 { (char *)"SobolRsg_nextSequence", _wrap_SobolRsg_nextSequence, METH_VARARGS, NULL},
	 { (char *)"SobolRsg_lastSequence", _wrap_SobolRsg_lastSequence, METH_VARARGS, NULL},
	 { (char *)"SobolRsg_dimension", _wrap_SobolRsg_dimension, METH_VARARGS, NULL},
	 { (char *)"SobolRsg_skipTo", _wrap_SobolRsg_skipTo, METH_VARARGS, NULL},
	 { (char *)"SobolRsg_nextInt32Sequence", _wrap_SobolRsg_nextInt32Sequence, METH_VARARGS, NULL},
	 { (char *)"delete_SobolRsg", _wrap_delete_SobolRsg, METH_VARARGS, NULL},
	 { (char *)"SobolRsg_swigregister", SobolRsg_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SobolBrownianBridgeRsg", _wrap_new_SobolBrownianBridgeRsg, METH_VARARGS, NULL},
	 { (char *)"SobolBrownianBridgeRsg_nextSequence", _wrap_SobolBrownianBridgeRsg_nextSequence, METH_VARARGS, NULL},
	 { (char *)"SobolBrownianBridgeRsg_lastSequence", _wrap_SobolBrownianBridgeRsg_lastSequence, METH_VARARGS, NULL},
	 { (char *)"SobolBrownianBridgeRsg_dimension", _wrap_SobolBrownianBridgeRsg_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_SobolBrownianBridgeRsg", _wrap_delete_SobolBrownianBridgeRsg, METH_VARARGS, NULL},
	 { (char *)"SobolBrownianBridgeRsg_swigregister", SobolBrownianBridgeRsg_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_LecuyerUniformRsg", _wrap_new_LecuyerUniformRsg, METH_VARARGS, NULL},
	 { (char *)"LecuyerUniformRsg_nextSequence", _wrap_LecuyerUniformRsg_nextSequence, METH_VARARGS, NULL},
	 { (char *)"LecuyerUniformRsg_dimension", _wrap_LecuyerUniformRsg_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_LecuyerUniformRsg", _wrap_delete_LecuyerUniformRsg, METH_VARARGS, NULL},
	 { (char *)"LecuyerUniformRsg_swigregister", LecuyerUniformRsg_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_KnuthUniformRsg", _wrap_new_KnuthUniformRsg, METH_VARARGS, NULL},
	 { (char *)"KnuthUniformRsg_nextSequence", _wrap_KnuthUniformRsg_nextSequence, METH_VARARGS, NULL},
	 { (char *)"KnuthUniformRsg_dimension", _wrap_KnuthUniformRsg_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_KnuthUniformRsg", _wrap_delete_KnuthUniformRsg, METH_VARARGS, NULL},
	 { (char *)"KnuthUniformRsg_swigregister", KnuthUniformRsg_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MersenneTwisterUniformRsg", _wrap_new_MersenneTwisterUniformRsg, METH_VARARGS, NULL},
	 { (char *)"MersenneTwisterUniformRsg_nextSequence", _wrap_MersenneTwisterUniformRsg_nextSequence, METH_VARARGS, NULL},
	 { (char *)"MersenneTwisterUniformRsg_dimension", _wrap_MersenneTwisterUniformRsg_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_MersenneTwisterUniformRsg", _wrap_delete_MersenneTwisterUniformRsg, METH_VARARGS, NULL},
	 { (char *)"MersenneTwisterUniformRsg_swigregister", MersenneTwisterUniformRsg_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_UniformRandomSequenceGenerator", _wrap_new_UniformRandomSequenceGenerator, METH_VARARGS, NULL},
	 { (char *)"UniformRandomSequenceGenerator_nextSequence", _wrap_UniformRandomSequenceGenerator_nextSequence, METH_VARARGS, NULL},
	 { (char *)"UniformRandomSequenceGenerator_dimension", _wrap_UniformRandomSequenceGenerator_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_UniformRandomSequenceGenerator", _wrap_delete_UniformRandomSequenceGenerator, METH_VARARGS, NULL},
	 { (char *)"UniformRandomSequenceGenerator_swigregister", UniformRandomSequenceGenerator_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_UniformLowDiscrepancySequenceGenerator", _wrap_new_UniformLowDiscrepancySequenceGenerator, METH_VARARGS, NULL},
	 { (char *)"UniformLowDiscrepancySequenceGenerator_nextSequence", _wrap_UniformLowDiscrepancySequenceGenerator_nextSequence, METH_VARARGS, NULL},
	 { (char *)"UniformLowDiscrepancySequenceGenerator_dimension", _wrap_UniformLowDiscrepancySequenceGenerator_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_UniformLowDiscrepancySequenceGenerator", _wrap_delete_UniformLowDiscrepancySequenceGenerator, METH_VARARGS, NULL},
	 { (char *)"UniformLowDiscrepancySequenceGenerator_swigregister", UniformLowDiscrepancySequenceGenerator_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MoroInvCumulativeLecuyerGaussianRsg", _wrap_new_MoroInvCumulativeLecuyerGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeLecuyerGaussianRsg_nextSequence", _wrap_MoroInvCumulativeLecuyerGaussianRsg_nextSequence, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeLecuyerGaussianRsg_dimension", _wrap_MoroInvCumulativeLecuyerGaussianRsg_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_MoroInvCumulativeLecuyerGaussianRsg", _wrap_delete_MoroInvCumulativeLecuyerGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeLecuyerGaussianRsg_swigregister", MoroInvCumulativeLecuyerGaussianRsg_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MoroInvCumulativeKnuthGaussianRsg", _wrap_new_MoroInvCumulativeKnuthGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeKnuthGaussianRsg_nextSequence", _wrap_MoroInvCumulativeKnuthGaussianRsg_nextSequence, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeKnuthGaussianRsg_dimension", _wrap_MoroInvCumulativeKnuthGaussianRsg_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_MoroInvCumulativeKnuthGaussianRsg", _wrap_delete_MoroInvCumulativeKnuthGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeKnuthGaussianRsg_swigregister", MoroInvCumulativeKnuthGaussianRsg_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MoroInvCumulativeMersenneTwisterGaussianRsg", _wrap_new_MoroInvCumulativeMersenneTwisterGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeMersenneTwisterGaussianRsg_nextSequence", _wrap_MoroInvCumulativeMersenneTwisterGaussianRsg_nextSequence, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeMersenneTwisterGaussianRsg_dimension", _wrap_MoroInvCumulativeMersenneTwisterGaussianRsg_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_MoroInvCumulativeMersenneTwisterGaussianRsg", _wrap_delete_MoroInvCumulativeMersenneTwisterGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeMersenneTwisterGaussianRsg_swigregister", MoroInvCumulativeMersenneTwisterGaussianRsg_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MoroInvCumulativeHaltonGaussianRsg", _wrap_new_MoroInvCumulativeHaltonGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeHaltonGaussianRsg_nextSequence", _wrap_MoroInvCumulativeHaltonGaussianRsg_nextSequence, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeHaltonGaussianRsg_dimension", _wrap_MoroInvCumulativeHaltonGaussianRsg_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_MoroInvCumulativeHaltonGaussianRsg", _wrap_delete_MoroInvCumulativeHaltonGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeHaltonGaussianRsg_swigregister", MoroInvCumulativeHaltonGaussianRsg_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MoroInvCumulativeSobolGaussianRsg", _wrap_new_MoroInvCumulativeSobolGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeSobolGaussianRsg_nextSequence", _wrap_MoroInvCumulativeSobolGaussianRsg_nextSequence, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeSobolGaussianRsg_dimension", _wrap_MoroInvCumulativeSobolGaussianRsg_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_MoroInvCumulativeSobolGaussianRsg", _wrap_delete_MoroInvCumulativeSobolGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"MoroInvCumulativeSobolGaussianRsg_swigregister", MoroInvCumulativeSobolGaussianRsg_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_InvCumulativeLecuyerGaussianRsg", _wrap_new_InvCumulativeLecuyerGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeLecuyerGaussianRsg_nextSequence", _wrap_InvCumulativeLecuyerGaussianRsg_nextSequence, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeLecuyerGaussianRsg_dimension", _wrap_InvCumulativeLecuyerGaussianRsg_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_InvCumulativeLecuyerGaussianRsg", _wrap_delete_InvCumulativeLecuyerGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeLecuyerGaussianRsg_swigregister", InvCumulativeLecuyerGaussianRsg_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_InvCumulativeKnuthGaussianRsg", _wrap_new_InvCumulativeKnuthGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeKnuthGaussianRsg_nextSequence", _wrap_InvCumulativeKnuthGaussianRsg_nextSequence, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeKnuthGaussianRsg_dimension", _wrap_InvCumulativeKnuthGaussianRsg_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_InvCumulativeKnuthGaussianRsg", _wrap_delete_InvCumulativeKnuthGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeKnuthGaussianRsg_swigregister", InvCumulativeKnuthGaussianRsg_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_InvCumulativeMersenneTwisterGaussianRsg", _wrap_new_InvCumulativeMersenneTwisterGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeMersenneTwisterGaussianRsg_nextSequence", _wrap_InvCumulativeMersenneTwisterGaussianRsg_nextSequence, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeMersenneTwisterGaussianRsg_dimension", _wrap_InvCumulativeMersenneTwisterGaussianRsg_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_InvCumulativeMersenneTwisterGaussianRsg", _wrap_delete_InvCumulativeMersenneTwisterGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeMersenneTwisterGaussianRsg_swigregister", InvCumulativeMersenneTwisterGaussianRsg_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_InvCumulativeHaltonGaussianRsg", _wrap_new_InvCumulativeHaltonGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeHaltonGaussianRsg_nextSequence", _wrap_InvCumulativeHaltonGaussianRsg_nextSequence, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeHaltonGaussianRsg_dimension", _wrap_InvCumulativeHaltonGaussianRsg_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_InvCumulativeHaltonGaussianRsg", _wrap_delete_InvCumulativeHaltonGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeHaltonGaussianRsg_swigregister", InvCumulativeHaltonGaussianRsg_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_InvCumulativeSobolGaussianRsg", _wrap_new_InvCumulativeSobolGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeSobolGaussianRsg_nextSequence", _wrap_InvCumulativeSobolGaussianRsg_nextSequence, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeSobolGaussianRsg_dimension", _wrap_InvCumulativeSobolGaussianRsg_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_InvCumulativeSobolGaussianRsg", _wrap_delete_InvCumulativeSobolGaussianRsg, METH_VARARGS, NULL},
	 { (char *)"InvCumulativeSobolGaussianRsg_swigregister", InvCumulativeSobolGaussianRsg_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GaussianRandomSequenceGenerator", _wrap_new_GaussianRandomSequenceGenerator, METH_VARARGS, NULL},
	 { (char *)"GaussianRandomSequenceGenerator_nextSequence", _wrap_GaussianRandomSequenceGenerator_nextSequence, METH_VARARGS, NULL},
	 { (char *)"GaussianRandomSequenceGenerator_dimension", _wrap_GaussianRandomSequenceGenerator_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_GaussianRandomSequenceGenerator", _wrap_delete_GaussianRandomSequenceGenerator, METH_VARARGS, NULL},
	 { (char *)"GaussianRandomSequenceGenerator_swigregister", GaussianRandomSequenceGenerator_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GaussianLowDiscrepancySequenceGenerator", _wrap_new_GaussianLowDiscrepancySequenceGenerator, METH_VARARGS, NULL},
	 { (char *)"GaussianLowDiscrepancySequenceGenerator_nextSequence", _wrap_GaussianLowDiscrepancySequenceGenerator_nextSequence, METH_VARARGS, NULL},
	 { (char *)"GaussianLowDiscrepancySequenceGenerator_dimension", _wrap_GaussianLowDiscrepancySequenceGenerator_dimension, METH_VARARGS, NULL},
	 { (char *)"delete_GaussianLowDiscrepancySequenceGenerator", _wrap_delete_GaussianLowDiscrepancySequenceGenerator, METH_VARARGS, NULL},
	 { (char *)"GaussianLowDiscrepancySequenceGenerator_swigregister", GaussianLowDiscrepancySequenceGenerator_swigregister, METH_VARARGS, NULL},
	 { (char *)"getCovariance", _wrap_getCovariance, METH_VARARGS, NULL},
	 { (char *)"Path___len__", _wrap_Path___len__, METH_VARARGS, NULL},
	 { (char *)"Path_value", _wrap_Path_value, METH_VARARGS, NULL},
	 { (char *)"Path_front", _wrap_Path_front, METH_VARARGS, NULL},
	 { (char *)"Path_back", _wrap_Path_back, METH_VARARGS, NULL},
	 { (char *)"Path_time", _wrap_Path_time, METH_VARARGS, NULL},
	 { (char *)"Path___getitem__", _wrap_Path___getitem__, METH_VARARGS, NULL},
	 { (char *)"delete_Path", _wrap_delete_Path, METH_VARARGS, NULL},
	 { (char *)"Path_swigregister", Path_swigregister, METH_VARARGS, NULL},
	 { (char *)"SamplePath_value", _wrap_SamplePath_value, METH_VARARGS, NULL},
	 { (char *)"SamplePath_weight", _wrap_SamplePath_weight, METH_VARARGS, NULL},
	 { (char *)"delete_SamplePath", _wrap_delete_SamplePath, METH_VARARGS, NULL},
	 { (char *)"SamplePath_swigregister", SamplePath_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GaussianPathGenerator", _wrap_new_GaussianPathGenerator, METH_VARARGS, NULL},
	 { (char *)"GaussianPathGenerator_next", _wrap_GaussianPathGenerator_next, METH_VARARGS, NULL},
	 { (char *)"GaussianPathGenerator_antithetic", _wrap_GaussianPathGenerator_antithetic, METH_VARARGS, NULL},
	 { (char *)"delete_GaussianPathGenerator", _wrap_delete_GaussianPathGenerator, METH_VARARGS, NULL},
	 { (char *)"GaussianPathGenerator_swigregister", GaussianPathGenerator_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GaussianSobolPathGenerator", _wrap_new_GaussianSobolPathGenerator, METH_VARARGS, NULL},
	 { (char *)"GaussianSobolPathGenerator_next", _wrap_GaussianSobolPathGenerator_next, METH_VARARGS, NULL},
	 { (char *)"GaussianSobolPathGenerator_antithetic", _wrap_GaussianSobolPathGenerator_antithetic, METH_VARARGS, NULL},
	 { (char *)"delete_GaussianSobolPathGenerator", _wrap_delete_GaussianSobolPathGenerator, METH_VARARGS, NULL},
	 { (char *)"GaussianSobolPathGenerator_swigregister", GaussianSobolPathGenerator_swigregister, METH_VARARGS, NULL},
	 { (char *)"MultiPath___len__", _wrap_MultiPath___len__, METH_VARARGS, NULL},
	 { (char *)"MultiPath_assetNumber", _wrap_MultiPath_assetNumber, METH_VARARGS, NULL},
	 { (char *)"MultiPath_at", _wrap_MultiPath_at, METH_VARARGS, NULL},
	 { (char *)"MultiPath___getitem__", _wrap_MultiPath___getitem__, METH_VARARGS, NULL},
	 { (char *)"delete_MultiPath", _wrap_delete_MultiPath, METH_VARARGS, NULL},
	 { (char *)"MultiPath_swigregister", MultiPath_swigregister, METH_VARARGS, NULL},
	 { (char *)"SampleMultiPath_value", _wrap_SampleMultiPath_value, METH_VARARGS, NULL},
	 { (char *)"SampleMultiPath_weight", _wrap_SampleMultiPath_weight, METH_VARARGS, NULL},
	 { (char *)"delete_SampleMultiPath", _wrap_delete_SampleMultiPath, METH_VARARGS, NULL},
	 { (char *)"SampleMultiPath_swigregister", SampleMultiPath_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GaussianMultiPathGenerator", _wrap_new_GaussianMultiPathGenerator, METH_VARARGS, NULL},
	 { (char *)"GaussianMultiPathGenerator_next", _wrap_GaussianMultiPathGenerator_next, METH_VARARGS, NULL},
	 { (char *)"GaussianMultiPathGenerator_antithetic", _wrap_GaussianMultiPathGenerator_antithetic, METH_VARARGS, NULL},
	 { (char *)"delete_GaussianMultiPathGenerator", _wrap_delete_GaussianMultiPathGenerator, METH_VARARGS, NULL},
	 { (char *)"GaussianMultiPathGenerator_swigregister", GaussianMultiPathGenerator_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BrownianBridge", _wrap_new_BrownianBridge, METH_VARARGS, NULL},
	 { (char *)"BrownianBridge_size", _wrap_BrownianBridge_size, METH_VARARGS, NULL},
	 { (char *)"BrownianBridge_times", _wrap_BrownianBridge_times, METH_VARARGS, NULL},
	 { (char *)"BrownianBridge_leftWeight", _wrap_BrownianBridge_leftWeight, METH_VARARGS, NULL},
	 { (char *)"BrownianBridge_rightWeight", _wrap_BrownianBridge_rightWeight, METH_VARARGS, NULL},
	 { (char *)"BrownianBridge_stdDeviation", _wrap_BrownianBridge_stdDeviation, METH_VARARGS, NULL},
	 { (char *)"BrownianBridge_transform", _wrap_BrownianBridge_transform, METH_VARARGS, NULL},
	 { (char *)"BrownianBridge_bridgeIndex", _wrap_BrownianBridge_bridgeIndex, METH_VARARGS, NULL},
	 { (char *)"BrownianBridge_leftIndex", _wrap_BrownianBridge_leftIndex, METH_VARARGS, NULL},
	 { (char *)"BrownianBridge_rightIndex", _wrap_BrownianBridge_rightIndex, METH_VARARGS, NULL},
	 { (char *)"delete_BrownianBridge", _wrap_delete_BrownianBridge, METH_VARARGS, NULL},
	 { (char *)"BrownianBridge_swigregister", BrownianBridge_swigregister, METH_VARARGS, NULL},
	 { (char *)"BoundaryCondition___deref__", _wrap_BoundaryCondition___deref__, METH_VARARGS, NULL},
	 { (char *)"BoundaryCondition___nonzero__", _wrap_BoundaryCondition___nonzero__, METH_VARARGS, NULL},
	 { (char *)"BoundaryCondition___bool__", _wrap_BoundaryCondition___bool__, METH_VARARGS, NULL},
	 { (char *)"new_BoundaryCondition", _wrap_new_BoundaryCondition, METH_VARARGS, NULL},
	 { (char *)"delete_BoundaryCondition", _wrap_delete_BoundaryCondition, METH_VARARGS, NULL},
	 { (char *)"BoundaryCondition_swigregister", BoundaryCondition_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_NeumannBC", _wrap_new_NeumannBC, METH_VARARGS, NULL},
	 { (char *)"delete_NeumannBC", _wrap_delete_NeumannBC, METH_VARARGS, NULL},
	 { (char *)"NeumannBC_swigregister", NeumannBC_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DirichletBC", _wrap_new_DirichletBC, METH_VARARGS, NULL},
	 { (char *)"delete_DirichletBC", _wrap_delete_DirichletBC, METH_VARARGS, NULL},
	 { (char *)"DirichletBC_swigregister", DirichletBC_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_TridiagonalOperator", _wrap_new_TridiagonalOperator, METH_VARARGS, NULL},
	 { (char *)"TridiagonalOperator_solveFor", _wrap_TridiagonalOperator_solveFor, METH_VARARGS, NULL},
	 { (char *)"TridiagonalOperator_applyTo", _wrap_TridiagonalOperator_applyTo, METH_VARARGS, NULL},
	 { (char *)"TridiagonalOperator_size", _wrap_TridiagonalOperator_size, METH_VARARGS, NULL},
	 { (char *)"TridiagonalOperator_setFirstRow", _wrap_TridiagonalOperator_setFirstRow, METH_VARARGS, NULL},
	 { (char *)"TridiagonalOperator_setMidRow", _wrap_TridiagonalOperator_setMidRow, METH_VARARGS, NULL},
	 { (char *)"TridiagonalOperator_setMidRows", _wrap_TridiagonalOperator_setMidRows, METH_VARARGS, NULL},
	 { (char *)"TridiagonalOperator_setLastRow", _wrap_TridiagonalOperator_setLastRow, METH_VARARGS, NULL},
	 { (char *)"TridiagonalOperator_identity", _wrap_TridiagonalOperator_identity, METH_VARARGS, NULL},
	 { (char *)"TridiagonalOperator___add__", _wrap_TridiagonalOperator___add__, METH_VARARGS, NULL},
	 { (char *)"TridiagonalOperator___sub__", _wrap_TridiagonalOperator___sub__, METH_VARARGS, NULL},
	 { (char *)"TridiagonalOperator___mul__", _wrap_TridiagonalOperator___mul__, METH_VARARGS, NULL},
	 { (char *)"TridiagonalOperator___div__", _wrap_TridiagonalOperator___div__, METH_VARARGS, NULL},
	 { (char *)"TridiagonalOperator___iadd__", _wrap_TridiagonalOperator___iadd__, METH_VARARGS, NULL},
	 { (char *)"TridiagonalOperator___isub__", _wrap_TridiagonalOperator___isub__, METH_VARARGS, NULL},
	 { (char *)"TridiagonalOperator___imul__", _wrap_TridiagonalOperator___imul__, METH_VARARGS, NULL},
	 { (char *)"TridiagonalOperator___rmul__", _wrap_TridiagonalOperator___rmul__, METH_VARARGS, NULL},
	 { (char *)"TridiagonalOperator___idiv__", _wrap_TridiagonalOperator___idiv__, METH_VARARGS, NULL},
	 { (char *)"delete_TridiagonalOperator", _wrap_delete_TridiagonalOperator, METH_VARARGS, NULL},
	 { (char *)"TridiagonalOperator_swigregister", TridiagonalOperator_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DPlus", _wrap_new_DPlus, METH_VARARGS, NULL},
	 { (char *)"delete_DPlus", _wrap_delete_DPlus, METH_VARARGS, NULL},
	 { (char *)"DPlus_swigregister", DPlus_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DMinus", _wrap_new_DMinus, METH_VARARGS, NULL},
	 { (char *)"delete_DMinus", _wrap_delete_DMinus, METH_VARARGS, NULL},
	 { (char *)"DMinus_swigregister", DMinus_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DZero", _wrap_new_DZero, METH_VARARGS, NULL},
	 { (char *)"delete_DZero", _wrap_delete_DZero, METH_VARARGS, NULL},
	 { (char *)"DZero_swigregister", DZero_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_DPlusDMinus", _wrap_new_DPlusDMinus, METH_VARARGS, NULL},
	 { (char *)"delete_DPlusDMinus", _wrap_delete_DPlusDMinus, METH_VARARGS, NULL},
	 { (char *)"DPlusDMinus_swigregister", DPlusDMinus_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Discount", _wrap_new_Discount, METH_VARARGS, NULL},
	 { (char *)"delete_Discount", _wrap_delete_Discount, METH_VARARGS, NULL},
	 { (char *)"Discount_swigregister", Discount_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ZeroYield", _wrap_new_ZeroYield, METH_VARARGS, NULL},
	 { (char *)"delete_ZeroYield", _wrap_delete_ZeroYield, METH_VARARGS, NULL},
	 { (char *)"ZeroYield_swigregister", ZeroYield_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ForwardRate", _wrap_new_ForwardRate, METH_VARARGS, NULL},
	 { (char *)"delete_ForwardRate", _wrap_delete_ForwardRate, METH_VARARGS, NULL},
	 { (char *)"ForwardRate_swigregister", ForwardRate_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PiecewiseFlatForward", _wrap_new_PiecewiseFlatForward, METH_VARARGS, NULL},
	 { (char *)"PiecewiseFlatForward_dates", _wrap_PiecewiseFlatForward_dates, METH_VARARGS, NULL},
	 { (char *)"PiecewiseFlatForward_times", _wrap_PiecewiseFlatForward_times, METH_VARARGS, NULL},
	 { (char *)"PiecewiseFlatForward_nodes", _wrap_PiecewiseFlatForward_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_PiecewiseFlatForward", _wrap_delete_PiecewiseFlatForward, METH_VARARGS, NULL},
	 { (char *)"PiecewiseFlatForward_swigregister", PiecewiseFlatForward_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PiecewiseLinearForward", _wrap_new_PiecewiseLinearForward, METH_VARARGS, NULL},
	 { (char *)"PiecewiseLinearForward_dates", _wrap_PiecewiseLinearForward_dates, METH_VARARGS, NULL},
	 { (char *)"PiecewiseLinearForward_times", _wrap_PiecewiseLinearForward_times, METH_VARARGS, NULL},
	 { (char *)"PiecewiseLinearForward_nodes", _wrap_PiecewiseLinearForward_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_PiecewiseLinearForward", _wrap_delete_PiecewiseLinearForward, METH_VARARGS, NULL},
	 { (char *)"PiecewiseLinearForward_swigregister", PiecewiseLinearForward_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PiecewiseLinearZero", _wrap_new_PiecewiseLinearZero, METH_VARARGS, NULL},
	 { (char *)"PiecewiseLinearZero_dates", _wrap_PiecewiseLinearZero_dates, METH_VARARGS, NULL},
	 { (char *)"PiecewiseLinearZero_times", _wrap_PiecewiseLinearZero_times, METH_VARARGS, NULL},
	 { (char *)"PiecewiseLinearZero_nodes", _wrap_PiecewiseLinearZero_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_PiecewiseLinearZero", _wrap_delete_PiecewiseLinearZero, METH_VARARGS, NULL},
	 { (char *)"PiecewiseLinearZero_swigregister", PiecewiseLinearZero_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PiecewiseCubicZero", _wrap_new_PiecewiseCubicZero, METH_VARARGS, NULL},
	 { (char *)"PiecewiseCubicZero_dates", _wrap_PiecewiseCubicZero_dates, METH_VARARGS, NULL},
	 { (char *)"PiecewiseCubicZero_times", _wrap_PiecewiseCubicZero_times, METH_VARARGS, NULL},
	 { (char *)"PiecewiseCubicZero_nodes", _wrap_PiecewiseCubicZero_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_PiecewiseCubicZero", _wrap_delete_PiecewiseCubicZero, METH_VARARGS, NULL},
	 { (char *)"PiecewiseCubicZero_swigregister", PiecewiseCubicZero_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_PiecewiseLogCubicDiscount", _wrap_new_PiecewiseLogCubicDiscount, METH_VARARGS, NULL},
	 { (char *)"PiecewiseLogCubicDiscount_dates", _wrap_PiecewiseLogCubicDiscount_dates, METH_VARARGS, NULL},
	 { (char *)"PiecewiseLogCubicDiscount_times", _wrap_PiecewiseLogCubicDiscount_times, METH_VARARGS, NULL},
	 { (char *)"PiecewiseLogCubicDiscount_nodes", _wrap_PiecewiseLogCubicDiscount_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_PiecewiseLogCubicDiscount", _wrap_delete_PiecewiseLogCubicDiscount, METH_VARARGS, NULL},
	 { (char *)"PiecewiseLogCubicDiscount_swigregister", PiecewiseLogCubicDiscount_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SampledCurve", _wrap_new_SampledCurve, METH_VARARGS, NULL},
	 { (char *)"SampledCurve_grid", _wrap_SampledCurve_grid, METH_VARARGS, NULL},
	 { (char *)"SampledCurve_values", _wrap_SampledCurve_values, METH_VARARGS, NULL},
	 { (char *)"SampledCurve_gridValue", _wrap_SampledCurve_gridValue, METH_VARARGS, NULL},
	 { (char *)"SampledCurve_value", _wrap_SampledCurve_value, METH_VARARGS, NULL},
	 { (char *)"SampledCurve_size", _wrap_SampledCurve_size, METH_VARARGS, NULL},
	 { (char *)"SampledCurve_empty", _wrap_SampledCurve_empty, METH_VARARGS, NULL},
	 { (char *)"SampledCurve_setGrid", _wrap_SampledCurve_setGrid, METH_VARARGS, NULL},
	 { (char *)"SampledCurve_setValues", _wrap_SampledCurve_setValues, METH_VARARGS, NULL},
	 { (char *)"SampledCurve_swap", _wrap_SampledCurve_swap, METH_VARARGS, NULL},
	 { (char *)"SampledCurve_setLogGrid", _wrap_SampledCurve_setLogGrid, METH_VARARGS, NULL},
	 { (char *)"SampledCurve_regridLogGrid", _wrap_SampledCurve_regridLogGrid, METH_VARARGS, NULL},
	 { (char *)"SampledCurve_shiftGrid", _wrap_SampledCurve_shiftGrid, METH_VARARGS, NULL},
	 { (char *)"SampledCurve_scaleGrid", _wrap_SampledCurve_scaleGrid, METH_VARARGS, NULL},
	 { (char *)"SampledCurve_regrid", _wrap_SampledCurve_regrid, METH_VARARGS, NULL},
	 { (char *)"delete_SampledCurve", _wrap_delete_SampledCurve, METH_VARARGS, NULL},
	 { (char *)"SampledCurve_swigregister", SampledCurve_swigregister, METH_VARARGS, NULL},
	 { (char *)"Settings_instance", _wrap_Settings_instance, METH_VARARGS, NULL},
	 { (char *)"Settings_getEvaluationDate", _wrap_Settings_getEvaluationDate, METH_VARARGS, NULL},
	 { (char *)"Settings_setEvaluationDate", _wrap_Settings_setEvaluationDate, METH_VARARGS, NULL},
	 { (char *)"Settings_includeReferenceDateEvents", _wrap_Settings_includeReferenceDateEvents, METH_VARARGS, NULL},
	 { (char *)"Settings_includeTodaysCashFlows", _wrap_Settings_includeTodaysCashFlows, METH_VARARGS, NULL},
	 { (char *)"delete_Settings", _wrap_delete_Settings, METH_VARARGS, NULL},
	 { (char *)"Settings_swigregister", Settings_swigregister, METH_VARARGS, NULL},
	 { (char *)"Statistics_samples", _wrap_Statistics_samples, METH_VARARGS, NULL},
	 { (char *)"Statistics_weightSum", _wrap_Statistics_weightSum, METH_VARARGS, NULL},
	 { (char *)"Statistics_mean", _wrap_Statistics_mean, METH_VARARGS, NULL},
	 { (char *)"Statistics_variance", _wrap_Statistics_variance, METH_VARARGS, NULL},
	 { (char *)"Statistics_standardDeviation", _wrap_Statistics_standardDeviation, METH_VARARGS, NULL},
	 { (char *)"Statistics_errorEstimate", _wrap_Statistics_errorEstimate, METH_VARARGS, NULL},
	 { (char *)"Statistics_skewness", _wrap_Statistics_skewness, METH_VARARGS, NULL},
	 { (char *)"Statistics_kurtosis", _wrap_Statistics_kurtosis, METH_VARARGS, NULL},
	 { (char *)"Statistics_min", _wrap_Statistics_min, METH_VARARGS, NULL},
	 { (char *)"Statistics_max", _wrap_Statistics_max, METH_VARARGS, NULL},
	 { (char *)"Statistics_reset", _wrap_Statistics_reset, METH_VARARGS, NULL},
	 { (char *)"Statistics_add", _wrap_Statistics_add, METH_VARARGS, NULL},
	 { (char *)"new_Statistics", _wrap_new_Statistics, METH_VARARGS, NULL},
	 { (char *)"delete_Statistics", _wrap_delete_Statistics, METH_VARARGS, NULL},
	 { (char *)"Statistics_swigregister", Statistics_swigregister, METH_VARARGS, NULL},
	 { (char *)"IncrementalStatistics_samples", _wrap_IncrementalStatistics_samples, METH_VARARGS, NULL},
	 { (char *)"IncrementalStatistics_weightSum", _wrap_IncrementalStatistics_weightSum, METH_VARARGS, NULL},
	 { (char *)"IncrementalStatistics_mean", _wrap_IncrementalStatistics_mean, METH_VARARGS, NULL},
	 { (char *)"IncrementalStatistics_variance", _wrap_IncrementalStatistics_variance, METH_VARARGS, NULL},
	 { (char *)"IncrementalStatistics_standardDeviation", _wrap_IncrementalStatistics_standardDeviation, METH_VARARGS, NULL},
	 { (char *)"IncrementalStatistics_errorEstimate", _wrap_IncrementalStatistics_errorEstimate, METH_VARARGS, NULL},
	 { (char *)"IncrementalStatistics_skewness", _wrap_IncrementalStatistics_skewness, METH_VARARGS, NULL},
	 { (char *)"IncrementalStatistics_kurtosis", _wrap_IncrementalStatistics_kurtosis, METH_VARARGS, NULL},
	 { (char *)"IncrementalStatistics_min", _wrap_IncrementalStatistics_min, METH_VARARGS, NULL},
	 { (char *)"IncrementalStatistics_max", _wrap_IncrementalStatistics_max, METH_VARARGS, NULL},
	 { (char *)"IncrementalStatistics_reset", _wrap_IncrementalStatistics_reset, METH_VARARGS, NULL},
	 { (char *)"IncrementalStatistics_add", _wrap_IncrementalStatistics_add, METH_VARARGS, NULL},
	 { (char *)"new_IncrementalStatistics", _wrap_new_IncrementalStatistics, METH_VARARGS, NULL},
	 { (char *)"delete_IncrementalStatistics", _wrap_delete_IncrementalStatistics, METH_VARARGS, NULL},
	 { (char *)"IncrementalStatistics_swigregister", IncrementalStatistics_swigregister, METH_VARARGS, NULL},
	 { (char *)"RiskStatistics_semiVariance", _wrap_RiskStatistics_semiVariance, METH_VARARGS, NULL},
	 { (char *)"RiskStatistics_semiDeviation", _wrap_RiskStatistics_semiDeviation, METH_VARARGS, NULL},
	 { (char *)"RiskStatistics_downsideVariance", _wrap_RiskStatistics_downsideVariance, METH_VARARGS, NULL},
	 { (char *)"RiskStatistics_downsideDeviation", _wrap_RiskStatistics_downsideDeviation, METH_VARARGS, NULL},
	 { (char *)"RiskStatistics_regret", _wrap_RiskStatistics_regret, METH_VARARGS, NULL},
	 { (char *)"RiskStatistics_potentialUpside", _wrap_RiskStatistics_potentialUpside, METH_VARARGS, NULL},
	 { (char *)"RiskStatistics_valueAtRisk", _wrap_RiskStatistics_valueAtRisk, METH_VARARGS, NULL},
	 { (char *)"RiskStatistics_expectedShortfall", _wrap_RiskStatistics_expectedShortfall, METH_VARARGS, NULL},
	 { (char *)"RiskStatistics_shortfall", _wrap_RiskStatistics_shortfall, METH_VARARGS, NULL},
	 { (char *)"RiskStatistics_averageShortfall", _wrap_RiskStatistics_averageShortfall, METH_VARARGS, NULL},
	 { (char *)"new_RiskStatistics", _wrap_new_RiskStatistics, METH_VARARGS, NULL},
	 { (char *)"delete_RiskStatistics", _wrap_delete_RiskStatistics, METH_VARARGS, NULL},
	 { (char *)"RiskStatistics_swigregister", RiskStatistics_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MultipleStatistics", _wrap_new_MultipleStatistics, METH_VARARGS, NULL},
	 { (char *)"MultipleStatistics_size", _wrap_MultipleStatistics_size, METH_VARARGS, NULL},
	 { (char *)"MultipleStatistics_samples", _wrap_MultipleStatistics_samples, METH_VARARGS, NULL},
	 { (char *)"MultipleStatistics_weightSum", _wrap_MultipleStatistics_weightSum, METH_VARARGS, NULL},
	 { (char *)"MultipleStatistics_mean", _wrap_MultipleStatistics_mean, METH_VARARGS, NULL},
	 { (char *)"MultipleStatistics_variance", _wrap_MultipleStatistics_variance, METH_VARARGS, NULL},
	 { (char *)"MultipleStatistics_standardDeviation", _wrap_MultipleStatistics_standardDeviation, METH_VARARGS, NULL},
	 { (char *)"MultipleStatistics_errorEstimate", _wrap_MultipleStatistics_errorEstimate, METH_VARARGS, NULL},
	 { (char *)"MultipleStatistics_skewness", _wrap_MultipleStatistics_skewness, METH_VARARGS, NULL},
	 { (char *)"MultipleStatistics_kurtosis", _wrap_MultipleStatistics_kurtosis, METH_VARARGS, NULL},
	 { (char *)"MultipleStatistics_min", _wrap_MultipleStatistics_min, METH_VARARGS, NULL},
	 { (char *)"MultipleStatistics_max", _wrap_MultipleStatistics_max, METH_VARARGS, NULL},
	 { (char *)"MultipleStatistics_covariance", _wrap_MultipleStatistics_covariance, METH_VARARGS, NULL},
	 { (char *)"MultipleStatistics_correlation", _wrap_MultipleStatistics_correlation, METH_VARARGS, NULL},
	 { (char *)"MultipleStatistics_reset", _wrap_MultipleStatistics_reset, METH_VARARGS, NULL},
	 { (char *)"MultipleStatistics_add", _wrap_MultipleStatistics_add, METH_VARARGS, NULL},
	 { (char *)"delete_MultipleStatistics", _wrap_delete_MultipleStatistics, METH_VARARGS, NULL},
	 { (char *)"MultipleStatistics_swigregister", MultipleStatistics_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_SequenceStatistics", _wrap_new_SequenceStatistics, METH_VARARGS, NULL},
	 { (char *)"SequenceStatistics_size", _wrap_SequenceStatistics_size, METH_VARARGS, NULL},
	 { (char *)"SequenceStatistics_samples", _wrap_SequenceStatistics_samples, METH_VARARGS, NULL},
	 { (char *)"SequenceStatistics_weightSum", _wrap_SequenceStatistics_weightSum, METH_VARARGS, NULL},
	 { (char *)"SequenceStatistics_mean", _wrap_SequenceStatistics_mean, METH_VARARGS, NULL},
	 { (char *)"SequenceStatistics_variance", _wrap_SequenceStatistics_variance, METH_VARARGS, NULL},
	 { (char *)"SequenceStatistics_standardDeviation", _wrap_SequenceStatistics_standardDeviation, METH_VARARGS, NULL},
	 { (char *)"SequenceStatistics_errorEstimate", _wrap_SequenceStatistics_errorEstimate, METH_VARARGS, NULL},
	 { (char *)"SequenceStatistics_skewness", _wrap_SequenceStatistics_skewness, METH_VARARGS, NULL},
	 { (char *)"SequenceStatistics_kurtosis", _wrap_SequenceStatistics_kurtosis, METH_VARARGS, NULL},
	 { (char *)"SequenceStatistics_min", _wrap_SequenceStatistics_min, METH_VARARGS, NULL},
	 { (char *)"SequenceStatistics_max", _wrap_SequenceStatistics_max, METH_VARARGS, NULL},
	 { (char *)"SequenceStatistics_covariance", _wrap_SequenceStatistics_covariance, METH_VARARGS, NULL},
	 { (char *)"SequenceStatistics_correlation", _wrap_SequenceStatistics_correlation, METH_VARARGS, NULL},
	 { (char *)"SequenceStatistics_reset", _wrap_SequenceStatistics_reset, METH_VARARGS, NULL},
	 { (char *)"SequenceStatistics_add", _wrap_SequenceStatistics_add, METH_VARARGS, NULL},
	 { (char *)"delete_SequenceStatistics", _wrap_delete_SequenceStatistics, METH_VARARGS, NULL},
	 { (char *)"SequenceStatistics_swigregister", SequenceStatistics_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MultipleIncrementalStatistics", _wrap_new_MultipleIncrementalStatistics, METH_VARARGS, NULL},
	 { (char *)"MultipleIncrementalStatistics_size", _wrap_MultipleIncrementalStatistics_size, METH_VARARGS, NULL},
	 { (char *)"MultipleIncrementalStatistics_samples", _wrap_MultipleIncrementalStatistics_samples, METH_VARARGS, NULL},
	 { (char *)"MultipleIncrementalStatistics_weightSum", _wrap_MultipleIncrementalStatistics_weightSum, METH_VARARGS, NULL},
	 { (char *)"MultipleIncrementalStatistics_mean", _wrap_MultipleIncrementalStatistics_mean, METH_VARARGS, NULL},
	 { (char *)"MultipleIncrementalStatistics_variance", _wrap_MultipleIncrementalStatistics_variance, METH_VARARGS, NULL},
	 { (char *)"MultipleIncrementalStatistics_standardDeviation", _wrap_MultipleIncrementalStatistics_standardDeviation, METH_VARARGS, NULL},
	 { (char *)"MultipleIncrementalStatistics_errorEstimate", _wrap_MultipleIncrementalStatistics_errorEstimate, METH_VARARGS, NULL},
	 { (char *)"MultipleIncrementalStatistics_skewness", _wrap_MultipleIncrementalStatistics_skewness, METH_VARARGS, NULL},
	 { (char *)"MultipleIncrementalStatistics_kurtosis", _wrap_MultipleIncrementalStatistics_kurtosis, METH_VARARGS, NULL},
	 { (char *)"MultipleIncrementalStatistics_min", _wrap_MultipleIncrementalStatistics_min, METH_VARARGS, NULL},
	 { (char *)"MultipleIncrementalStatistics_max", _wrap_MultipleIncrementalStatistics_max, METH_VARARGS, NULL},
	 { (char *)"MultipleIncrementalStatistics_covariance", _wrap_MultipleIncrementalStatistics_covariance, METH_VARARGS, NULL},
	 { (char *)"MultipleIncrementalStatistics_correlation", _wrap_MultipleIncrementalStatistics_correlation, METH_VARARGS, NULL},
	 { (char *)"MultipleIncrementalStatistics_reset", _wrap_MultipleIncrementalStatistics_reset, METH_VARARGS, NULL},
	 { (char *)"MultipleIncrementalStatistics_add", _wrap_MultipleIncrementalStatistics_add, METH_VARARGS, NULL},
	 { (char *)"delete_MultipleIncrementalStatistics", _wrap_delete_MultipleIncrementalStatistics, METH_VARARGS, NULL},
	 { (char *)"MultipleIncrementalStatistics_swigregister", MultipleIncrementalStatistics_swigregister, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolatilityStructure___deref__", _wrap_CapFloorTermVolatilityStructure___deref__, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolatilityStructure___nonzero__", _wrap_CapFloorTermVolatilityStructure___nonzero__, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolatilityStructure___bool__", _wrap_CapFloorTermVolatilityStructure___bool__, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolatilityStructure_asObservable", _wrap_CapFloorTermVolatilityStructure_asObservable, METH_VARARGS, NULL},
	 { (char *)"new_CapFloorTermVolatilityStructure", _wrap_new_CapFloorTermVolatilityStructure, METH_VARARGS, NULL},
	 { (char *)"delete_CapFloorTermVolatilityStructure", _wrap_delete_CapFloorTermVolatilityStructure, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolatilityStructure_volatility", _wrap_CapFloorTermVolatilityStructure_volatility, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolatilityStructure_enableExtrapolation", _wrap_CapFloorTermVolatilityStructure_enableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolatilityStructure_disableExtrapolation", _wrap_CapFloorTermVolatilityStructure_disableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolatilityStructure_allowsExtrapolation", _wrap_CapFloorTermVolatilityStructure_allowsExtrapolation, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolatilityStructure_swigregister", CapFloorTermVolatilityStructure_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CapFloorTermVolatilityStructureHandle", _wrap_new_CapFloorTermVolatilityStructureHandle, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolatilityStructureHandle___deref__", _wrap_CapFloorTermVolatilityStructureHandle___deref__, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolatilityStructureHandle___nonzero__", _wrap_CapFloorTermVolatilityStructureHandle___nonzero__, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolatilityStructureHandle___bool__", _wrap_CapFloorTermVolatilityStructureHandle___bool__, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolatilityStructureHandle_asObservable", _wrap_CapFloorTermVolatilityStructureHandle_asObservable, METH_VARARGS, NULL},
	 { (char *)"delete_CapFloorTermVolatilityStructureHandle", _wrap_delete_CapFloorTermVolatilityStructureHandle, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolatilityStructureHandle_volatility", _wrap_CapFloorTermVolatilityStructureHandle_volatility, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolatilityStructureHandle_enableExtrapolation", _wrap_CapFloorTermVolatilityStructureHandle_enableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolatilityStructureHandle_disableExtrapolation", _wrap_CapFloorTermVolatilityStructureHandle_disableExtrapolation, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolatilityStructureHandle_allowsExtrapolation", _wrap_CapFloorTermVolatilityStructureHandle_allowsExtrapolation, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolatilityStructureHandle_swigregister", CapFloorTermVolatilityStructureHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_RelinkableCapFloorTermVolatilityStructureHandle", _wrap_new_RelinkableCapFloorTermVolatilityStructureHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableCapFloorTermVolatilityStructureHandle_linkTo", _wrap_RelinkableCapFloorTermVolatilityStructureHandle_linkTo, METH_VARARGS, NULL},
	 { (char *)"delete_RelinkableCapFloorTermVolatilityStructureHandle", _wrap_delete_RelinkableCapFloorTermVolatilityStructureHandle, METH_VARARGS, NULL},
	 { (char *)"RelinkableCapFloorTermVolatilityStructureHandle_swigregister", RelinkableCapFloorTermVolatilityStructureHandle_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CapFloorTermVolCurve", _wrap_new_CapFloorTermVolCurve, METH_VARARGS, NULL},
	 { (char *)"delete_CapFloorTermVolCurve", _wrap_delete_CapFloorTermVolCurve, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolCurve_swigregister", CapFloorTermVolCurve_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CapFloorTermVolSurface", _wrap_new_CapFloorTermVolSurface, METH_VARARGS, NULL},
	 { (char *)"delete_CapFloorTermVolSurface", _wrap_delete_CapFloorTermVolSurface, METH_VARARGS, NULL},
	 { (char *)"CapFloorTermVolSurface_swigregister", CapFloorTermVolSurface_swigregister, METH_VARARGS, NULL},
	 { (char *)"StrippedOptionletBase___deref__", _wrap_StrippedOptionletBase___deref__, METH_VARARGS, NULL},
	 { (char *)"StrippedOptionletBase___nonzero__", _wrap_StrippedOptionletBase___nonzero__, METH_VARARGS, NULL},
	 { (char *)"StrippedOptionletBase___bool__", _wrap_StrippedOptionletBase___bool__, METH_VARARGS, NULL},
	 { (char *)"new_StrippedOptionletBase", _wrap_new_StrippedOptionletBase, METH_VARARGS, NULL},
	 { (char *)"delete_StrippedOptionletBase", _wrap_delete_StrippedOptionletBase, METH_VARARGS, NULL},
	 { (char *)"StrippedOptionletBase_optionletStrikes", _wrap_StrippedOptionletBase_optionletStrikes, METH_VARARGS, NULL},
	 { (char *)"StrippedOptionletBase_optionletVolatilities", _wrap_StrippedOptionletBase_optionletVolatilities, METH_VARARGS, NULL},
	 { (char *)"StrippedOptionletBase_optionletFixingDates", _wrap_StrippedOptionletBase_optionletFixingDates, METH_VARARGS, NULL},
	 { (char *)"StrippedOptionletBase_optionletFixingTimes", _wrap_StrippedOptionletBase_optionletFixingTimes, METH_VARARGS, NULL},
	 { (char *)"StrippedOptionletBase_optionletMaturities", _wrap_StrippedOptionletBase_optionletMaturities, METH_VARARGS, NULL},
	 { (char *)"StrippedOptionletBase_atmOptionletRates", _wrap_StrippedOptionletBase_atmOptionletRates, METH_VARARGS, NULL},
	 { (char *)"StrippedOptionletBase_dayCounter", _wrap_StrippedOptionletBase_dayCounter, METH_VARARGS, NULL},
	 { (char *)"StrippedOptionletBase_calendar", _wrap_StrippedOptionletBase_calendar, METH_VARARGS, NULL},
	 { (char *)"StrippedOptionletBase_settlementDays", _wrap_StrippedOptionletBase_settlementDays, METH_VARARGS, NULL},
	 { (char *)"StrippedOptionletBase_businessDayConvention", _wrap_StrippedOptionletBase_businessDayConvention, METH_VARARGS, NULL},
	 { (char *)"StrippedOptionletBase_swigregister", StrippedOptionletBase_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_OptionletStripper1", (PyCFunction) _wrap_new_OptionletStripper1, METH_VARARGS | METH_KEYWORDS, NULL},
	 { (char *)"OptionletStripper1_capFloorPrices", _wrap_OptionletStripper1_capFloorPrices, METH_VARARGS, NULL},
	 { (char *)"OptionletStripper1_capFloorVolatilities", _wrap_OptionletStripper1_capFloorVolatilities, METH_VARARGS, NULL},
	 { (char *)"OptionletStripper1_optionletPrices", _wrap_OptionletStripper1_optionletPrices, METH_VARARGS, NULL},
	 { (char *)"OptionletStripper1_switchStrike", _wrap_OptionletStripper1_switchStrike, METH_VARARGS, NULL},
	 { (char *)"delete_OptionletStripper1", _wrap_delete_OptionletStripper1, METH_VARARGS, NULL},
	 { (char *)"OptionletStripper1_swigregister", OptionletStripper1_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_StrippedOptionletAdapter", _wrap_new_StrippedOptionletAdapter, METH_VARARGS, NULL},
	 { (char *)"delete_StrippedOptionletAdapter", _wrap_delete_StrippedOptionletAdapter, METH_VARARGS, NULL},
	 { (char *)"StrippedOptionletAdapter_swigregister", StrippedOptionletAdapter_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Settlement", _wrap_new_Settlement, METH_VARARGS, NULL},
	 { (char *)"delete_Settlement", _wrap_delete_Settlement, METH_VARARGS, NULL},
	 { (char *)"Settlement_swigregister", Settlement_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_Swaption", _wrap_new_Swaption, METH_VARARGS, NULL},
	 { (char *)"delete_Swaption", _wrap_delete_Swaption, METH_VARARGS, NULL},
	 { (char *)"Swaption_swigregister", Swaption_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_NonstandardSwaption", _wrap_new_NonstandardSwaption, METH_VARARGS, NULL},
	 { (char *)"NonstandardSwaption_calibrationBasket", _wrap_NonstandardSwaption_calibrationBasket, METH_VARARGS, NULL},
	 { (char *)"delete_NonstandardSwaption", _wrap_delete_NonstandardSwaption, METH_VARARGS, NULL},
	 { (char *)"NonstandardSwaption_swigregister", NonstandardSwaption_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FloatFloatSwaption", _wrap_new_FloatFloatSwaption, METH_VARARGS, NULL},
	 { (char *)"FloatFloatSwaption_calibrationBasket", _wrap_FloatFloatSwaption_calibrationBasket, METH_VARARGS, NULL},
	 { (char *)"FloatFloatSwaption_underlyingValue", _wrap_FloatFloatSwaption_underlyingValue, METH_VARARGS, NULL},
	 { (char *)"delete_FloatFloatSwaption", _wrap_delete_FloatFloatSwaption, METH_VARARGS, NULL},
	 { (char *)"FloatFloatSwaption_swigregister", FloatFloatSwaption_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BlackSwaptionEngine", _wrap_new_BlackSwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"BlackSwaptionEngine_vega", _wrap_BlackSwaptionEngine_vega, METH_VARARGS, NULL},
	 { (char *)"delete_BlackSwaptionEngine", _wrap_delete_BlackSwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"BlackSwaptionEngine_swigregister", BlackSwaptionEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BachelierSwaptionEngine", _wrap_new_BachelierSwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"delete_BachelierSwaptionEngine", _wrap_delete_BachelierSwaptionEngine, METH_VARARGS, NULL},
	 { (char *)"BachelierSwaptionEngine_swigregister", BachelierSwaptionEngine_swigregister, METH_VARARGS, NULL},
	 { (char *)"enableTracing", _wrap_enableTracing, METH_VARARGS, NULL},
	 { (char *)"disableTracing", _wrap_disableTracing, METH_VARARGS, NULL},
	 { (char *)"new_ConstantEstimator", _wrap_new_ConstantEstimator, METH_VARARGS, NULL},
	 { (char *)"ConstantEstimator_calculate", _wrap_ConstantEstimator_calculate, METH_VARARGS, NULL},
	 { (char *)"delete_ConstantEstimator", _wrap_delete_ConstantEstimator, METH_VARARGS, NULL},
	 { (char *)"ConstantEstimator_swigregister", ConstantEstimator_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ParkinsonSigma", _wrap_new_ParkinsonSigma, METH_VARARGS, NULL},
	 { (char *)"ParkinsonSigma_calculate", _wrap_ParkinsonSigma_calculate, METH_VARARGS, NULL},
	 { (char *)"delete_ParkinsonSigma", _wrap_delete_ParkinsonSigma, METH_VARARGS, NULL},
	 { (char *)"ParkinsonSigma_swigregister", ParkinsonSigma_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GarmanKlassSigma1", _wrap_new_GarmanKlassSigma1, METH_VARARGS, NULL},
	 { (char *)"GarmanKlassSigma1_calculate", _wrap_GarmanKlassSigma1_calculate, METH_VARARGS, NULL},
	 { (char *)"delete_GarmanKlassSigma1", _wrap_delete_GarmanKlassSigma1, METH_VARARGS, NULL},
	 { (char *)"GarmanKlassSigma1_swigregister", GarmanKlassSigma1_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GarmanKlassSigma3", _wrap_new_GarmanKlassSigma3, METH_VARARGS, NULL},
	 { (char *)"GarmanKlassSigma3_calculate", _wrap_GarmanKlassSigma3_calculate, METH_VARARGS, NULL},
	 { (char *)"delete_GarmanKlassSigma3", _wrap_delete_GarmanKlassSigma3, METH_VARARGS, NULL},
	 { (char *)"GarmanKlassSigma3_swigregister", GarmanKlassSigma3_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GarmanKlassSigma4", _wrap_new_GarmanKlassSigma4, METH_VARARGS, NULL},
	 { (char *)"GarmanKlassSigma4_calculate", _wrap_GarmanKlassSigma4_calculate, METH_VARARGS, NULL},
	 { (char *)"delete_GarmanKlassSigma4", _wrap_delete_GarmanKlassSigma4, METH_VARARGS, NULL},
	 { (char *)"GarmanKlassSigma4_swigregister", GarmanKlassSigma4_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GarmanKlassSigma5", _wrap_new_GarmanKlassSigma5, METH_VARARGS, NULL},
	 { (char *)"GarmanKlassSigma5_calculate", _wrap_GarmanKlassSigma5_calculate, METH_VARARGS, NULL},
	 { (char *)"delete_GarmanKlassSigma5", _wrap_delete_GarmanKlassSigma5, METH_VARARGS, NULL},
	 { (char *)"GarmanKlassSigma5_swigregister", GarmanKlassSigma5_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_GarmanKlassSigma6", _wrap_new_GarmanKlassSigma6, METH_VARARGS, NULL},
	 { (char *)"GarmanKlassSigma6_calculate", _wrap_GarmanKlassSigma6_calculate, METH_VARARGS, NULL},
	 { (char *)"delete_GarmanKlassSigma6", _wrap_delete_GarmanKlassSigma6, METH_VARARGS, NULL},
	 { (char *)"GarmanKlassSigma6_swigregister", GarmanKlassSigma6_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ZeroCurve", _wrap_new_ZeroCurve, METH_VARARGS, NULL},
	 { (char *)"ZeroCurve_times", _wrap_ZeroCurve_times, METH_VARARGS, NULL},
	 { (char *)"ZeroCurve_data", _wrap_ZeroCurve_data, METH_VARARGS, NULL},
	 { (char *)"ZeroCurve_dates", _wrap_ZeroCurve_dates, METH_VARARGS, NULL},
	 { (char *)"ZeroCurve_zeroRates", _wrap_ZeroCurve_zeroRates, METH_VARARGS, NULL},
	 { (char *)"ZeroCurve_nodes", _wrap_ZeroCurve_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_ZeroCurve", _wrap_delete_ZeroCurve, METH_VARARGS, NULL},
	 { (char *)"ZeroCurve_swigregister", ZeroCurve_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_LogLinearZeroCurve", _wrap_new_LogLinearZeroCurve, METH_VARARGS, NULL},
	 { (char *)"LogLinearZeroCurve_times", _wrap_LogLinearZeroCurve_times, METH_VARARGS, NULL},
	 { (char *)"LogLinearZeroCurve_data", _wrap_LogLinearZeroCurve_data, METH_VARARGS, NULL},
	 { (char *)"LogLinearZeroCurve_dates", _wrap_LogLinearZeroCurve_dates, METH_VARARGS, NULL},
	 { (char *)"LogLinearZeroCurve_zeroRates", _wrap_LogLinearZeroCurve_zeroRates, METH_VARARGS, NULL},
	 { (char *)"LogLinearZeroCurve_nodes", _wrap_LogLinearZeroCurve_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_LogLinearZeroCurve", _wrap_delete_LogLinearZeroCurve, METH_VARARGS, NULL},
	 { (char *)"LogLinearZeroCurve_swigregister", LogLinearZeroCurve_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_CubicZeroCurve", _wrap_new_CubicZeroCurve, METH_VARARGS, NULL},
	 { (char *)"CubicZeroCurve_times", _wrap_CubicZeroCurve_times, METH_VARARGS, NULL},
	 { (char *)"CubicZeroCurve_data", _wrap_CubicZeroCurve_data, METH_VARARGS, NULL},
	 { (char *)"CubicZeroCurve_dates", _wrap_CubicZeroCurve_dates, METH_VARARGS, NULL},
	 { (char *)"CubicZeroCurve_zeroRates", _wrap_CubicZeroCurve_zeroRates, METH_VARARGS, NULL},
	 { (char *)"CubicZeroCurve_nodes", _wrap_CubicZeroCurve_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_CubicZeroCurve", _wrap_delete_CubicZeroCurve, METH_VARARGS, NULL},
	 { (char *)"CubicZeroCurve_swigregister", CubicZeroCurve_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_LogCubicZeroCurve", _wrap_new_LogCubicZeroCurve, METH_VARARGS, NULL},
	 { (char *)"LogCubicZeroCurve_times", _wrap_LogCubicZeroCurve_times, METH_VARARGS, NULL},
	 { (char *)"LogCubicZeroCurve_data", _wrap_LogCubicZeroCurve_data, METH_VARARGS, NULL},
	 { (char *)"LogCubicZeroCurve_dates", _wrap_LogCubicZeroCurve_dates, METH_VARARGS, NULL},
	 { (char *)"LogCubicZeroCurve_zeroRates", _wrap_LogCubicZeroCurve_zeroRates, METH_VARARGS, NULL},
	 { (char *)"LogCubicZeroCurve_nodes", _wrap_LogCubicZeroCurve_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_LogCubicZeroCurve", _wrap_delete_LogCubicZeroCurve, METH_VARARGS, NULL},
	 { (char *)"LogCubicZeroCurve_swigregister", LogCubicZeroCurve_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_ForwardFlatZeroCurve", _wrap_new_ForwardFlatZeroCurve, METH_VARARGS, NULL},
	 { (char *)"ForwardFlatZeroCurve_times", _wrap_ForwardFlatZeroCurve_times, METH_VARARGS, NULL},
	 { (char *)"ForwardFlatZeroCurve_data", _wrap_ForwardFlatZeroCurve_data, METH_VARARGS, NULL},
	 { (char *)"ForwardFlatZeroCurve_dates", _wrap_ForwardFlatZeroCurve_dates, METH_VARARGS, NULL},
	 { (char *)"ForwardFlatZeroCurve_zeroRates", _wrap_ForwardFlatZeroCurve_zeroRates, METH_VARARGS, NULL},
	 { (char *)"ForwardFlatZeroCurve_nodes", _wrap_ForwardFlatZeroCurve_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_ForwardFlatZeroCurve", _wrap_delete_ForwardFlatZeroCurve, METH_VARARGS, NULL},
	 { (char *)"ForwardFlatZeroCurve_swigregister", ForwardFlatZeroCurve_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_BackwardFlatZeroCurve", _wrap_new_BackwardFlatZeroCurve, METH_VARARGS, NULL},
	 { (char *)"BackwardFlatZeroCurve_times", _wrap_BackwardFlatZeroCurve_times, METH_VARARGS, NULL},
	 { (char *)"BackwardFlatZeroCurve_data", _wrap_BackwardFlatZeroCurve_data, METH_VARARGS, NULL},
	 { (char *)"BackwardFlatZeroCurve_dates", _wrap_BackwardFlatZeroCurve_dates, METH_VARARGS, NULL},
	 { (char *)"BackwardFlatZeroCurve_zeroRates", _wrap_BackwardFlatZeroCurve_zeroRates, METH_VARARGS, NULL},
	 { (char *)"BackwardFlatZeroCurve_nodes", _wrap_BackwardFlatZeroCurve_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_BackwardFlatZeroCurve", _wrap_delete_BackwardFlatZeroCurve, METH_VARARGS, NULL},
	 { (char *)"BackwardFlatZeroCurve_swigregister", BackwardFlatZeroCurve_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_MonotonicCubicZeroCurve", _wrap_new_MonotonicCubicZeroCurve, METH_VARARGS, NULL},
	 { (char *)"MonotonicCubicZeroCurve_times", _wrap_MonotonicCubicZeroCurve_times, METH_VARARGS, NULL},
	 { (char *)"MonotonicCubicZeroCurve_data", _wrap_MonotonicCubicZeroCurve_data, METH_VARARGS, NULL},
	 { (char *)"MonotonicCubicZeroCurve_dates", _wrap_MonotonicCubicZeroCurve_dates, METH_VARARGS, NULL},
	 { (char *)"MonotonicCubicZeroCurve_zeroRates", _wrap_MonotonicCubicZeroCurve_zeroRates, METH_VARARGS, NULL},
	 { (char *)"MonotonicCubicZeroCurve_nodes", _wrap_MonotonicCubicZeroCurve_nodes, METH_VARARGS, NULL},
	 { (char *)"delete_MonotonicCubicZeroCurve", _wrap_delete_MonotonicCubicZeroCurve, METH_VARARGS, NULL},
	 { (char *)"MonotonicCubicZeroCurve_swigregister", MonotonicCubicZeroCurve_swigregister, METH_VARARGS, NULL},
	 { (char *)"as_zerocurve", _wrap_as_zerocurve, METH_VARARGS, NULL},
	 { (char *)"Forward_forwardValue", _wrap_Forward_forwardValue, METH_VARARGS, NULL},
	 { (char *)"Forward_impliedYield", _wrap_Forward_impliedYield, METH_VARARGS, NULL},
	 { (char *)"new_Forward", _wrap_new_Forward, METH_VARARGS, NULL},
	 { (char *)"delete_Forward", _wrap_delete_Forward, METH_VARARGS, NULL},
	 { (char *)"Forward_swigregister", Forward_swigregister, METH_VARARGS, NULL},
	 { (char *)"new_FixedRateBondForward", _wrap_new_FixedRateBondForward, METH_VARARGS, NULL},
	 { (char *)"FixedRateBondForward_forwardPrice", _wrap_FixedRateBondForward_forwardPrice, METH_VARARGS, NULL},
	 { (char *)"FixedRateBondForward_cleanForwardPrice", _wrap_FixedRateBondForward_cleanForwardPrice, METH_VARARGS, NULL},
	 { (char *)"FixedRateBondForward_spotIncome", _wrap_FixedRateBondForward_spotIncome, METH_VARARGS, NULL},
	 { (char *)"FixedRateBondForward_spotValue", _wrap_FixedRateBondForward_spotValue, METH_VARARGS, NULL},
	 { (char *)"delete_FixedRateBondForward", _wrap_delete_FixedRateBondForward, METH_VARARGS, NULL},
	 { (char *)"FixedRateBondForward_swigregister", FixedRateBondForward_swigregister, METH_VARARGS, NULL},
	 { NULL, NULL, 0, NULL }
};


/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */

static void *_p_QuantLib__NorwayTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Norway *) x));
}
static void *_p_QuantLib__NewZealandTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::NewZealand *) x));
}
static void *_p_QuantLib__SwedenTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Sweden *) x));
}
static void *_p_QuantLib__GermanyTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Germany *) x));
}
static void *_p_QuantLib__IsraelTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Israel *) x));
}
static void *_p_QuantLib__WeekendsOnlyTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::WeekendsOnly *) x));
}
static void *_p_QuantLib__CanadaTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Canada *) x));
}
static void *_p_QuantLib__PolandTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Poland *) x));
}
static void *_p_QuantLib__HungaryTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Hungary *) x));
}
static void *_p_QuantLib__AustraliaTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Australia *) x));
}
static void *_p_QuantLib__SwitzerlandTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Switzerland *) x));
}
static void *_p_QuantLib__JapanTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Japan *) x));
}
static void *_p_QuantLib__BrazilTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Brazil *) x));
}
static void *_p_QuantLib__IcelandTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Iceland *) x));
}
static void *_p_QuantLib__MexicoTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Mexico *) x));
}
static void *_p_QuantLib__CzechRepublicTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::CzechRepublic *) x));
}
static void *_p_QuantLib__IndonesiaTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Indonesia *) x));
}
static void *_p_QuantLib__SaudiArabiaTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::SaudiArabia *) x));
}
static void *_p_QuantLib__ChinaTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::China *) x));
}
static void *_p_QuantLib__NullCalendarTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::NullCalendar *) x));
}
static void *_p_QuantLib__JointCalendarTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::JointCalendar *) x));
}
static void *_p_QuantLib__BespokeCalendarTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::BespokeCalendar *) x));
}
static void *_p_QuantLib__SouthKoreaTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::SouthKorea *) x));
}
static void *_p_QuantLib__UnitedKingdomTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::UnitedKingdom *) x));
}
static void *_p_QuantLib__SingaporeTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Singapore *) x));
}
static void *_p_QuantLib__SouthAfricaTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::SouthAfrica *) x));
}
static void *_p_QuantLib__ArgentinaTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Argentina *) x));
}
static void *_p_QuantLib__RomaniaTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Romania *) x));
}
static void *_p_QuantLib__TARGETTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::TARGET *) x));
}
static void *_p_QuantLib__SlovakiaTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Slovakia *) x));
}
static void *_p_QuantLib__RussiaTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Russia *) x));
}
static void *_p_QuantLib__UkraineTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Ukraine *) x));
}
static void *_p_QuantLib__FinlandTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Finland *) x));
}
static void *_p_QuantLib__ItalyTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Italy *) x));
}
static void *_p_QuantLib__IndiaTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::India *) x));
}
static void *_p_QuantLib__TaiwanTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Taiwan *) x));
}
static void *_p_QuantLib__UnitedStatesTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::UnitedStates *) x));
}
static void *_p_QuantLib__DenmarkTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Denmark *) x));
}
static void *_p_QuantLib__TurkeyTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::Turkey *) x));
}
static void *_p_QuantLib__HongKongTo_p_Calendar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Calendar *)  ((QuantLib::HongKong *) x));
}
static void *_p_CapFloorTermVolCurvePtrTo_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< CapFloorTermVolatilityStructure > *)  ((CapFloorTermVolCurvePtr *) x));
}
static void *_p_CapFloorTermVolSurfacePtrTo_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< CapFloorTermVolatilityStructure > *)  ((CapFloorTermVolSurfacePtr *) x));
}
static void *_p_HazardRateCurvePtrTo_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< DefaultProbabilityTermStructure > *)  ((HazardRateCurvePtr *) x));
}
static void *_p_DefaultDensityCurvePtrTo_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< DefaultProbabilityTermStructure > *)  ((DefaultDensityCurvePtr *) x));
}
static void *_p_FlatHazardRatePtrTo_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< DefaultProbabilityTermStructure > *)  ((FlatHazardRatePtr *) x));
}
static void *_p_PiecewiseFlatHazardRatePtrTo_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< DefaultProbabilityTermStructure > *)  ((PiecewiseFlatHazardRatePtr *) x));
}
static void *_p_OptionletStripper1PtrTo_p_boost__shared_ptrT_StrippedOptionletBase_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< StrippedOptionletBase > *)  ((OptionletStripper1Ptr *) x));
}
static void *_p_MinBasketPayoffPtrTo_p_BasketPayoffPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BasketPayoffPtr *)  ((MinBasketPayoffPtr *) x));
}
static void *_p_MaxBasketPayoffPtrTo_p_BasketPayoffPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BasketPayoffPtr *)  ((MaxBasketPayoffPtr *) x));
}
static void *_p_AverageBasketPayoffPtrTo_p_BasketPayoffPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BasketPayoffPtr *)  ((AverageBasketPayoffPtr *) x));
}
static void *_p_EuropeanOptionPtrTo_p_VanillaOptionPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((VanillaOptionPtr *)  ((EuropeanOptionPtr *) x));
}
static void *_p_ForwardVanillaOptionPtrTo_p_VanillaOptionPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((VanillaOptionPtr *)  ((ForwardVanillaOptionPtr *) x));
}
static void *_p_QuantoVanillaOptionPtrTo_p_VanillaOptionPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((VanillaOptionPtr *)  ((QuantoVanillaOptionPtr *) x));
}
static void *_p_QuantoForwardVanillaOptionPtrTo_p_VanillaOptionPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((VanillaOptionPtr *) (QuantoVanillaOptionPtr *) ((QuantoForwardVanillaOptionPtr *) x));
}
static void *_p_QuantoForwardVanillaOptionPtrTo_p_QuantoVanillaOptionPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((QuantoVanillaOptionPtr *)  ((QuantoForwardVanillaOptionPtr *) x));
}
static void *_p_QuantoDoubleBarrierOptionPtrTo_p_DoubleBarrierOptionPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((DoubleBarrierOptionPtr *)  ((QuantoDoubleBarrierOptionPtr *) x));
}
static void *_p_BasketOptionPtrTo_p_MultiAssetOptionPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((MultiAssetOptionPtr *)  ((BasketOptionPtr *) x));
}
static void *_p_EverestOptionPtrTo_p_MultiAssetOptionPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((MultiAssetOptionPtr *)  ((EverestOptionPtr *) x));
}
static void *_p_HimalayaOptionPtrTo_p_MultiAssetOptionPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((MultiAssetOptionPtr *)  ((HimalayaOptionPtr *) x));
}
static void *_p_ZeroCouponBondPtrTo_p_BondPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BondPtr *)  ((ZeroCouponBondPtr *) x));
}
static void *_p_FixedRateBondPtrTo_p_BondPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BondPtr *)  ((FixedRateBondPtr *) x));
}
static void *_p_FloatingRateBondPtrTo_p_BondPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BondPtr *)  ((FloatingRateBondPtr *) x));
}
static void *_p_CmsRateBondPtrTo_p_BondPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BondPtr *)  ((CmsRateBondPtr *) x));
}
static void *_p_CallableFixedRateBondPtrTo_p_BondPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BondPtr *)  ((CallableFixedRateBondPtr *) x));
}
static void *_p_CPIBondPtrTo_p_BondPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BondPtr *)  ((CPIBondPtr *) x));
}
static void *_p_ConvertibleZeroCouponBondPtrTo_p_BondPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BondPtr *)  ((ConvertibleZeroCouponBondPtr *) x));
}
static void *_p_ConvertibleFixedCouponBondPtrTo_p_BondPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BondPtr *)  ((ConvertibleFixedCouponBondPtr *) x));
}
static void *_p_ConvertibleFloatingRateBondPtrTo_p_BondPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BondPtr *)  ((ConvertibleFloatingRateBondPtr *) x));
}
static void *_p_SwaptionHelperPtrTo_p_boost__shared_ptrT_CalibrationHelper_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< CalibrationHelper > *)  ((SwaptionHelperPtr *) x));
}
static void *_p_CapHelperPtrTo_p_boost__shared_ptrT_CalibrationHelper_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< CalibrationHelper > *)  ((CapHelperPtr *) x));
}
static void *_p_HestonModelHelperPtrTo_p_boost__shared_ptrT_CalibrationHelper_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< CalibrationHelper > *)  ((HestonModelHelperPtr *) x));
}
static void *_p_DepositRateHelperPtrTo_p_boost__shared_ptrT_RateHelper_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< RateHelper > *)  ((DepositRateHelperPtr *) x));
}
static void *_p_FraRateHelperPtrTo_p_boost__shared_ptrT_RateHelper_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< RateHelper > *)  ((FraRateHelperPtr *) x));
}
static void *_p_FuturesRateHelperPtrTo_p_boost__shared_ptrT_RateHelper_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< RateHelper > *)  ((FuturesRateHelperPtr *) x));
}
static void *_p_SwapRateHelperPtrTo_p_boost__shared_ptrT_RateHelper_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< RateHelper > *)  ((SwapRateHelperPtr *) x));
}
static void *_p_BondHelperPtrTo_p_boost__shared_ptrT_RateHelper_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< RateHelper > *)  ((BondHelperPtr *) x));
}
static void *_p_FixedRateBondHelperPtrTo_p_boost__shared_ptrT_RateHelper_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< RateHelper > *) (BondHelperPtr *) ((FixedRateBondHelperPtr *) x));
}
static void *_p_OISRateHelperPtrTo_p_boost__shared_ptrT_RateHelper_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< RateHelper > *)  ((OISRateHelperPtr *) x));
}
static void *_p_DatedOISRateHelperPtrTo_p_boost__shared_ptrT_RateHelper_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< RateHelper > *)  ((DatedOISRateHelperPtr *) x));
}
static void *_p_FxSwapRateHelperPtrTo_p_boost__shared_ptrT_RateHelper_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< RateHelper > *)  ((FxSwapRateHelperPtr *) x));
}
static void *_p_SpreadCdsHelperPtrTo_p_boost__shared_ptrT_DefaultProbabilityHelper_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< DefaultProbabilityHelper > *)  ((SpreadCdsHelperPtr *) x));
}
static void *_p_UpfrontCdsHelperPtrTo_p_boost__shared_ptrT_DefaultProbabilityHelper_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< DefaultProbabilityHelper > *)  ((UpfrontCdsHelperPtr *) x));
}
static void *_p_ZeroCouponInflationSwapHelperPtrTo_p_boost__shared_ptrT_ZeroHelper_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< ZeroHelper > *)  ((ZeroCouponInflationSwapHelperPtr *) x));
}
static void *_p_YearOnYearInflationSwapHelperPtrTo_p_boost__shared_ptrT_YoYHelper_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YoYHelper > *)  ((YearOnYearInflationSwapHelperPtr *) x));
}
static void *_p_BoundaryConstraintTo_p_Constraint(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Constraint *)  ((BoundaryConstraint *) x));
}
static void *_p_NoConstraintTo_p_Constraint(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Constraint *)  ((NoConstraint *) x));
}
static void *_p_PositiveConstraintTo_p_Constraint(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Constraint *)  ((PositiveConstraint *) x));
}
static void *_p_CompositeConstraintTo_p_Constraint(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Constraint *)  ((CompositeConstraint *) x));
}
static void *_p_NonhomogeneousBoundaryConstraintTo_p_Constraint(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Constraint *)  ((NonhomogeneousBoundaryConstraint *) x));
}
static void *_p_CappedFlooredCouponPtrTo_p_FloatingRateCouponPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FloatingRateCouponPtr *)  ((CappedFlooredCouponPtr *) x));
}
static void *_p_IborCouponPtrTo_p_FloatingRateCouponPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FloatingRateCouponPtr *)  ((IborCouponPtr *) x));
}
static void *_p_CmsCouponPtrTo_p_FloatingRateCouponPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FloatingRateCouponPtr *)  ((CmsCouponPtr *) x));
}
static void *_p_CappedFlooredCmsCouponPtrTo_p_FloatingRateCouponPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FloatingRateCouponPtr *) (CappedFlooredCouponPtr *) ((CappedFlooredCmsCouponPtr *) x));
}
static void *_p_FixedRateCouponPtrTo_p_CouponPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((CouponPtr *)  ((FixedRateCouponPtr *) x));
}
static void *_p_FloatingRateCouponPtrTo_p_CouponPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((CouponPtr *)  ((FloatingRateCouponPtr *) x));
}
static void *_p_CappedFlooredCouponPtrTo_p_CouponPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((CouponPtr *) (FloatingRateCouponPtr *) ((CappedFlooredCouponPtr *) x));
}
static void *_p_IborCouponPtrTo_p_CouponPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((CouponPtr *) (FloatingRateCouponPtr *) ((IborCouponPtr *) x));
}
static void *_p_CmsCouponPtrTo_p_CouponPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((CouponPtr *) (FloatingRateCouponPtr *) ((CmsCouponPtr *) x));
}
static void *_p_CappedFlooredCmsCouponPtrTo_p_CouponPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((CouponPtr *) (FloatingRateCouponPtr *)(CappedFlooredCouponPtr *) ((CappedFlooredCmsCouponPtr *) x));
}
static void *_p_CappedFlooredCmsCouponPtrTo_p_CappedFlooredCouponPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((CappedFlooredCouponPtr *)  ((CappedFlooredCmsCouponPtr *) x));
}
static void *_p_DeltaVolQuoteTo_p_Quote(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Quote *)  ((DeltaVolQuote *) x));
}
static void *_p_BatesModelPtrTo_p_HestonModelPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((HestonModelPtr *)  ((BatesModelPtr *) x));
}
static void *_p_FixedRateBondHelperPtrTo_p_BondHelperPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BondHelperPtr *)  ((FixedRateBondHelperPtr *) x));
}
static void *_p_Euribor365_1YPtrTo_p_Euribor365Ptr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Euribor365Ptr *)  ((Euribor365_1YPtr *) x));
}
static void *_p_Euribor365_9MPtrTo_p_Euribor365Ptr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Euribor365Ptr *)  ((Euribor365_9MPtr *) x));
}
static void *_p_Euribor365_8MPtrTo_p_Euribor365Ptr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Euribor365Ptr *)  ((Euribor365_8MPtr *) x));
}
static void *_p_Euribor365_7MPtrTo_p_Euribor365Ptr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Euribor365Ptr *)  ((Euribor365_7MPtr *) x));
}
static void *_p_Euribor365_6MPtrTo_p_Euribor365Ptr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Euribor365Ptr *)  ((Euribor365_6MPtr *) x));
}
static void *_p_Euribor365_5MPtrTo_p_Euribor365Ptr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Euribor365Ptr *)  ((Euribor365_5MPtr *) x));
}
static void *_p_Euribor365_4MPtrTo_p_Euribor365Ptr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Euribor365Ptr *)  ((Euribor365_4MPtr *) x));
}
static void *_p_Euribor365_3MPtrTo_p_Euribor365Ptr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Euribor365Ptr *)  ((Euribor365_3MPtr *) x));
}
static void *_p_Euribor365_2MPtrTo_p_Euribor365Ptr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Euribor365Ptr *)  ((Euribor365_2MPtr *) x));
}
static void *_p_Euribor365_1MPtrTo_p_Euribor365Ptr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Euribor365Ptr *)  ((Euribor365_1MPtr *) x));
}
static void *_p_Euribor365_11MPtrTo_p_Euribor365Ptr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Euribor365Ptr *)  ((Euribor365_11MPtr *) x));
}
static void *_p_Euribor365_10MPtrTo_p_Euribor365Ptr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Euribor365Ptr *)  ((Euribor365_10MPtr *) x));
}
static void *_p_Euribor365_3WPtrTo_p_Euribor365Ptr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Euribor365Ptr *)  ((Euribor365_3WPtr *) x));
}
static void *_p_Euribor365_2WPtrTo_p_Euribor365Ptr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Euribor365Ptr *)  ((Euribor365_2WPtr *) x));
}
static void *_p_Euribor365_SWPtrTo_p_Euribor365Ptr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Euribor365Ptr *)  ((Euribor365_SWPtr *) x));
}
static void *_p_IborCouponPricerPtrTo_p_boost__shared_ptrT_FloatingRateCouponPricer_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< FloatingRateCouponPricer > *)  ((IborCouponPricerPtr *) x));
}
static void *_p_BlackIborCouponPricerPtrTo_p_boost__shared_ptrT_FloatingRateCouponPricer_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< FloatingRateCouponPricer > *) (IborCouponPricerPtr *) ((BlackIborCouponPricerPtr *) x));
}
static void *_p_CmsCouponPricerPtrTo_p_boost__shared_ptrT_FloatingRateCouponPricer_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< FloatingRateCouponPricer > *)  ((CmsCouponPricerPtr *) x));
}
static void *_p_AnalyticHaganPricerPtrTo_p_boost__shared_ptrT_FloatingRateCouponPricer_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< FloatingRateCouponPricer > *) (CmsCouponPricerPtr *) ((AnalyticHaganPricerPtr *) x));
}
static void *_p_NumericHaganPricerPtrTo_p_boost__shared_ptrT_FloatingRateCouponPricer_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< FloatingRateCouponPricer > *) (CmsCouponPricerPtr *) ((NumericHaganPricerPtr *) x));
}
static void *_p_LinearTsrPricerPtrTo_p_boost__shared_ptrT_FloatingRateCouponPricer_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< FloatingRateCouponPricer > *) (CmsCouponPricerPtr *) ((LinearTsrPricerPtr *) x));
}
static void *_p_HestonModelPtrTo_p_boost__shared_ptrT_CalibratedModel_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< CalibratedModel > *)  ((HestonModelPtr *) x));
}
static void *_p_PiecewiseTimeDependentHestonModelPtrTo_p_boost__shared_ptrT_CalibratedModel_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< CalibratedModel > *)  ((PiecewiseTimeDependentHestonModelPtr *) x));
}
static void *_p_BatesModelPtrTo_p_boost__shared_ptrT_CalibratedModel_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< CalibratedModel > *) (HestonModelPtr *) ((BatesModelPtr *) x));
}
static void *_p_MarkovFunctionalPtrTo_p_boost__shared_ptrT_Gaussian1dModel_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Gaussian1dModel > *)  ((MarkovFunctionalPtr *) x));
}
static void *_p_GsrPtrTo_p_boost__shared_ptrT_Gaussian1dModel_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Gaussian1dModel > *)  ((GsrPtr *) x));
}
static void *_p_RelinkableHandleT_CalibratedModel_tTo_p_HandleT_CalibratedModel_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Handle< CalibratedModel > *)  ((RelinkableHandle< CalibratedModel > *) x));
}
static void *_p_RelinkableHandleT_ShortRateModel_tTo_p_HandleT_ShortRateModel_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Handle< ShortRateModel > *)  ((RelinkableHandle< ShortRateModel > *) x));
}
static void *_p_BlackKarasinskiPtrTo_p_boost__shared_ptrT_ShortRateModel_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< ShortRateModel > *)  ((BlackKarasinskiPtr *) x));
}
static void *_p_G2PtrTo_p_boost__shared_ptrT_ShortRateModel_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< ShortRateModel > *)  ((G2Ptr *) x));
}
static void *_p_VasicekPtrTo_p_boost__shared_ptrT_ShortRateModel_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< ShortRateModel > *)  ((VasicekPtr *) x));
}
static void *_p_HullWhitePtrTo_p_boost__shared_ptrT_ShortRateModel_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< ShortRateModel > *)  ((HullWhitePtr *) x));
}
static void *_p_StrippedOptionletAdapterPtrTo_p_boost__shared_ptrT_OptionletVolatilityStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< OptionletVolatilityStructure > *)  ((StrippedOptionletAdapterPtr *) x));
}
static void *_p_ConstantOptionletVolatilityPtrTo_p_boost__shared_ptrT_OptionletVolatilityStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< OptionletVolatilityStructure > *)  ((ConstantOptionletVolatilityPtr *) x));
}
static void *_p_GeneralizedBlackScholesProcessPtrTo_p_StochasticProcess1DPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((StochasticProcess1DPtr *)  ((GeneralizedBlackScholesProcessPtr *) x));
}
static void *_p_BlackScholesProcessPtrTo_p_StochasticProcess1DPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((StochasticProcess1DPtr *) (GeneralizedBlackScholesProcessPtr *) ((BlackScholesProcessPtr *) x));
}
static void *_p_BlackScholesMertonProcessPtrTo_p_StochasticProcess1DPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((StochasticProcess1DPtr *) (GeneralizedBlackScholesProcessPtr *) ((BlackScholesMertonProcessPtr *) x));
}
static void *_p_BlackProcessPtrTo_p_StochasticProcess1DPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((StochasticProcess1DPtr *) (GeneralizedBlackScholesProcessPtr *) ((BlackProcessPtr *) x));
}
static void *_p_GarmanKohlagenProcessPtrTo_p_StochasticProcess1DPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((StochasticProcess1DPtr *) (GeneralizedBlackScholesProcessPtr *) ((GarmanKohlagenProcessPtr *) x));
}
static void *_p_Merton76ProcessPtrTo_p_StochasticProcess1DPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((StochasticProcess1DPtr *)  ((Merton76ProcessPtr *) x));
}
static void *_p_GeometricBrownianMotionProcessPtrTo_p_StochasticProcess1DPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((StochasticProcess1DPtr *)  ((GeometricBrownianMotionProcessPtr *) x));
}
static void *_p_VarianceGammaProcessPtrTo_p_StochasticProcess1DPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((StochasticProcess1DPtr *)  ((VarianceGammaProcessPtr *) x));
}
static void *_p_HullWhiteProcessPtrTo_p_StochasticProcess1DPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((StochasticProcess1DPtr *)  ((HullWhiteProcessPtr *) x));
}
static void *_p_HullWhiteForwardProcessPtrTo_p_StochasticProcess1DPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((StochasticProcess1DPtr *)  ((HullWhiteForwardProcessPtr *) x));
}
static void *_p_GsrProcessPtrTo_p_StochasticProcess1DPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((StochasticProcess1DPtr *)  ((GsrProcessPtr *) x));
}
static void *_p_BlackIborCouponPricerPtrTo_p_IborCouponPricerPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborCouponPricerPtr *)  ((BlackIborCouponPricerPtr *) x));
}
static void *_p_AnalyticHaganPricerPtrTo_p_CmsCouponPricerPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((CmsCouponPricerPtr *)  ((AnalyticHaganPricerPtr *) x));
}
static void *_p_NumericHaganPricerPtrTo_p_CmsCouponPricerPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((CmsCouponPricerPtr *)  ((NumericHaganPricerPtr *) x));
}
static void *_p_LinearTsrPricerPtrTo_p_CmsCouponPricerPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((CmsCouponPricerPtr *)  ((LinearTsrPricerPtr *) x));
}
static void *_p_FixedDividendPtrTo_p_boost__shared_ptrT_Dividend_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Dividend > *)  ((FixedDividendPtr *) x));
}
static void *_p_FractionalDividendPtrTo_p_boost__shared_ptrT_Dividend_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Dividend > *)  ((FractionalDividendPtr *) x));
}
static void *_p_EuriborSwapIsdaFixAPtrTo_p_SwapIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((SwapIndexPtr *)  ((EuriborSwapIsdaFixAPtr *) x));
}
static void *_p_EurLiborSwapIsdaFixAPtrTo_p_SwapIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((SwapIndexPtr *)  ((EurLiborSwapIsdaFixAPtr *) x));
}
static void *_p_EuriborSwapIsdaFixBPtrTo_p_SwapIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((SwapIndexPtr *)  ((EuriborSwapIsdaFixBPtr *) x));
}
static void *_p_EurLiborSwapIsdaFixBPtrTo_p_SwapIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((SwapIndexPtr *)  ((EurLiborSwapIsdaFixBPtr *) x));
}
static void *_p_EuriborSwapIfrFixPtrTo_p_SwapIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((SwapIndexPtr *)  ((EuriborSwapIfrFixPtr *) x));
}
static void *_p_EurLiborSwapIfrFixPtrTo_p_SwapIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((SwapIndexPtr *)  ((EurLiborSwapIfrFixPtr *) x));
}
static void *_p_Bkbm6MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (BkbmPtr *) ((Bkbm6MPtr *) x));
}
static void *_p_EURLibor1MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EURLiborPtr *) ((EURLibor1MPtr *) x));
}
static void *_p_Euribor1MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EuriborPtr *) ((Euribor1MPtr *) x));
}
static void *_p_EURLibor11MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EURLiborPtr *) ((EURLibor11MPtr *) x));
}
static void *_p_Euribor11MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EuriborPtr *) ((Euribor11MPtr *) x));
}
static void *_p_Euribor365PtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((Euribor365Ptr *) x));
}
static void *_p_FedFundsPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (OvernightIndexPtr *) ((FedFundsPtr *) x));
}
static void *_p_CdorPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((CdorPtr *) x));
}
static void *_p_Euribor3WPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EuriborPtr *) ((Euribor3WPtr *) x));
}
static void *_p_Euribor365_4MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (Euribor365Ptr *) ((Euribor365_4MPtr *) x));
}
static void *_p_EURLibor2MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EURLiborPtr *) ((EURLibor2MPtr *) x));
}
static void *_p_Euribor2MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EuriborPtr *) ((Euribor2MPtr *) x));
}
static void *_p_Euribor365_1YPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (Euribor365Ptr *) ((Euribor365_1YPtr *) x));
}
static void *_p_JibarPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((JibarPtr *) x));
}
static void *_p_Euribor365_5MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (Euribor365Ptr *) ((Euribor365_5MPtr *) x));
}
static void *_p_EURLibor3MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EURLiborPtr *) ((EURLibor3MPtr *) x));
}
static void *_p_Euribor3MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EuriborPtr *) ((Euribor3MPtr *) x));
}
static void *_p_Bbsw1MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (BbswPtr *) ((Bbsw1MPtr *) x));
}
static void *_p_Euribor365_10MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (Euribor365Ptr *) ((Euribor365_10MPtr *) x));
}
static void *_p_OvernightIndexPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((OvernightIndexPtr *) x));
}
static void *_p_Euribor365_6MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (Euribor365Ptr *) ((Euribor365_6MPtr *) x));
}
static void *_p_EURLibor4MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EURLiborPtr *) ((EURLibor4MPtr *) x));
}
static void *_p_Euribor4MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EuriborPtr *) ((Euribor4MPtr *) x));
}
static void *_p_Bbsw2MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (BbswPtr *) ((Bbsw2MPtr *) x));
}
static void *_p_Euribor365_11MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (Euribor365Ptr *) ((Euribor365_11MPtr *) x));
}
static void *_p_Euribor365_7MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (Euribor365Ptr *) ((Euribor365_7MPtr *) x));
}
static void *_p_EURLibor1YPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EURLiborPtr *) ((EURLibor1YPtr *) x));
}
static void *_p_Euribor1YPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EuriborPtr *) ((Euribor1YPtr *) x));
}
static void *_p_Bkbm1MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (BkbmPtr *) ((Bkbm1MPtr *) x));
}
static void *_p_EURLibor5MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EURLiborPtr *) ((EURLibor5MPtr *) x));
}
static void *_p_Euribor5MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EuriborPtr *) ((Euribor5MPtr *) x));
}
static void *_p_Bbsw3MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (BbswPtr *) ((Bbsw3MPtr *) x));
}
static void *_p_Euribor365_SWPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (Euribor365Ptr *) ((Euribor365_SWPtr *) x));
}
static void *_p_NzocrPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (OvernightIndexPtr *) ((NzocrPtr *) x));
}
static void *_p_AoniaPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (OvernightIndexPtr *) ((AoniaPtr *) x));
}
static void *_p_EoniaPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (OvernightIndexPtr *) ((EoniaPtr *) x));
}
static void *_p_SoniaPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (OvernightIndexPtr *) ((SoniaPtr *) x));
}
static void *_p_Euribor365_8MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (Euribor365Ptr *) ((Euribor365_8MPtr *) x));
}
static void *_p_Bkbm2MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (BkbmPtr *) ((Bkbm2MPtr *) x));
}
static void *_p_EURLibor6MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EURLiborPtr *) ((EURLibor6MPtr *) x));
}
static void *_p_Euribor6MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EuriborPtr *) ((Euribor6MPtr *) x));
}
static void *_p_Bbsw4MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (BbswPtr *) ((Bbsw4MPtr *) x));
}
static void *_p_Euribor365_9MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (Euribor365Ptr *) ((Euribor365_9MPtr *) x));
}
static void *_p_Bkbm3MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (BkbmPtr *) ((Bkbm3MPtr *) x));
}
static void *_p_EURLibor7MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EURLiborPtr *) ((EURLibor7MPtr *) x));
}
static void *_p_Euribor7MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EuriborPtr *) ((Euribor7MPtr *) x));
}
static void *_p_Bbsw5MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (BbswPtr *) ((Bbsw5MPtr *) x));
}
static void *_p_Euribor365_2WPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (Euribor365Ptr *) ((Euribor365_2WPtr *) x));
}
static void *_p_EURLiborSWPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EURLiborPtr *) ((EURLiborSWPtr *) x));
}
static void *_p_EuriborSWPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EuriborPtr *) ((EuriborSWPtr *) x));
}
static void *_p_Euribor365_1MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (Euribor365Ptr *) ((Euribor365_1MPtr *) x));
}
static void *_p_TiborPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((TiborPtr *) x));
}
static void *_p_SEKLiborPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((SEKLiborPtr *) x));
}
static void *_p_NZDLiborPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((NZDLiborPtr *) x));
}
static void *_p_JPYLiborPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((JPYLiborPtr *) x));
}
static void *_p_GBPLiborPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((GBPLiborPtr *) x));
}
static void *_p_EURLiborPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((EURLiborPtr *) x));
}
static void *_p_DKKLiborPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((DKKLiborPtr *) x));
}
static void *_p_CHFLiborPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((CHFLiborPtr *) x));
}
static void *_p_CADLiborPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((CADLiborPtr *) x));
}
static void *_p_AUDLiborPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((AUDLiborPtr *) x));
}
static void *_p_LiborPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((LiborPtr *) x));
}
static void *_p_EuriborPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((EuriborPtr *) x));
}
static void *_p_Bkbm4MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (BkbmPtr *) ((Bkbm4MPtr *) x));
}
static void *_p_TRLiborPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((TRLiborPtr *) x));
}
static void *_p_USDLiborPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((USDLiborPtr *) x));
}
static void *_p_ZiborPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((ZiborPtr *) x));
}
static void *_p_Bbsw6MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (BbswPtr *) ((Bbsw6MPtr *) x));
}
static void *_p_EURLibor8MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EURLiborPtr *) ((EURLibor8MPtr *) x));
}
static void *_p_Euribor8MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EuriborPtr *) ((Euribor8MPtr *) x));
}
static void *_p_Euribor365_3WPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (Euribor365Ptr *) ((Euribor365_3WPtr *) x));
}
static void *_p_BbswPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((BbswPtr *) x));
}
static void *_p_BkbmPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *)  ((BkbmPtr *) x));
}
static void *_p_Euribor365_2MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (Euribor365Ptr *) ((Euribor365_2MPtr *) x));
}
static void *_p_Bkbm5MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (BkbmPtr *) ((Bkbm5MPtr *) x));
}
static void *_p_EURLibor10MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EURLiborPtr *) ((EURLibor10MPtr *) x));
}
static void *_p_Euribor10MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EuriborPtr *) ((Euribor10MPtr *) x));
}
static void *_p_EURLibor9MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EURLiborPtr *) ((EURLibor9MPtr *) x));
}
static void *_p_Euribor9MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EuriborPtr *) ((Euribor9MPtr *) x));
}
static void *_p_EURLibor2WPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EURLiborPtr *) ((EURLibor2WPtr *) x));
}
static void *_p_Euribor2WPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (EuriborPtr *) ((Euribor2WPtr *) x));
}
static void *_p_Euribor365_3MPtrTo_p_IborIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((IborIndexPtr *) (Euribor365Ptr *) ((Euribor365_3MPtr *) x));
}
static void *_p_Bkbm6MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(BkbmPtr *) ((Bkbm6MPtr *) x));
}
static void *_p_EURLibor1MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EURLiborPtr *) ((EURLibor1MPtr *) x));
}
static void *_p_Euribor1MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EuriborPtr *) ((Euribor1MPtr *) x));
}
static void *_p_EURLibor11MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EURLiborPtr *) ((EURLibor11MPtr *) x));
}
static void *_p_Euribor11MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EuriborPtr *) ((Euribor11MPtr *) x));
}
static void *_p_Euribor365PtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((Euribor365Ptr *) x));
}
static void *_p_FedFundsPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(OvernightIndexPtr *) ((FedFundsPtr *) x));
}
static void *_p_CdorPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((CdorPtr *) x));
}
static void *_p_Euribor3WPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EuriborPtr *) ((Euribor3WPtr *) x));
}
static void *_p_Euribor365_4MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_4MPtr *) x));
}
static void *_p_EURLibor2MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EURLiborPtr *) ((EURLibor2MPtr *) x));
}
static void *_p_Euribor2MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EuriborPtr *) ((Euribor2MPtr *) x));
}
static void *_p_Euribor365_1YPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_1YPtr *) x));
}
static void *_p_JibarPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((JibarPtr *) x));
}
static void *_p_Euribor365_5MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_5MPtr *) x));
}
static void *_p_EURLibor3MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EURLiborPtr *) ((EURLibor3MPtr *) x));
}
static void *_p_Euribor3MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EuriborPtr *) ((Euribor3MPtr *) x));
}
static void *_p_Bbsw1MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(BbswPtr *) ((Bbsw1MPtr *) x));
}
static void *_p_Euribor365_10MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_10MPtr *) x));
}
static void *_p_SwapIndexPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *)  ((SwapIndexPtr *) x));
}
static void *_p_OvernightIndexPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((OvernightIndexPtr *) x));
}
static void *_p_IborIndexPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *)  ((IborIndexPtr *) x));
}
static void *_p_Euribor365_6MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_6MPtr *) x));
}
static void *_p_EuriborSwapIsdaFixBPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (SwapIndexPtr *) ((EuriborSwapIsdaFixBPtr *) x));
}
static void *_p_EurLiborSwapIsdaFixBPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (SwapIndexPtr *) ((EurLiborSwapIsdaFixBPtr *) x));
}
static void *_p_EURLibor4MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EURLiborPtr *) ((EURLibor4MPtr *) x));
}
static void *_p_Euribor4MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EuriborPtr *) ((Euribor4MPtr *) x));
}
static void *_p_Bbsw2MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(BbswPtr *) ((Bbsw2MPtr *) x));
}
static void *_p_Euribor365_11MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_11MPtr *) x));
}
static void *_p_EuriborSwapIfrFixPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (SwapIndexPtr *) ((EuriborSwapIfrFixPtr *) x));
}
static void *_p_EurLiborSwapIfrFixPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (SwapIndexPtr *) ((EurLiborSwapIfrFixPtr *) x));
}
static void *_p_Euribor365_7MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_7MPtr *) x));
}
static void *_p_EURLibor1YPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EURLiborPtr *) ((EURLibor1YPtr *) x));
}
static void *_p_Euribor1YPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EuriborPtr *) ((Euribor1YPtr *) x));
}
static void *_p_Bkbm1MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(BkbmPtr *) ((Bkbm1MPtr *) x));
}
static void *_p_EURLibor5MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EURLiborPtr *) ((EURLibor5MPtr *) x));
}
static void *_p_Euribor5MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EuriborPtr *) ((Euribor5MPtr *) x));
}
static void *_p_Bbsw3MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(BbswPtr *) ((Bbsw3MPtr *) x));
}
static void *_p_Euribor365_SWPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_SWPtr *) x));
}
static void *_p_NzocrPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(OvernightIndexPtr *) ((NzocrPtr *) x));
}
static void *_p_AoniaPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(OvernightIndexPtr *) ((AoniaPtr *) x));
}
static void *_p_EoniaPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(OvernightIndexPtr *) ((EoniaPtr *) x));
}
static void *_p_SoniaPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(OvernightIndexPtr *) ((SoniaPtr *) x));
}
static void *_p_EuriborSwapIsdaFixAPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (SwapIndexPtr *) ((EuriborSwapIsdaFixAPtr *) x));
}
static void *_p_EurLiborSwapIsdaFixAPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (SwapIndexPtr *) ((EurLiborSwapIsdaFixAPtr *) x));
}
static void *_p_Euribor365_8MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_8MPtr *) x));
}
static void *_p_Bkbm2MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(BkbmPtr *) ((Bkbm2MPtr *) x));
}
static void *_p_EURLibor6MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EURLiborPtr *) ((EURLibor6MPtr *) x));
}
static void *_p_Euribor6MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EuriborPtr *) ((Euribor6MPtr *) x));
}
static void *_p_Bbsw4MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(BbswPtr *) ((Bbsw4MPtr *) x));
}
static void *_p_Euribor365_9MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_9MPtr *) x));
}
static void *_p_Bkbm3MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(BkbmPtr *) ((Bkbm3MPtr *) x));
}
static void *_p_EURLibor7MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EURLiborPtr *) ((EURLibor7MPtr *) x));
}
static void *_p_Euribor7MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EuriborPtr *) ((Euribor7MPtr *) x));
}
static void *_p_Bbsw5MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(BbswPtr *) ((Bbsw5MPtr *) x));
}
static void *_p_Euribor365_2WPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_2WPtr *) x));
}
static void *_p_EURLiborSWPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EURLiborPtr *) ((EURLiborSWPtr *) x));
}
static void *_p_EuriborSWPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EuriborPtr *) ((EuriborSWPtr *) x));
}
static void *_p_Euribor365_1MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_1MPtr *) x));
}
static void *_p_NZDLiborPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((NZDLiborPtr *) x));
}
static void *_p_JPYLiborPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((JPYLiborPtr *) x));
}
static void *_p_GBPLiborPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((GBPLiborPtr *) x));
}
static void *_p_EURLiborPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((EURLiborPtr *) x));
}
static void *_p_DKKLiborPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((DKKLiborPtr *) x));
}
static void *_p_CHFLiborPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((CHFLiborPtr *) x));
}
static void *_p_CADLiborPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((CADLiborPtr *) x));
}
static void *_p_AUDLiborPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((AUDLiborPtr *) x));
}
static void *_p_LiborPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((LiborPtr *) x));
}
static void *_p_EuriborPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((EuriborPtr *) x));
}
static void *_p_Bkbm4MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(BkbmPtr *) ((Bkbm4MPtr *) x));
}
static void *_p_SEKLiborPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((SEKLiborPtr *) x));
}
static void *_p_TiborPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((TiborPtr *) x));
}
static void *_p_TRLiborPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((TRLiborPtr *) x));
}
static void *_p_USDLiborPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((USDLiborPtr *) x));
}
static void *_p_ZiborPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((ZiborPtr *) x));
}
static void *_p_Bbsw6MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(BbswPtr *) ((Bbsw6MPtr *) x));
}
static void *_p_EURLibor8MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EURLiborPtr *) ((EURLibor8MPtr *) x));
}
static void *_p_Euribor8MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EuriborPtr *) ((Euribor8MPtr *) x));
}
static void *_p_Euribor365_3WPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_3WPtr *) x));
}
static void *_p_BbswPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((BbswPtr *) x));
}
static void *_p_BkbmPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *) ((BkbmPtr *) x));
}
static void *_p_Euribor365_2MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_2MPtr *) x));
}
static void *_p_Bkbm5MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(BkbmPtr *) ((Bkbm5MPtr *) x));
}
static void *_p_EURLibor10MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EURLiborPtr *) ((EURLibor10MPtr *) x));
}
static void *_p_Euribor10MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EuriborPtr *) ((Euribor10MPtr *) x));
}
static void *_p_EURLibor9MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EURLiborPtr *) ((EURLibor9MPtr *) x));
}
static void *_p_Euribor9MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EuriborPtr *) ((Euribor9MPtr *) x));
}
static void *_p_EURLibor2WPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EURLiborPtr *) ((EURLibor2WPtr *) x));
}
static void *_p_Euribor2WPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(EuriborPtr *) ((Euribor2WPtr *) x));
}
static void *_p_Euribor365_3MPtrTo_p_InterestRateIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InterestRateIndexPtr *) (IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_3MPtr *) x));
}
static void *_p_FedFundsPtrTo_p_OvernightIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OvernightIndexPtr *)  ((FedFundsPtr *) x));
}
static void *_p_AoniaPtrTo_p_OvernightIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OvernightIndexPtr *)  ((AoniaPtr *) x));
}
static void *_p_EoniaPtrTo_p_OvernightIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OvernightIndexPtr *)  ((EoniaPtr *) x));
}
static void *_p_SoniaPtrTo_p_OvernightIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OvernightIndexPtr *)  ((SoniaPtr *) x));
}
static void *_p_NzocrPtrTo_p_OvernightIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OvernightIndexPtr *)  ((NzocrPtr *) x));
}
static void *_p_YYFRHICPPtrTo_p_InflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InflationIndexPtr *) (YoYInflationIndexPtr *) ((YYFRHICPPtr *) x));
}
static void *_p_YYEUHICPPtrTo_p_InflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InflationIndexPtr *) (YoYInflationIndexPtr *) ((YYEUHICPPtr *) x));
}
static void *_p_FRHICPPtrTo_p_InflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InflationIndexPtr *) (ZeroInflationIndexPtr *) ((FRHICPPtr *) x));
}
static void *_p_EUHICPPtrTo_p_InflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InflationIndexPtr *) (ZeroInflationIndexPtr *) ((EUHICPPtr *) x));
}
static void *_p_YYUKRPIPtrTo_p_InflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InflationIndexPtr *) (YoYInflationIndexPtr *) ((YYUKRPIPtr *) x));
}
static void *_p_UKRPIPtrTo_p_InflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InflationIndexPtr *) (ZeroInflationIndexPtr *) ((UKRPIPtr *) x));
}
static void *_p_YoYInflationIndexPtrTo_p_InflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InflationIndexPtr *)  ((YoYInflationIndexPtr *) x));
}
static void *_p_ZeroInflationIndexPtrTo_p_InflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InflationIndexPtr *)  ((ZeroInflationIndexPtr *) x));
}
static void *_p_YYEUHICPXTPtrTo_p_InflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InflationIndexPtr *) (YoYInflationIndexPtr *) ((YYEUHICPXTPtr *) x));
}
static void *_p_EUHICPXTPtrTo_p_InflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InflationIndexPtr *) (ZeroInflationIndexPtr *) ((EUHICPXTPtr *) x));
}
static void *_p_YYZACPIPtrTo_p_InflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InflationIndexPtr *) (YoYInflationIndexPtr *) ((YYZACPIPtr *) x));
}
static void *_p_YYUSCPIPtrTo_p_InflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InflationIndexPtr *) (YoYInflationIndexPtr *) ((YYUSCPIPtr *) x));
}
static void *_p_ZACPIPtrTo_p_InflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InflationIndexPtr *) (ZeroInflationIndexPtr *) ((ZACPIPtr *) x));
}
static void *_p_USCPIPtrTo_p_InflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InflationIndexPtr *) (ZeroInflationIndexPtr *) ((USCPIPtr *) x));
}
static void *_p_EUHICPXTPtrTo_p_ZeroInflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((ZeroInflationIndexPtr *)  ((EUHICPXTPtr *) x));
}
static void *_p_USCPIPtrTo_p_ZeroInflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((ZeroInflationIndexPtr *)  ((USCPIPtr *) x));
}
static void *_p_ZACPIPtrTo_p_ZeroInflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((ZeroInflationIndexPtr *)  ((ZACPIPtr *) x));
}
static void *_p_EUHICPPtrTo_p_ZeroInflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((ZeroInflationIndexPtr *)  ((EUHICPPtr *) x));
}
static void *_p_FRHICPPtrTo_p_ZeroInflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((ZeroInflationIndexPtr *)  ((FRHICPPtr *) x));
}
static void *_p_UKRPIPtrTo_p_ZeroInflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((ZeroInflationIndexPtr *)  ((UKRPIPtr *) x));
}
static void *_p_YYEUHICPXTPtrTo_p_YoYInflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((YoYInflationIndexPtr *)  ((YYEUHICPXTPtr *) x));
}
static void *_p_YYUSCPIPtrTo_p_YoYInflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((YoYInflationIndexPtr *)  ((YYUSCPIPtr *) x));
}
static void *_p_YYZACPIPtrTo_p_YoYInflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((YoYInflationIndexPtr *)  ((YYZACPIPtr *) x));
}
static void *_p_YYEUHICPPtrTo_p_YoYInflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((YoYInflationIndexPtr *)  ((YYEUHICPPtr *) x));
}
static void *_p_YYFRHICPPtrTo_p_YoYInflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((YoYInflationIndexPtr *)  ((YYFRHICPPtr *) x));
}
static void *_p_YYUKRPIPtrTo_p_YoYInflationIndexPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((YoYInflationIndexPtr *)  ((YYUKRPIPtr *) x));
}
static void *_p_CouponPtrTo_p_boost__shared_ptrT_CashFlow_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< CashFlow > *)  ((CouponPtr *) x));
}
static void *_p_FixedRateCouponPtrTo_p_boost__shared_ptrT_CashFlow_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< CashFlow > *) (CouponPtr *) ((FixedRateCouponPtr *) x));
}
static void *_p_FloatingRateCouponPtrTo_p_boost__shared_ptrT_CashFlow_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< CashFlow > *) (CouponPtr *) ((FloatingRateCouponPtr *) x));
}
static void *_p_CappedFlooredCouponPtrTo_p_boost__shared_ptrT_CashFlow_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< CashFlow > *) (CouponPtr *)(FloatingRateCouponPtr *) ((CappedFlooredCouponPtr *) x));
}
static void *_p_IborCouponPtrTo_p_boost__shared_ptrT_CashFlow_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< CashFlow > *) (CouponPtr *)(FloatingRateCouponPtr *) ((IborCouponPtr *) x));
}
static void *_p_CmsCouponPtrTo_p_boost__shared_ptrT_CashFlow_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< CashFlow > *) (CouponPtr *)(FloatingRateCouponPtr *) ((CmsCouponPtr *) x));
}
static void *_p_CappedFlooredCmsCouponPtrTo_p_boost__shared_ptrT_CashFlow_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< CashFlow > *) (CouponPtr *)(FloatingRateCouponPtr *)(CappedFlooredCouponPtr *) ((CappedFlooredCmsCouponPtr *) x));
}
static void *_p_RedemptionPtrTo_p_boost__shared_ptrT_CashFlow_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< CashFlow > *)  ((RedemptionPtr *) x));
}
static void *_p_AmortizingPaymentPtrTo_p_boost__shared_ptrT_CashFlow_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< CashFlow > *)  ((AmortizingPaymentPtr *) x));
}
static void *_p_SimpleCashFlowPtrTo_p_boost__shared_ptrT_CashFlow_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< CashFlow > *)  ((SimpleCashFlowPtr *) x));
}
static void *_p_PlainVanillaPayoffPtrTo_p_boost__shared_ptrT_Payoff_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Payoff > *)  ((PlainVanillaPayoffPtr *) x));
}
static void *_p_PercentageStrikePayoffPtrTo_p_boost__shared_ptrT_Payoff_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Payoff > *)  ((PercentageStrikePayoffPtr *) x));
}
static void *_p_CashOrNothingPayoffPtrTo_p_boost__shared_ptrT_Payoff_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Payoff > *)  ((CashOrNothingPayoffPtr *) x));
}
static void *_p_AssetOrNothingPayoffPtrTo_p_boost__shared_ptrT_Payoff_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Payoff > *)  ((AssetOrNothingPayoffPtr *) x));
}
static void *_p_SuperSharePayoffPtrTo_p_boost__shared_ptrT_Payoff_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Payoff > *)  ((SuperSharePayoffPtr *) x));
}
static void *_p_GapPayoffPtrTo_p_boost__shared_ptrT_Payoff_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Payoff > *)  ((GapPayoffPtr *) x));
}
static void *_p_BasketPayoffPtrTo_p_boost__shared_ptrT_Payoff_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Payoff > *)  ((BasketPayoffPtr *) x));
}
static void *_p_MinBasketPayoffPtrTo_p_boost__shared_ptrT_Payoff_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Payoff > *) (BasketPayoffPtr *) ((MinBasketPayoffPtr *) x));
}
static void *_p_MaxBasketPayoffPtrTo_p_boost__shared_ptrT_Payoff_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Payoff > *) (BasketPayoffPtr *) ((MaxBasketPayoffPtr *) x));
}
static void *_p_AverageBasketPayoffPtrTo_p_boost__shared_ptrT_Payoff_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Payoff > *) (BasketPayoffPtr *) ((AverageBasketPayoffPtr *) x));
}
static void *_p_YieldTermStructureTo_p_Extrapolator(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Extrapolator *)  ((YieldTermStructure *) x));
}
static void *_p_BlackVolTermStructureTo_p_Extrapolator(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Extrapolator *)  ((BlackVolTermStructure *) x));
}
static void *_p_LocalVolTermStructureTo_p_Extrapolator(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Extrapolator *)  ((LocalVolTermStructure *) x));
}
static void *_p_OptionletVolatilityStructureTo_p_Extrapolator(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Extrapolator *)  ((OptionletVolatilityStructure *) x));
}
static void *_p_SwaptionVolatilityStructureTo_p_Extrapolator(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Extrapolator *)  ((SwaptionVolatilityStructure *) x));
}
static void *_p_InflationTermStructureTo_p_Extrapolator(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Extrapolator *)  ((InflationTermStructure *) x));
}
static void *_p_YoYInflationTermStructureTo_p_Extrapolator(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Extrapolator *) (InflationTermStructure *) ((YoYInflationTermStructure *) x));
}
static void *_p_ZeroInflationTermStructureTo_p_Extrapolator(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Extrapolator *) (InflationTermStructure *) ((ZeroInflationTermStructure *) x));
}
static void *_p_DefaultProbabilityTermStructureTo_p_Extrapolator(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Extrapolator *)  ((DefaultProbabilityTermStructure *) x));
}
static void *_p_CapFloorTermVolatilityStructureTo_p_Extrapolator(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Extrapolator *)  ((CapFloorTermVolatilityStructure *) x));
}
static void *_p_DirichletBCPtrTo_p_boost__shared_ptrT_DefaultBoundaryCondition_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< DefaultBoundaryCondition > *)  ((DirichletBCPtr *) x));
}
static void *_p_NeumannBCPtrTo_p_boost__shared_ptrT_DefaultBoundaryCondition_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< DefaultBoundaryCondition > *)  ((NeumannBCPtr *) x));
}
static void *_p_EuropeanExercisePtrTo_p_boost__shared_ptrT_Exercise_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Exercise > *)  ((EuropeanExercisePtr *) x));
}
static void *_p_AmericanExercisePtrTo_p_boost__shared_ptrT_Exercise_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Exercise > *)  ((AmericanExercisePtr *) x));
}
static void *_p_BermudanExercisePtrTo_p_boost__shared_ptrT_Exercise_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Exercise > *)  ((BermudanExercisePtr *) x));
}
static void *_p_RebatedExercisePtrTo_p_boost__shared_ptrT_Exercise_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Exercise > *)  ((RebatedExercisePtr *) x));
}
static void *_p_Bkbm6MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(BkbmPtr *) ((Bkbm6MPtr *) x));
}
static void *_p_EURLibor1MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EURLiborPtr *) ((EURLibor1MPtr *) x));
}
static void *_p_Euribor1MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EuriborPtr *) ((Euribor1MPtr *) x));
}
static void *_p_EURLibor11MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EURLiborPtr *) ((EURLibor11MPtr *) x));
}
static void *_p_Euribor11MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EuriborPtr *) ((Euribor11MPtr *) x));
}
static void *_p_Euribor365PtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((Euribor365Ptr *) x));
}
static void *_p_FedFundsPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(OvernightIndexPtr *) ((FedFundsPtr *) x));
}
static void *_p_UKRPIPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InflationIndexPtr *)(ZeroInflationIndexPtr *) ((UKRPIPtr *) x));
}
static void *_p_YYUKRPIPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InflationIndexPtr *)(YoYInflationIndexPtr *) ((YYUKRPIPtr *) x));
}
static void *_p_CdorPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((CdorPtr *) x));
}
static void *_p_Euribor3WPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EuriborPtr *) ((Euribor3WPtr *) x));
}
static void *_p_Euribor365_4MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_4MPtr *) x));
}
static void *_p_EURLibor2MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EURLiborPtr *) ((EURLibor2MPtr *) x));
}
static void *_p_Euribor2MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EuriborPtr *) ((Euribor2MPtr *) x));
}
static void *_p_Euribor365_1YPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_1YPtr *) x));
}
static void *_p_JibarPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((JibarPtr *) x));
}
static void *_p_Euribor365_5MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_5MPtr *) x));
}
static void *_p_EURLibor3MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EURLiborPtr *) ((EURLibor3MPtr *) x));
}
static void *_p_Euribor3MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EuriborPtr *) ((Euribor3MPtr *) x));
}
static void *_p_Bbsw1MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(BbswPtr *) ((Bbsw1MPtr *) x));
}
static void *_p_Euribor365_10MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_10MPtr *) x));
}
static void *_p_SwapIndexPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *) ((SwapIndexPtr *) x));
}
static void *_p_OvernightIndexPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((OvernightIndexPtr *) x));
}
static void *_p_IborIndexPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *) ((IborIndexPtr *) x));
}
static void *_p_InterestRateIndexPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *)  ((InterestRateIndexPtr *) x));
}
static void *_p_InflationIndexPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *)  ((InflationIndexPtr *) x));
}
static void *_p_ZeroInflationIndexPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InflationIndexPtr *) ((ZeroInflationIndexPtr *) x));
}
static void *_p_YoYInflationIndexPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InflationIndexPtr *) ((YoYInflationIndexPtr *) x));
}
static void *_p_Euribor365_6MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_6MPtr *) x));
}
static void *_p_EuriborSwapIsdaFixBPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(SwapIndexPtr *) ((EuriborSwapIsdaFixBPtr *) x));
}
static void *_p_EurLiborSwapIsdaFixBPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(SwapIndexPtr *) ((EurLiborSwapIsdaFixBPtr *) x));
}
static void *_p_EUHICPXTPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InflationIndexPtr *)(ZeroInflationIndexPtr *) ((EUHICPXTPtr *) x));
}
static void *_p_YYEUHICPXTPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InflationIndexPtr *)(YoYInflationIndexPtr *) ((YYEUHICPXTPtr *) x));
}
static void *_p_EURLibor4MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EURLiborPtr *) ((EURLibor4MPtr *) x));
}
static void *_p_Euribor4MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EuriborPtr *) ((Euribor4MPtr *) x));
}
static void *_p_Bbsw2MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(BbswPtr *) ((Bbsw2MPtr *) x));
}
static void *_p_Euribor365_11MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_11MPtr *) x));
}
static void *_p_USCPIPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InflationIndexPtr *)(ZeroInflationIndexPtr *) ((USCPIPtr *) x));
}
static void *_p_ZACPIPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InflationIndexPtr *)(ZeroInflationIndexPtr *) ((ZACPIPtr *) x));
}
static void *_p_YYUSCPIPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InflationIndexPtr *)(YoYInflationIndexPtr *) ((YYUSCPIPtr *) x));
}
static void *_p_YYZACPIPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InflationIndexPtr *)(YoYInflationIndexPtr *) ((YYZACPIPtr *) x));
}
static void *_p_EuriborSwapIfrFixPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(SwapIndexPtr *) ((EuriborSwapIfrFixPtr *) x));
}
static void *_p_EurLiborSwapIfrFixPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(SwapIndexPtr *) ((EurLiborSwapIfrFixPtr *) x));
}
static void *_p_Euribor365_7MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_7MPtr *) x));
}
static void *_p_EURLibor1YPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EURLiborPtr *) ((EURLibor1YPtr *) x));
}
static void *_p_Euribor1YPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EuriborPtr *) ((Euribor1YPtr *) x));
}
static void *_p_Bkbm1MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(BkbmPtr *) ((Bkbm1MPtr *) x));
}
static void *_p_EURLibor5MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EURLiborPtr *) ((EURLibor5MPtr *) x));
}
static void *_p_Euribor5MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EuriborPtr *) ((Euribor5MPtr *) x));
}
static void *_p_Bbsw3MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(BbswPtr *) ((Bbsw3MPtr *) x));
}
static void *_p_Euribor365_SWPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_SWPtr *) x));
}
static void *_p_NzocrPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(OvernightIndexPtr *) ((NzocrPtr *) x));
}
static void *_p_AoniaPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(OvernightIndexPtr *) ((AoniaPtr *) x));
}
static void *_p_EoniaPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(OvernightIndexPtr *) ((EoniaPtr *) x));
}
static void *_p_SoniaPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(OvernightIndexPtr *) ((SoniaPtr *) x));
}
static void *_p_EuriborSwapIsdaFixAPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(SwapIndexPtr *) ((EuriborSwapIsdaFixAPtr *) x));
}
static void *_p_EurLiborSwapIsdaFixAPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(SwapIndexPtr *) ((EurLiborSwapIsdaFixAPtr *) x));
}
static void *_p_Euribor365_8MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_8MPtr *) x));
}
static void *_p_Bkbm2MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(BkbmPtr *) ((Bkbm2MPtr *) x));
}
static void *_p_EURLibor6MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EURLiborPtr *) ((EURLibor6MPtr *) x));
}
static void *_p_Euribor6MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EuriborPtr *) ((Euribor6MPtr *) x));
}
static void *_p_Bbsw4MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(BbswPtr *) ((Bbsw4MPtr *) x));
}
static void *_p_EUHICPPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InflationIndexPtr *)(ZeroInflationIndexPtr *) ((EUHICPPtr *) x));
}
static void *_p_FRHICPPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InflationIndexPtr *)(ZeroInflationIndexPtr *) ((FRHICPPtr *) x));
}
static void *_p_YYEUHICPPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InflationIndexPtr *)(YoYInflationIndexPtr *) ((YYEUHICPPtr *) x));
}
static void *_p_YYFRHICPPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InflationIndexPtr *)(YoYInflationIndexPtr *) ((YYFRHICPPtr *) x));
}
static void *_p_Euribor365_9MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_9MPtr *) x));
}
static void *_p_Bkbm3MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(BkbmPtr *) ((Bkbm3MPtr *) x));
}
static void *_p_EURLibor7MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EURLiborPtr *) ((EURLibor7MPtr *) x));
}
static void *_p_Euribor7MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EuriborPtr *) ((Euribor7MPtr *) x));
}
static void *_p_Bbsw5MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(BbswPtr *) ((Bbsw5MPtr *) x));
}
static void *_p_Euribor365_2WPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_2WPtr *) x));
}
static void *_p_EURLiborSWPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EURLiborPtr *) ((EURLiborSWPtr *) x));
}
static void *_p_EuriborSWPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EuriborPtr *) ((EuriborSWPtr *) x));
}
static void *_p_Euribor365_1MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_1MPtr *) x));
}
static void *_p_JPYLiborPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((JPYLiborPtr *) x));
}
static void *_p_GBPLiborPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((GBPLiborPtr *) x));
}
static void *_p_EURLiborPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((EURLiborPtr *) x));
}
static void *_p_DKKLiborPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((DKKLiborPtr *) x));
}
static void *_p_CHFLiborPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((CHFLiborPtr *) x));
}
static void *_p_CADLiborPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((CADLiborPtr *) x));
}
static void *_p_AUDLiborPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((AUDLiborPtr *) x));
}
static void *_p_LiborPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((LiborPtr *) x));
}
static void *_p_EuriborPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((EuriborPtr *) x));
}
static void *_p_Bkbm4MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(BkbmPtr *) ((Bkbm4MPtr *) x));
}
static void *_p_NZDLiborPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((NZDLiborPtr *) x));
}
static void *_p_SEKLiborPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((SEKLiborPtr *) x));
}
static void *_p_TiborPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((TiborPtr *) x));
}
static void *_p_TRLiborPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((TRLiborPtr *) x));
}
static void *_p_USDLiborPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((USDLiborPtr *) x));
}
static void *_p_ZiborPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((ZiborPtr *) x));
}
static void *_p_Bbsw6MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(BbswPtr *) ((Bbsw6MPtr *) x));
}
static void *_p_EURLibor8MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EURLiborPtr *) ((EURLibor8MPtr *) x));
}
static void *_p_Euribor8MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EuriborPtr *) ((Euribor8MPtr *) x));
}
static void *_p_Euribor365_3WPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_3WPtr *) x));
}
static void *_p_BbswPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((BbswPtr *) x));
}
static void *_p_BkbmPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *) ((BkbmPtr *) x));
}
static void *_p_Euribor365_2MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_2MPtr *) x));
}
static void *_p_Bkbm5MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(BkbmPtr *) ((Bkbm5MPtr *) x));
}
static void *_p_EURLibor10MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EURLiborPtr *) ((EURLibor10MPtr *) x));
}
static void *_p_Euribor10MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EuriborPtr *) ((Euribor10MPtr *) x));
}
static void *_p_EURLibor9MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EURLiborPtr *) ((EURLibor9MPtr *) x));
}
static void *_p_Euribor9MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EuriborPtr *) ((Euribor9MPtr *) x));
}
static void *_p_EURLibor2WPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EURLiborPtr *) ((EURLibor2WPtr *) x));
}
static void *_p_Euribor2WPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(EuriborPtr *) ((Euribor2WPtr *) x));
}
static void *_p_Euribor365_3MPtrTo_p_boost__shared_ptrT_Index_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Index > *) (InterestRateIndexPtr *)(IborIndexPtr *)(Euribor365Ptr *) ((Euribor365_3MPtr *) x));
}
static void *_p_FixedRateBondForwardPtrTo_p_ForwardPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((ForwardPtr *)  ((FixedRateBondForwardPtr *) x));
}
static void *_p_CustomRegionTo_p_Region(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Region *)  ((CustomRegion *) x));
}
static void *_p_DividendTo_p_CashFlow(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((CashFlow *)  ((Dividend *) x));
}
static void *_p_Bbsw1MPtrTo_p_BbswPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BbswPtr *)  ((Bbsw1MPtr *) x));
}
static void *_p_Bbsw3MPtrTo_p_BbswPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BbswPtr *)  ((Bbsw3MPtr *) x));
}
static void *_p_Bbsw5MPtrTo_p_BbswPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BbswPtr *)  ((Bbsw5MPtr *) x));
}
static void *_p_Bbsw2MPtrTo_p_BbswPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BbswPtr *)  ((Bbsw2MPtr *) x));
}
static void *_p_Bbsw4MPtrTo_p_BbswPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BbswPtr *)  ((Bbsw4MPtr *) x));
}
static void *_p_Bbsw6MPtrTo_p_BbswPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BbswPtr *)  ((Bbsw6MPtr *) x));
}
static void *_p_Bkbm4MPtrTo_p_BkbmPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BkbmPtr *)  ((Bkbm4MPtr *) x));
}
static void *_p_Bkbm6MPtrTo_p_BkbmPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BkbmPtr *)  ((Bkbm6MPtr *) x));
}
static void *_p_Bkbm1MPtrTo_p_BkbmPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BkbmPtr *)  ((Bkbm1MPtr *) x));
}
static void *_p_Bkbm3MPtrTo_p_BkbmPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BkbmPtr *)  ((Bkbm3MPtr *) x));
}
static void *_p_Bkbm5MPtrTo_p_BkbmPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BkbmPtr *)  ((Bkbm5MPtr *) x));
}
static void *_p_Bkbm2MPtrTo_p_BkbmPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((BkbmPtr *)  ((Bkbm2MPtr *) x));
}
static void *_p_RelinkableHandleT_OptionletVolatilityStructure_tTo_p_HandleT_OptionletVolatilityStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Handle< OptionletVolatilityStructure > *)  ((RelinkableHandle< OptionletVolatilityStructure > *) x));
}
static void *_p_RelinkableHandleT_SwaptionVolatilityStructure_tTo_p_HandleT_SwaptionVolatilityStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Handle< SwaptionVolatilityStructure > *)  ((RelinkableHandle< SwaptionVolatilityStructure > *) x));
}
static void *_p_RelinkableHandleT_BlackVolTermStructure_tTo_p_HandleT_BlackVolTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Handle< BlackVolTermStructure > *)  ((RelinkableHandle< BlackVolTermStructure > *) x));
}
static void *_p_ConstantSwaptionVolatilityPtrTo_p_boost__shared_ptrT_SwaptionVolatilityStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< SwaptionVolatilityStructure > *)  ((ConstantSwaptionVolatilityPtr *) x));
}
static void *_p_SwaptionVolCube1PtrTo_p_boost__shared_ptrT_SwaptionVolatilityStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< SwaptionVolatilityStructure > *)  ((SwaptionVolCube1Ptr *) x));
}
static void *_p_SwaptionVolatilityMatrixPtrTo_p_boost__shared_ptrT_SwaptionVolatilityStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< SwaptionVolatilityStructure > *)  ((SwaptionVolatilityMatrixPtr *) x));
}
static void *_p_SwaptionVolCube2PtrTo_p_boost__shared_ptrT_SwaptionVolatilityStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< SwaptionVolatilityStructure > *)  ((SwaptionVolCube2Ptr *) x));
}
static void *_p_LocalConstantVolPtrTo_p_boost__shared_ptrT_LocalVolTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< LocalVolTermStructure > *)  ((LocalConstantVolPtr *) x));
}
static void *_p_LocalVolSurfacePtrTo_p_boost__shared_ptrT_LocalVolTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< LocalVolTermStructure > *)  ((LocalVolSurfacePtr *) x));
}
static void *_p_BlackVarianceCurvePtrTo_p_boost__shared_ptrT_BlackVolTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< BlackVolTermStructure > *)  ((BlackVarianceCurvePtr *) x));
}
static void *_p_BlackConstantVolPtrTo_p_boost__shared_ptrT_BlackVolTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< BlackVolTermStructure > *)  ((BlackConstantVolPtr *) x));
}
static void *_p_BlackVarianceSurfacePtrTo_p_boost__shared_ptrT_BlackVolTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< BlackVolTermStructure > *)  ((BlackVarianceSurfacePtr *) x));
}
static void *_p_RelinkableHandleT_YieldTermStructure_tTo_p_HandleT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Handle< YieldTermStructure > *)  ((RelinkableHandle< YieldTermStructure > *) x));
}
static void *_p_PiecewiseLinearForwardPtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((PiecewiseLinearForwardPtr *) x));
}
static void *_p_PiecewiseFlatForwardPtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((PiecewiseFlatForwardPtr *) x));
}
static void *_p_FlatForwardPtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((FlatForwardPtr *) x));
}
static void *_p_PiecewiseLogCubicDiscountPtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((PiecewiseLogCubicDiscountPtr *) x));
}
static void *_p_PiecewiseCubicZeroPtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((PiecewiseCubicZeroPtr *) x));
}
static void *_p_PiecewiseLinearZeroPtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((PiecewiseLinearZeroPtr *) x));
}
static void *_p_ZeroCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((ZeroCurvePtr *) x));
}
static void *_p_ForwardCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((ForwardCurvePtr *) x));
}
static void *_p_FittedBondDiscountCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((FittedBondDiscountCurvePtr *) x));
}
static void *_p_DiscountCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((DiscountCurvePtr *) x));
}
static void *_p_LogLinearZeroCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((LogLinearZeroCurvePtr *) x));
}
static void *_p_CubicZeroCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((CubicZeroCurvePtr *) x));
}
static void *_p_LogCubicZeroCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((LogCubicZeroCurvePtr *) x));
}
static void *_p_ForwardFlatZeroCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((ForwardFlatZeroCurvePtr *) x));
}
static void *_p_BackwardFlatZeroCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((BackwardFlatZeroCurvePtr *) x));
}
static void *_p_MonotonicCubicZeroCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((MonotonicCubicZeroCurvePtr *) x));
}
static void *_p_SpreadedLinearZeroInterpolatedTermStructurePtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((SpreadedLinearZeroInterpolatedTermStructurePtr *) x));
}
static void *_p_ForwardSpreadedTermStructurePtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((ForwardSpreadedTermStructurePtr *) x));
}
static void *_p_ZeroSpreadedTermStructurePtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((ZeroSpreadedTermStructurePtr *) x));
}
static void *_p_ImpliedTermStructurePtrTo_p_boost__shared_ptrT_YieldTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YieldTermStructure > *)  ((ImpliedTermStructurePtr *) x));
}
static void *_p_RelinkableHandleT_CapFloorTermVolatilityStructure_tTo_p_HandleT_CapFloorTermVolatilityStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Handle< CapFloorTermVolatilityStructure > *)  ((RelinkableHandle< CapFloorTermVolatilityStructure > *) x));
}
static void *_p_RelinkableHandleT_DefaultProbabilityTermStructure_tTo_p_HandleT_DefaultProbabilityTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Handle< DefaultProbabilityTermStructure > *)  ((RelinkableHandle< DefaultProbabilityTermStructure > *) x));
}
static void *_p_RelinkableHandleT_LocalVolTermStructure_tTo_p_HandleT_LocalVolTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Handle< LocalVolTermStructure > *)  ((RelinkableHandle< LocalVolTermStructure > *) x));
}
static void *_p_RelinkableHandleT_YoYInflationTermStructure_tTo_p_HandleT_YoYInflationTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Handle< YoYInflationTermStructure > *)  ((RelinkableHandle< YoYInflationTermStructure > *) x));
}
static void *_p_RelinkableHandleT_ZeroInflationTermStructure_tTo_p_HandleT_ZeroInflationTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Handle< ZeroInflationTermStructure > *)  ((RelinkableHandle< ZeroInflationTermStructure > *) x));
}
static void *_p_PiecewiseZeroInflationPtrTo_p_boost__shared_ptrT_ZeroInflationTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< ZeroInflationTermStructure > *)  ((PiecewiseZeroInflationPtr *) x));
}
static void *_p_PiecewiseYoYInflationPtrTo_p_boost__shared_ptrT_YoYInflationTermStructure_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< YoYInflationTermStructure > *)  ((PiecewiseYoYInflationPtr *) x));
}
static void *_p_RelinkableHandleT_Quote_tTo_p_HandleT_Quote_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Handle< Quote > *)  ((RelinkableHandle< Quote > *) x));
}
static void *_p_SimpleQuotePtrTo_p_boost__shared_ptrT_Quote_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Quote > *)  ((SimpleQuotePtr *) x));
}
static void *_p_DerivedQuotePtrTo_p_boost__shared_ptrT_Quote_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Quote > *)  ((DerivedQuotePtr *) x));
}
static void *_p_CompositeQuotePtrTo_p_boost__shared_ptrT_Quote_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Quote > *)  ((CompositeQuotePtr *) x));
}
static void *_p_RelinkableHandleT_DeltaVolQuote_tTo_p_HandleT_DeltaVolQuote_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Handle< DeltaVolQuote > *)  ((RelinkableHandle< DeltaVolQuote > *) x));
}
static void *_p_QuantLib__Thirty360To_p_DayCounter(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((DayCounter *)  ((QuantLib::Thirty360 *) x));
}
static void *_p_QuantLib__OneDayCounterTo_p_DayCounter(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((DayCounter *)  ((QuantLib::OneDayCounter *) x));
}
static void *_p_QuantLib__SimpleDayCounterTo_p_DayCounter(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((DayCounter *)  ((QuantLib::SimpleDayCounter *) x));
}
static void *_p_QuantLib__Actual360To_p_DayCounter(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((DayCounter *)  ((QuantLib::Actual360 *) x));
}
static void *_p_QuantLib__Actual365FixedTo_p_DayCounter(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((DayCounter *)  ((QuantLib::Actual365Fixed *) x));
}
static void *_p_QuantLib__Business252To_p_DayCounter(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((DayCounter *)  ((QuantLib::Business252 *) x));
}
static void *_p_QuantLib__ActualActualTo_p_DayCounter(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((DayCounter *)  ((QuantLib::ActualActual *) x));
}
static void *_p_YoYInflationTermStructureTo_p_InflationTermStructure(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InflationTermStructure *)  ((YoYInflationTermStructure *) x));
}
static void *_p_ZeroInflationTermStructureTo_p_InflationTermStructure(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((InflationTermStructure *)  ((ZeroInflationTermStructure *) x));
}
static void *_p_StochasticProcessArrayPtrTo_p_boost__shared_ptrT_StochasticProcess_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< StochasticProcess > *)  ((StochasticProcessArrayPtr *) x));
}
static void *_p_StochasticProcess1DPtrTo_p_boost__shared_ptrT_StochasticProcess_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< StochasticProcess > *)  ((StochasticProcess1DPtr *) x));
}
static void *_p_HullWhiteForwardProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< StochasticProcess > *) (StochasticProcess1DPtr *) ((HullWhiteForwardProcessPtr *) x));
}
static void *_p_HullWhiteProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< StochasticProcess > *) (StochasticProcess1DPtr *) ((HullWhiteProcessPtr *) x));
}
static void *_p_BatesProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< StochasticProcess > *) (HestonProcessPtr *) ((BatesProcessPtr *) x));
}
static void *_p_HestonProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< StochasticProcess > *)  ((HestonProcessPtr *) x));
}
static void *_p_VarianceGammaProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< StochasticProcess > *) (StochasticProcess1DPtr *) ((VarianceGammaProcessPtr *) x));
}
static void *_p_GeometricBrownianMotionProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< StochasticProcess > *) (StochasticProcess1DPtr *) ((GeometricBrownianMotionProcessPtr *) x));
}
static void *_p_Merton76ProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< StochasticProcess > *) (StochasticProcess1DPtr *) ((Merton76ProcessPtr *) x));
}
static void *_p_GarmanKohlagenProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< StochasticProcess > *) (StochasticProcess1DPtr *)(GeneralizedBlackScholesProcessPtr *) ((GarmanKohlagenProcessPtr *) x));
}
static void *_p_BlackProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< StochasticProcess > *) (StochasticProcess1DPtr *)(GeneralizedBlackScholesProcessPtr *) ((BlackProcessPtr *) x));
}
static void *_p_BlackScholesMertonProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< StochasticProcess > *) (StochasticProcess1DPtr *)(GeneralizedBlackScholesProcessPtr *) ((BlackScholesMertonProcessPtr *) x));
}
static void *_p_BlackScholesProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< StochasticProcess > *) (StochasticProcess1DPtr *)(GeneralizedBlackScholesProcessPtr *) ((BlackScholesProcessPtr *) x));
}
static void *_p_GeneralizedBlackScholesProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< StochasticProcess > *) (StochasticProcess1DPtr *) ((GeneralizedBlackScholesProcessPtr *) x));
}
static void *_p_GsrProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< StochasticProcess > *) (StochasticProcess1DPtr *) ((GsrProcessPtr *) x));
}
static void *_p_VanillaSwapPtrTo_p_SwapPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((SwapPtr *)  ((VanillaSwapPtr *) x));
}
static void *_p_NonstandardSwapPtrTo_p_SwapPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((SwapPtr *)  ((NonstandardSwapPtr *) x));
}
static void *_p_AssetSwapPtrTo_p_SwapPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((SwapPtr *)  ((AssetSwapPtr *) x));
}
static void *_p_FloatFloatSwapPtrTo_p_SwapPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((SwapPtr *)  ((FloatFloatSwapPtr *) x));
}
static void *_p_SoftCallabilityPtrTo_p_boost__shared_ptrT_Callability_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Callability > *)  ((SoftCallabilityPtr *) x));
}
static void *_p_MultiplicativePriceSeasonalityPtrTo_p_boost__shared_ptrT_Seasonality_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Seasonality > *)  ((MultiplicativePriceSeasonalityPtr *) x));
}
static void *_p_HimalayaOptionPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (MultiAssetOptionPtr *) ((HimalayaOptionPtr *) x));
}
static void *_p_EverestOptionPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (MultiAssetOptionPtr *) ((EverestOptionPtr *) x));
}
static void *_p_BasketOptionPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (MultiAssetOptionPtr *) ((BasketOptionPtr *) x));
}
static void *_p_VanillaOptionPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((VanillaOptionPtr *) x));
}
static void *_p_EuropeanOptionPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (VanillaOptionPtr *) ((EuropeanOptionPtr *) x));
}
static void *_p_ForwardVanillaOptionPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (VanillaOptionPtr *) ((ForwardVanillaOptionPtr *) x));
}
static void *_p_QuantoVanillaOptionPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (VanillaOptionPtr *) ((QuantoVanillaOptionPtr *) x));
}
static void *_p_QuantoForwardVanillaOptionPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (VanillaOptionPtr *)(QuantoVanillaOptionPtr *) ((QuantoForwardVanillaOptionPtr *) x));
}
static void *_p_MultiAssetOptionPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((MultiAssetOptionPtr *) x));
}
static void *_p_DividendVanillaOptionPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((DividendVanillaOptionPtr *) x));
}
static void *_p_BarrierOptionPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((BarrierOptionPtr *) x));
}
static void *_p_ContinuousAveragingAsianOptionPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((ContinuousAveragingAsianOptionPtr *) x));
}
static void *_p_DiscreteAveragingAsianOptionPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((DiscreteAveragingAsianOptionPtr *) x));
}
static void *_p_DoubleBarrierOptionPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((DoubleBarrierOptionPtr *) x));
}
static void *_p_QuantoDoubleBarrierOptionPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (DoubleBarrierOptionPtr *) ((QuantoDoubleBarrierOptionPtr *) x));
}
static void *_p_SwaptionPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((SwaptionPtr *) x));
}
static void *_p_NonstandardSwaptionPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((NonstandardSwaptionPtr *) x));
}
static void *_p_FloatFloatSwaptionPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((FloatFloatSwaptionPtr *) x));
}
static void *_p_YearOnYearInflationSwapPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((YearOnYearInflationSwapPtr *) x));
}
static void *_p_ZeroCouponInflationSwapPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((ZeroCouponInflationSwapPtr *) x));
}
static void *_p_CreditDefaultSwapPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((CreditDefaultSwapPtr *) x));
}
static void *_p_SwapPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((SwapPtr *) x));
}
static void *_p_VanillaSwapPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (SwapPtr *) ((VanillaSwapPtr *) x));
}
static void *_p_NonstandardSwapPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (SwapPtr *) ((NonstandardSwapPtr *) x));
}
static void *_p_AssetSwapPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (SwapPtr *) ((AssetSwapPtr *) x));
}
static void *_p_FloatFloatSwapPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (SwapPtr *) ((FloatFloatSwapPtr *) x));
}
static void *_p_CPIBondPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (BondPtr *) ((CPIBondPtr *) x));
}
static void *_p_CallableFixedRateBondPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (BondPtr *) ((CallableFixedRateBondPtr *) x));
}
static void *_p_CmsRateBondPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (BondPtr *) ((CmsRateBondPtr *) x));
}
static void *_p_FloatingRateBondPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (BondPtr *) ((FloatingRateBondPtr *) x));
}
static void *_p_FixedRateBondPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (BondPtr *) ((FixedRateBondPtr *) x));
}
static void *_p_ZeroCouponBondPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (BondPtr *) ((ZeroCouponBondPtr *) x));
}
static void *_p_BondPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((BondPtr *) x));
}
static void *_p_ConvertibleZeroCouponBondPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (BondPtr *) ((ConvertibleZeroCouponBondPtr *) x));
}
static void *_p_ConvertibleFixedCouponBondPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (BondPtr *) ((ConvertibleFixedCouponBondPtr *) x));
}
static void *_p_ConvertibleFloatingRateBondPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (BondPtr *) ((ConvertibleFloatingRateBondPtr *) x));
}
static void *_p_CapPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (CapFloorPtr *) ((CapPtr *) x));
}
static void *_p_YoYInflationCapPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (YoYInflationCapFloorPtr *) ((YoYInflationCapPtr *) x));
}
static void *_p_CompositeInstrumentPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((CompositeInstrumentPtr *) x));
}
static void *_p_ForwardRateAgreementPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((ForwardRateAgreementPtr *) x));
}
static void *_p_CollarPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (CapFloorPtr *) ((CollarPtr *) x));
}
static void *_p_YoYInflationCollarPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (YoYInflationCapFloorPtr *) ((YoYInflationCollarPtr *) x));
}
static void *_p_StockPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((StockPtr *) x));
}
static void *_p_FloorPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (CapFloorPtr *) ((FloorPtr *) x));
}
static void *_p_CapFloorPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((CapFloorPtr *) x));
}
static void *_p_YoYInflationFloorPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (YoYInflationCapFloorPtr *) ((YoYInflationFloorPtr *) x));
}
static void *_p_YoYInflationCapFloorPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((YoYInflationCapFloorPtr *) x));
}
static void *_p_ForwardPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *)  ((ForwardPtr *) x));
}
static void *_p_FixedRateBondForwardPtrTo_p_boost__shared_ptrT_Instrument_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< Instrument > *) (ForwardPtr *) ((FixedRateBondForwardPtr *) x));
}
static void *_p_RiskStatisticsTo_p_Statistics(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Statistics *)  ((RiskStatistics *) x));
}
static void *_p_YoYInflationFloorPtrTo_p_YoYInflationCapFloorPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((YoYInflationCapFloorPtr *)  ((YoYInflationFloorPtr *) x));
}
static void *_p_YoYInflationCapPtrTo_p_YoYInflationCapFloorPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((YoYInflationCapFloorPtr *)  ((YoYInflationCapPtr *) x));
}
static void *_p_YoYInflationCollarPtrTo_p_YoYInflationCapFloorPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((YoYInflationCapFloorPtr *)  ((YoYInflationCollarPtr *) x));
}
static void *_p_FloorPtrTo_p_CapFloorPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((CapFloorPtr *)  ((FloorPtr *) x));
}
static void *_p_CapPtrTo_p_CapFloorPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((CapFloorPtr *)  ((CapPtr *) x));
}
static void *_p_CollarPtrTo_p_CapFloorPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((CapFloorPtr *)  ((CollarPtr *) x));
}
static void *_p_ConstantParameterTo_p_Parameter(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Parameter *)  ((ConstantParameter *) x));
}
static void *_p_NullParameterTo_p_Parameter(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Parameter *)  ((NullParameter *) x));
}
static void *_p_PiecewiseConstantParameterTo_p_Parameter(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Parameter *)  ((PiecewiseConstantParameter *) x));
}
static void *_p_ExponentialSplinesFittingTo_p_FittingMethod(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FittingMethod *)  ((ExponentialSplinesFitting *) x));
}
static void *_p_NelsonSiegelFittingTo_p_FittingMethod(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FittingMethod *)  ((NelsonSiegelFitting *) x));
}
static void *_p_SvenssonFittingTo_p_FittingMethod(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FittingMethod *)  ((SvenssonFitting *) x));
}
static void *_p_CubicBSplinesFittingTo_p_FittingMethod(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FittingMethod *)  ((CubicBSplinesFitting *) x));
}
static void *_p_SimplePolynomialFittingTo_p_FittingMethod(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FittingMethod *)  ((SimplePolynomialFitting *) x));
}
static void *_p_DPlusDMinusTo_p_TridiagonalOperator(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((TridiagonalOperator *)  ((DPlusDMinus *) x));
}
static void *_p_DPlusTo_p_TridiagonalOperator(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((TridiagonalOperator *)  ((DPlus *) x));
}
static void *_p_DZeroTo_p_TridiagonalOperator(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((TridiagonalOperator *)  ((DZero *) x));
}
static void *_p_DMinusTo_p_TridiagonalOperator(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((TridiagonalOperator *)  ((DMinus *) x));
}
static void *_p_BatesProcessPtrTo_p_HestonProcessPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((HestonProcessPtr *)  ((BatesProcessPtr *) x));
}
static void *_p_BlackScholesProcessPtrTo_p_GeneralizedBlackScholesProcessPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((GeneralizedBlackScholesProcessPtr *)  ((BlackScholesProcessPtr *) x));
}
static void *_p_BlackScholesMertonProcessPtrTo_p_GeneralizedBlackScholesProcessPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((GeneralizedBlackScholesProcessPtr *)  ((BlackScholesMertonProcessPtr *) x));
}
static void *_p_BlackProcessPtrTo_p_GeneralizedBlackScholesProcessPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((GeneralizedBlackScholesProcessPtr *)  ((BlackProcessPtr *) x));
}
static void *_p_GarmanKohlagenProcessPtrTo_p_GeneralizedBlackScholesProcessPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((GeneralizedBlackScholesProcessPtr *)  ((GarmanKohlagenProcessPtr *) x));
}
static void *_p_CeilingTruncationTo_p_Rounding(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Rounding *)  ((CeilingTruncation *) x));
}
static void *_p_FloorTruncationTo_p_Rounding(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Rounding *)  ((FloorTruncation *) x));
}
static void *_p_UpRoundingTo_p_Rounding(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Rounding *)  ((UpRounding *) x));
}
static void *_p_DownRoundingTo_p_Rounding(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Rounding *)  ((DownRounding *) x));
}
static void *_p_ClosestRoundingTo_p_Rounding(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Rounding *)  ((ClosestRounding *) x));
}
static void *_p_LevenbergMarquardtTo_p_OptimizationMethod(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OptimizationMethod *)  ((LevenbergMarquardt *) x));
}
static void *_p_DifferentialEvolutionTo_p_OptimizationMethod(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OptimizationMethod *)  ((DifferentialEvolution *) x));
}
static void *_p_GaussianSimulatedAnnealingTo_p_OptimizationMethod(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OptimizationMethod *)  ((GaussianSimulatedAnnealing *) x));
}
static void *_p_MirrorGaussianSimulatedAnnealingTo_p_OptimizationMethod(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OptimizationMethod *)  ((MirrorGaussianSimulatedAnnealing *) x));
}
static void *_p_LogNormalSimulatedAnnealingTo_p_OptimizationMethod(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OptimizationMethod *)  ((LogNormalSimulatedAnnealing *) x));
}
static void *_p_SimplexTo_p_OptimizationMethod(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OptimizationMethod *)  ((Simplex *) x));
}
static void *_p_SteepestDescentTo_p_OptimizationMethod(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OptimizationMethod *)  ((SteepestDescent *) x));
}
static void *_p_ConjugateGradientTo_p_OptimizationMethod(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OptimizationMethod *)  ((ConjugateGradient *) x));
}
static void *_p_BFGSTo_p_OptimizationMethod(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OptimizationMethod *)  ((BFGS *) x));
}
static void *_p_EURLibor2WPtrTo_p_EURLiborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EURLiborPtr *)  ((EURLibor2WPtr *) x));
}
static void *_p_EURLiborSWPtrTo_p_EURLiborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EURLiborPtr *)  ((EURLiborSWPtr *) x));
}
static void *_p_EURLibor1YPtrTo_p_EURLiborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EURLiborPtr *)  ((EURLibor1YPtr *) x));
}
static void *_p_EURLibor9MPtrTo_p_EURLiborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EURLiborPtr *)  ((EURLibor9MPtr *) x));
}
static void *_p_EURLibor8MPtrTo_p_EURLiborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EURLiborPtr *)  ((EURLibor8MPtr *) x));
}
static void *_p_EURLibor11MPtrTo_p_EURLiborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EURLiborPtr *)  ((EURLibor11MPtr *) x));
}
static void *_p_EURLibor7MPtrTo_p_EURLiborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EURLiborPtr *)  ((EURLibor7MPtr *) x));
}
static void *_p_EURLibor10MPtrTo_p_EURLiborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EURLiborPtr *)  ((EURLibor10MPtr *) x));
}
static void *_p_EURLibor6MPtrTo_p_EURLiborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EURLiborPtr *)  ((EURLibor6MPtr *) x));
}
static void *_p_EURLibor5MPtrTo_p_EURLiborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EURLiborPtr *)  ((EURLibor5MPtr *) x));
}
static void *_p_EURLibor4MPtrTo_p_EURLiborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EURLiborPtr *)  ((EURLibor4MPtr *) x));
}
static void *_p_EURLibor3MPtrTo_p_EURLiborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EURLiborPtr *)  ((EURLibor3MPtr *) x));
}
static void *_p_EURLibor2MPtrTo_p_EURLiborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EURLiborPtr *)  ((EURLibor2MPtr *) x));
}
static void *_p_EURLibor1MPtrTo_p_EURLiborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EURLiborPtr *)  ((EURLibor1MPtr *) x));
}
static void *_p_Euribor3WPtrTo_p_EuriborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EuriborPtr *)  ((Euribor3WPtr *) x));
}
static void *_p_Euribor2WPtrTo_p_EuriborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EuriborPtr *)  ((Euribor2WPtr *) x));
}
static void *_p_EuriborSWPtrTo_p_EuriborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EuriborPtr *)  ((EuriborSWPtr *) x));
}
static void *_p_Euribor1YPtrTo_p_EuriborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EuriborPtr *)  ((Euribor1YPtr *) x));
}
static void *_p_Euribor9MPtrTo_p_EuriborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EuriborPtr *)  ((Euribor9MPtr *) x));
}
static void *_p_Euribor8MPtrTo_p_EuriborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EuriborPtr *)  ((Euribor8MPtr *) x));
}
static void *_p_Euribor11MPtrTo_p_EuriborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EuriborPtr *)  ((Euribor11MPtr *) x));
}
static void *_p_Euribor7MPtrTo_p_EuriborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EuriborPtr *)  ((Euribor7MPtr *) x));
}
static void *_p_Euribor10MPtrTo_p_EuriborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EuriborPtr *)  ((Euribor10MPtr *) x));
}
static void *_p_Euribor6MPtrTo_p_EuriborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EuriborPtr *)  ((Euribor6MPtr *) x));
}
static void *_p_Euribor5MPtrTo_p_EuriborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EuriborPtr *)  ((Euribor5MPtr *) x));
}
static void *_p_Euribor4MPtrTo_p_EuriborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EuriborPtr *)  ((Euribor4MPtr *) x));
}
static void *_p_Euribor3MPtrTo_p_EuriborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EuriborPtr *)  ((Euribor3MPtr *) x));
}
static void *_p_Euribor2MPtrTo_p_EuriborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EuriborPtr *)  ((Euribor2MPtr *) x));
}
static void *_p_Euribor1MPtrTo_p_EuriborPtr(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((EuriborPtr *)  ((Euribor1MPtr *) x));
}
static void *_p_QuantLib__ITLCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::ITLCurrency *) x));
}
static void *_p_QuantLib__ISKCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::ISKCurrency *) x));
}
static void *_p_QuantLib__IRRCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::IRRCurrency *) x));
}
static void *_p_QuantLib__IQDCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::IQDCurrency *) x));
}
static void *_p_QuantLib__INRCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::INRCurrency *) x));
}
static void *_p_QuantLib__ILSCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::ILSCurrency *) x));
}
static void *_p_QuantLib__IDRCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::IDRCurrency *) x));
}
static void *_p_QuantLib__IEPCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::IEPCurrency *) x));
}
static void *_p_QuantLib__HUFCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::HUFCurrency *) x));
}
static void *_p_QuantLib__HKDCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::HKDCurrency *) x));
}
static void *_p_QuantLib__GRDCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::GRDCurrency *) x));
}
static void *_p_QuantLib__GBPCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::GBPCurrency *) x));
}
static void *_p_QuantLib__FRFCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::FRFCurrency *) x));
}
static void *_p_QuantLib__FIMCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::FIMCurrency *) x));
}
static void *_p_QuantLib__EURCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::EURCurrency *) x));
}
static void *_p_QuantLib__ESPCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::ESPCurrency *) x));
}
static void *_p_QuantLib__EEKCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::EEKCurrency *) x));
}
static void *_p_QuantLib__DKKCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::DKKCurrency *) x));
}
static void *_p_QuantLib__DEMCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::DEMCurrency *) x));
}
static void *_p_QuantLib__CZKCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::CZKCurrency *) x));
}
static void *_p_QuantLib__ARSCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::ARSCurrency *) x));
}
static void *_p_QuantLib__ATSCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::ATSCurrency *) x));
}
static void *_p_QuantLib__AUDCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::AUDCurrency *) x));
}
static void *_p_QuantLib__BDTCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::BDTCurrency *) x));
}
static void *_p_QuantLib__BEFCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::BEFCurrency *) x));
}
static void *_p_QuantLib__BGLCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::BGLCurrency *) x));
}
static void *_p_QuantLib__BRLCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::BRLCurrency *) x));
}
static void *_p_QuantLib__BYRCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::BYRCurrency *) x));
}
static void *_p_QuantLib__CADCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::CADCurrency *) x));
}
static void *_p_QuantLib__CHFCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::CHFCurrency *) x));
}
static void *_p_QuantLib__CLPCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::CLPCurrency *) x));
}
static void *_p_QuantLib__CNYCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::CNYCurrency *) x));
}
static void *_p_QuantLib__COPCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::COPCurrency *) x));
}
static void *_p_QuantLib__CYPCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::CYPCurrency *) x));
}
static void *_p_QuantLib__JPYCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::JPYCurrency *) x));
}
static void *_p_QuantLib__KRWCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::KRWCurrency *) x));
}
static void *_p_QuantLib__KWDCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::KWDCurrency *) x));
}
static void *_p_QuantLib__LTLCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::LTLCurrency *) x));
}
static void *_p_QuantLib__LUFCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::LUFCurrency *) x));
}
static void *_p_QuantLib__LVLCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::LVLCurrency *) x));
}
static void *_p_QuantLib__MTLCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::MTLCurrency *) x));
}
static void *_p_QuantLib__MXNCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::MXNCurrency *) x));
}
static void *_p_QuantLib__MYRCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::MYRCurrency *) x));
}
static void *_p_QuantLib__NLGCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::NLGCurrency *) x));
}
static void *_p_QuantLib__NOKCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::NOKCurrency *) x));
}
static void *_p_QuantLib__NPRCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::NPRCurrency *) x));
}
static void *_p_QuantLib__NZDCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::NZDCurrency *) x));
}
static void *_p_QuantLib__PEHCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::PEHCurrency *) x));
}
static void *_p_QuantLib__PEICurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::PEICurrency *) x));
}
static void *_p_QuantLib__PENCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::PENCurrency *) x));
}
static void *_p_QuantLib__PKRCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::PKRCurrency *) x));
}
static void *_p_QuantLib__PLNCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::PLNCurrency *) x));
}
static void *_p_QuantLib__PTECurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::PTECurrency *) x));
}
static void *_p_QuantLib__ROLCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::ROLCurrency *) x));
}
static void *_p_QuantLib__RONCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::RONCurrency *) x));
}
static void *_p_QuantLib__RUBCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::RUBCurrency *) x));
}
static void *_p_QuantLib__SARCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::SARCurrency *) x));
}
static void *_p_QuantLib__SEKCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::SEKCurrency *) x));
}
static void *_p_QuantLib__SGDCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::SGDCurrency *) x));
}
static void *_p_QuantLib__SITCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::SITCurrency *) x));
}
static void *_p_QuantLib__SKKCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::SKKCurrency *) x));
}
static void *_p_QuantLib__THBCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::THBCurrency *) x));
}
static void *_p_QuantLib__TRLCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::TRLCurrency *) x));
}
static void *_p_QuantLib__TRYCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::TRYCurrency *) x));
}
static void *_p_QuantLib__TTDCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::TTDCurrency *) x));
}
static void *_p_QuantLib__TWDCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::TWDCurrency *) x));
}
static void *_p_QuantLib__USDCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::USDCurrency *) x));
}
static void *_p_QuantLib__VEBCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::VEBCurrency *) x));
}
static void *_p_QuantLib__VNDCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::VNDCurrency *) x));
}
static void *_p_QuantLib__ZARCurrencyTo_p_Currency(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((Currency *)  ((QuantLib::ZARCurrency *) x));
}
static void *_p_MCDiscreteArithmeticAPEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((MCDiscreteArithmeticAPEnginePtr *) x));
}
static void *_p_QuantoForwardEuropeanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((QuantoForwardEuropeanEnginePtr *) x));
}
static void *_p_QuantoEuropeanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((QuantoEuropeanEnginePtr *) x));
}
static void *_p_ForwardEuropeanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((ForwardEuropeanEnginePtr *) x));
}
static void *_p_BinomialBarrierEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((BinomialBarrierEnginePtr *) x));
}
static void *_p_AnalyticBinaryBarrierEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((AnalyticBinaryBarrierEnginePtr *) x));
}
static void *_p_FdBlackScholesBarrierEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((FdBlackScholesBarrierEnginePtr *) x));
}
static void *_p_MCBarrierEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((MCBarrierEnginePtr *) x));
}
static void *_p_AnalyticBarrierEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((AnalyticBarrierEnginePtr *) x));
}
static void *_p_FDDividendAmericanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((FDDividendAmericanEnginePtr *) x));
}
static void *_p_FDDividendEuropeanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((FDDividendEuropeanEnginePtr *) x));
}
static void *_p_AnalyticDividendEuropeanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((AnalyticDividendEuropeanEnginePtr *) x));
}
static void *_p_AnalyticDigitalAmericanKOEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((AnalyticDigitalAmericanKOEnginePtr *) x));
}
static void *_p_AnalyticDigitalAmericanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((AnalyticDigitalAmericanEnginePtr *) x));
}
static void *_p_BjerksundStenslandApproximationEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((BjerksundStenslandApproximationEnginePtr *) x));
}
static void *_p_BaroneAdesiWhaleyApproximationEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((BaroneAdesiWhaleyApproximationEnginePtr *) x));
}
static void *_p_FDShoutEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((FDShoutEnginePtr *) x));
}
static void *_p_AnalyticEuropeanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((AnalyticEuropeanEnginePtr *) x));
}
static void *_p_AnalyticHestonEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((AnalyticHestonEnginePtr *) x));
}
static void *_p_AnalyticPTDHestonEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((AnalyticPTDHestonEnginePtr *) x));
}
static void *_p_BatesEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((BatesEnginePtr *) x));
}
static void *_p_IntegralEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((IntegralEnginePtr *) x));
}
static void *_p_FDBermudanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((FDBermudanEnginePtr *) x));
}
static void *_p_FDEuropeanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((FDEuropeanEnginePtr *) x));
}
static void *_p_BinomialVanillaEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((BinomialVanillaEnginePtr *) x));
}
static void *_p_MCEuropeanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((MCEuropeanEnginePtr *) x));
}
static void *_p_FDAmericanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((FDAmericanEnginePtr *) x));
}
static void *_p_FdBlackScholesVanillaEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((FdBlackScholesVanillaEnginePtr *) x));
}
static void *_p_FdBatesVanillaEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((FdBatesVanillaEnginePtr *) x));
}
static void *_p_ContinuousArithmeticAsianLevyEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((ContinuousArithmeticAsianLevyEnginePtr *) x));
}
static void *_p_FdBlackScholesAsianEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((FdBlackScholesAsianEnginePtr *) x));
}
static void *_p_MCDiscreteArithmeticASEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((MCDiscreteArithmeticASEnginePtr *) x));
}
static void *_p_MCDiscreteGeometricAPEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((MCDiscreteGeometricAPEnginePtr *) x));
}
static void *_p_VarianceGammaEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((VarianceGammaEnginePtr *) x));
}
static void *_p_FFTVarianceGammaEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((FFTVarianceGammaEnginePtr *) x));
}
static void *_p_AnalyticDoubleBarrierEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((AnalyticDoubleBarrierEnginePtr *) x));
}
static void *_p_WulinYongDoubleBarrierEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((WulinYongDoubleBarrierEnginePtr *) x));
}
static void *_p_VannaVolgaDoubleBarrierEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((VannaVolgaDoubleBarrierEnginePtr *) x));
}
static void *_p_AnalyticDoubleBarrierBinaryEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((AnalyticDoubleBarrierBinaryEnginePtr *) x));
}
static void *_p_BinomialDoubleBarrierEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((BinomialDoubleBarrierEnginePtr *) x));
}
static void *_p_MCEuropeanBasketEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((MCEuropeanBasketEnginePtr *) x));
}
static void *_p_MCAmericanBasketEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((MCAmericanBasketEnginePtr *) x));
}
static void *_p_StulzEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((StulzEnginePtr *) x));
}
static void *_p_MCEverestEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((MCEverestEnginePtr *) x));
}
static void *_p_MCHimalayaEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((MCHimalayaEnginePtr *) x));
}
static void *_p_JamshidianSwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((JamshidianSwaptionEnginePtr *) x));
}
static void *_p_TreeSwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((TreeSwaptionEnginePtr *) x));
}
static void *_p_AnalyticCapFloorEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((AnalyticCapFloorEnginePtr *) x));
}
static void *_p_TreeCapFloorEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((TreeCapFloorEnginePtr *) x));
}
static void *_p_G2SwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((G2SwaptionEnginePtr *) x));
}
static void *_p_FdG2SwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((FdG2SwaptionEnginePtr *) x));
}
static void *_p_FdHullWhiteSwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((FdHullWhiteSwaptionEnginePtr *) x));
}
static void *_p_DiscountingBondEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((DiscountingBondEnginePtr *) x));
}
static void *_p_TreeCallableFixedRateBondEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((TreeCallableFixedRateBondEnginePtr *) x));
}
static void *_p_BlackCallableFixedRateBondEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((BlackCallableFixedRateBondEnginePtr *) x));
}
static void *_p_BlackCapFloorEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((BlackCapFloorEnginePtr *) x));
}
static void *_p_BachelierCapFloorEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((BachelierCapFloorEnginePtr *) x));
}
static void *_p_BinomialConvertibleEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((BinomialConvertibleEnginePtr *) x));
}
static void *_p_MidPointCdsEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((MidPointCdsEnginePtr *) x));
}
static void *_p_IntegralCdsEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((IntegralCdsEnginePtr *) x));
}
static void *_p_DiscountingSwapEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((DiscountingSwapEnginePtr *) x));
}
static void *_p_Gaussian1dSwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((Gaussian1dSwaptionEnginePtr *) x));
}
static void *_p_Gaussian1dJamshidianSwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((Gaussian1dJamshidianSwaptionEnginePtr *) x));
}
static void *_p_Gaussian1dNonstandardSwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((Gaussian1dNonstandardSwaptionEnginePtr *) x));
}
static void *_p_Gaussian1dFloatFloatSwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((Gaussian1dFloatFloatSwaptionEnginePtr *) x));
}
static void *_p_BlackSwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((BlackSwaptionEnginePtr *) x));
}
static void *_p_BachelierSwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((BachelierSwaptionEnginePtr *) x));
}
static void *_p_AnalyticDiscreteGeometricAverageStrikeAsianEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr *) x));
}
static void *_p_AnalyticContinuousGeometricAveragePriceAsianEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((AnalyticContinuousGeometricAveragePriceAsianEnginePtr *) x));
}
static void *_p_AnalyticDiscreteGeometricAveragePriceAsianEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((boost::shared_ptr< PricingEngine > *)  ((AnalyticDiscreteGeometricAveragePriceAsianEnginePtr *) x));
}
static swig_type_info _swigt__p_ASX = {"_p_ASX", "ASX *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AUDLiborPtr = {"_p_AUDLiborPtr", "AUDLiborPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AmericanExercisePtr = {"_p_AmericanExercisePtr", "AmericanExercisePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AmortizingPaymentPtr = {"_p_AmortizingPaymentPtr", "AmortizingPaymentPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AnalyticBarrierEnginePtr = {"_p_AnalyticBarrierEnginePtr", "AnalyticBarrierEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AnalyticBinaryBarrierEnginePtr = {"_p_AnalyticBinaryBarrierEnginePtr", "AnalyticBinaryBarrierEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AnalyticCapFloorEnginePtr = {"_p_AnalyticCapFloorEnginePtr", "AnalyticCapFloorEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AnalyticContinuousGeometricAveragePriceAsianEnginePtr = {"_p_AnalyticContinuousGeometricAveragePriceAsianEnginePtr", "AnalyticContinuousGeometricAveragePriceAsianEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AnalyticDigitalAmericanEnginePtr = {"_p_AnalyticDigitalAmericanEnginePtr", "AnalyticDigitalAmericanEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AnalyticDigitalAmericanKOEnginePtr = {"_p_AnalyticDigitalAmericanKOEnginePtr", "AnalyticDigitalAmericanKOEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AnalyticDiscreteGeometricAveragePriceAsianEnginePtr = {"_p_AnalyticDiscreteGeometricAveragePriceAsianEnginePtr", "AnalyticDiscreteGeometricAveragePriceAsianEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr = {"_p_AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr", "AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AnalyticDividendEuropeanEnginePtr = {"_p_AnalyticDividendEuropeanEnginePtr", "AnalyticDividendEuropeanEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AnalyticDoubleBarrierBinaryEnginePtr = {"_p_AnalyticDoubleBarrierBinaryEnginePtr", "AnalyticDoubleBarrierBinaryEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AnalyticDoubleBarrierEnginePtr = {"_p_AnalyticDoubleBarrierEnginePtr", "AnalyticDoubleBarrierEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AnalyticEuropeanEnginePtr = {"_p_AnalyticEuropeanEnginePtr", "AnalyticEuropeanEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AnalyticHaganPricerPtr = {"_p_AnalyticHaganPricerPtr", "AnalyticHaganPricerPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AnalyticHestonEnginePtr = {"_p_AnalyticHestonEnginePtr", "AnalyticHestonEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AnalyticPTDHestonEnginePtr = {"_p_AnalyticPTDHestonEnginePtr", "AnalyticPTDHestonEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AoniaPtr = {"_p_AoniaPtr", "AoniaPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Array = {"_p_Array", "Array *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AssetOrNothingPayoffPtr = {"_p_AssetOrNothingPayoffPtr", "AssetOrNothingPayoffPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AssetSwapPtr = {"_p_AssetSwapPtr", "AssetSwapPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Average = {"_p_Average", "Average *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AverageBasketPayoffPtr = {"_p_AverageBasketPayoffPtr", "AverageBasketPayoffPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BFGS = {"_p_BFGS", "BFGS *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BachelierCapFloorEnginePtr = {"_p_BachelierCapFloorEnginePtr", "BachelierCapFloorEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BachelierSwaptionEnginePtr = {"_p_BachelierSwaptionEnginePtr", "BachelierSwaptionEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BackwardFlat = {"_p_BackwardFlat", "BackwardFlat *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BackwardFlatZeroCurvePtr = {"_p_BackwardFlatZeroCurvePtr", "BackwardFlatZeroCurvePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BaroneAdesiWhaleyApproximationEnginePtr = {"_p_BaroneAdesiWhaleyApproximationEnginePtr", "BaroneAdesiWhaleyApproximationEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Barrier = {"_p_Barrier", "Barrier *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BarrierOptionPtr = {"_p_BarrierOptionPtr", "BarrierOptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BasketOptionPtr = {"_p_BasketOptionPtr", "BasketOptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BasketPayoffPtr = {"_p_BasketPayoffPtr", "BasketPayoffPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BatesEnginePtr = {"_p_BatesEnginePtr", "BatesEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BatesModelPtr = {"_p_BatesModelPtr", "BatesModelPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BatesProcessPtr = {"_p_BatesProcessPtr", "BatesProcessPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Bbsw1MPtr = {"_p_Bbsw1MPtr", "Bbsw1MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Bbsw2MPtr = {"_p_Bbsw2MPtr", "Bbsw2MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Bbsw3MPtr = {"_p_Bbsw3MPtr", "Bbsw3MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Bbsw4MPtr = {"_p_Bbsw4MPtr", "Bbsw4MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Bbsw5MPtr = {"_p_Bbsw5MPtr", "Bbsw5MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Bbsw6MPtr = {"_p_Bbsw6MPtr", "Bbsw6MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BbswPtr = {"_p_BbswPtr", "BbswPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BermudanExercisePtr = {"_p_BermudanExercisePtr", "BermudanExercisePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BinomialBarrierEnginePtr = {"_p_BinomialBarrierEnginePtr", "BinomialBarrierEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BinomialConvertibleEnginePtr = {"_p_BinomialConvertibleEnginePtr", "BinomialConvertibleEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BinomialDistribution = {"_p_BinomialDistribution", "BinomialDistribution *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BinomialDoubleBarrierEnginePtr = {"_p_BinomialDoubleBarrierEnginePtr", "BinomialDoubleBarrierEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BinomialVanillaEnginePtr = {"_p_BinomialVanillaEnginePtr", "BinomialVanillaEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Bisection = {"_p_Bisection", "Bisection *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BivariateCumulativeNormalDistribution = {"_p_BivariateCumulativeNormalDistribution", "BivariateCumulativeNormalDistribution *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BivariateCumulativeNormalDistributionDr78 = {"_p_BivariateCumulativeNormalDistributionDr78", "BivariateCumulativeNormalDistributionDr78 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BivariateCumulativeNormalDistributionWe04DP = {"_p_BivariateCumulativeNormalDistributionWe04DP", "BivariateCumulativeNormalDistributionWe04DP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BjerksundStenslandApproximationEnginePtr = {"_p_BjerksundStenslandApproximationEnginePtr", "BjerksundStenslandApproximationEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Bkbm1MPtr = {"_p_Bkbm1MPtr", "Bkbm1MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Bkbm2MPtr = {"_p_Bkbm2MPtr", "Bkbm2MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Bkbm3MPtr = {"_p_Bkbm3MPtr", "Bkbm3MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Bkbm4MPtr = {"_p_Bkbm4MPtr", "Bkbm4MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Bkbm5MPtr = {"_p_Bkbm5MPtr", "Bkbm5MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Bkbm6MPtr = {"_p_Bkbm6MPtr", "Bkbm6MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BkbmPtr = {"_p_BkbmPtr", "BkbmPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BlackCalculator = {"_p_BlackCalculator", "BlackCalculator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BlackCallableFixedRateBondEnginePtr = {"_p_BlackCallableFixedRateBondEnginePtr", "BlackCallableFixedRateBondEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BlackCapFloorEnginePtr = {"_p_BlackCapFloorEnginePtr", "BlackCapFloorEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BlackConstantVolPtr = {"_p_BlackConstantVolPtr", "BlackConstantVolPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BlackDeltaCalculator = {"_p_BlackDeltaCalculator", "BlackDeltaCalculator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BlackIborCouponPricerPtr = {"_p_BlackIborCouponPricerPtr", "BlackIborCouponPricerPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BlackKarasinskiPtr = {"_p_BlackKarasinskiPtr", "BlackKarasinskiPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BlackProcessPtr = {"_p_BlackProcessPtr", "BlackProcessPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BlackScholesMertonProcessPtr = {"_p_BlackScholesMertonProcessPtr", "BlackScholesMertonProcessPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BlackScholesProcessPtr = {"_p_BlackScholesProcessPtr", "BlackScholesProcessPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BlackSwaptionEnginePtr = {"_p_BlackSwaptionEnginePtr", "BlackSwaptionEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BlackVarianceCurvePtr = {"_p_BlackVarianceCurvePtr", "BlackVarianceCurvePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BlackVarianceSurfacePtr = {"_p_BlackVarianceSurfacePtr", "BlackVarianceSurfacePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BlackVolTermStructure = {"_p_BlackVolTermStructure", "BlackVolTermStructure *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BondFunctions = {"_p_BondFunctions", "BondFunctions *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BondHelperPtr = {"_p_BondHelperPtr", "BondHelperPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BondPtr = {"_p_BondPtr", "BondPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BoundaryConstraint = {"_p_BoundaryConstraint", "BoundaryConstraint *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BoxMullerGaussianRngT_KnuthUniformRng_t = {"_p_BoxMullerGaussianRngT_KnuthUniformRng_t", "BoxMullerGaussianRng< KnuthUniformRng > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BoxMullerGaussianRngT_LecuyerUniformRng_t = {"_p_BoxMullerGaussianRngT_LecuyerUniformRng_t", "BoxMullerGaussianRng< LecuyerUniformRng > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BoxMullerGaussianRngT_MersenneTwisterUniformRng_t = {"_p_BoxMullerGaussianRngT_MersenneTwisterUniformRng_t", "BoxMullerGaussianRng< MersenneTwisterUniformRng > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Brent = {"_p_Brent", "Brent *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BrownianBridge = {"_p_BrownianBridge", "BrownianBridge *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CADLiborPtr = {"_p_CADLiborPtr", "CADLiborPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CHFLiborPtr = {"_p_CHFLiborPtr", "CHFLiborPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CLGaussianRngT_KnuthUniformRng_t = {"_p_CLGaussianRngT_KnuthUniformRng_t", "CLGaussianRng< KnuthUniformRng > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CLGaussianRngT_LecuyerUniformRng_t = {"_p_CLGaussianRngT_LecuyerUniformRng_t", "CLGaussianRng< LecuyerUniformRng > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CLGaussianRngT_MersenneTwisterUniformRng_t = {"_p_CLGaussianRngT_MersenneTwisterUniformRng_t", "CLGaussianRng< MersenneTwisterUniformRng > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CPI = {"_p_CPI", "CPI *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CPIBondPtr = {"_p_CPIBondPtr", "CPIBondPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Calendar = {"_p_Calendar", "Calendar *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CalibratedModel = {"_p_CalibratedModel", "CalibratedModel *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CalibrationHelper = {"_p_CalibrationHelper", "CalibrationHelper *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Callability = {"_p_Callability", "Callability *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CallabilityPrice = {"_p_CallabilityPrice", "CallabilityPrice *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CallableFixedRateBondPtr = {"_p_CallableFixedRateBondPtr", "CallableFixedRateBondPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CapFloorPtr = {"_p_CapFloorPtr", "CapFloorPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CapFloorTermVolCurvePtr = {"_p_CapFloorTermVolCurvePtr", "CapFloorTermVolCurvePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CapFloorTermVolSurfacePtr = {"_p_CapFloorTermVolSurfacePtr", "CapFloorTermVolSurfacePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CapFloorTermVolatilityStructure = {"_p_CapFloorTermVolatilityStructure", "CapFloorTermVolatilityStructure *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CapHelperPtr = {"_p_CapHelperPtr", "CapHelperPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CapPtr = {"_p_CapPtr", "CapPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CappedFlooredCmsCouponPtr = {"_p_CappedFlooredCmsCouponPtr", "CappedFlooredCmsCouponPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CappedFlooredCouponPtr = {"_p_CappedFlooredCouponPtr", "CappedFlooredCouponPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CashFlow = {"_p_CashFlow", "CashFlow *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CashFlows = {"_p_CashFlows", "CashFlows *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CashOrNothingPayoffPtr = {"_p_CashOrNothingPayoffPtr", "CashOrNothingPayoffPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CdorPtr = {"_p_CdorPtr", "CdorPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CeilingTruncation = {"_p_CeilingTruncation", "CeilingTruncation *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ClosestRounding = {"_p_ClosestRounding", "ClosestRounding *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CmsCouponPricerPtr = {"_p_CmsCouponPricerPtr", "CmsCouponPricerPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CmsCouponPtr = {"_p_CmsCouponPtr", "CmsCouponPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CmsRateBondPtr = {"_p_CmsRateBondPtr", "CmsRateBondPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CollarPtr = {"_p_CollarPtr", "CollarPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CompositeConstraint = {"_p_CompositeConstraint", "CompositeConstraint *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CompositeInstrumentPtr = {"_p_CompositeInstrumentPtr", "CompositeInstrumentPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CompositeQuotePtr = {"_p_CompositeQuotePtr", "CompositeQuotePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ConjugateGradient = {"_p_ConjugateGradient", "ConjugateGradient *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ConstantEstimator = {"_p_ConstantEstimator", "ConstantEstimator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ConstantOptionletVolatilityPtr = {"_p_ConstantOptionletVolatilityPtr", "ConstantOptionletVolatilityPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ConstantParameter = {"_p_ConstantParameter", "ConstantParameter *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ConstantSwaptionVolatilityPtr = {"_p_ConstantSwaptionVolatilityPtr", "ConstantSwaptionVolatilityPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Constraint = {"_p_Constraint", "Constraint *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ContinuousArithmeticAsianLevyEnginePtr = {"_p_ContinuousArithmeticAsianLevyEnginePtr", "ContinuousArithmeticAsianLevyEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ContinuousAveragingAsianOptionPtr = {"_p_ContinuousAveragingAsianOptionPtr", "ContinuousAveragingAsianOptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ConvertibleFixedCouponBondPtr = {"_p_ConvertibleFixedCouponBondPtr", "ConvertibleFixedCouponBondPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ConvertibleFloatingRateBondPtr = {"_p_ConvertibleFloatingRateBondPtr", "ConvertibleFloatingRateBondPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ConvertibleZeroCouponBondPtr = {"_p_ConvertibleZeroCouponBondPtr", "ConvertibleZeroCouponBondPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CouponPtr = {"_p_CouponPtr", "CouponPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CreditDefaultSwapPtr = {"_p_CreditDefaultSwapPtr", "CreditDefaultSwapPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Cubic = {"_p_Cubic", "Cubic *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CubicBSplinesFitting = {"_p_CubicBSplinesFitting", "CubicBSplinesFitting *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CubicZeroCurvePtr = {"_p_CubicZeroCurvePtr", "CubicZeroCurvePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CumulativeBinomialDistribution = {"_p_CumulativeBinomialDistribution", "CumulativeBinomialDistribution *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CumulativeChiSquareDistribution = {"_p_CumulativeChiSquareDistribution", "CumulativeChiSquareDistribution *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CumulativeGammaDistribution = {"_p_CumulativeGammaDistribution", "CumulativeGammaDistribution *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CumulativeNormalDistribution = {"_p_CumulativeNormalDistribution", "CumulativeNormalDistribution *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CumulativePoissonDistribution = {"_p_CumulativePoissonDistribution", "CumulativePoissonDistribution *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CumulativeStudentDistribution = {"_p_CumulativeStudentDistribution", "CumulativeStudentDistribution *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Currency = {"_p_Currency", "Currency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CustomRegion = {"_p_CustomRegion", "CustomRegion *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DKKLiborPtr = {"_p_DKKLiborPtr", "DKKLiborPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DMinus = {"_p_DMinus", "DMinus *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DPlus = {"_p_DPlus", "DPlus *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DPlusDMinus = {"_p_DPlusDMinus", "DPlusDMinus *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DZero = {"_p_DZero", "DZero *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Date = {"_p_Date", "std::vector< Date >::value_type *|Date *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DateGeneration = {"_p_DateGeneration", "DateGeneration *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DateParser = {"_p_DateParser", "DateParser *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DatedOISRateHelperPtr = {"_p_DatedOISRateHelperPtr", "DatedOISRateHelperPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DayCounter = {"_p_DayCounter", "DayCounter *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DefaultBoundaryCondition = {"_p_DefaultBoundaryCondition", "DefaultBoundaryCondition *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DefaultDensity = {"_p_DefaultDensity", "DefaultDensity *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DefaultDensityCurvePtr = {"_p_DefaultDensityCurvePtr", "DefaultDensityCurvePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DefaultLexicographicalView = {"_p_DefaultLexicographicalView", "DefaultLexicographicalView *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DefaultLexicographicalViewColumn = {"_p_DefaultLexicographicalViewColumn", "DefaultLexicographicalViewColumn *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DefaultLogCubic = {"_p_DefaultLogCubic", "DefaultLogCubic *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DefaultProbabilityHelper = {"_p_DefaultProbabilityHelper", "DefaultProbabilityHelper *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DefaultProbabilityTermStructure = {"_p_DefaultProbabilityTermStructure", "DefaultProbabilityTermStructure *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DeltaVolQuote = {"_p_DeltaVolQuote", "DeltaVolQuote *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DepositRateHelperPtr = {"_p_DepositRateHelperPtr", "DepositRateHelperPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DerivedQuotePtr = {"_p_DerivedQuotePtr", "DerivedQuotePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DifferentialEvolution = {"_p_DifferentialEvolution", "DifferentialEvolution *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DirichletBCPtr = {"_p_DirichletBCPtr", "DirichletBCPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Discount = {"_p_Discount", "Discount *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DiscountCurvePtr = {"_p_DiscountCurvePtr", "DiscountCurvePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DiscountingBondEnginePtr = {"_p_DiscountingBondEnginePtr", "DiscountingBondEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DiscountingSwapEnginePtr = {"_p_DiscountingSwapEnginePtr", "DiscountingSwapEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DiscreteAveragingAsianOptionPtr = {"_p_DiscreteAveragingAsianOptionPtr", "DiscreteAveragingAsianOptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Dividend = {"_p_Dividend", "Dividend *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DividendVanillaOptionPtr = {"_p_DividendVanillaOptionPtr", "DividendVanillaOptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DoubleBarrier = {"_p_DoubleBarrier", "DoubleBarrier *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DoubleBarrierOptionPtr = {"_p_DoubleBarrierOptionPtr", "DoubleBarrierOptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DownRounding = {"_p_DownRounding", "DownRounding *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Duration = {"_p_Duration", "Duration *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EUHICPPtr = {"_p_EUHICPPtr", "EUHICPPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EUHICPXTPtr = {"_p_EUHICPXTPtr", "EUHICPXTPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EURLibor10MPtr = {"_p_EURLibor10MPtr", "EURLibor10MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EURLibor11MPtr = {"_p_EURLibor11MPtr", "EURLibor11MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EURLibor1MPtr = {"_p_EURLibor1MPtr", "EURLibor1MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EURLibor1YPtr = {"_p_EURLibor1YPtr", "EURLibor1YPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EURLibor2MPtr = {"_p_EURLibor2MPtr", "EURLibor2MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EURLibor2WPtr = {"_p_EURLibor2WPtr", "EURLibor2WPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EURLibor3MPtr = {"_p_EURLibor3MPtr", "EURLibor3MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EURLibor4MPtr = {"_p_EURLibor4MPtr", "EURLibor4MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EURLibor5MPtr = {"_p_EURLibor5MPtr", "EURLibor5MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EURLibor6MPtr = {"_p_EURLibor6MPtr", "EURLibor6MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EURLibor7MPtr = {"_p_EURLibor7MPtr", "EURLibor7MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EURLibor8MPtr = {"_p_EURLibor8MPtr", "EURLibor8MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EURLibor9MPtr = {"_p_EURLibor9MPtr", "EURLibor9MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EURLiborPtr = {"_p_EURLiborPtr", "EURLiborPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EURLiborSWPtr = {"_p_EURLiborSWPtr", "EURLiborSWPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EndCriteria = {"_p_EndCriteria", "EndCriteria *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EndCriteria__Type = {"_p_EndCriteria__Type", "enum EndCriteria::Type *|EndCriteria::Type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EoniaPtr = {"_p_EoniaPtr", "EoniaPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EurLiborSwapIfrFixPtr = {"_p_EurLiborSwapIfrFixPtr", "EurLiborSwapIfrFixPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EurLiborSwapIsdaFixAPtr = {"_p_EurLiborSwapIsdaFixAPtr", "EurLiborSwapIsdaFixAPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EurLiborSwapIsdaFixBPtr = {"_p_EurLiborSwapIsdaFixBPtr", "EurLiborSwapIsdaFixBPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor10MPtr = {"_p_Euribor10MPtr", "Euribor10MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor11MPtr = {"_p_Euribor11MPtr", "Euribor11MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor1MPtr = {"_p_Euribor1MPtr", "Euribor1MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor1YPtr = {"_p_Euribor1YPtr", "Euribor1YPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor2MPtr = {"_p_Euribor2MPtr", "Euribor2MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor2WPtr = {"_p_Euribor2WPtr", "Euribor2WPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor365Ptr = {"_p_Euribor365Ptr", "Euribor365Ptr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor365_10MPtr = {"_p_Euribor365_10MPtr", "Euribor365_10MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor365_11MPtr = {"_p_Euribor365_11MPtr", "Euribor365_11MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor365_1MPtr = {"_p_Euribor365_1MPtr", "Euribor365_1MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor365_1YPtr = {"_p_Euribor365_1YPtr", "Euribor365_1YPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor365_2MPtr = {"_p_Euribor365_2MPtr", "Euribor365_2MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor365_2WPtr = {"_p_Euribor365_2WPtr", "Euribor365_2WPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor365_3MPtr = {"_p_Euribor365_3MPtr", "Euribor365_3MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor365_3WPtr = {"_p_Euribor365_3WPtr", "Euribor365_3WPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor365_4MPtr = {"_p_Euribor365_4MPtr", "Euribor365_4MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor365_5MPtr = {"_p_Euribor365_5MPtr", "Euribor365_5MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor365_6MPtr = {"_p_Euribor365_6MPtr", "Euribor365_6MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor365_7MPtr = {"_p_Euribor365_7MPtr", "Euribor365_7MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor365_8MPtr = {"_p_Euribor365_8MPtr", "Euribor365_8MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor365_9MPtr = {"_p_Euribor365_9MPtr", "Euribor365_9MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor365_SWPtr = {"_p_Euribor365_SWPtr", "Euribor365_SWPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor3MPtr = {"_p_Euribor3MPtr", "Euribor3MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor3WPtr = {"_p_Euribor3WPtr", "Euribor3WPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor4MPtr = {"_p_Euribor4MPtr", "Euribor4MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor5MPtr = {"_p_Euribor5MPtr", "Euribor5MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor6MPtr = {"_p_Euribor6MPtr", "Euribor6MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor7MPtr = {"_p_Euribor7MPtr", "Euribor7MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor8MPtr = {"_p_Euribor8MPtr", "Euribor8MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Euribor9MPtr = {"_p_Euribor9MPtr", "Euribor9MPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EuriborPtr = {"_p_EuriborPtr", "EuriborPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EuriborSWPtr = {"_p_EuriborSWPtr", "EuriborSWPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EuriborSwapIfrFixPtr = {"_p_EuriborSwapIfrFixPtr", "EuriborSwapIfrFixPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EuriborSwapIsdaFixAPtr = {"_p_EuriborSwapIsdaFixAPtr", "EuriborSwapIsdaFixAPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EuriborSwapIsdaFixBPtr = {"_p_EuriborSwapIsdaFixBPtr", "EuriborSwapIsdaFixBPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EuropeanExercisePtr = {"_p_EuropeanExercisePtr", "EuropeanExercisePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EuropeanOptionPtr = {"_p_EuropeanOptionPtr", "EuropeanOptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EverestOptionPtr = {"_p_EverestOptionPtr", "EverestOptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ExchangeRate = {"_p_ExchangeRate", "ExchangeRate *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ExchangeRateManager = {"_p_ExchangeRateManager", "ExchangeRateManager *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Exercise = {"_p_Exercise", "Exercise *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ExponentialSplinesFitting = {"_p_ExponentialSplinesFitting", "ExponentialSplinesFitting *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Extrapolator = {"_p_Extrapolator", "Extrapolator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FDAmericanEnginePtr = {"_p_FDAmericanEnginePtr", "FDAmericanEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FDBermudanEnginePtr = {"_p_FDBermudanEnginePtr", "FDBermudanEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FDDividendAmericanEnginePtr = {"_p_FDDividendAmericanEnginePtr", "FDDividendAmericanEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FDDividendEuropeanEnginePtr = {"_p_FDDividendEuropeanEnginePtr", "FDDividendEuropeanEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FDEuropeanEnginePtr = {"_p_FDEuropeanEnginePtr", "FDEuropeanEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FDShoutEnginePtr = {"_p_FDShoutEnginePtr", "FDShoutEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FFTVarianceGammaEnginePtr = {"_p_FFTVarianceGammaEnginePtr", "FFTVarianceGammaEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FRHICPPtr = {"_p_FRHICPPtr", "FRHICPPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FalsePosition = {"_p_FalsePosition", "FalsePosition *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FdBatesVanillaEnginePtr = {"_p_FdBatesVanillaEnginePtr", "FdBatesVanillaEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FdBlackScholesAsianEnginePtr = {"_p_FdBlackScholesAsianEnginePtr", "FdBlackScholesAsianEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FdBlackScholesBarrierEnginePtr = {"_p_FdBlackScholesBarrierEnginePtr", "FdBlackScholesBarrierEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FdBlackScholesVanillaEnginePtr = {"_p_FdBlackScholesVanillaEnginePtr", "FdBlackScholesVanillaEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FdG2SwaptionEnginePtr = {"_p_FdG2SwaptionEnginePtr", "FdG2SwaptionEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FdHullWhiteSwaptionEnginePtr = {"_p_FdHullWhiteSwaptionEnginePtr", "FdHullWhiteSwaptionEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FdmSchemeDesc = {"_p_FdmSchemeDesc", "FdmSchemeDesc *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FedFundsPtr = {"_p_FedFundsPtr", "FedFundsPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FittedBondDiscountCurvePtr = {"_p_FittedBondDiscountCurvePtr", "FittedBondDiscountCurvePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FittingMethod = {"_p_FittingMethod", "FittingMethod *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FixedDividendPtr = {"_p_FixedDividendPtr", "FixedDividendPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FixedRateBondForwardPtr = {"_p_FixedRateBondForwardPtr", "FixedRateBondForwardPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FixedRateBondHelperPtr = {"_p_FixedRateBondHelperPtr", "FixedRateBondHelperPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FixedRateBondPtr = {"_p_FixedRateBondPtr", "FixedRateBondPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FixedRateCouponPtr = {"_p_FixedRateCouponPtr", "FixedRateCouponPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FlatForwardPtr = {"_p_FlatForwardPtr", "FlatForwardPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FlatHazardRatePtr = {"_p_FlatHazardRatePtr", "FlatHazardRatePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FloatFloatSwapPtr = {"_p_FloatFloatSwapPtr", "FloatFloatSwapPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FloatFloatSwaptionPtr = {"_p_FloatFloatSwaptionPtr", "FloatFloatSwaptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FloatingRateBondPtr = {"_p_FloatingRateBondPtr", "FloatingRateBondPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FloatingRateCouponPricer = {"_p_FloatingRateCouponPricer", "FloatingRateCouponPricer *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FloatingRateCouponPtr = {"_p_FloatingRateCouponPtr", "FloatingRateCouponPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FloorPtr = {"_p_FloorPtr", "FloorPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FloorTruncation = {"_p_FloorTruncation", "FloorTruncation *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ForwardCurvePtr = {"_p_ForwardCurvePtr", "ForwardCurvePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ForwardEuropeanEnginePtr = {"_p_ForwardEuropeanEnginePtr", "ForwardEuropeanEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ForwardFlat = {"_p_ForwardFlat", "ForwardFlat *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ForwardFlatZeroCurvePtr = {"_p_ForwardFlatZeroCurvePtr", "ForwardFlatZeroCurvePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ForwardPtr = {"_p_ForwardPtr", "ForwardPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ForwardRate = {"_p_ForwardRate", "ForwardRate *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ForwardRateAgreementPtr = {"_p_ForwardRateAgreementPtr", "ForwardRateAgreementPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ForwardSpreadedTermStructurePtr = {"_p_ForwardSpreadedTermStructurePtr", "ForwardSpreadedTermStructurePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ForwardVanillaOptionPtr = {"_p_ForwardVanillaOptionPtr", "ForwardVanillaOptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FraRateHelperPtr = {"_p_FraRateHelperPtr", "FraRateHelperPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FractionalDividendPtr = {"_p_FractionalDividendPtr", "FractionalDividendPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Futures = {"_p_Futures", "Futures *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FuturesRateHelperPtr = {"_p_FuturesRateHelperPtr", "FuturesRateHelperPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FxSwapRateHelperPtr = {"_p_FxSwapRateHelperPtr", "FxSwapRateHelperPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_G2Ptr = {"_p_G2Ptr", "G2Ptr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_G2SwaptionEnginePtr = {"_p_G2SwaptionEnginePtr", "G2SwaptionEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GBPLiborPtr = {"_p_GBPLiborPtr", "GBPLiborPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GFunctionFactory = {"_p_GFunctionFactory", "GFunctionFactory *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GammaFunction = {"_p_GammaFunction", "GammaFunction *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GapPayoffPtr = {"_p_GapPayoffPtr", "GapPayoffPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GarmanKlassSigma1 = {"_p_GarmanKlassSigma1", "GarmanKlassSigma1 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GarmanKlassSigma3 = {"_p_GarmanKlassSigma3", "GarmanKlassSigma3 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GarmanKlassSigma4 = {"_p_GarmanKlassSigma4", "GarmanKlassSigma4 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GarmanKlassSigma5 = {"_p_GarmanKlassSigma5", "GarmanKlassSigma5 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GarmanKlassSigma6 = {"_p_GarmanKlassSigma6", "GarmanKlassSigma6 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GarmanKohlagenProcessPtr = {"_p_GarmanKohlagenProcessPtr", "GarmanKohlagenProcessPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GaussChebyshev2ndIntegration = {"_p_GaussChebyshev2ndIntegration", "GaussChebyshev2ndIntegration *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GaussChebyshevIntegration = {"_p_GaussChebyshevIntegration", "GaussChebyshevIntegration *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GaussGegenbauerIntegration = {"_p_GaussGegenbauerIntegration", "GaussGegenbauerIntegration *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GaussHermiteIntegration = {"_p_GaussHermiteIntegration", "GaussHermiteIntegration *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GaussHyperbolicIntegration = {"_p_GaussHyperbolicIntegration", "GaussHyperbolicIntegration *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GaussJacobiIntegration = {"_p_GaussJacobiIntegration", "GaussJacobiIntegration *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GaussKronrodAdaptive = {"_p_GaussKronrodAdaptive", "GaussKronrodAdaptive *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GaussKronrodNonAdaptive = {"_p_GaussKronrodNonAdaptive", "GaussKronrodNonAdaptive *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GaussLaguerreIntegration = {"_p_GaussLaguerreIntegration", "GaussLaguerreIntegration *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GaussLegendreIntegration = {"_p_GaussLegendreIntegration", "GaussLegendreIntegration *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GaussLobattoIntegral = {"_p_GaussLobattoIntegral", "GaussLobattoIntegral *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gaussian1dFloatFloatSwaptionEnginePtr = {"_p_Gaussian1dFloatFloatSwaptionEnginePtr", "Gaussian1dFloatFloatSwaptionEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gaussian1dJamshidianSwaptionEnginePtr = {"_p_Gaussian1dJamshidianSwaptionEnginePtr", "Gaussian1dJamshidianSwaptionEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gaussian1dModel = {"_p_Gaussian1dModel", "Gaussian1dModel *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gaussian1dNonstandardSwaptionEnginePtr = {"_p_Gaussian1dNonstandardSwaptionEnginePtr", "Gaussian1dNonstandardSwaptionEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Gaussian1dSwaptionEnginePtr = {"_p_Gaussian1dSwaptionEnginePtr", "Gaussian1dSwaptionEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GaussianLowDiscrepancySequenceGenerator = {"_p_GaussianLowDiscrepancySequenceGenerator", "GaussianLowDiscrepancySequenceGenerator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GaussianMultiPathGenerator = {"_p_GaussianMultiPathGenerator", "GaussianMultiPathGenerator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GaussianPathGenerator = {"_p_GaussianPathGenerator", "GaussianPathGenerator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GaussianRandomGenerator = {"_p_GaussianRandomGenerator", "GaussianRandomGenerator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GaussianRandomSequenceGenerator = {"_p_GaussianRandomSequenceGenerator", "GaussianRandomSequenceGenerator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GaussianSimulatedAnnealing = {"_p_GaussianSimulatedAnnealing", "GaussianSimulatedAnnealing *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GaussianSobolPathGenerator = {"_p_GaussianSobolPathGenerator", "GaussianSobolPathGenerator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GeneralizedBlackScholesProcessPtr = {"_p_GeneralizedBlackScholesProcessPtr", "GeneralizedBlackScholesProcessPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GenericSequenceStatisticsT_IncrementalStatistics_t = {"_p_GenericSequenceStatisticsT_IncrementalStatistics_t", "GenericSequenceStatistics< IncrementalStatistics > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GenericSequenceStatisticsT_RiskStatistics_t = {"_p_GenericSequenceStatisticsT_RiskStatistics_t", "GenericSequenceStatistics< RiskStatistics > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GenericSequenceStatisticsT_Statistics_t = {"_p_GenericSequenceStatisticsT_Statistics_t", "GenericSequenceStatistics< Statistics > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GeometricBrownianMotionProcessPtr = {"_p_GeometricBrownianMotionProcessPtr", "GeometricBrownianMotionProcessPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GsrProcessPtr = {"_p_GsrProcessPtr", "GsrProcessPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GsrPtr = {"_p_GsrPtr", "GsrPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HaltonRsg = {"_p_HaltonRsg", "HaltonRsg *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HandleT_BlackVolTermStructure_t = {"_p_HandleT_BlackVolTermStructure_t", "Handle< BlackVolTermStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HandleT_CalibratedModel_t = {"_p_HandleT_CalibratedModel_t", "Handle< CalibratedModel > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HandleT_CapFloorTermVolatilityStructure_t = {"_p_HandleT_CapFloorTermVolatilityStructure_t", "Handle< CapFloorTermVolatilityStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HandleT_DefaultProbabilityTermStructure_t = {"_p_HandleT_DefaultProbabilityTermStructure_t", "Handle< DefaultProbabilityTermStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HandleT_DeltaVolQuote_t = {"_p_HandleT_DeltaVolQuote_t", "Handle< DeltaVolQuote > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HandleT_LocalVolTermStructure_t = {"_p_HandleT_LocalVolTermStructure_t", "Handle< LocalVolTermStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HandleT_OptionletVolatilityStructure_t = {"_p_HandleT_OptionletVolatilityStructure_t", "Handle< OptionletVolatilityStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HandleT_Quote_t = {"_p_HandleT_Quote_t", "Handle< Quote > *|std::vector< Handle< Quote > >::value_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HandleT_ShortRateModel_t = {"_p_HandleT_ShortRateModel_t", "Handle< ShortRateModel > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HandleT_SwaptionVolatilityStructure_t = {"_p_HandleT_SwaptionVolatilityStructure_t", "Handle< SwaptionVolatilityStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HandleT_YieldTermStructure_t = {"_p_HandleT_YieldTermStructure_t", "Handle< YieldTermStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HandleT_YoYInflationTermStructure_t = {"_p_HandleT_YoYInflationTermStructure_t", "Handle< YoYInflationTermStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HandleT_ZeroInflationTermStructure_t = {"_p_HandleT_ZeroInflationTermStructure_t", "Handle< ZeroInflationTermStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HazardRate = {"_p_HazardRate", "HazardRate *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HazardRateCurvePtr = {"_p_HazardRateCurvePtr", "HazardRateCurvePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HestonModelHelperPtr = {"_p_HestonModelHelperPtr", "HestonModelHelperPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HestonModelPtr = {"_p_HestonModelPtr", "HestonModelPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HestonProcessPtr = {"_p_HestonProcessPtr", "HestonProcessPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HimalayaOptionPtr = {"_p_HimalayaOptionPtr", "HimalayaOptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HullWhiteForwardProcessPtr = {"_p_HullWhiteForwardProcessPtr", "HullWhiteForwardProcessPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HullWhiteProcessPtr = {"_p_HullWhiteProcessPtr", "HullWhiteProcessPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HullWhitePtr = {"_p_HullWhitePtr", "HullWhitePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IMM = {"_p_IMM", "IMM *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IborCouponPricerPtr = {"_p_IborCouponPricerPtr", "IborCouponPricerPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IborCouponPtr = {"_p_IborCouponPtr", "IborCouponPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IborIndexPtr = {"_p_IborIndexPtr", "IborIndexPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ImpliedTermStructurePtr = {"_p_ImpliedTermStructurePtr", "ImpliedTermStructurePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IncrementalStatistics = {"_p_IncrementalStatistics", "IncrementalStatistics *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Index = {"_p_Index", "Index *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IndexManager = {"_p_IndexManager", "IndexManager *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InflationIndexPtr = {"_p_InflationIndexPtr", "InflationIndexPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InflationTermStructure = {"_p_InflationTermStructure", "InflationTermStructure *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Instrument = {"_p_Instrument", "Instrument *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IntegralCdsEnginePtr = {"_p_IntegralCdsEnginePtr", "IntegralCdsEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IntegralEnginePtr = {"_p_IntegralEnginePtr", "IntegralEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InterestRate = {"_p_InterestRate", "std::vector< InterestRate >::value_type *|InterestRate *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InterestRateIndexPtr = {"_p_InterestRateIndexPtr", "InterestRateIndexPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IntervalPrice = {"_p_IntervalPrice", "std::vector< IntervalPrice >::value_type *|IntervalPrice *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativeNormal = {"_p_InverseCumulativeNormal", "InverseCumulativeNormal *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativePoisson = {"_p_InverseCumulativePoisson", "InverseCumulativePoisson *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativeRngT_KnuthUniformRng_InverseCumulativeNormal_t = {"_p_InverseCumulativeRngT_KnuthUniformRng_InverseCumulativeNormal_t", "InverseCumulativeRng< KnuthUniformRng,InverseCumulativeNormal > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativeRngT_KnuthUniformRng_MoroInverseCumulativeNormal_t = {"_p_InverseCumulativeRngT_KnuthUniformRng_MoroInverseCumulativeNormal_t", "InverseCumulativeRng< KnuthUniformRng,MoroInverseCumulativeNormal > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativeRngT_LecuyerUniformRng_InverseCumulativeNormal_t = {"_p_InverseCumulativeRngT_LecuyerUniformRng_InverseCumulativeNormal_t", "InverseCumulativeRng< LecuyerUniformRng,InverseCumulativeNormal > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativeRngT_LecuyerUniformRng_MoroInverseCumulativeNormal_t = {"_p_InverseCumulativeRngT_LecuyerUniformRng_MoroInverseCumulativeNormal_t", "InverseCumulativeRng< LecuyerUniformRng,MoroInverseCumulativeNormal > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativeRngT_MersenneTwisterUniformRng_InverseCumulativeNormal_t = {"_p_InverseCumulativeRngT_MersenneTwisterUniformRng_InverseCumulativeNormal_t", "InverseCumulativeRng< MersenneTwisterUniformRng,InverseCumulativeNormal > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativeRngT_MersenneTwisterUniformRng_MoroInverseCumulativeNormal_t = {"_p_InverseCumulativeRngT_MersenneTwisterUniformRng_MoroInverseCumulativeNormal_t", "InverseCumulativeRng< MersenneTwisterUniformRng,MoroInverseCumulativeNormal > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativeRsgT_HaltonRsg_InverseCumulativeNormal_t = {"_p_InverseCumulativeRsgT_HaltonRsg_InverseCumulativeNormal_t", "InverseCumulativeRsg< HaltonRsg,InverseCumulativeNormal > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativeRsgT_HaltonRsg_MoroInverseCumulativeNormal_t = {"_p_InverseCumulativeRsgT_HaltonRsg_MoroInverseCumulativeNormal_t", "InverseCumulativeRsg< HaltonRsg,MoroInverseCumulativeNormal > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_InverseCumulativeNormal_t = {"_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_InverseCumulativeNormal_t", "InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,InverseCumulativeNormal > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_MoroInverseCumulativeNormal_t = {"_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_MoroInverseCumulativeNormal_t", "InverseCumulativeRsg< RandomSequenceGenerator< KnuthUniformRng >,MoroInverseCumulativeNormal > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_InverseCumulativeNormal_t = {"_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_InverseCumulativeNormal_t", "InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,InverseCumulativeNormal > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_MoroInverseCumulativeNormal_t = {"_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_MoroInverseCumulativeNormal_t", "InverseCumulativeRsg< RandomSequenceGenerator< LecuyerUniformRng >,MoroInverseCumulativeNormal > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_InverseCumulativeNormal_t = {"_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_InverseCumulativeNormal_t", "InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,InverseCumulativeNormal > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_MoroInverseCumulativeNormal_t = {"_p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_MoroInverseCumulativeNormal_t", "InverseCumulativeRsg< RandomSequenceGenerator< MersenneTwisterUniformRng >,MoroInverseCumulativeNormal > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativeRsgT_SobolRsg_InverseCumulativeNormal_t = {"_p_InverseCumulativeRsgT_SobolRsg_InverseCumulativeNormal_t", "InverseCumulativeRsg< SobolRsg,InverseCumulativeNormal > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativeRsgT_SobolRsg_MoroInverseCumulativeNormal_t = {"_p_InverseCumulativeRsgT_SobolRsg_MoroInverseCumulativeNormal_t", "InverseCumulativeRsg< SobolRsg,MoroInverseCumulativeNormal > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseCumulativeStudent = {"_p_InverseCumulativeStudent", "InverseCumulativeStudent *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_InverseNonCentralCumulativeChiSquareDistribution = {"_p_InverseNonCentralCumulativeChiSquareDistribution", "InverseNonCentralCumulativeChiSquareDistribution *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_JPYLiborPtr = {"_p_JPYLiborPtr", "JPYLiborPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_JamshidianSwaptionEnginePtr = {"_p_JamshidianSwaptionEnginePtr", "JamshidianSwaptionEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_JibarPtr = {"_p_JibarPtr", "JibarPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_KnuthUniformRng = {"_p_KnuthUniformRng", "KnuthUniformRng *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LecuyerUniformRng = {"_p_LecuyerUniformRng", "LecuyerUniformRng *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LevenbergMarquardt = {"_p_LevenbergMarquardt", "LevenbergMarquardt *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LiborPtr = {"_p_LiborPtr", "LiborPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Linear = {"_p_Linear", "Linear *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LinearTsrPricerPtr = {"_p_LinearTsrPricerPtr", "LinearTsrPricerPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LinearTsrPricer__Settings = {"_p_LinearTsrPricer__Settings", "LinearTsrPricer::Settings *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocalConstantVolPtr = {"_p_LocalConstantVolPtr", "LocalConstantVolPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocalVolSurfacePtr = {"_p_LocalVolSurfacePtr", "LocalVolSurfacePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocalVolTermStructure = {"_p_LocalVolTermStructure", "LocalVolTermStructure *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LogCubicZeroCurvePtr = {"_p_LogCubicZeroCurvePtr", "LogCubicZeroCurvePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LogLinear = {"_p_LogLinear", "LogLinear *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LogLinearZeroCurvePtr = {"_p_LogLinearZeroCurvePtr", "LogLinearZeroCurvePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LogNormalSimulatedAnnealing = {"_p_LogNormalSimulatedAnnealing", "LogNormalSimulatedAnnealing *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MCAmericanBasketEnginePtr = {"_p_MCAmericanBasketEnginePtr", "MCAmericanBasketEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MCBarrierEnginePtr = {"_p_MCBarrierEnginePtr", "MCBarrierEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MCDiscreteArithmeticAPEnginePtr = {"_p_MCDiscreteArithmeticAPEnginePtr", "MCDiscreteArithmeticAPEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MCDiscreteArithmeticASEnginePtr = {"_p_MCDiscreteArithmeticASEnginePtr", "MCDiscreteArithmeticASEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MCDiscreteGeometricAPEnginePtr = {"_p_MCDiscreteGeometricAPEnginePtr", "MCDiscreteGeometricAPEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MCEuropeanBasketEnginePtr = {"_p_MCEuropeanBasketEnginePtr", "MCEuropeanBasketEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MCEuropeanEnginePtr = {"_p_MCEuropeanEnginePtr", "MCEuropeanEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MCEverestEnginePtr = {"_p_MCEverestEnginePtr", "MCEverestEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MCHimalayaEnginePtr = {"_p_MCHimalayaEnginePtr", "MCHimalayaEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MarkovFunctionalPtr = {"_p_MarkovFunctionalPtr", "MarkovFunctionalPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MarkovFunctional__ModelSettings = {"_p_MarkovFunctional__ModelSettings", "MarkovFunctional::ModelSettings *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Matrix = {"_p_Matrix", "Matrix *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MatrixRow = {"_p_MatrixRow", "MatrixRow *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MaxBasketPayoffPtr = {"_p_MaxBasketPayoffPtr", "MaxBasketPayoffPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MersenneTwisterUniformRng = {"_p_MersenneTwisterUniformRng", "MersenneTwisterUniformRng *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Merton76ProcessPtr = {"_p_Merton76ProcessPtr", "Merton76ProcessPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MidPointCdsEnginePtr = {"_p_MidPointCdsEnginePtr", "MidPointCdsEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MinBasketPayoffPtr = {"_p_MinBasketPayoffPtr", "MinBasketPayoffPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MirrorGaussianSimulatedAnnealing = {"_p_MirrorGaussianSimulatedAnnealing", "MirrorGaussianSimulatedAnnealing *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Money = {"_p_Money", "Money *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MonotonicCubic = {"_p_MonotonicCubic", "MonotonicCubic *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MonotonicCubicZeroCurvePtr = {"_p_MonotonicCubicZeroCurvePtr", "MonotonicCubicZeroCurvePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MonotonicLogCubic = {"_p_MonotonicLogCubic", "MonotonicLogCubic *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MoroInverseCumulativeNormal = {"_p_MoroInverseCumulativeNormal", "MoroInverseCumulativeNormal *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MultiAssetOptionPtr = {"_p_MultiAssetOptionPtr", "MultiAssetOptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MultiPath = {"_p_MultiPath", "MultiPath *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MultiplicativePriceSeasonalityPtr = {"_p_MultiplicativePriceSeasonalityPtr", "MultiplicativePriceSeasonalityPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_NZDLiborPtr = {"_p_NZDLiborPtr", "NZDLiborPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_NelsonSiegelFitting = {"_p_NelsonSiegelFitting", "NelsonSiegelFitting *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_NeumannBCPtr = {"_p_NeumannBCPtr", "NeumannBCPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Newton = {"_p_Newton", "Newton *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_NewtonSafe = {"_p_NewtonSafe", "NewtonSafe *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_NoConstraint = {"_p_NoConstraint", "NoConstraint *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_NonCentralCumulativeChiSquareDistribution = {"_p_NonCentralCumulativeChiSquareDistribution", "NonCentralCumulativeChiSquareDistribution *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_NonhomogeneousBoundaryConstraint = {"_p_NonhomogeneousBoundaryConstraint", "NonhomogeneousBoundaryConstraint *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_NonstandardSwapPtr = {"_p_NonstandardSwapPtr", "NonstandardSwapPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_NonstandardSwaptionPtr = {"_p_NonstandardSwaptionPtr", "NonstandardSwaptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_NormalDistribution = {"_p_NormalDistribution", "NormalDistribution *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_NullParameter = {"_p_NullParameter", "NullParameter *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_NumericHaganPricerPtr = {"_p_NumericHaganPricerPtr", "NumericHaganPricerPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_NzocrPtr = {"_p_NzocrPtr", "NzocrPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OISRateHelperPtr = {"_p_OISRateHelperPtr", "OISRateHelperPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Observable = {"_p_Observable", "Observable *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OptimizationMethod = {"_p_OptimizationMethod", "OptimizationMethod *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Optimizer = {"_p_Optimizer", "Optimizer *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Option = {"_p_Option", "Option *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OptionletStripper1Ptr = {"_p_OptionletStripper1Ptr", "OptionletStripper1Ptr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OptionletVolatilityStructure = {"_p_OptionletVolatilityStructure", "OptionletVolatilityStructure *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OvernightIndexPtr = {"_p_OvernightIndexPtr", "OvernightIndexPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Parameter = {"_p_Parameter", "Parameter *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ParkinsonSigma = {"_p_ParkinsonSigma", "ParkinsonSigma *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Path = {"_p_Path", "Path *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Payoff = {"_p_Payoff", "Payoff *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PercentageStrikePayoffPtr = {"_p_PercentageStrikePayoffPtr", "PercentageStrikePayoffPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Period = {"_p_Period", "std::vector< Period >::value_type *|Period *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PeriodParser = {"_p_PeriodParser", "PeriodParser *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PiecewiseConstantParameter = {"_p_PiecewiseConstantParameter", "PiecewiseConstantParameter *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PiecewiseCubicZeroPtr = {"_p_PiecewiseCubicZeroPtr", "PiecewiseCubicZeroPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PiecewiseFlatForwardPtr = {"_p_PiecewiseFlatForwardPtr", "PiecewiseFlatForwardPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PiecewiseFlatHazardRatePtr = {"_p_PiecewiseFlatHazardRatePtr", "PiecewiseFlatHazardRatePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PiecewiseLinearForwardPtr = {"_p_PiecewiseLinearForwardPtr", "PiecewiseLinearForwardPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PiecewiseLinearZeroPtr = {"_p_PiecewiseLinearZeroPtr", "PiecewiseLinearZeroPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PiecewiseLogCubicDiscountPtr = {"_p_PiecewiseLogCubicDiscountPtr", "PiecewiseLogCubicDiscountPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PiecewiseTimeDependentHestonModelPtr = {"_p_PiecewiseTimeDependentHestonModelPtr", "PiecewiseTimeDependentHestonModelPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PiecewiseYoYInflationPtr = {"_p_PiecewiseYoYInflationPtr", "PiecewiseYoYInflationPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PiecewiseZeroInflationPtr = {"_p_PiecewiseZeroInflationPtr", "PiecewiseZeroInflationPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Pillar = {"_p_Pillar", "Pillar *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PlainVanillaPayoffPtr = {"_p_PlainVanillaPayoffPtr", "PlainVanillaPayoffPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PoissonDistribution = {"_p_PoissonDistribution", "PoissonDistribution *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Position = {"_p_Position", "Position *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PositiveConstraint = {"_p_PositiveConstraint", "PositiveConstraint *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PricingEngine = {"_p_PricingEngine", "PricingEngine *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ProbabilityBoltzmannDownhill = {"_p_ProbabilityBoltzmannDownhill", "ProbabilityBoltzmannDownhill *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Protection = {"_p_Protection", "Protection *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PyObserver = {"_p_PyObserver", "PyObserver *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__ARSCurrency = {"_p_QuantLib__ARSCurrency", "QuantLib::ARSCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__ATSCurrency = {"_p_QuantLib__ATSCurrency", "QuantLib::ATSCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__AUDCurrency = {"_p_QuantLib__AUDCurrency", "QuantLib::AUDCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Actual360 = {"_p_QuantLib__Actual360", "QuantLib::Actual360 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Actual365Fixed = {"_p_QuantLib__Actual365Fixed", "QuantLib::Actual365Fixed *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__ActualActual = {"_p_QuantLib__ActualActual", "QuantLib::ActualActual *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Argentina = {"_p_QuantLib__Argentina", "QuantLib::Argentina *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Australia = {"_p_QuantLib__Australia", "QuantLib::Australia *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__BDTCurrency = {"_p_QuantLib__BDTCurrency", "QuantLib::BDTCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__BEFCurrency = {"_p_QuantLib__BEFCurrency", "QuantLib::BEFCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__BGLCurrency = {"_p_QuantLib__BGLCurrency", "QuantLib::BGLCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__BRLCurrency = {"_p_QuantLib__BRLCurrency", "QuantLib::BRLCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__BYRCurrency = {"_p_QuantLib__BYRCurrency", "QuantLib::BYRCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__BespokeCalendar = {"_p_QuantLib__BespokeCalendar", "QuantLib::BespokeCalendar *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Brazil = {"_p_QuantLib__Brazil", "QuantLib::Brazil *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Business252 = {"_p_QuantLib__Business252", "QuantLib::Business252 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__CADCurrency = {"_p_QuantLib__CADCurrency", "QuantLib::CADCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__CHFCurrency = {"_p_QuantLib__CHFCurrency", "QuantLib::CHFCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__CLPCurrency = {"_p_QuantLib__CLPCurrency", "QuantLib::CLPCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__CNYCurrency = {"_p_QuantLib__CNYCurrency", "QuantLib::CNYCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__COPCurrency = {"_p_QuantLib__COPCurrency", "QuantLib::COPCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__CYPCurrency = {"_p_QuantLib__CYPCurrency", "QuantLib::CYPCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__CZKCurrency = {"_p_QuantLib__CZKCurrency", "QuantLib::CZKCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Canada = {"_p_QuantLib__Canada", "QuantLib::Canada *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__China = {"_p_QuantLib__China", "QuantLib::China *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__CzechRepublic = {"_p_QuantLib__CzechRepublic", "QuantLib::CzechRepublic *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__DEMCurrency = {"_p_QuantLib__DEMCurrency", "QuantLib::DEMCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__DKKCurrency = {"_p_QuantLib__DKKCurrency", "QuantLib::DKKCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Denmark = {"_p_QuantLib__Denmark", "QuantLib::Denmark *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__EEKCurrency = {"_p_QuantLib__EEKCurrency", "QuantLib::EEKCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__ESPCurrency = {"_p_QuantLib__ESPCurrency", "QuantLib::ESPCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__EURCurrency = {"_p_QuantLib__EURCurrency", "QuantLib::EURCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__FIMCurrency = {"_p_QuantLib__FIMCurrency", "QuantLib::FIMCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__FRFCurrency = {"_p_QuantLib__FRFCurrency", "QuantLib::FRFCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Finland = {"_p_QuantLib__Finland", "QuantLib::Finland *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__GBPCurrency = {"_p_QuantLib__GBPCurrency", "QuantLib::GBPCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__GRDCurrency = {"_p_QuantLib__GRDCurrency", "QuantLib::GRDCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Germany = {"_p_QuantLib__Germany", "QuantLib::Germany *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__HKDCurrency = {"_p_QuantLib__HKDCurrency", "QuantLib::HKDCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__HUFCurrency = {"_p_QuantLib__HUFCurrency", "QuantLib::HUFCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__HongKong = {"_p_QuantLib__HongKong", "QuantLib::HongKong *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Hungary = {"_p_QuantLib__Hungary", "QuantLib::Hungary *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__IDRCurrency = {"_p_QuantLib__IDRCurrency", "QuantLib::IDRCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__IEPCurrency = {"_p_QuantLib__IEPCurrency", "QuantLib::IEPCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__ILSCurrency = {"_p_QuantLib__ILSCurrency", "QuantLib::ILSCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__INRCurrency = {"_p_QuantLib__INRCurrency", "QuantLib::INRCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__IQDCurrency = {"_p_QuantLib__IQDCurrency", "QuantLib::IQDCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__IRRCurrency = {"_p_QuantLib__IRRCurrency", "QuantLib::IRRCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__ISKCurrency = {"_p_QuantLib__ISKCurrency", "QuantLib::ISKCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__ITLCurrency = {"_p_QuantLib__ITLCurrency", "QuantLib::ITLCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Iceland = {"_p_QuantLib__Iceland", "QuantLib::Iceland *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__India = {"_p_QuantLib__India", "QuantLib::India *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Indonesia = {"_p_QuantLib__Indonesia", "QuantLib::Indonesia *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Israel = {"_p_QuantLib__Israel", "QuantLib::Israel *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Italy = {"_p_QuantLib__Italy", "QuantLib::Italy *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__JPYCurrency = {"_p_QuantLib__JPYCurrency", "QuantLib::JPYCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Japan = {"_p_QuantLib__Japan", "QuantLib::Japan *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__JointCalendar = {"_p_QuantLib__JointCalendar", "QuantLib::JointCalendar *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__KRWCurrency = {"_p_QuantLib__KRWCurrency", "QuantLib::KRWCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__KWDCurrency = {"_p_QuantLib__KWDCurrency", "QuantLib::KWDCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__LTLCurrency = {"_p_QuantLib__LTLCurrency", "QuantLib::LTLCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__LUFCurrency = {"_p_QuantLib__LUFCurrency", "QuantLib::LUFCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__LVLCurrency = {"_p_QuantLib__LVLCurrency", "QuantLib::LVLCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__MTLCurrency = {"_p_QuantLib__MTLCurrency", "QuantLib::MTLCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__MXNCurrency = {"_p_QuantLib__MXNCurrency", "QuantLib::MXNCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__MYRCurrency = {"_p_QuantLib__MYRCurrency", "QuantLib::MYRCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Mexico = {"_p_QuantLib__Mexico", "QuantLib::Mexico *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__NLGCurrency = {"_p_QuantLib__NLGCurrency", "QuantLib::NLGCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__NOKCurrency = {"_p_QuantLib__NOKCurrency", "QuantLib::NOKCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__NPRCurrency = {"_p_QuantLib__NPRCurrency", "QuantLib::NPRCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__NZDCurrency = {"_p_QuantLib__NZDCurrency", "QuantLib::NZDCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__NewZealand = {"_p_QuantLib__NewZealand", "QuantLib::NewZealand *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Norway = {"_p_QuantLib__Norway", "QuantLib::Norway *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__NullCalendar = {"_p_QuantLib__NullCalendar", "QuantLib::NullCalendar *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__OneDayCounter = {"_p_QuantLib__OneDayCounter", "QuantLib::OneDayCounter *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__PEHCurrency = {"_p_QuantLib__PEHCurrency", "QuantLib::PEHCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__PEICurrency = {"_p_QuantLib__PEICurrency", "QuantLib::PEICurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__PENCurrency = {"_p_QuantLib__PENCurrency", "QuantLib::PENCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__PKRCurrency = {"_p_QuantLib__PKRCurrency", "QuantLib::PKRCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__PLNCurrency = {"_p_QuantLib__PLNCurrency", "QuantLib::PLNCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__PTECurrency = {"_p_QuantLib__PTECurrency", "QuantLib::PTECurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Poland = {"_p_QuantLib__Poland", "QuantLib::Poland *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__ROLCurrency = {"_p_QuantLib__ROLCurrency", "QuantLib::ROLCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__RONCurrency = {"_p_QuantLib__RONCurrency", "QuantLib::RONCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__RUBCurrency = {"_p_QuantLib__RUBCurrency", "QuantLib::RUBCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Romania = {"_p_QuantLib__Romania", "QuantLib::Romania *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Russia = {"_p_QuantLib__Russia", "QuantLib::Russia *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__SARCurrency = {"_p_QuantLib__SARCurrency", "QuantLib::SARCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__SEKCurrency = {"_p_QuantLib__SEKCurrency", "QuantLib::SEKCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__SGDCurrency = {"_p_QuantLib__SGDCurrency", "QuantLib::SGDCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__SITCurrency = {"_p_QuantLib__SITCurrency", "QuantLib::SITCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__SKKCurrency = {"_p_QuantLib__SKKCurrency", "QuantLib::SKKCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__SaudiArabia = {"_p_QuantLib__SaudiArabia", "QuantLib::SaudiArabia *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__SimpleDayCounter = {"_p_QuantLib__SimpleDayCounter", "QuantLib::SimpleDayCounter *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Singapore = {"_p_QuantLib__Singapore", "QuantLib::Singapore *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Slovakia = {"_p_QuantLib__Slovakia", "QuantLib::Slovakia *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__SouthAfrica = {"_p_QuantLib__SouthAfrica", "QuantLib::SouthAfrica *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__SouthKorea = {"_p_QuantLib__SouthKorea", "QuantLib::SouthKorea *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Sweden = {"_p_QuantLib__Sweden", "QuantLib::Sweden *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Switzerland = {"_p_QuantLib__Switzerland", "QuantLib::Switzerland *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__TARGET = {"_p_QuantLib__TARGET", "QuantLib::TARGET *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__THBCurrency = {"_p_QuantLib__THBCurrency", "QuantLib::THBCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__TRLCurrency = {"_p_QuantLib__TRLCurrency", "QuantLib::TRLCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__TRYCurrency = {"_p_QuantLib__TRYCurrency", "QuantLib::TRYCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__TTDCurrency = {"_p_QuantLib__TTDCurrency", "QuantLib::TTDCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__TWDCurrency = {"_p_QuantLib__TWDCurrency", "QuantLib::TWDCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Taiwan = {"_p_QuantLib__Taiwan", "QuantLib::Taiwan *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Thirty360 = {"_p_QuantLib__Thirty360", "QuantLib::Thirty360 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Turkey = {"_p_QuantLib__Turkey", "QuantLib::Turkey *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__USDCurrency = {"_p_QuantLib__USDCurrency", "QuantLib::USDCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__Ukraine = {"_p_QuantLib__Ukraine", "QuantLib::Ukraine *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__UnitedKingdom = {"_p_QuantLib__UnitedKingdom", "QuantLib::UnitedKingdom *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__UnitedStates = {"_p_QuantLib__UnitedStates", "QuantLib::UnitedStates *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__VEBCurrency = {"_p_QuantLib__VEBCurrency", "QuantLib::VEBCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__VNDCurrency = {"_p_QuantLib__VNDCurrency", "QuantLib::VNDCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__WeekendsOnly = {"_p_QuantLib__WeekendsOnly", "QuantLib::WeekendsOnly *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantLib__ZARCurrency = {"_p_QuantLib__ZARCurrency", "QuantLib::ZARCurrency *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantoDoubleBarrierOptionPtr = {"_p_QuantoDoubleBarrierOptionPtr", "QuantoDoubleBarrierOptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantoEuropeanEnginePtr = {"_p_QuantoEuropeanEnginePtr", "QuantoEuropeanEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantoForwardEuropeanEnginePtr = {"_p_QuantoForwardEuropeanEnginePtr", "QuantoForwardEuropeanEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantoForwardVanillaOptionPtr = {"_p_QuantoForwardVanillaOptionPtr", "QuantoForwardVanillaOptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuantoVanillaOptionPtr = {"_p_QuantoVanillaOptionPtr", "QuantoVanillaOptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Quote = {"_p_Quote", "Quote *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RandomSequenceGeneratorT_KnuthUniformRng_t = {"_p_RandomSequenceGeneratorT_KnuthUniformRng_t", "RandomSequenceGenerator< KnuthUniformRng > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RandomSequenceGeneratorT_LecuyerUniformRng_t = {"_p_RandomSequenceGeneratorT_LecuyerUniformRng_t", "RandomSequenceGenerator< LecuyerUniformRng > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t = {"_p_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t", "RandomSequenceGenerator< MersenneTwisterUniformRng > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RateHelper = {"_p_RateHelper", "RateHelper *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RealTimeSeries = {"_p_RealTimeSeries", "RealTimeSeries *|VolatilityTimeSeries *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ReannealingTrivial = {"_p_ReannealingTrivial", "ReannealingTrivial *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RebatedExercisePtr = {"_p_RebatedExercisePtr", "RebatedExercisePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RedemptionPtr = {"_p_RedemptionPtr", "RedemptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Region = {"_p_Region", "Region *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RelinkableHandleT_BlackVolTermStructure_t = {"_p_RelinkableHandleT_BlackVolTermStructure_t", "RelinkableHandle< BlackVolTermStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RelinkableHandleT_CalibratedModel_t = {"_p_RelinkableHandleT_CalibratedModel_t", "RelinkableHandle< CalibratedModel > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RelinkableHandleT_CapFloorTermVolatilityStructure_t = {"_p_RelinkableHandleT_CapFloorTermVolatilityStructure_t", "RelinkableHandle< CapFloorTermVolatilityStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RelinkableHandleT_DefaultProbabilityTermStructure_t = {"_p_RelinkableHandleT_DefaultProbabilityTermStructure_t", "RelinkableHandle< DefaultProbabilityTermStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RelinkableHandleT_DeltaVolQuote_t = {"_p_RelinkableHandleT_DeltaVolQuote_t", "RelinkableHandle< DeltaVolQuote > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RelinkableHandleT_LocalVolTermStructure_t = {"_p_RelinkableHandleT_LocalVolTermStructure_t", "RelinkableHandle< LocalVolTermStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RelinkableHandleT_OptionletVolatilityStructure_t = {"_p_RelinkableHandleT_OptionletVolatilityStructure_t", "RelinkableHandle< OptionletVolatilityStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RelinkableHandleT_Quote_t = {"_p_RelinkableHandleT_Quote_t", "RelinkableHandle< Quote > *|std::vector< RelinkableHandle< Quote > >::value_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RelinkableHandleT_ShortRateModel_t = {"_p_RelinkableHandleT_ShortRateModel_t", "RelinkableHandle< ShortRateModel > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RelinkableHandleT_SwaptionVolatilityStructure_t = {"_p_RelinkableHandleT_SwaptionVolatilityStructure_t", "RelinkableHandle< SwaptionVolatilityStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RelinkableHandleT_YieldTermStructure_t = {"_p_RelinkableHandleT_YieldTermStructure_t", "RelinkableHandle< YieldTermStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RelinkableHandleT_YoYInflationTermStructure_t = {"_p_RelinkableHandleT_YoYInflationTermStructure_t", "RelinkableHandle< YoYInflationTermStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RelinkableHandleT_ZeroInflationTermStructure_t = {"_p_RelinkableHandleT_ZeroInflationTermStructure_t", "RelinkableHandle< ZeroInflationTermStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Ridder = {"_p_Ridder", "Ridder *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RiskStatistics = {"_p_RiskStatistics", "RiskStatistics *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Rounding = {"_p_Rounding", "Rounding *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SEKLiborPtr = {"_p_SEKLiborPtr", "SEKLiborPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SVD = {"_p_SVD", "SVD *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeBackwardFlatInterpolation = {"_p_SafeBackwardFlatInterpolation", "SafeBackwardFlatInterpolation *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeBicubicSpline = {"_p_SafeBicubicSpline", "SafeBicubicSpline *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeBilinearInterpolation = {"_p_SafeBilinearInterpolation", "SafeBilinearInterpolation *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeCubicNaturalSpline = {"_p_SafeCubicNaturalSpline", "SafeCubicNaturalSpline *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeForwardFlatInterpolation = {"_p_SafeForwardFlatInterpolation", "SafeForwardFlatInterpolation *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeFritschButlandCubic = {"_p_SafeFritschButlandCubic", "SafeFritschButlandCubic *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeFritschButlandLogCubic = {"_p_SafeFritschButlandLogCubic", "SafeFritschButlandLogCubic *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeKrugerCubic = {"_p_SafeKrugerCubic", "SafeKrugerCubic *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeKrugerLogCubic = {"_p_SafeKrugerLogCubic", "SafeKrugerLogCubic *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeLinearInterpolation = {"_p_SafeLinearInterpolation", "SafeLinearInterpolation *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeLogCubicNaturalSpline = {"_p_SafeLogCubicNaturalSpline", "SafeLogCubicNaturalSpline *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeLogLinearInterpolation = {"_p_SafeLogLinearInterpolation", "SafeLogLinearInterpolation *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeLogParabolic = {"_p_SafeLogParabolic", "SafeLogParabolic *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeMonotonicCubicNaturalSpline = {"_p_SafeMonotonicCubicNaturalSpline", "SafeMonotonicCubicNaturalSpline *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeMonotonicLogCubicNaturalSpline = {"_p_SafeMonotonicLogCubicNaturalSpline", "SafeMonotonicLogCubicNaturalSpline *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeMonotonicLogParabolic = {"_p_SafeMonotonicLogParabolic", "SafeMonotonicLogParabolic *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeMonotonicParabolic = {"_p_SafeMonotonicParabolic", "SafeMonotonicParabolic *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeParabolic = {"_p_SafeParabolic", "SafeParabolic *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SalvagingAlgorithm = {"_p_SalvagingAlgorithm", "SalvagingAlgorithm *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SampleT_Array_t = {"_p_SampleT_Array_t", "Sample< Array > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SampleT_MultiPath_t = {"_p_SampleT_MultiPath_t", "Sample< MultiPath > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SampleT_Path_t = {"_p_SampleT_Path_t", "Sample< Path > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SampleT_double_t = {"_p_SampleT_double_t", "Sample< Real > *|Sample< double > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t = {"_p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t", "Sample< std::vector< double > > *|Sample< std::vector< Real > > *|Sample< std::vector< Real,std::allocator< Real > > > *|Sample< std::vector< double,std::allocator< double > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SampledCurve = {"_p_SampledCurve", "SampledCurve *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SamplerGaussian = {"_p_SamplerGaussian", "SamplerGaussian *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SamplerLogNormal = {"_p_SamplerLogNormal", "SamplerLogNormal *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SamplerMirrorGaussian = {"_p_SamplerMirrorGaussian", "SamplerMirrorGaussian *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Schedule = {"_p_Schedule", "Schedule *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Seasonality = {"_p_Seasonality", "Seasonality *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Secant = {"_p_Secant", "Secant *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SegmentIntegral = {"_p_SegmentIntegral", "SegmentIntegral *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Settings = {"_p_Settings", "Settings *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Settlement = {"_p_Settlement", "Settlement *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ShortRateModel = {"_p_ShortRateModel", "ShortRateModel *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimpleCashFlowPtr = {"_p_SimpleCashFlowPtr", "SimpleCashFlowPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimplePolynomialFitting = {"_p_SimplePolynomialFitting", "SimplePolynomialFitting *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimpleQuotePtr = {"_p_SimpleQuotePtr", "SimpleQuotePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Simplex = {"_p_Simplex", "Simplex *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimpsonIntegral = {"_p_SimpsonIntegral", "SimpsonIntegral *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SobolBrownianBridgeRsg = {"_p_SobolBrownianBridgeRsg", "SobolBrownianBridgeRsg *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SobolRsg = {"_p_SobolRsg", "SobolRsg *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SoftCallabilityPtr = {"_p_SoftCallabilityPtr", "SoftCallabilityPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SoniaPtr = {"_p_SoniaPtr", "SoniaPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SpreadCdsHelperPtr = {"_p_SpreadCdsHelperPtr", "SpreadCdsHelperPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SpreadedLinearZeroInterpolatedTermStructurePtr = {"_p_SpreadedLinearZeroInterpolatedTermStructurePtr", "SpreadedLinearZeroInterpolatedTermStructurePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Statistics = {"_p_Statistics", "Statistics *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SteepestDescent = {"_p_SteepestDescent", "SteepestDescent *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_StochasticProcess = {"_p_StochasticProcess", "StochasticProcess *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_StochasticProcess1DPtr = {"_p_StochasticProcess1DPtr", "StochasticProcess1DPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_StochasticProcessArrayPtr = {"_p_StochasticProcessArrayPtr", "StochasticProcessArrayPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_StockPtr = {"_p_StockPtr", "StockPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_StrippedOptionletAdapterPtr = {"_p_StrippedOptionletAdapterPtr", "StrippedOptionletAdapterPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_StrippedOptionletBase = {"_p_StrippedOptionletBase", "StrippedOptionletBase *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_StudentDistribution = {"_p_StudentDistribution", "StudentDistribution *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_StulzEnginePtr = {"_p_StulzEnginePtr", "StulzEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SuperSharePayoffPtr = {"_p_SuperSharePayoffPtr", "SuperSharePayoffPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SvenssonFitting = {"_p_SvenssonFitting", "SvenssonFitting *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SwapIndexPtr = {"_p_SwapIndexPtr", "SwapIndexPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SwapPtr = {"_p_SwapPtr", "SwapPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SwapRateHelperPtr = {"_p_SwapRateHelperPtr", "SwapRateHelperPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SwaptionHelperPtr = {"_p_SwaptionHelperPtr", "SwaptionHelperPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SwaptionPtr = {"_p_SwaptionPtr", "SwaptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SwaptionVolCube1Ptr = {"_p_SwaptionVolCube1Ptr", "SwaptionVolCube1Ptr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SwaptionVolCube2Ptr = {"_p_SwaptionVolCube2Ptr", "SwaptionVolCube2Ptr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SwaptionVolatilityMatrixPtr = {"_p_SwaptionVolatilityMatrixPtr", "SwaptionVolatilityMatrixPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SwaptionVolatilityStructure = {"_p_SwaptionVolatilityStructure", "SwaptionVolatilityStructure *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TRLiborPtr = {"_p_TRLiborPtr", "TRLiborPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TemperatureExponential = {"_p_TemperatureExponential", "TemperatureExponential *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TiborPtr = {"_p_TiborPtr", "TiborPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TimeBasket = {"_p_TimeBasket", "TimeBasket *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TimeGrid = {"_p_TimeGrid", "TimeGrid *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t = {"_p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t", "TimeSeries< IntervalPrice > *|TimeSeries< IntervalPrice,std::map< Date,IntervalPrice,std::less< Date >,std::allocator< std::pair< Date const,IntervalPrice > > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t = {"_p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t", "TimeSeries< double,std::map< Date,double,std::less< Date >,std::allocator< std::pair< Date const,double > > > > *|TimeSeries< Volatility > *|TimeSeries< Real > *|TimeSeries< double > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TrapezoidIntegralT_Default_t = {"_p_TrapezoidIntegralT_Default_t", "TrapezoidIntegral< Default > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TrapezoidIntegralT_MidPoint_t = {"_p_TrapezoidIntegralT_MidPoint_t", "TrapezoidIntegral< MidPoint > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TreeCallableFixedRateBondEnginePtr = {"_p_TreeCallableFixedRateBondEnginePtr", "TreeCallableFixedRateBondEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TreeCapFloorEnginePtr = {"_p_TreeCapFloorEnginePtr", "TreeCapFloorEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TreeSwaptionEnginePtr = {"_p_TreeSwaptionEnginePtr", "TreeSwaptionEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TridiagonalOperator = {"_p_TridiagonalOperator", "TridiagonalOperator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_UKRPIPtr = {"_p_UKRPIPtr", "UKRPIPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_USCPIPtr = {"_p_USCPIPtr", "USCPIPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_USDLiborPtr = {"_p_USDLiborPtr", "USDLiborPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_UniformLowDiscrepancySequenceGenerator = {"_p_UniformLowDiscrepancySequenceGenerator", "UniformLowDiscrepancySequenceGenerator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_UniformRandomGenerator = {"_p_UniformRandomGenerator", "UniformRandomGenerator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_UniformRandomSequenceGenerator = {"_p_UniformRandomSequenceGenerator", "UniformRandomSequenceGenerator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_UpRounding = {"_p_UpRounding", "UpRounding *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_UpfrontCdsHelperPtr = {"_p_UpfrontCdsHelperPtr", "UpfrontCdsHelperPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_VanillaOptionPtr = {"_p_VanillaOptionPtr", "VanillaOptionPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_VanillaSwapPtr = {"_p_VanillaSwapPtr", "VanillaSwapPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_VannaVolgaDoubleBarrierEnginePtr = {"_p_VannaVolgaDoubleBarrierEnginePtr", "VannaVolgaDoubleBarrierEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_VarianceGammaEnginePtr = {"_p_VarianceGammaEnginePtr", "VarianceGammaEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_VarianceGammaProcessPtr = {"_p_VarianceGammaProcessPtr", "VarianceGammaProcessPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_VasicekPtr = {"_p_VasicekPtr", "VasicekPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_WulinYongDoubleBarrierEnginePtr = {"_p_WulinYongDoubleBarrierEnginePtr", "WulinYongDoubleBarrierEnginePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_YYEUHICPPtr = {"_p_YYEUHICPPtr", "YYEUHICPPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_YYEUHICPXTPtr = {"_p_YYEUHICPXTPtr", "YYEUHICPXTPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_YYFRHICPPtr = {"_p_YYFRHICPPtr", "YYFRHICPPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_YYUKRPIPtr = {"_p_YYUKRPIPtr", "YYUKRPIPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_YYUSCPIPtr = {"_p_YYUSCPIPtr", "YYUSCPIPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_YYZACPIPtr = {"_p_YYZACPIPtr", "YYZACPIPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_YearOnYearInflationSwapHelperPtr = {"_p_YearOnYearInflationSwapHelperPtr", "YearOnYearInflationSwapHelperPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_YearOnYearInflationSwapPtr = {"_p_YearOnYearInflationSwapPtr", "YearOnYearInflationSwapPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_YieldTermStructure = {"_p_YieldTermStructure", "YieldTermStructure *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_YoYHelper = {"_p_YoYHelper", "YoYHelper *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_YoYInflationCapFloorPtr = {"_p_YoYInflationCapFloorPtr", "YoYInflationCapFloorPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_YoYInflationCapPtr = {"_p_YoYInflationCapPtr", "YoYInflationCapPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_YoYInflationCollarPtr = {"_p_YoYInflationCollarPtr", "YoYInflationCollarPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_YoYInflationFloorPtr = {"_p_YoYInflationFloorPtr", "YoYInflationFloorPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_YoYInflationIndexPtr = {"_p_YoYInflationIndexPtr", "YoYInflationIndexPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_YoYInflationTermStructure = {"_p_YoYInflationTermStructure", "YoYInflationTermStructure *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ZACPIPtr = {"_p_ZACPIPtr", "ZACPIPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ZeroCouponBondPtr = {"_p_ZeroCouponBondPtr", "ZeroCouponBondPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ZeroCouponInflationSwapHelperPtr = {"_p_ZeroCouponInflationSwapHelperPtr", "ZeroCouponInflationSwapHelperPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ZeroCouponInflationSwapPtr = {"_p_ZeroCouponInflationSwapPtr", "ZeroCouponInflationSwapPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ZeroCurvePtr = {"_p_ZeroCurvePtr", "ZeroCurvePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ZeroHelper = {"_p_ZeroHelper", "ZeroHelper *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ZeroInflationIndexPtr = {"_p_ZeroInflationIndexPtr", "ZeroInflationIndexPtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ZeroInflationTermStructure = {"_p_ZeroInflationTermStructure", "ZeroInflationTermStructure *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ZeroSpreadedTermStructurePtr = {"_p_ZeroSpreadedTermStructurePtr", "ZeroSpreadedTermStructurePtr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ZeroYield = {"_p_ZeroYield", "ZeroYield *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ZiborPtr = {"_p_ZiborPtr", "ZiborPtr *", 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_boost__shared_ptrT_BlackVolTermStructure_t = {"_p_boost__shared_ptrT_BlackVolTermStructure_t", "boost::shared_ptr< BlackVolTermStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_CalibratedModel_t = {"_p_boost__shared_ptrT_CalibratedModel_t", "boost::shared_ptr< CalibratedModel > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_CalibrationHelper_t = {"_p_boost__shared_ptrT_CalibrationHelper_t", "boost::shared_ptr< CalibrationHelper > *|std::vector< boost::shared_ptr< CalibrationHelper > >::value_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_Callability_t = {"_p_boost__shared_ptrT_Callability_t", "boost::shared_ptr< Callability > *|std::vector< boost::shared_ptr< Callability > >::value_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t = {"_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t", "boost::shared_ptr< CapFloorTermVolatilityStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_CashFlow_t = {"_p_boost__shared_ptrT_CashFlow_t", "boost::shared_ptr< CashFlow > *|std::vector< boost::shared_ptr< CashFlow > >::value_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_DefaultBoundaryCondition_t = {"_p_boost__shared_ptrT_DefaultBoundaryCondition_t", "boost::shared_ptr< DefaultBoundaryCondition > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_DefaultProbabilityHelper_t = {"_p_boost__shared_ptrT_DefaultProbabilityHelper_t", "boost::shared_ptr< DefaultProbabilityHelper > *|std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::value_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_DefaultProbabilityTermStructure_t = {"_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t", "boost::shared_ptr< DefaultProbabilityTermStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_DeltaVolQuote_t = {"_p_boost__shared_ptrT_DeltaVolQuote_t", "boost::shared_ptr< DeltaVolQuote > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_Dividend_t = {"_p_boost__shared_ptrT_Dividend_t", "boost::shared_ptr< Dividend > *|std::vector< boost::shared_ptr< Dividend > >::value_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_EndCriteria_t = {"_p_boost__shared_ptrT_EndCriteria_t", "boost::shared_ptr< EndCriteria > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_Exercise_t = {"_p_boost__shared_ptrT_Exercise_t", "boost::shared_ptr< Exercise > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_FloatingRateCouponPricer_t = {"_p_boost__shared_ptrT_FloatingRateCouponPricer_t", "boost::shared_ptr< FloatingRateCouponPricer > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_Gaussian1dModel_t = {"_p_boost__shared_ptrT_Gaussian1dModel_t", "boost::shared_ptr< Gaussian1dModel > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_IborIndex_t = {"_p_boost__shared_ptrT_IborIndex_t", "boost::shared_ptr< IborIndex > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_Index_t = {"_p_boost__shared_ptrT_Index_t", "boost::shared_ptr< Index > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_Instrument_t = {"_p_boost__shared_ptrT_Instrument_t", "std::vector< boost::shared_ptr< Instrument > >::value_type *|boost::shared_ptr< Instrument > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_LocalVolTermStructure_t = {"_p_boost__shared_ptrT_LocalVolTermStructure_t", "boost::shared_ptr< LocalVolTermStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_Observable_t = {"_p_boost__shared_ptrT_Observable_t", "boost::shared_ptr< Observable > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_OptimizationMethod_t = {"_p_boost__shared_ptrT_OptimizationMethod_t", "boost::shared_ptr< OptimizationMethod > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_OptionletVolatilityStructure_t = {"_p_boost__shared_ptrT_OptionletVolatilityStructure_t", "boost::shared_ptr< OptionletVolatilityStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_Payoff_t = {"_p_boost__shared_ptrT_Payoff_t", "boost::shared_ptr< Payoff > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_PricingEngine_t = {"_p_boost__shared_ptrT_PricingEngine_t", "boost::shared_ptr< PricingEngine > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_Quote_t = {"_p_boost__shared_ptrT_Quote_t", "boost::shared_ptr< Quote > *|std::vector< boost::shared_ptr< Quote > >::value_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_RateHelper_t = {"_p_boost__shared_ptrT_RateHelper_t", "boost::shared_ptr< RateHelper > *|std::vector< boost::shared_ptr< RateHelper > >::value_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_Seasonality_t = {"_p_boost__shared_ptrT_Seasonality_t", "boost::shared_ptr< Seasonality > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_ShortRateModel_t = {"_p_boost__shared_ptrT_ShortRateModel_t", "boost::shared_ptr< ShortRateModel > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_StochasticProcess_t = {"_p_boost__shared_ptrT_StochasticProcess_t", "std::vector< boost::shared_ptr< StochasticProcess > >::value_type *|boost::shared_ptr< StochasticProcess > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_StrippedOptionletBase_t = {"_p_boost__shared_ptrT_StrippedOptionletBase_t", "boost::shared_ptr< StrippedOptionletBase > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_SwapIndex_t = {"_p_boost__shared_ptrT_SwapIndex_t", "boost::shared_ptr< SwapIndex > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_SwaptionVolatilityStructure_t = {"_p_boost__shared_ptrT_SwaptionVolatilityStructure_t", "boost::shared_ptr< SwaptionVolatilityStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_YieldTermStructure_t = {"_p_boost__shared_ptrT_YieldTermStructure_t", "boost::shared_ptr< YieldTermStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_YoYHelper_t = {"_p_boost__shared_ptrT_YoYHelper_t", "boost::shared_ptr< YoYHelper > *|std::vector< boost::shared_ptr< YoYHelper > >::value_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_YoYInflationTermStructure_t = {"_p_boost__shared_ptrT_YoYInflationTermStructure_t", "boost::shared_ptr< YoYInflationTermStructure > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_ZeroHelper_t = {"_p_boost__shared_ptrT_ZeroHelper_t", "boost::shared_ptr< ZeroHelper > *|std::vector< boost::shared_ptr< ZeroHelper > >::value_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_boost__shared_ptrT_ZeroInflationTermStructure_t = {"_p_boost__shared_ptrT_ZeroInflationTermStructure_t", "boost::shared_ptr< ZeroInflationTermStructure > *", 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_const_reference = {"_p_const_reference", "const_reference *", 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_double = {"_p_double", "Rate *|Time *|double *|Spread *|Decimal *|DiscountFactor *|Real *|Probability *|Volatility *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_first_type = {"_p_first_type", "first_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_int = {"_p_int", "int *|Hour *|Year *|Minute *|Day *|Integer *|Second *|Millisecond *|Microsecond *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_long = {"_p_long", "long *|BigInteger *", 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_reference = {"_p_reference", "reference *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_second_type = {"_p_second_type", "second_type *", 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_Date_t = {"_p_std__allocatorT_Date_t", "std::allocator< Date > *|std::vector< Date >::allocator_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_HandleT_Quote_t_t = {"_p_std__allocatorT_HandleT_Quote_t_t", "std::allocator< Handle< Quote > > *|std::vector< Handle< Quote > >::allocator_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_InterestRate_t = {"_p_std__allocatorT_InterestRate_t", "std::allocator< InterestRate > *|std::vector< InterestRate >::allocator_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_IntervalPrice_t = {"_p_std__allocatorT_IntervalPrice_t", "std::vector< IntervalPrice >::allocator_type *|std::allocator< IntervalPrice > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_Period_t = {"_p_std__allocatorT_Period_t", "std::allocator< Period > *|std::vector< Period >::allocator_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_RelinkableHandleT_Quote_t_t = {"_p_std__allocatorT_RelinkableHandleT_Quote_t_t", "std::allocator< RelinkableHandle< Quote > > *|std::vector< RelinkableHandle< Quote > >::allocator_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_bool_t = {"_p_std__allocatorT_bool_t", "std::vector< bool >::allocator_type *|std::allocator< bool > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t = {"_p_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t", "std::allocator< boost::shared_ptr< CalibrationHelper > > *|std::vector< boost::shared_ptr< CalibrationHelper > >::allocator_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_boost__shared_ptrT_Callability_t_t = {"_p_std__allocatorT_boost__shared_ptrT_Callability_t_t", "std::allocator< boost::shared_ptr< Callability > > *|std::vector< boost::shared_ptr< Callability > >::allocator_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_boost__shared_ptrT_CashFlow_t_t = {"_p_std__allocatorT_boost__shared_ptrT_CashFlow_t_t", "std::allocator< boost::shared_ptr< CashFlow > > *|std::vector< boost::shared_ptr< CashFlow > >::allocator_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t = {"_p_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t", "std::vector< boost::shared_ptr< DefaultProbabilityHelper > >::allocator_type *|std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_boost__shared_ptrT_Dividend_t_t = {"_p_std__allocatorT_boost__shared_ptrT_Dividend_t_t", "std::vector< boost::shared_ptr< Dividend > >::allocator_type *|std::allocator< boost::shared_ptr< Dividend > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_boost__shared_ptrT_Instrument_t_t = {"_p_std__allocatorT_boost__shared_ptrT_Instrument_t_t", "std::allocator< boost::shared_ptr< Instrument > > *|std::vector< boost::shared_ptr< Instrument > >::allocator_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_boost__shared_ptrT_Quote_t_t = {"_p_std__allocatorT_boost__shared_ptrT_Quote_t_t", "std::allocator< boost::shared_ptr< Quote > > *|std::vector< boost::shared_ptr< Quote > >::allocator_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_boost__shared_ptrT_RateHelper_t_t = {"_p_std__allocatorT_boost__shared_ptrT_RateHelper_t_t", "std::vector< boost::shared_ptr< RateHelper > >::allocator_type *|std::allocator< boost::shared_ptr< RateHelper > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t = {"_p_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t", "std::allocator< boost::shared_ptr< StochasticProcess > > *|std::vector< boost::shared_ptr< StochasticProcess > >::allocator_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t = {"_p_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t", "std::vector< boost::shared_ptr< YoYHelper > >::allocator_type *|std::allocator< boost::shared_ptr< YoYHelper > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t = {"_p_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t", "std::vector< boost::shared_ptr< ZeroHelper > >::allocator_type *|std::allocator< boost::shared_ptr< ZeroHelper > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_double_t = {"_p_std__allocatorT_double_t", "std::vector< double >::allocator_type *|std::allocator< double > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_int_t = {"_p_std__allocatorT_int_t", "std::vector< int >::allocator_type *|std::allocator< int > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__pairT_Date_double_t_t = {"_p_std__allocatorT_std__pairT_Date_double_t_t", "std::allocator< std::pair< Date,double > > *|std::vector< std::pair< Date,double > >::allocator_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__string_t = {"_p_std__allocatorT_std__string_t", "std::vector< std::string >::allocator_type *|std::allocator< std::string > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t = {"_p_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t", "std::vector< std::vector< Handle< Quote > > >::allocator_type *|std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t = {"_p_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t", "std::vector< std::vector< RelinkableHandle< Quote > > >::allocator_type *|std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t = {"_p_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t", "std::vector< std::vector< boost::shared_ptr< Quote > > >::allocator_type *|std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_unsigned_int_t = {"_p_std__allocatorT_unsigned_int_t", "std::vector< unsigned int >::allocator_type *|std::allocator< unsigned int > *", 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__pairT_Date_double_t = {"_p_std__pairT_Date_double_t", "std::pair< Date,double > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__size_t = {"_p_std__size_t", "Size *|std::size_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_Date_std__allocatorT_Date_t_t = {"_p_std__vectorT_Date_std__allocatorT_Date_t_t", "std::vector< Date > *|std::vector< Date,std::allocator< Date > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t = {"_p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t", "std::vector< Handle< Quote > > *|std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t = {"_p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t", "std::vector< InterestRate > *|std::vector< InterestRate,std::allocator< InterestRate > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t = {"_p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t", "std::vector< IntervalPrice > *|std::vector< IntervalPrice,std::allocator< IntervalPrice > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_Period_std__allocatorT_Period_t_t = {"_p_std__vectorT_Period_std__allocatorT_Period_t_t", "std::vector< Period > *|std::vector< Period,std::allocator< Period > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t = {"_p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t", "std::vector< RelinkableHandle< Quote > > *|std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_bool_std__allocatorT_bool_t_t = {"_p_std__vectorT_bool_std__allocatorT_bool_t_t", "std::vector< bool,std::allocator< bool > > *|std::vector< bool > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t = {"_p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t", "std::vector< boost::shared_ptr< CalibrationHelper > > *|std::vector< boost::shared_ptr< CalibrationHelper >,std::allocator< boost::shared_ptr< CalibrationHelper > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t = {"_p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t", "std::vector< boost::shared_ptr< Callability > > *|std::vector< boost::shared_ptr< Callability >,std::allocator< boost::shared_ptr< Callability > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t = {"_p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t", "std::vector< boost::shared_ptr< CashFlow > > *|std::vector< boost::shared_ptr< CashFlow >,std::allocator< boost::shared_ptr< CashFlow > > > *|Leg *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t = {"_p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t", "std::vector< boost::shared_ptr< DefaultProbabilityHelper > > *|std::vector< boost::shared_ptr< DefaultProbabilityHelper >,std::allocator< boost::shared_ptr< DefaultProbabilityHelper > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t = {"_p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t", "std::vector< boost::shared_ptr< Dividend > > *|std::vector< boost::shared_ptr< Dividend >,std::allocator< boost::shared_ptr< Dividend > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t = {"_p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t", "std::vector< boost::shared_ptr< Instrument > > *|std::vector< boost::shared_ptr< Instrument >,std::allocator< boost::shared_ptr< Instrument > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t = {"_p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t", "std::vector< boost::shared_ptr< Quote > > *|std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t = {"_p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t", "std::vector< boost::shared_ptr< RateHelper > > *|std::vector< boost::shared_ptr< RateHelper >,std::allocator< boost::shared_ptr< RateHelper > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t = {"_p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t", "std::vector< boost::shared_ptr< StochasticProcess > > *|std::vector< boost::shared_ptr< StochasticProcess >,std::allocator< boost::shared_ptr< StochasticProcess > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t = {"_p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t", "std::vector< boost::shared_ptr< YoYHelper > > *|std::vector< boost::shared_ptr< YoYHelper >,std::allocator< boost::shared_ptr< YoYHelper > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t = {"_p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t", "std::vector< boost::shared_ptr< ZeroHelper > > *|std::vector< boost::shared_ptr< ZeroHelper >,std::allocator< boost::shared_ptr< ZeroHelper > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_double_std__allocatorT_double_t_t = {"_p_std__vectorT_double_std__allocatorT_double_t_t", "std::vector< double,std::allocator< double > > *|std::vector< double > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_int_std__allocatorT_int_t_t = {"_p_std__vectorT_int_std__allocatorT_int_t_t", "std::vector< int,std::allocator< int > > *|std::vector< int > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t = {"_p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t", "std::vector< std::pair< Date,double > > *|std::vector< std::pair< Date,double >,std::allocator< std::pair< Date,double > > > *", 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 > > *|std::vector< std::string > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t = {"_p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t", "std::vector< std::vector< Handle< Quote > > > *|std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > >,std::allocator< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > > *|std::vector< std::vector< Handle< Quote >,std::allocator< Handle< Quote > > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t = {"_p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t", "std::vector< std::vector< RelinkableHandle< Quote > > > *|std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > >,std::allocator< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > > *|std::vector< std::vector< RelinkableHandle< Quote >,std::allocator< RelinkableHandle< Quote > > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t = {"_p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t", "std::vector< std::vector< boost::shared_ptr< Quote > > > *|std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > >,std::allocator< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > > *|std::vector< std::vector< boost::shared_ptr< Quote >,std::allocator< boost::shared_ptr< Quote > > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t = {"_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t", "std::vector< std::vector< Real,std::allocator< Real > >,std::allocator< std::vector< Real,std::allocator< Real > > > > *|std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t = {"_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t", "std::vector< unsigned int,std::allocator< unsigned int > > *|std::vector< unsigned int > *", 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_unsigned_int = {"_p_unsigned_int", "unsigned int *|Natural *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "BigNatural *|unsigned long *", 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 *swig_type_initial[] = {
  &_swigt__p_ASX,
  &_swigt__p_AUDLiborPtr,
  &_swigt__p_AmericanExercisePtr,
  &_swigt__p_AmortizingPaymentPtr,
  &_swigt__p_AnalyticBarrierEnginePtr,
  &_swigt__p_AnalyticBinaryBarrierEnginePtr,
  &_swigt__p_AnalyticCapFloorEnginePtr,
  &_swigt__p_AnalyticContinuousGeometricAveragePriceAsianEnginePtr,
  &_swigt__p_AnalyticDigitalAmericanEnginePtr,
  &_swigt__p_AnalyticDigitalAmericanKOEnginePtr,
  &_swigt__p_AnalyticDiscreteGeometricAveragePriceAsianEnginePtr,
  &_swigt__p_AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr,
  &_swigt__p_AnalyticDividendEuropeanEnginePtr,
  &_swigt__p_AnalyticDoubleBarrierBinaryEnginePtr,
  &_swigt__p_AnalyticDoubleBarrierEnginePtr,
  &_swigt__p_AnalyticEuropeanEnginePtr,
  &_swigt__p_AnalyticHaganPricerPtr,
  &_swigt__p_AnalyticHestonEnginePtr,
  &_swigt__p_AnalyticPTDHestonEnginePtr,
  &_swigt__p_AoniaPtr,
  &_swigt__p_Array,
  &_swigt__p_AssetOrNothingPayoffPtr,
  &_swigt__p_AssetSwapPtr,
  &_swigt__p_Average,
  &_swigt__p_AverageBasketPayoffPtr,
  &_swigt__p_BFGS,
  &_swigt__p_BachelierCapFloorEnginePtr,
  &_swigt__p_BachelierSwaptionEnginePtr,
  &_swigt__p_BackwardFlat,
  &_swigt__p_BackwardFlatZeroCurvePtr,
  &_swigt__p_BaroneAdesiWhaleyApproximationEnginePtr,
  &_swigt__p_Barrier,
  &_swigt__p_BarrierOptionPtr,
  &_swigt__p_BasketOptionPtr,
  &_swigt__p_BasketPayoffPtr,
  &_swigt__p_BatesEnginePtr,
  &_swigt__p_BatesModelPtr,
  &_swigt__p_BatesProcessPtr,
  &_swigt__p_Bbsw1MPtr,
  &_swigt__p_Bbsw2MPtr,
  &_swigt__p_Bbsw3MPtr,
  &_swigt__p_Bbsw4MPtr,
  &_swigt__p_Bbsw5MPtr,
  &_swigt__p_Bbsw6MPtr,
  &_swigt__p_BbswPtr,
  &_swigt__p_BermudanExercisePtr,
  &_swigt__p_BinomialBarrierEnginePtr,
  &_swigt__p_BinomialConvertibleEnginePtr,
  &_swigt__p_BinomialDistribution,
  &_swigt__p_BinomialDoubleBarrierEnginePtr,
  &_swigt__p_BinomialVanillaEnginePtr,
  &_swigt__p_Bisection,
  &_swigt__p_BivariateCumulativeNormalDistribution,
  &_swigt__p_BivariateCumulativeNormalDistributionDr78,
  &_swigt__p_BivariateCumulativeNormalDistributionWe04DP,
  &_swigt__p_BjerksundStenslandApproximationEnginePtr,
  &_swigt__p_Bkbm1MPtr,
  &_swigt__p_Bkbm2MPtr,
  &_swigt__p_Bkbm3MPtr,
  &_swigt__p_Bkbm4MPtr,
  &_swigt__p_Bkbm5MPtr,
  &_swigt__p_Bkbm6MPtr,
  &_swigt__p_BkbmPtr,
  &_swigt__p_BlackCalculator,
  &_swigt__p_BlackCallableFixedRateBondEnginePtr,
  &_swigt__p_BlackCapFloorEnginePtr,
  &_swigt__p_BlackConstantVolPtr,
  &_swigt__p_BlackDeltaCalculator,
  &_swigt__p_BlackIborCouponPricerPtr,
  &_swigt__p_BlackKarasinskiPtr,
  &_swigt__p_BlackProcessPtr,
  &_swigt__p_BlackScholesMertonProcessPtr,
  &_swigt__p_BlackScholesProcessPtr,
  &_swigt__p_BlackSwaptionEnginePtr,
  &_swigt__p_BlackVarianceCurvePtr,
  &_swigt__p_BlackVarianceSurfacePtr,
  &_swigt__p_BlackVolTermStructure,
  &_swigt__p_BondFunctions,
  &_swigt__p_BondHelperPtr,
  &_swigt__p_BondPtr,
  &_swigt__p_BoundaryConstraint,
  &_swigt__p_BoxMullerGaussianRngT_KnuthUniformRng_t,
  &_swigt__p_BoxMullerGaussianRngT_LecuyerUniformRng_t,
  &_swigt__p_BoxMullerGaussianRngT_MersenneTwisterUniformRng_t,
  &_swigt__p_Brent,
  &_swigt__p_BrownianBridge,
  &_swigt__p_CADLiborPtr,
  &_swigt__p_CHFLiborPtr,
  &_swigt__p_CLGaussianRngT_KnuthUniformRng_t,
  &_swigt__p_CLGaussianRngT_LecuyerUniformRng_t,
  &_swigt__p_CLGaussianRngT_MersenneTwisterUniformRng_t,
  &_swigt__p_CPI,
  &_swigt__p_CPIBondPtr,
  &_swigt__p_Calendar,
  &_swigt__p_CalibratedModel,
  &_swigt__p_CalibrationHelper,
  &_swigt__p_Callability,
  &_swigt__p_CallabilityPrice,
  &_swigt__p_CallableFixedRateBondPtr,
  &_swigt__p_CapFloorPtr,
  &_swigt__p_CapFloorTermVolCurvePtr,
  &_swigt__p_CapFloorTermVolSurfacePtr,
  &_swigt__p_CapFloorTermVolatilityStructure,
  &_swigt__p_CapHelperPtr,
  &_swigt__p_CapPtr,
  &_swigt__p_CappedFlooredCmsCouponPtr,
  &_swigt__p_CappedFlooredCouponPtr,
  &_swigt__p_CashFlow,
  &_swigt__p_CashFlows,
  &_swigt__p_CashOrNothingPayoffPtr,
  &_swigt__p_CdorPtr,
  &_swigt__p_CeilingTruncation,
  &_swigt__p_ClosestRounding,
  &_swigt__p_CmsCouponPricerPtr,
  &_swigt__p_CmsCouponPtr,
  &_swigt__p_CmsRateBondPtr,
  &_swigt__p_CollarPtr,
  &_swigt__p_CompositeConstraint,
  &_swigt__p_CompositeInstrumentPtr,
  &_swigt__p_CompositeQuotePtr,
  &_swigt__p_ConjugateGradient,
  &_swigt__p_ConstantEstimator,
  &_swigt__p_ConstantOptionletVolatilityPtr,
  &_swigt__p_ConstantParameter,
  &_swigt__p_ConstantSwaptionVolatilityPtr,
  &_swigt__p_Constraint,
  &_swigt__p_ContinuousArithmeticAsianLevyEnginePtr,
  &_swigt__p_ContinuousAveragingAsianOptionPtr,
  &_swigt__p_ConvertibleFixedCouponBondPtr,
  &_swigt__p_ConvertibleFloatingRateBondPtr,
  &_swigt__p_ConvertibleZeroCouponBondPtr,
  &_swigt__p_CouponPtr,
  &_swigt__p_CreditDefaultSwapPtr,
  &_swigt__p_Cubic,
  &_swigt__p_CubicBSplinesFitting,
  &_swigt__p_CubicZeroCurvePtr,
  &_swigt__p_CumulativeBinomialDistribution,
  &_swigt__p_CumulativeChiSquareDistribution,
  &_swigt__p_CumulativeGammaDistribution,
  &_swigt__p_CumulativeNormalDistribution,
  &_swigt__p_CumulativePoissonDistribution,
  &_swigt__p_CumulativeStudentDistribution,
  &_swigt__p_Currency,
  &_swigt__p_CustomRegion,
  &_swigt__p_DKKLiborPtr,
  &_swigt__p_DMinus,
  &_swigt__p_DPlus,
  &_swigt__p_DPlusDMinus,
  &_swigt__p_DZero,
  &_swigt__p_Date,
  &_swigt__p_DateGeneration,
  &_swigt__p_DateParser,
  &_swigt__p_DatedOISRateHelperPtr,
  &_swigt__p_DayCounter,
  &_swigt__p_DefaultBoundaryCondition,
  &_swigt__p_DefaultDensity,
  &_swigt__p_DefaultDensityCurvePtr,
  &_swigt__p_DefaultLexicographicalView,
  &_swigt__p_DefaultLexicographicalViewColumn,
  &_swigt__p_DefaultLogCubic,
  &_swigt__p_DefaultProbabilityHelper,
  &_swigt__p_DefaultProbabilityTermStructure,
  &_swigt__p_DeltaVolQuote,
  &_swigt__p_DepositRateHelperPtr,
  &_swigt__p_DerivedQuotePtr,
  &_swigt__p_DifferentialEvolution,
  &_swigt__p_DirichletBCPtr,
  &_swigt__p_Discount,
  &_swigt__p_DiscountCurvePtr,
  &_swigt__p_DiscountingBondEnginePtr,
  &_swigt__p_DiscountingSwapEnginePtr,
  &_swigt__p_DiscreteAveragingAsianOptionPtr,
  &_swigt__p_Dividend,
  &_swigt__p_DividendVanillaOptionPtr,
  &_swigt__p_DoubleBarrier,
  &_swigt__p_DoubleBarrierOptionPtr,
  &_swigt__p_DownRounding,
  &_swigt__p_Duration,
  &_swigt__p_EUHICPPtr,
  &_swigt__p_EUHICPXTPtr,
  &_swigt__p_EURLibor10MPtr,
  &_swigt__p_EURLibor11MPtr,
  &_swigt__p_EURLibor1MPtr,
  &_swigt__p_EURLibor1YPtr,
  &_swigt__p_EURLibor2MPtr,
  &_swigt__p_EURLibor2WPtr,
  &_swigt__p_EURLibor3MPtr,
  &_swigt__p_EURLibor4MPtr,
  &_swigt__p_EURLibor5MPtr,
  &_swigt__p_EURLibor6MPtr,
  &_swigt__p_EURLibor7MPtr,
  &_swigt__p_EURLibor8MPtr,
  &_swigt__p_EURLibor9MPtr,
  &_swigt__p_EURLiborPtr,
  &_swigt__p_EURLiborSWPtr,
  &_swigt__p_EndCriteria,
  &_swigt__p_EndCriteria__Type,
  &_swigt__p_EoniaPtr,
  &_swigt__p_EurLiborSwapIfrFixPtr,
  &_swigt__p_EurLiborSwapIsdaFixAPtr,
  &_swigt__p_EurLiborSwapIsdaFixBPtr,
  &_swigt__p_Euribor10MPtr,
  &_swigt__p_Euribor11MPtr,
  &_swigt__p_Euribor1MPtr,
  &_swigt__p_Euribor1YPtr,
  &_swigt__p_Euribor2MPtr,
  &_swigt__p_Euribor2WPtr,
  &_swigt__p_Euribor365Ptr,
  &_swigt__p_Euribor365_10MPtr,
  &_swigt__p_Euribor365_11MPtr,
  &_swigt__p_Euribor365_1MPtr,
  &_swigt__p_Euribor365_1YPtr,
  &_swigt__p_Euribor365_2MPtr,
  &_swigt__p_Euribor365_2WPtr,
  &_swigt__p_Euribor365_3MPtr,
  &_swigt__p_Euribor365_3WPtr,
  &_swigt__p_Euribor365_4MPtr,
  &_swigt__p_Euribor365_5MPtr,
  &_swigt__p_Euribor365_6MPtr,
  &_swigt__p_Euribor365_7MPtr,
  &_swigt__p_Euribor365_8MPtr,
  &_swigt__p_Euribor365_9MPtr,
  &_swigt__p_Euribor365_SWPtr,
  &_swigt__p_Euribor3MPtr,
  &_swigt__p_Euribor3WPtr,
  &_swigt__p_Euribor4MPtr,
  &_swigt__p_Euribor5MPtr,
  &_swigt__p_Euribor6MPtr,
  &_swigt__p_Euribor7MPtr,
  &_swigt__p_Euribor8MPtr,
  &_swigt__p_Euribor9MPtr,
  &_swigt__p_EuriborPtr,
  &_swigt__p_EuriborSWPtr,
  &_swigt__p_EuriborSwapIfrFixPtr,
  &_swigt__p_EuriborSwapIsdaFixAPtr,
  &_swigt__p_EuriborSwapIsdaFixBPtr,
  &_swigt__p_EuropeanExercisePtr,
  &_swigt__p_EuropeanOptionPtr,
  &_swigt__p_EverestOptionPtr,
  &_swigt__p_ExchangeRate,
  &_swigt__p_ExchangeRateManager,
  &_swigt__p_Exercise,
  &_swigt__p_ExponentialSplinesFitting,
  &_swigt__p_Extrapolator,
  &_swigt__p_FDAmericanEnginePtr,
  &_swigt__p_FDBermudanEnginePtr,
  &_swigt__p_FDDividendAmericanEnginePtr,
  &_swigt__p_FDDividendEuropeanEnginePtr,
  &_swigt__p_FDEuropeanEnginePtr,
  &_swigt__p_FDShoutEnginePtr,
  &_swigt__p_FFTVarianceGammaEnginePtr,
  &_swigt__p_FRHICPPtr,
  &_swigt__p_FalsePosition,
  &_swigt__p_FdBatesVanillaEnginePtr,
  &_swigt__p_FdBlackScholesAsianEnginePtr,
  &_swigt__p_FdBlackScholesBarrierEnginePtr,
  &_swigt__p_FdBlackScholesVanillaEnginePtr,
  &_swigt__p_FdG2SwaptionEnginePtr,
  &_swigt__p_FdHullWhiteSwaptionEnginePtr,
  &_swigt__p_FdmSchemeDesc,
  &_swigt__p_FedFundsPtr,
  &_swigt__p_FittedBondDiscountCurvePtr,
  &_swigt__p_FittingMethod,
  &_swigt__p_FixedDividendPtr,
  &_swigt__p_FixedRateBondForwardPtr,
  &_swigt__p_FixedRateBondHelperPtr,
  &_swigt__p_FixedRateBondPtr,
  &_swigt__p_FixedRateCouponPtr,
  &_swigt__p_FlatForwardPtr,
  &_swigt__p_FlatHazardRatePtr,
  &_swigt__p_FloatFloatSwapPtr,
  &_swigt__p_FloatFloatSwaptionPtr,
  &_swigt__p_FloatingRateBondPtr,
  &_swigt__p_FloatingRateCouponPricer,
  &_swigt__p_FloatingRateCouponPtr,
  &_swigt__p_FloorPtr,
  &_swigt__p_FloorTruncation,
  &_swigt__p_ForwardCurvePtr,
  &_swigt__p_ForwardEuropeanEnginePtr,
  &_swigt__p_ForwardFlat,
  &_swigt__p_ForwardFlatZeroCurvePtr,
  &_swigt__p_ForwardPtr,
  &_swigt__p_ForwardRate,
  &_swigt__p_ForwardRateAgreementPtr,
  &_swigt__p_ForwardSpreadedTermStructurePtr,
  &_swigt__p_ForwardVanillaOptionPtr,
  &_swigt__p_FraRateHelperPtr,
  &_swigt__p_FractionalDividendPtr,
  &_swigt__p_Futures,
  &_swigt__p_FuturesRateHelperPtr,
  &_swigt__p_FxSwapRateHelperPtr,
  &_swigt__p_G2Ptr,
  &_swigt__p_G2SwaptionEnginePtr,
  &_swigt__p_GBPLiborPtr,
  &_swigt__p_GFunctionFactory,
  &_swigt__p_GammaFunction,
  &_swigt__p_GapPayoffPtr,
  &_swigt__p_GarmanKlassSigma1,
  &_swigt__p_GarmanKlassSigma3,
  &_swigt__p_GarmanKlassSigma4,
  &_swigt__p_GarmanKlassSigma5,
  &_swigt__p_GarmanKlassSigma6,
  &_swigt__p_GarmanKohlagenProcessPtr,
  &_swigt__p_GaussChebyshev2ndIntegration,
  &_swigt__p_GaussChebyshevIntegration,
  &_swigt__p_GaussGegenbauerIntegration,
  &_swigt__p_GaussHermiteIntegration,
  &_swigt__p_GaussHyperbolicIntegration,
  &_swigt__p_GaussJacobiIntegration,
  &_swigt__p_GaussKronrodAdaptive,
  &_swigt__p_GaussKronrodNonAdaptive,
  &_swigt__p_GaussLaguerreIntegration,
  &_swigt__p_GaussLegendreIntegration,
  &_swigt__p_GaussLobattoIntegral,
  &_swigt__p_Gaussian1dFloatFloatSwaptionEnginePtr,
  &_swigt__p_Gaussian1dJamshidianSwaptionEnginePtr,
  &_swigt__p_Gaussian1dModel,
  &_swigt__p_Gaussian1dNonstandardSwaptionEnginePtr,
  &_swigt__p_Gaussian1dSwaptionEnginePtr,
  &_swigt__p_GaussianLowDiscrepancySequenceGenerator,
  &_swigt__p_GaussianMultiPathGenerator,
  &_swigt__p_GaussianPathGenerator,
  &_swigt__p_GaussianRandomGenerator,
  &_swigt__p_GaussianRandomSequenceGenerator,
  &_swigt__p_GaussianSimulatedAnnealing,
  &_swigt__p_GaussianSobolPathGenerator,
  &_swigt__p_GeneralizedBlackScholesProcessPtr,
  &_swigt__p_GenericSequenceStatisticsT_IncrementalStatistics_t,
  &_swigt__p_GenericSequenceStatisticsT_RiskStatistics_t,
  &_swigt__p_GenericSequenceStatisticsT_Statistics_t,
  &_swigt__p_GeometricBrownianMotionProcessPtr,
  &_swigt__p_GsrProcessPtr,
  &_swigt__p_GsrPtr,
  &_swigt__p_HaltonRsg,
  &_swigt__p_HandleT_BlackVolTermStructure_t,
  &_swigt__p_HandleT_CalibratedModel_t,
  &_swigt__p_HandleT_CapFloorTermVolatilityStructure_t,
  &_swigt__p_HandleT_DefaultProbabilityTermStructure_t,
  &_swigt__p_HandleT_DeltaVolQuote_t,
  &_swigt__p_HandleT_LocalVolTermStructure_t,
  &_swigt__p_HandleT_OptionletVolatilityStructure_t,
  &_swigt__p_HandleT_Quote_t,
  &_swigt__p_HandleT_ShortRateModel_t,
  &_swigt__p_HandleT_SwaptionVolatilityStructure_t,
  &_swigt__p_HandleT_YieldTermStructure_t,
  &_swigt__p_HandleT_YoYInflationTermStructure_t,
  &_swigt__p_HandleT_ZeroInflationTermStructure_t,
  &_swigt__p_HazardRate,
  &_swigt__p_HazardRateCurvePtr,
  &_swigt__p_HestonModelHelperPtr,
  &_swigt__p_HestonModelPtr,
  &_swigt__p_HestonProcessPtr,
  &_swigt__p_HimalayaOptionPtr,
  &_swigt__p_HullWhiteForwardProcessPtr,
  &_swigt__p_HullWhiteProcessPtr,
  &_swigt__p_HullWhitePtr,
  &_swigt__p_IMM,
  &_swigt__p_IborCouponPricerPtr,
  &_swigt__p_IborCouponPtr,
  &_swigt__p_IborIndexPtr,
  &_swigt__p_ImpliedTermStructurePtr,
  &_swigt__p_IncrementalStatistics,
  &_swigt__p_Index,
  &_swigt__p_IndexManager,
  &_swigt__p_InflationIndexPtr,
  &_swigt__p_InflationTermStructure,
  &_swigt__p_Instrument,
  &_swigt__p_IntegralCdsEnginePtr,
  &_swigt__p_IntegralEnginePtr,
  &_swigt__p_InterestRate,
  &_swigt__p_InterestRateIndexPtr,
  &_swigt__p_IntervalPrice,
  &_swigt__p_InverseCumulativeNormal,
  &_swigt__p_InverseCumulativePoisson,
  &_swigt__p_InverseCumulativeRngT_KnuthUniformRng_InverseCumulativeNormal_t,
  &_swigt__p_InverseCumulativeRngT_KnuthUniformRng_MoroInverseCumulativeNormal_t,
  &_swigt__p_InverseCumulativeRngT_LecuyerUniformRng_InverseCumulativeNormal_t,
  &_swigt__p_InverseCumulativeRngT_LecuyerUniformRng_MoroInverseCumulativeNormal_t,
  &_swigt__p_InverseCumulativeRngT_MersenneTwisterUniformRng_InverseCumulativeNormal_t,
  &_swigt__p_InverseCumulativeRngT_MersenneTwisterUniformRng_MoroInverseCumulativeNormal_t,
  &_swigt__p_InverseCumulativeRsgT_HaltonRsg_InverseCumulativeNormal_t,
  &_swigt__p_InverseCumulativeRsgT_HaltonRsg_MoroInverseCumulativeNormal_t,
  &_swigt__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_InverseCumulativeNormal_t,
  &_swigt__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_MoroInverseCumulativeNormal_t,
  &_swigt__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_InverseCumulativeNormal_t,
  &_swigt__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_MoroInverseCumulativeNormal_t,
  &_swigt__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_InverseCumulativeNormal_t,
  &_swigt__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_MoroInverseCumulativeNormal_t,
  &_swigt__p_InverseCumulativeRsgT_SobolRsg_InverseCumulativeNormal_t,
  &_swigt__p_InverseCumulativeRsgT_SobolRsg_MoroInverseCumulativeNormal_t,
  &_swigt__p_InverseCumulativeStudent,
  &_swigt__p_InverseNonCentralCumulativeChiSquareDistribution,
  &_swigt__p_JPYLiborPtr,
  &_swigt__p_JamshidianSwaptionEnginePtr,
  &_swigt__p_JibarPtr,
  &_swigt__p_KnuthUniformRng,
  &_swigt__p_LecuyerUniformRng,
  &_swigt__p_LevenbergMarquardt,
  &_swigt__p_LiborPtr,
  &_swigt__p_Linear,
  &_swigt__p_LinearTsrPricerPtr,
  &_swigt__p_LinearTsrPricer__Settings,
  &_swigt__p_LocalConstantVolPtr,
  &_swigt__p_LocalVolSurfacePtr,
  &_swigt__p_LocalVolTermStructure,
  &_swigt__p_LogCubicZeroCurvePtr,
  &_swigt__p_LogLinear,
  &_swigt__p_LogLinearZeroCurvePtr,
  &_swigt__p_LogNormalSimulatedAnnealing,
  &_swigt__p_MCAmericanBasketEnginePtr,
  &_swigt__p_MCBarrierEnginePtr,
  &_swigt__p_MCDiscreteArithmeticAPEnginePtr,
  &_swigt__p_MCDiscreteArithmeticASEnginePtr,
  &_swigt__p_MCDiscreteGeometricAPEnginePtr,
  &_swigt__p_MCEuropeanBasketEnginePtr,
  &_swigt__p_MCEuropeanEnginePtr,
  &_swigt__p_MCEverestEnginePtr,
  &_swigt__p_MCHimalayaEnginePtr,
  &_swigt__p_MarkovFunctionalPtr,
  &_swigt__p_MarkovFunctional__ModelSettings,
  &_swigt__p_Matrix,
  &_swigt__p_MatrixRow,
  &_swigt__p_MaxBasketPayoffPtr,
  &_swigt__p_MersenneTwisterUniformRng,
  &_swigt__p_Merton76ProcessPtr,
  &_swigt__p_MidPointCdsEnginePtr,
  &_swigt__p_MinBasketPayoffPtr,
  &_swigt__p_MirrorGaussianSimulatedAnnealing,
  &_swigt__p_Money,
  &_swigt__p_MonotonicCubic,
  &_swigt__p_MonotonicCubicZeroCurvePtr,
  &_swigt__p_MonotonicLogCubic,
  &_swigt__p_MoroInverseCumulativeNormal,
  &_swigt__p_MultiAssetOptionPtr,
  &_swigt__p_MultiPath,
  &_swigt__p_MultiplicativePriceSeasonalityPtr,
  &_swigt__p_NZDLiborPtr,
  &_swigt__p_NelsonSiegelFitting,
  &_swigt__p_NeumannBCPtr,
  &_swigt__p_Newton,
  &_swigt__p_NewtonSafe,
  &_swigt__p_NoConstraint,
  &_swigt__p_NonCentralCumulativeChiSquareDistribution,
  &_swigt__p_NonhomogeneousBoundaryConstraint,
  &_swigt__p_NonstandardSwapPtr,
  &_swigt__p_NonstandardSwaptionPtr,
  &_swigt__p_NormalDistribution,
  &_swigt__p_NullParameter,
  &_swigt__p_NumericHaganPricerPtr,
  &_swigt__p_NzocrPtr,
  &_swigt__p_OISRateHelperPtr,
  &_swigt__p_Observable,
  &_swigt__p_OptimizationMethod,
  &_swigt__p_Optimizer,
  &_swigt__p_Option,
  &_swigt__p_OptionletStripper1Ptr,
  &_swigt__p_OptionletVolatilityStructure,
  &_swigt__p_OvernightIndexPtr,
  &_swigt__p_Parameter,
  &_swigt__p_ParkinsonSigma,
  &_swigt__p_Path,
  &_swigt__p_Payoff,
  &_swigt__p_PercentageStrikePayoffPtr,
  &_swigt__p_Period,
  &_swigt__p_PeriodParser,
  &_swigt__p_PiecewiseConstantParameter,
  &_swigt__p_PiecewiseCubicZeroPtr,
  &_swigt__p_PiecewiseFlatForwardPtr,
  &_swigt__p_PiecewiseFlatHazardRatePtr,
  &_swigt__p_PiecewiseLinearForwardPtr,
  &_swigt__p_PiecewiseLinearZeroPtr,
  &_swigt__p_PiecewiseLogCubicDiscountPtr,
  &_swigt__p_PiecewiseTimeDependentHestonModelPtr,
  &_swigt__p_PiecewiseYoYInflationPtr,
  &_swigt__p_PiecewiseZeroInflationPtr,
  &_swigt__p_Pillar,
  &_swigt__p_PlainVanillaPayoffPtr,
  &_swigt__p_PoissonDistribution,
  &_swigt__p_Position,
  &_swigt__p_PositiveConstraint,
  &_swigt__p_PricingEngine,
  &_swigt__p_ProbabilityBoltzmannDownhill,
  &_swigt__p_Protection,
  &_swigt__p_PyObserver,
  &_swigt__p_QuantLib__ARSCurrency,
  &_swigt__p_QuantLib__ATSCurrency,
  &_swigt__p_QuantLib__AUDCurrency,
  &_swigt__p_QuantLib__Actual360,
  &_swigt__p_QuantLib__Actual365Fixed,
  &_swigt__p_QuantLib__ActualActual,
  &_swigt__p_QuantLib__Argentina,
  &_swigt__p_QuantLib__Australia,
  &_swigt__p_QuantLib__BDTCurrency,
  &_swigt__p_QuantLib__BEFCurrency,
  &_swigt__p_QuantLib__BGLCurrency,
  &_swigt__p_QuantLib__BRLCurrency,
  &_swigt__p_QuantLib__BYRCurrency,
  &_swigt__p_QuantLib__BespokeCalendar,
  &_swigt__p_QuantLib__Brazil,
  &_swigt__p_QuantLib__Business252,
  &_swigt__p_QuantLib__CADCurrency,
  &_swigt__p_QuantLib__CHFCurrency,
  &_swigt__p_QuantLib__CLPCurrency,
  &_swigt__p_QuantLib__CNYCurrency,
  &_swigt__p_QuantLib__COPCurrency,
  &_swigt__p_QuantLib__CYPCurrency,
  &_swigt__p_QuantLib__CZKCurrency,
  &_swigt__p_QuantLib__Canada,
  &_swigt__p_QuantLib__China,
  &_swigt__p_QuantLib__CzechRepublic,
  &_swigt__p_QuantLib__DEMCurrency,
  &_swigt__p_QuantLib__DKKCurrency,
  &_swigt__p_QuantLib__Denmark,
  &_swigt__p_QuantLib__EEKCurrency,
  &_swigt__p_QuantLib__ESPCurrency,
  &_swigt__p_QuantLib__EURCurrency,
  &_swigt__p_QuantLib__FIMCurrency,
  &_swigt__p_QuantLib__FRFCurrency,
  &_swigt__p_QuantLib__Finland,
  &_swigt__p_QuantLib__GBPCurrency,
  &_swigt__p_QuantLib__GRDCurrency,
  &_swigt__p_QuantLib__Germany,
  &_swigt__p_QuantLib__HKDCurrency,
  &_swigt__p_QuantLib__HUFCurrency,
  &_swigt__p_QuantLib__HongKong,
  &_swigt__p_QuantLib__Hungary,
  &_swigt__p_QuantLib__IDRCurrency,
  &_swigt__p_QuantLib__IEPCurrency,
  &_swigt__p_QuantLib__ILSCurrency,
  &_swigt__p_QuantLib__INRCurrency,
  &_swigt__p_QuantLib__IQDCurrency,
  &_swigt__p_QuantLib__IRRCurrency,
  &_swigt__p_QuantLib__ISKCurrency,
  &_swigt__p_QuantLib__ITLCurrency,
  &_swigt__p_QuantLib__Iceland,
  &_swigt__p_QuantLib__India,
  &_swigt__p_QuantLib__Indonesia,
  &_swigt__p_QuantLib__Israel,
  &_swigt__p_QuantLib__Italy,
  &_swigt__p_QuantLib__JPYCurrency,
  &_swigt__p_QuantLib__Japan,
  &_swigt__p_QuantLib__JointCalendar,
  &_swigt__p_QuantLib__KRWCurrency,
  &_swigt__p_QuantLib__KWDCurrency,
  &_swigt__p_QuantLib__LTLCurrency,
  &_swigt__p_QuantLib__LUFCurrency,
  &_swigt__p_QuantLib__LVLCurrency,
  &_swigt__p_QuantLib__MTLCurrency,
  &_swigt__p_QuantLib__MXNCurrency,
  &_swigt__p_QuantLib__MYRCurrency,
  &_swigt__p_QuantLib__Mexico,
  &_swigt__p_QuantLib__NLGCurrency,
  &_swigt__p_QuantLib__NOKCurrency,
  &_swigt__p_QuantLib__NPRCurrency,
  &_swigt__p_QuantLib__NZDCurrency,
  &_swigt__p_QuantLib__NewZealand,
  &_swigt__p_QuantLib__Norway,
  &_swigt__p_QuantLib__NullCalendar,
  &_swigt__p_QuantLib__OneDayCounter,
  &_swigt__p_QuantLib__PEHCurrency,
  &_swigt__p_QuantLib__PEICurrency,
  &_swigt__p_QuantLib__PENCurrency,
  &_swigt__p_QuantLib__PKRCurrency,
  &_swigt__p_QuantLib__PLNCurrency,
  &_swigt__p_QuantLib__PTECurrency,
  &_swigt__p_QuantLib__Poland,
  &_swigt__p_QuantLib__ROLCurrency,
  &_swigt__p_QuantLib__RONCurrency,
  &_swigt__p_QuantLib__RUBCurrency,
  &_swigt__p_QuantLib__Romania,
  &_swigt__p_QuantLib__Russia,
  &_swigt__p_QuantLib__SARCurrency,
  &_swigt__p_QuantLib__SEKCurrency,
  &_swigt__p_QuantLib__SGDCurrency,
  &_swigt__p_QuantLib__SITCurrency,
  &_swigt__p_QuantLib__SKKCurrency,
  &_swigt__p_QuantLib__SaudiArabia,
  &_swigt__p_QuantLib__SimpleDayCounter,
  &_swigt__p_QuantLib__Singapore,
  &_swigt__p_QuantLib__Slovakia,
  &_swigt__p_QuantLib__SouthAfrica,
  &_swigt__p_QuantLib__SouthKorea,
  &_swigt__p_QuantLib__Sweden,
  &_swigt__p_QuantLib__Switzerland,
  &_swigt__p_QuantLib__TARGET,
  &_swigt__p_QuantLib__THBCurrency,
  &_swigt__p_QuantLib__TRLCurrency,
  &_swigt__p_QuantLib__TRYCurrency,
  &_swigt__p_QuantLib__TTDCurrency,
  &_swigt__p_QuantLib__TWDCurrency,
  &_swigt__p_QuantLib__Taiwan,
  &_swigt__p_QuantLib__Thirty360,
  &_swigt__p_QuantLib__Turkey,
  &_swigt__p_QuantLib__USDCurrency,
  &_swigt__p_QuantLib__Ukraine,
  &_swigt__p_QuantLib__UnitedKingdom,
  &_swigt__p_QuantLib__UnitedStates,
  &_swigt__p_QuantLib__VEBCurrency,
  &_swigt__p_QuantLib__VNDCurrency,
  &_swigt__p_QuantLib__WeekendsOnly,
  &_swigt__p_QuantLib__ZARCurrency,
  &_swigt__p_QuantoDoubleBarrierOptionPtr,
  &_swigt__p_QuantoEuropeanEnginePtr,
  &_swigt__p_QuantoForwardEuropeanEnginePtr,
  &_swigt__p_QuantoForwardVanillaOptionPtr,
  &_swigt__p_QuantoVanillaOptionPtr,
  &_swigt__p_Quote,
  &_swigt__p_RandomSequenceGeneratorT_KnuthUniformRng_t,
  &_swigt__p_RandomSequenceGeneratorT_LecuyerUniformRng_t,
  &_swigt__p_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t,
  &_swigt__p_RateHelper,
  &_swigt__p_RealTimeSeries,
  &_swigt__p_ReannealingTrivial,
  &_swigt__p_RebatedExercisePtr,
  &_swigt__p_RedemptionPtr,
  &_swigt__p_Region,
  &_swigt__p_RelinkableHandleT_BlackVolTermStructure_t,
  &_swigt__p_RelinkableHandleT_CalibratedModel_t,
  &_swigt__p_RelinkableHandleT_CapFloorTermVolatilityStructure_t,
  &_swigt__p_RelinkableHandleT_DefaultProbabilityTermStructure_t,
  &_swigt__p_RelinkableHandleT_DeltaVolQuote_t,
  &_swigt__p_RelinkableHandleT_LocalVolTermStructure_t,
  &_swigt__p_RelinkableHandleT_OptionletVolatilityStructure_t,
  &_swigt__p_RelinkableHandleT_Quote_t,
  &_swigt__p_RelinkableHandleT_ShortRateModel_t,
  &_swigt__p_RelinkableHandleT_SwaptionVolatilityStructure_t,
  &_swigt__p_RelinkableHandleT_YieldTermStructure_t,
  &_swigt__p_RelinkableHandleT_YoYInflationTermStructure_t,
  &_swigt__p_RelinkableHandleT_ZeroInflationTermStructure_t,
  &_swigt__p_Ridder,
  &_swigt__p_RiskStatistics,
  &_swigt__p_Rounding,
  &_swigt__p_SEKLiborPtr,
  &_swigt__p_SVD,
  &_swigt__p_SafeBackwardFlatInterpolation,
  &_swigt__p_SafeBicubicSpline,
  &_swigt__p_SafeBilinearInterpolation,
  &_swigt__p_SafeCubicNaturalSpline,
  &_swigt__p_SafeForwardFlatInterpolation,
  &_swigt__p_SafeFritschButlandCubic,
  &_swigt__p_SafeFritschButlandLogCubic,
  &_swigt__p_SafeKrugerCubic,
  &_swigt__p_SafeKrugerLogCubic,
  &_swigt__p_SafeLinearInterpolation,
  &_swigt__p_SafeLogCubicNaturalSpline,
  &_swigt__p_SafeLogLinearInterpolation,
  &_swigt__p_SafeLogParabolic,
  &_swigt__p_SafeMonotonicCubicNaturalSpline,
  &_swigt__p_SafeMonotonicLogCubicNaturalSpline,
  &_swigt__p_SafeMonotonicLogParabolic,
  &_swigt__p_SafeMonotonicParabolic,
  &_swigt__p_SafeParabolic,
  &_swigt__p_SalvagingAlgorithm,
  &_swigt__p_SampleT_Array_t,
  &_swigt__p_SampleT_MultiPath_t,
  &_swigt__p_SampleT_Path_t,
  &_swigt__p_SampleT_double_t,
  &_swigt__p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t,
  &_swigt__p_SampledCurve,
  &_swigt__p_SamplerGaussian,
  &_swigt__p_SamplerLogNormal,
  &_swigt__p_SamplerMirrorGaussian,
  &_swigt__p_Schedule,
  &_swigt__p_Seasonality,
  &_swigt__p_Secant,
  &_swigt__p_SegmentIntegral,
  &_swigt__p_Settings,
  &_swigt__p_Settlement,
  &_swigt__p_ShortRateModel,
  &_swigt__p_SimpleCashFlowPtr,
  &_swigt__p_SimplePolynomialFitting,
  &_swigt__p_SimpleQuotePtr,
  &_swigt__p_Simplex,
  &_swigt__p_SimpsonIntegral,
  &_swigt__p_SobolBrownianBridgeRsg,
  &_swigt__p_SobolRsg,
  &_swigt__p_SoftCallabilityPtr,
  &_swigt__p_SoniaPtr,
  &_swigt__p_SpreadCdsHelperPtr,
  &_swigt__p_SpreadedLinearZeroInterpolatedTermStructurePtr,
  &_swigt__p_Statistics,
  &_swigt__p_SteepestDescent,
  &_swigt__p_StochasticProcess,
  &_swigt__p_StochasticProcess1DPtr,
  &_swigt__p_StochasticProcessArrayPtr,
  &_swigt__p_StockPtr,
  &_swigt__p_StrippedOptionletAdapterPtr,
  &_swigt__p_StrippedOptionletBase,
  &_swigt__p_StudentDistribution,
  &_swigt__p_StulzEnginePtr,
  &_swigt__p_SuperSharePayoffPtr,
  &_swigt__p_SvenssonFitting,
  &_swigt__p_SwapIndexPtr,
  &_swigt__p_SwapPtr,
  &_swigt__p_SwapRateHelperPtr,
  &_swigt__p_SwaptionHelperPtr,
  &_swigt__p_SwaptionPtr,
  &_swigt__p_SwaptionVolCube1Ptr,
  &_swigt__p_SwaptionVolCube2Ptr,
  &_swigt__p_SwaptionVolatilityMatrixPtr,
  &_swigt__p_SwaptionVolatilityStructure,
  &_swigt__p_TRLiborPtr,
  &_swigt__p_TemperatureExponential,
  &_swigt__p_TiborPtr,
  &_swigt__p_TimeBasket,
  &_swigt__p_TimeGrid,
  &_swigt__p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t,
  &_swigt__p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t,
  &_swigt__p_TrapezoidIntegralT_Default_t,
  &_swigt__p_TrapezoidIntegralT_MidPoint_t,
  &_swigt__p_TreeCallableFixedRateBondEnginePtr,
  &_swigt__p_TreeCapFloorEnginePtr,
  &_swigt__p_TreeSwaptionEnginePtr,
  &_swigt__p_TridiagonalOperator,
  &_swigt__p_UKRPIPtr,
  &_swigt__p_USCPIPtr,
  &_swigt__p_USDLiborPtr,
  &_swigt__p_UniformLowDiscrepancySequenceGenerator,
  &_swigt__p_UniformRandomGenerator,
  &_swigt__p_UniformRandomSequenceGenerator,
  &_swigt__p_UpRounding,
  &_swigt__p_UpfrontCdsHelperPtr,
  &_swigt__p_VanillaOptionPtr,
  &_swigt__p_VanillaSwapPtr,
  &_swigt__p_VannaVolgaDoubleBarrierEnginePtr,
  &_swigt__p_VarianceGammaEnginePtr,
  &_swigt__p_VarianceGammaProcessPtr,
  &_swigt__p_VasicekPtr,
  &_swigt__p_WulinYongDoubleBarrierEnginePtr,
  &_swigt__p_YYEUHICPPtr,
  &_swigt__p_YYEUHICPXTPtr,
  &_swigt__p_YYFRHICPPtr,
  &_swigt__p_YYUKRPIPtr,
  &_swigt__p_YYUSCPIPtr,
  &_swigt__p_YYZACPIPtr,
  &_swigt__p_YearOnYearInflationSwapHelperPtr,
  &_swigt__p_YearOnYearInflationSwapPtr,
  &_swigt__p_YieldTermStructure,
  &_swigt__p_YoYHelper,
  &_swigt__p_YoYInflationCapFloorPtr,
  &_swigt__p_YoYInflationCapPtr,
  &_swigt__p_YoYInflationCollarPtr,
  &_swigt__p_YoYInflationFloorPtr,
  &_swigt__p_YoYInflationIndexPtr,
  &_swigt__p_YoYInflationTermStructure,
  &_swigt__p_ZACPIPtr,
  &_swigt__p_ZeroCouponBondPtr,
  &_swigt__p_ZeroCouponInflationSwapHelperPtr,
  &_swigt__p_ZeroCouponInflationSwapPtr,
  &_swigt__p_ZeroCurvePtr,
  &_swigt__p_ZeroHelper,
  &_swigt__p_ZeroInflationIndexPtr,
  &_swigt__p_ZeroInflationTermStructure,
  &_swigt__p_ZeroSpreadedTermStructurePtr,
  &_swigt__p_ZeroYield,
  &_swigt__p_ZiborPtr,
  &_swigt__p_allocator_type,
  &_swigt__p_boost__shared_ptrT_BlackVolTermStructure_t,
  &_swigt__p_boost__shared_ptrT_CalibratedModel_t,
  &_swigt__p_boost__shared_ptrT_CalibrationHelper_t,
  &_swigt__p_boost__shared_ptrT_Callability_t,
  &_swigt__p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t,
  &_swigt__p_boost__shared_ptrT_CashFlow_t,
  &_swigt__p_boost__shared_ptrT_DefaultBoundaryCondition_t,
  &_swigt__p_boost__shared_ptrT_DefaultProbabilityHelper_t,
  &_swigt__p_boost__shared_ptrT_DefaultProbabilityTermStructure_t,
  &_swigt__p_boost__shared_ptrT_DeltaVolQuote_t,
  &_swigt__p_boost__shared_ptrT_Dividend_t,
  &_swigt__p_boost__shared_ptrT_EndCriteria_t,
  &_swigt__p_boost__shared_ptrT_Exercise_t,
  &_swigt__p_boost__shared_ptrT_FloatingRateCouponPricer_t,
  &_swigt__p_boost__shared_ptrT_Gaussian1dModel_t,
  &_swigt__p_boost__shared_ptrT_IborIndex_t,
  &_swigt__p_boost__shared_ptrT_Index_t,
  &_swigt__p_boost__shared_ptrT_Instrument_t,
  &_swigt__p_boost__shared_ptrT_LocalVolTermStructure_t,
  &_swigt__p_boost__shared_ptrT_Observable_t,
  &_swigt__p_boost__shared_ptrT_OptimizationMethod_t,
  &_swigt__p_boost__shared_ptrT_OptionletVolatilityStructure_t,
  &_swigt__p_boost__shared_ptrT_Payoff_t,
  &_swigt__p_boost__shared_ptrT_PricingEngine_t,
  &_swigt__p_boost__shared_ptrT_Quote_t,
  &_swigt__p_boost__shared_ptrT_RateHelper_t,
  &_swigt__p_boost__shared_ptrT_Seasonality_t,
  &_swigt__p_boost__shared_ptrT_ShortRateModel_t,
  &_swigt__p_boost__shared_ptrT_StochasticProcess_t,
  &_swigt__p_boost__shared_ptrT_StrippedOptionletBase_t,
  &_swigt__p_boost__shared_ptrT_SwapIndex_t,
  &_swigt__p_boost__shared_ptrT_SwaptionVolatilityStructure_t,
  &_swigt__p_boost__shared_ptrT_YieldTermStructure_t,
  &_swigt__p_boost__shared_ptrT_YoYHelper_t,
  &_swigt__p_boost__shared_ptrT_YoYInflationTermStructure_t,
  &_swigt__p_boost__shared_ptrT_ZeroHelper_t,
  &_swigt__p_boost__shared_ptrT_ZeroInflationTermStructure_t,
  &_swigt__p_char,
  &_swigt__p_const_reference,
  &_swigt__p_difference_type,
  &_swigt__p_double,
  &_swigt__p_first_type,
  &_swigt__p_int,
  &_swigt__p_long,
  &_swigt__p_p_PyObject,
  &_swigt__p_reference,
  &_swigt__p_second_type,
  &_swigt__p_size_type,
  &_swigt__p_std__allocatorT_Date_t,
  &_swigt__p_std__allocatorT_HandleT_Quote_t_t,
  &_swigt__p_std__allocatorT_InterestRate_t,
  &_swigt__p_std__allocatorT_IntervalPrice_t,
  &_swigt__p_std__allocatorT_Period_t,
  &_swigt__p_std__allocatorT_RelinkableHandleT_Quote_t_t,
  &_swigt__p_std__allocatorT_bool_t,
  &_swigt__p_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t,
  &_swigt__p_std__allocatorT_boost__shared_ptrT_Callability_t_t,
  &_swigt__p_std__allocatorT_boost__shared_ptrT_CashFlow_t_t,
  &_swigt__p_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t,
  &_swigt__p_std__allocatorT_boost__shared_ptrT_Dividend_t_t,
  &_swigt__p_std__allocatorT_boost__shared_ptrT_Instrument_t_t,
  &_swigt__p_std__allocatorT_boost__shared_ptrT_Quote_t_t,
  &_swigt__p_std__allocatorT_boost__shared_ptrT_RateHelper_t_t,
  &_swigt__p_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t,
  &_swigt__p_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t,
  &_swigt__p_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t,
  &_swigt__p_std__allocatorT_double_t,
  &_swigt__p_std__allocatorT_int_t,
  &_swigt__p_std__allocatorT_std__pairT_Date_double_t_t,
  &_swigt__p_std__allocatorT_std__string_t,
  &_swigt__p_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t,
  &_swigt__p_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t,
  &_swigt__p_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t,
  &_swigt__p_std__allocatorT_unsigned_int_t,
  &_swigt__p_std__invalid_argument,
  &_swigt__p_std__pairT_Date_double_t,
  &_swigt__p_std__size_t,
  &_swigt__p_std__vectorT_Date_std__allocatorT_Date_t_t,
  &_swigt__p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t,
  &_swigt__p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t,
  &_swigt__p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t,
  &_swigt__p_std__vectorT_Period_std__allocatorT_Period_t_t,
  &_swigt__p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t,
  &_swigt__p_std__vectorT_bool_std__allocatorT_bool_t_t,
  &_swigt__p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t,
  &_swigt__p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t,
  &_swigt__p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t,
  &_swigt__p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t,
  &_swigt__p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t,
  &_swigt__p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t,
  &_swigt__p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t,
  &_swigt__p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t,
  &_swigt__p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t,
  &_swigt__p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t,
  &_swigt__p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t,
  &_swigt__p_std__vectorT_double_std__allocatorT_double_t_t,
  &_swigt__p_std__vectorT_int_std__allocatorT_int_t_t,
  &_swigt__p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t,
  &_swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t,
  &_swigt__p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t,
  &_swigt__p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t,
  &_swigt__p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t,
  &_swigt__p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t,
  &_swigt__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t,
  &_swigt__p_swig__SwigPyIterator,
  &_swigt__p_unsigned_int,
  &_swigt__p_unsigned_long,
  &_swigt__p_value_type,
};

static swig_cast_info _swigc__p_ASX[] = {  {&_swigt__p_ASX, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AUDLiborPtr[] = {  {&_swigt__p_AUDLiborPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AmericanExercisePtr[] = {  {&_swigt__p_AmericanExercisePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AmortizingPaymentPtr[] = {  {&_swigt__p_AmortizingPaymentPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AnalyticBarrierEnginePtr[] = {  {&_swigt__p_AnalyticBarrierEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AnalyticBinaryBarrierEnginePtr[] = {  {&_swigt__p_AnalyticBinaryBarrierEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AnalyticCapFloorEnginePtr[] = {  {&_swigt__p_AnalyticCapFloorEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AnalyticContinuousGeometricAveragePriceAsianEnginePtr[] = {  {&_swigt__p_AnalyticContinuousGeometricAveragePriceAsianEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AnalyticDigitalAmericanEnginePtr[] = {  {&_swigt__p_AnalyticDigitalAmericanEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AnalyticDigitalAmericanKOEnginePtr[] = {  {&_swigt__p_AnalyticDigitalAmericanKOEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AnalyticDiscreteGeometricAveragePriceAsianEnginePtr[] = {  {&_swigt__p_AnalyticDiscreteGeometricAveragePriceAsianEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr[] = {  {&_swigt__p_AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AnalyticDividendEuropeanEnginePtr[] = {  {&_swigt__p_AnalyticDividendEuropeanEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AnalyticDoubleBarrierBinaryEnginePtr[] = {  {&_swigt__p_AnalyticDoubleBarrierBinaryEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AnalyticDoubleBarrierEnginePtr[] = {  {&_swigt__p_AnalyticDoubleBarrierEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AnalyticEuropeanEnginePtr[] = {  {&_swigt__p_AnalyticEuropeanEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AnalyticHaganPricerPtr[] = {  {&_swigt__p_AnalyticHaganPricerPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AnalyticHestonEnginePtr[] = {  {&_swigt__p_AnalyticHestonEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AnalyticPTDHestonEnginePtr[] = {  {&_swigt__p_AnalyticPTDHestonEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AoniaPtr[] = {  {&_swigt__p_AoniaPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Array[] = {  {&_swigt__p_Array, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AssetOrNothingPayoffPtr[] = {  {&_swigt__p_AssetOrNothingPayoffPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AssetSwapPtr[] = {  {&_swigt__p_AssetSwapPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Average[] = {  {&_swigt__p_Average, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AverageBasketPayoffPtr[] = {  {&_swigt__p_AverageBasketPayoffPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BFGS[] = {  {&_swigt__p_BFGS, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BachelierCapFloorEnginePtr[] = {  {&_swigt__p_BachelierCapFloorEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BachelierSwaptionEnginePtr[] = {  {&_swigt__p_BachelierSwaptionEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BackwardFlat[] = {  {&_swigt__p_BackwardFlat, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BackwardFlatZeroCurvePtr[] = {  {&_swigt__p_BackwardFlatZeroCurvePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BaroneAdesiWhaleyApproximationEnginePtr[] = {  {&_swigt__p_BaroneAdesiWhaleyApproximationEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Barrier[] = {  {&_swigt__p_Barrier, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BarrierOptionPtr[] = {  {&_swigt__p_BarrierOptionPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BasketOptionPtr[] = {  {&_swigt__p_BasketOptionPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BasketPayoffPtr[] = {  {&_swigt__p_BasketPayoffPtr, 0, 0, 0},  {&_swigt__p_MinBasketPayoffPtr, _p_MinBasketPayoffPtrTo_p_BasketPayoffPtr, 0, 0},  {&_swigt__p_MaxBasketPayoffPtr, _p_MaxBasketPayoffPtrTo_p_BasketPayoffPtr, 0, 0},  {&_swigt__p_AverageBasketPayoffPtr, _p_AverageBasketPayoffPtrTo_p_BasketPayoffPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BatesEnginePtr[] = {  {&_swigt__p_BatesEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BatesModelPtr[] = {  {&_swigt__p_BatesModelPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BatesProcessPtr[] = {  {&_swigt__p_BatesProcessPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Bbsw1MPtr[] = {  {&_swigt__p_Bbsw1MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Bbsw2MPtr[] = {  {&_swigt__p_Bbsw2MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Bbsw3MPtr[] = {  {&_swigt__p_Bbsw3MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Bbsw4MPtr[] = {  {&_swigt__p_Bbsw4MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Bbsw5MPtr[] = {  {&_swigt__p_Bbsw5MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Bbsw6MPtr[] = {  {&_swigt__p_Bbsw6MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BbswPtr[] = {  {&_swigt__p_Bbsw1MPtr, _p_Bbsw1MPtrTo_p_BbswPtr, 0, 0},  {&_swigt__p_Bbsw3MPtr, _p_Bbsw3MPtrTo_p_BbswPtr, 0, 0},  {&_swigt__p_Bbsw5MPtr, _p_Bbsw5MPtrTo_p_BbswPtr, 0, 0},  {&_swigt__p_Bbsw2MPtr, _p_Bbsw2MPtrTo_p_BbswPtr, 0, 0},  {&_swigt__p_Bbsw4MPtr, _p_Bbsw4MPtrTo_p_BbswPtr, 0, 0},  {&_swigt__p_BbswPtr, 0, 0, 0},  {&_swigt__p_Bbsw6MPtr, _p_Bbsw6MPtrTo_p_BbswPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BermudanExercisePtr[] = {  {&_swigt__p_BermudanExercisePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BinomialBarrierEnginePtr[] = {  {&_swigt__p_BinomialBarrierEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BinomialConvertibleEnginePtr[] = {  {&_swigt__p_BinomialConvertibleEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BinomialDistribution[] = {  {&_swigt__p_BinomialDistribution, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BinomialDoubleBarrierEnginePtr[] = {  {&_swigt__p_BinomialDoubleBarrierEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BinomialVanillaEnginePtr[] = {  {&_swigt__p_BinomialVanillaEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Bisection[] = {  {&_swigt__p_Bisection, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BivariateCumulativeNormalDistribution[] = {  {&_swigt__p_BivariateCumulativeNormalDistribution, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BivariateCumulativeNormalDistributionDr78[] = {  {&_swigt__p_BivariateCumulativeNormalDistributionDr78, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BivariateCumulativeNormalDistributionWe04DP[] = {  {&_swigt__p_BivariateCumulativeNormalDistributionWe04DP, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BjerksundStenslandApproximationEnginePtr[] = {  {&_swigt__p_BjerksundStenslandApproximationEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Bkbm1MPtr[] = {  {&_swigt__p_Bkbm1MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Bkbm2MPtr[] = {  {&_swigt__p_Bkbm2MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Bkbm3MPtr[] = {  {&_swigt__p_Bkbm3MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Bkbm4MPtr[] = {  {&_swigt__p_Bkbm4MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Bkbm5MPtr[] = {  {&_swigt__p_Bkbm5MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Bkbm6MPtr[] = {  {&_swigt__p_Bkbm6MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BkbmPtr[] = {  {&_swigt__p_Bkbm4MPtr, _p_Bkbm4MPtrTo_p_BkbmPtr, 0, 0},  {&_swigt__p_Bkbm6MPtr, _p_Bkbm6MPtrTo_p_BkbmPtr, 0, 0},  {&_swigt__p_BkbmPtr, 0, 0, 0},  {&_swigt__p_Bkbm1MPtr, _p_Bkbm1MPtrTo_p_BkbmPtr, 0, 0},  {&_swigt__p_Bkbm3MPtr, _p_Bkbm3MPtrTo_p_BkbmPtr, 0, 0},  {&_swigt__p_Bkbm5MPtr, _p_Bkbm5MPtrTo_p_BkbmPtr, 0, 0},  {&_swigt__p_Bkbm2MPtr, _p_Bkbm2MPtrTo_p_BkbmPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BlackCalculator[] = {  {&_swigt__p_BlackCalculator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BlackCallableFixedRateBondEnginePtr[] = {  {&_swigt__p_BlackCallableFixedRateBondEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BlackCapFloorEnginePtr[] = {  {&_swigt__p_BlackCapFloorEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BlackConstantVolPtr[] = {  {&_swigt__p_BlackConstantVolPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BlackDeltaCalculator[] = {  {&_swigt__p_BlackDeltaCalculator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BlackIborCouponPricerPtr[] = {  {&_swigt__p_BlackIborCouponPricerPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BlackKarasinskiPtr[] = {  {&_swigt__p_BlackKarasinskiPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BlackProcessPtr[] = {  {&_swigt__p_BlackProcessPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BlackScholesMertonProcessPtr[] = {  {&_swigt__p_BlackScholesMertonProcessPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BlackScholesProcessPtr[] = {  {&_swigt__p_BlackScholesProcessPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BlackSwaptionEnginePtr[] = {  {&_swigt__p_BlackSwaptionEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BlackVarianceCurvePtr[] = {  {&_swigt__p_BlackVarianceCurvePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BlackVarianceSurfacePtr[] = {  {&_swigt__p_BlackVarianceSurfacePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BlackVolTermStructure[] = {  {&_swigt__p_BlackVolTermStructure, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BondFunctions[] = {  {&_swigt__p_BondFunctions, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BondHelperPtr[] = {  {&_swigt__p_BondHelperPtr, 0, 0, 0},  {&_swigt__p_FixedRateBondHelperPtr, _p_FixedRateBondHelperPtrTo_p_BondHelperPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BondPtr[] = {  {&_swigt__p_BondPtr, 0, 0, 0},  {&_swigt__p_ZeroCouponBondPtr, _p_ZeroCouponBondPtrTo_p_BondPtr, 0, 0},  {&_swigt__p_FixedRateBondPtr, _p_FixedRateBondPtrTo_p_BondPtr, 0, 0},  {&_swigt__p_FloatingRateBondPtr, _p_FloatingRateBondPtrTo_p_BondPtr, 0, 0},  {&_swigt__p_CmsRateBondPtr, _p_CmsRateBondPtrTo_p_BondPtr, 0, 0},  {&_swigt__p_CallableFixedRateBondPtr, _p_CallableFixedRateBondPtrTo_p_BondPtr, 0, 0},  {&_swigt__p_CPIBondPtr, _p_CPIBondPtrTo_p_BondPtr, 0, 0},  {&_swigt__p_ConvertibleZeroCouponBondPtr, _p_ConvertibleZeroCouponBondPtrTo_p_BondPtr, 0, 0},  {&_swigt__p_ConvertibleFixedCouponBondPtr, _p_ConvertibleFixedCouponBondPtrTo_p_BondPtr, 0, 0},  {&_swigt__p_ConvertibleFloatingRateBondPtr, _p_ConvertibleFloatingRateBondPtrTo_p_BondPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BoundaryConstraint[] = {  {&_swigt__p_BoundaryConstraint, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BoxMullerGaussianRngT_KnuthUniformRng_t[] = {  {&_swigt__p_BoxMullerGaussianRngT_KnuthUniformRng_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BoxMullerGaussianRngT_LecuyerUniformRng_t[] = {  {&_swigt__p_BoxMullerGaussianRngT_LecuyerUniformRng_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BoxMullerGaussianRngT_MersenneTwisterUniformRng_t[] = {  {&_swigt__p_BoxMullerGaussianRngT_MersenneTwisterUniformRng_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Brent[] = {  {&_swigt__p_Brent, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BrownianBridge[] = {  {&_swigt__p_BrownianBridge, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CADLiborPtr[] = {  {&_swigt__p_CADLiborPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CHFLiborPtr[] = {  {&_swigt__p_CHFLiborPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CLGaussianRngT_KnuthUniformRng_t[] = {  {&_swigt__p_CLGaussianRngT_KnuthUniformRng_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CLGaussianRngT_LecuyerUniformRng_t[] = {  {&_swigt__p_CLGaussianRngT_LecuyerUniformRng_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CLGaussianRngT_MersenneTwisterUniformRng_t[] = {  {&_swigt__p_CLGaussianRngT_MersenneTwisterUniformRng_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CPI[] = {  {&_swigt__p_CPI, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CPIBondPtr[] = {  {&_swigt__p_CPIBondPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Calendar[] = {  {&_swigt__p_QuantLib__Russia, _p_QuantLib__RussiaTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__NewZealand, _p_QuantLib__NewZealandTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Germany, _p_QuantLib__GermanyTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__WeekendsOnly, _p_QuantLib__WeekendsOnlyTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Taiwan, _p_QuantLib__TaiwanTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Hungary, _p_QuantLib__HungaryTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Australia, _p_QuantLib__AustraliaTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Switzerland, _p_QuantLib__SwitzerlandTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Iceland, _p_QuantLib__IcelandTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Turkey, _p_QuantLib__TurkeyTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Norway, _p_QuantLib__NorwayTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Japan, _p_QuantLib__JapanTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__CzechRepublic, _p_QuantLib__CzechRepublicTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Sweden, _p_QuantLib__SwedenTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Israel, _p_QuantLib__IsraelTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Indonesia, _p_QuantLib__IndonesiaTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__SaudiArabia, _p_QuantLib__SaudiArabiaTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Canada, _p_QuantLib__CanadaTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Poland, _p_QuantLib__PolandTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__NullCalendar, _p_QuantLib__NullCalendarTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__JointCalendar, _p_QuantLib__JointCalendarTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__BespokeCalendar, _p_QuantLib__BespokeCalendarTo_p_Calendar, 0, 0},  {&_swigt__p_Calendar, 0, 0, 0},  {&_swigt__p_QuantLib__SouthKorea, _p_QuantLib__SouthKoreaTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Brazil, _p_QuantLib__BrazilTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__UnitedKingdom, _p_QuantLib__UnitedKingdomTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Singapore, _p_QuantLib__SingaporeTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Mexico, _p_QuantLib__MexicoTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__China, _p_QuantLib__ChinaTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__SouthAfrica, _p_QuantLib__SouthAfricaTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Argentina, _p_QuantLib__ArgentinaTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Romania, _p_QuantLib__RomaniaTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Slovakia, _p_QuantLib__SlovakiaTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Ukraine, _p_QuantLib__UkraineTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Finland, _p_QuantLib__FinlandTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__UnitedStates, _p_QuantLib__UnitedStatesTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Italy, _p_QuantLib__ItalyTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__Denmark, _p_QuantLib__DenmarkTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__India, _p_QuantLib__IndiaTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__TARGET, _p_QuantLib__TARGETTo_p_Calendar, 0, 0},  {&_swigt__p_QuantLib__HongKong, _p_QuantLib__HongKongTo_p_Calendar, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CalibratedModel[] = {  {&_swigt__p_CalibratedModel, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CalibrationHelper[] = {  {&_swigt__p_CalibrationHelper, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Callability[] = {  {&_swigt__p_Callability, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CallabilityPrice[] = {  {&_swigt__p_CallabilityPrice, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CallableFixedRateBondPtr[] = {  {&_swigt__p_CallableFixedRateBondPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CapFloorPtr[] = {  {&_swigt__p_CapFloorPtr, 0, 0, 0},  {&_swigt__p_FloorPtr, _p_FloorPtrTo_p_CapFloorPtr, 0, 0},  {&_swigt__p_CollarPtr, _p_CollarPtrTo_p_CapFloorPtr, 0, 0},  {&_swigt__p_CapPtr, _p_CapPtrTo_p_CapFloorPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CapFloorTermVolCurvePtr[] = {  {&_swigt__p_CapFloorTermVolCurvePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CapFloorTermVolSurfacePtr[] = {  {&_swigt__p_CapFloorTermVolSurfacePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CapFloorTermVolatilityStructure[] = {  {&_swigt__p_CapFloorTermVolatilityStructure, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CapHelperPtr[] = {  {&_swigt__p_CapHelperPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CapPtr[] = {  {&_swigt__p_CapPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CappedFlooredCmsCouponPtr[] = {  {&_swigt__p_CappedFlooredCmsCouponPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CappedFlooredCouponPtr[] = {  {&_swigt__p_CappedFlooredCouponPtr, 0, 0, 0},  {&_swigt__p_CappedFlooredCmsCouponPtr, _p_CappedFlooredCmsCouponPtrTo_p_CappedFlooredCouponPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CashFlow[] = {  {&_swigt__p_CashFlow, 0, 0, 0},  {&_swigt__p_Dividend, _p_DividendTo_p_CashFlow, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CashFlows[] = {  {&_swigt__p_CashFlows, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CashOrNothingPayoffPtr[] = {  {&_swigt__p_CashOrNothingPayoffPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CdorPtr[] = {  {&_swigt__p_CdorPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CeilingTruncation[] = {  {&_swigt__p_CeilingTruncation, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ClosestRounding[] = {  {&_swigt__p_ClosestRounding, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CmsCouponPricerPtr[] = {  {&_swigt__p_CmsCouponPricerPtr, 0, 0, 0},  {&_swigt__p_AnalyticHaganPricerPtr, _p_AnalyticHaganPricerPtrTo_p_CmsCouponPricerPtr, 0, 0},  {&_swigt__p_NumericHaganPricerPtr, _p_NumericHaganPricerPtrTo_p_CmsCouponPricerPtr, 0, 0},  {&_swigt__p_LinearTsrPricerPtr, _p_LinearTsrPricerPtrTo_p_CmsCouponPricerPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CmsCouponPtr[] = {  {&_swigt__p_CmsCouponPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CmsRateBondPtr[] = {  {&_swigt__p_CmsRateBondPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CollarPtr[] = {  {&_swigt__p_CollarPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CompositeConstraint[] = {  {&_swigt__p_CompositeConstraint, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CompositeInstrumentPtr[] = {  {&_swigt__p_CompositeInstrumentPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CompositeQuotePtr[] = {  {&_swigt__p_CompositeQuotePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ConjugateGradient[] = {  {&_swigt__p_ConjugateGradient, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ConstantEstimator[] = {  {&_swigt__p_ConstantEstimator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ConstantOptionletVolatilityPtr[] = {  {&_swigt__p_ConstantOptionletVolatilityPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ConstantParameter[] = {  {&_swigt__p_ConstantParameter, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ConstantSwaptionVolatilityPtr[] = {  {&_swigt__p_ConstantSwaptionVolatilityPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Constraint[] = {  {&_swigt__p_Constraint, 0, 0, 0},  {&_swigt__p_BoundaryConstraint, _p_BoundaryConstraintTo_p_Constraint, 0, 0},  {&_swigt__p_NoConstraint, _p_NoConstraintTo_p_Constraint, 0, 0},  {&_swigt__p_PositiveConstraint, _p_PositiveConstraintTo_p_Constraint, 0, 0},  {&_swigt__p_CompositeConstraint, _p_CompositeConstraintTo_p_Constraint, 0, 0},  {&_swigt__p_NonhomogeneousBoundaryConstraint, _p_NonhomogeneousBoundaryConstraintTo_p_Constraint, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ContinuousArithmeticAsianLevyEnginePtr[] = {  {&_swigt__p_ContinuousArithmeticAsianLevyEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ContinuousAveragingAsianOptionPtr[] = {  {&_swigt__p_ContinuousAveragingAsianOptionPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ConvertibleFixedCouponBondPtr[] = {  {&_swigt__p_ConvertibleFixedCouponBondPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ConvertibleFloatingRateBondPtr[] = {  {&_swigt__p_ConvertibleFloatingRateBondPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ConvertibleZeroCouponBondPtr[] = {  {&_swigt__p_ConvertibleZeroCouponBondPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CouponPtr[] = {  {&_swigt__p_CouponPtr, 0, 0, 0},  {&_swigt__p_FixedRateCouponPtr, _p_FixedRateCouponPtrTo_p_CouponPtr, 0, 0},  {&_swigt__p_FloatingRateCouponPtr, _p_FloatingRateCouponPtrTo_p_CouponPtr, 0, 0},  {&_swigt__p_CappedFlooredCouponPtr, _p_CappedFlooredCouponPtrTo_p_CouponPtr, 0, 0},  {&_swigt__p_CappedFlooredCmsCouponPtr, _p_CappedFlooredCmsCouponPtrTo_p_CouponPtr, 0, 0},  {&_swigt__p_IborCouponPtr, _p_IborCouponPtrTo_p_CouponPtr, 0, 0},  {&_swigt__p_CmsCouponPtr, _p_CmsCouponPtrTo_p_CouponPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CreditDefaultSwapPtr[] = {  {&_swigt__p_CreditDefaultSwapPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Cubic[] = {  {&_swigt__p_Cubic, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CubicBSplinesFitting[] = {  {&_swigt__p_CubicBSplinesFitting, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CubicZeroCurvePtr[] = {  {&_swigt__p_CubicZeroCurvePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CumulativeBinomialDistribution[] = {  {&_swigt__p_CumulativeBinomialDistribution, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CumulativeChiSquareDistribution[] = {  {&_swigt__p_CumulativeChiSquareDistribution, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CumulativeGammaDistribution[] = {  {&_swigt__p_CumulativeGammaDistribution, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CumulativeNormalDistribution[] = {  {&_swigt__p_CumulativeNormalDistribution, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CumulativePoissonDistribution[] = {  {&_swigt__p_CumulativePoissonDistribution, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CumulativeStudentDistribution[] = {  {&_swigt__p_CumulativeStudentDistribution, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Currency[] = {  {&_swigt__p_QuantLib__FRFCurrency, _p_QuantLib__FRFCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__GBPCurrency, _p_QuantLib__GBPCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__GRDCurrency, _p_QuantLib__GRDCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__HKDCurrency, _p_QuantLib__HKDCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__HUFCurrency, _p_QuantLib__HUFCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__IEPCurrency, _p_QuantLib__IEPCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__IDRCurrency, _p_QuantLib__IDRCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__ILSCurrency, _p_QuantLib__ILSCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__INRCurrency, _p_QuantLib__INRCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__IQDCurrency, _p_QuantLib__IQDCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__IRRCurrency, _p_QuantLib__IRRCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__ISKCurrency, _p_QuantLib__ISKCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__ITLCurrency, _p_QuantLib__ITLCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__FIMCurrency, _p_QuantLib__FIMCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__EURCurrency, _p_QuantLib__EURCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__ESPCurrency, _p_QuantLib__ESPCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__EEKCurrency, _p_QuantLib__EEKCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__DKKCurrency, _p_QuantLib__DKKCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__DEMCurrency, _p_QuantLib__DEMCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__CZKCurrency, _p_QuantLib__CZKCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_Currency, 0, 0, 0},  {&_swigt__p_QuantLib__COPCurrency, _p_QuantLib__COPCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__CNYCurrency, _p_QuantLib__CNYCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__CLPCurrency, _p_QuantLib__CLPCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__CHFCurrency, _p_QuantLib__CHFCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__CADCurrency, _p_QuantLib__CADCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__BYRCurrency, _p_QuantLib__BYRCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__BRLCurrency, _p_QuantLib__BRLCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__BGLCurrency, _p_QuantLib__BGLCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__BEFCurrency, _p_QuantLib__BEFCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__BDTCurrency, _p_QuantLib__BDTCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__AUDCurrency, _p_QuantLib__AUDCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__ATSCurrency, _p_QuantLib__ATSCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__ARSCurrency, _p_QuantLib__ARSCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__CYPCurrency, _p_QuantLib__CYPCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__JPYCurrency, _p_QuantLib__JPYCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__KRWCurrency, _p_QuantLib__KRWCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__KWDCurrency, _p_QuantLib__KWDCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__LTLCurrency, _p_QuantLib__LTLCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__LUFCurrency, _p_QuantLib__LUFCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__LVLCurrency, _p_QuantLib__LVLCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__MTLCurrency, _p_QuantLib__MTLCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__MXNCurrency, _p_QuantLib__MXNCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__MYRCurrency, _p_QuantLib__MYRCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__NLGCurrency, _p_QuantLib__NLGCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__NOKCurrency, _p_QuantLib__NOKCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__NPRCurrency, _p_QuantLib__NPRCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__NZDCurrency, _p_QuantLib__NZDCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__PEHCurrency, _p_QuantLib__PEHCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__PEICurrency, _p_QuantLib__PEICurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__PENCurrency, _p_QuantLib__PENCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__PKRCurrency, _p_QuantLib__PKRCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__PLNCurrency, _p_QuantLib__PLNCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__PTECurrency, _p_QuantLib__PTECurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__ROLCurrency, _p_QuantLib__ROLCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__RONCurrency, _p_QuantLib__RONCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__RUBCurrency, _p_QuantLib__RUBCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__SARCurrency, _p_QuantLib__SARCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__SEKCurrency, _p_QuantLib__SEKCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__SGDCurrency, _p_QuantLib__SGDCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__SITCurrency, _p_QuantLib__SITCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__SKKCurrency, _p_QuantLib__SKKCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__THBCurrency, _p_QuantLib__THBCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__TRLCurrency, _p_QuantLib__TRLCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__TRYCurrency, _p_QuantLib__TRYCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__TTDCurrency, _p_QuantLib__TTDCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__TWDCurrency, _p_QuantLib__TWDCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__USDCurrency, _p_QuantLib__USDCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__VEBCurrency, _p_QuantLib__VEBCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__VNDCurrency, _p_QuantLib__VNDCurrencyTo_p_Currency, 0, 0},  {&_swigt__p_QuantLib__ZARCurrency, _p_QuantLib__ZARCurrencyTo_p_Currency, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CustomRegion[] = {  {&_swigt__p_CustomRegion, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DKKLiborPtr[] = {  {&_swigt__p_DKKLiborPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DMinus[] = {  {&_swigt__p_DMinus, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DPlus[] = {  {&_swigt__p_DPlus, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DPlusDMinus[] = {  {&_swigt__p_DPlusDMinus, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DZero[] = {  {&_swigt__p_DZero, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Date[] = {  {&_swigt__p_Date, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DateGeneration[] = {  {&_swigt__p_DateGeneration, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DateParser[] = {  {&_swigt__p_DateParser, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DatedOISRateHelperPtr[] = {  {&_swigt__p_DatedOISRateHelperPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DayCounter[] = {  {&_swigt__p_DayCounter, 0, 0, 0},  {&_swigt__p_QuantLib__Thirty360, _p_QuantLib__Thirty360To_p_DayCounter, 0, 0},  {&_swigt__p_QuantLib__OneDayCounter, _p_QuantLib__OneDayCounterTo_p_DayCounter, 0, 0},  {&_swigt__p_QuantLib__SimpleDayCounter, _p_QuantLib__SimpleDayCounterTo_p_DayCounter, 0, 0},  {&_swigt__p_QuantLib__Actual360, _p_QuantLib__Actual360To_p_DayCounter, 0, 0},  {&_swigt__p_QuantLib__Actual365Fixed, _p_QuantLib__Actual365FixedTo_p_DayCounter, 0, 0},  {&_swigt__p_QuantLib__Business252, _p_QuantLib__Business252To_p_DayCounter, 0, 0},  {&_swigt__p_QuantLib__ActualActual, _p_QuantLib__ActualActualTo_p_DayCounter, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DefaultBoundaryCondition[] = {  {&_swigt__p_DefaultBoundaryCondition, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DefaultDensity[] = {  {&_swigt__p_DefaultDensity, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DefaultDensityCurvePtr[] = {  {&_swigt__p_DefaultDensityCurvePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DefaultLexicographicalView[] = {  {&_swigt__p_DefaultLexicographicalView, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DefaultLexicographicalViewColumn[] = {  {&_swigt__p_DefaultLexicographicalViewColumn, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DefaultLogCubic[] = {  {&_swigt__p_DefaultLogCubic, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DefaultProbabilityHelper[] = {  {&_swigt__p_DefaultProbabilityHelper, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DefaultProbabilityTermStructure[] = {  {&_swigt__p_DefaultProbabilityTermStructure, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DeltaVolQuote[] = {  {&_swigt__p_DeltaVolQuote, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DepositRateHelperPtr[] = {  {&_swigt__p_DepositRateHelperPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DerivedQuotePtr[] = {  {&_swigt__p_DerivedQuotePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DifferentialEvolution[] = {  {&_swigt__p_DifferentialEvolution, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DirichletBCPtr[] = {  {&_swigt__p_DirichletBCPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Discount[] = {  {&_swigt__p_Discount, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DiscountCurvePtr[] = {  {&_swigt__p_DiscountCurvePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DiscountingBondEnginePtr[] = {  {&_swigt__p_DiscountingBondEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DiscountingSwapEnginePtr[] = {  {&_swigt__p_DiscountingSwapEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DiscreteAveragingAsianOptionPtr[] = {  {&_swigt__p_DiscreteAveragingAsianOptionPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Dividend[] = {  {&_swigt__p_Dividend, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DividendVanillaOptionPtr[] = {  {&_swigt__p_DividendVanillaOptionPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DoubleBarrier[] = {  {&_swigt__p_DoubleBarrier, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DoubleBarrierOptionPtr[] = {  {&_swigt__p_DoubleBarrierOptionPtr, 0, 0, 0},  {&_swigt__p_QuantoDoubleBarrierOptionPtr, _p_QuantoDoubleBarrierOptionPtrTo_p_DoubleBarrierOptionPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DownRounding[] = {  {&_swigt__p_DownRounding, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Duration[] = {  {&_swigt__p_Duration, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EUHICPPtr[] = {  {&_swigt__p_EUHICPPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EUHICPXTPtr[] = {  {&_swigt__p_EUHICPXTPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EURLibor10MPtr[] = {  {&_swigt__p_EURLibor10MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EURLibor11MPtr[] = {  {&_swigt__p_EURLibor11MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EURLibor1MPtr[] = {  {&_swigt__p_EURLibor1MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EURLibor1YPtr[] = {  {&_swigt__p_EURLibor1YPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EURLibor2MPtr[] = {  {&_swigt__p_EURLibor2MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EURLibor2WPtr[] = {  {&_swigt__p_EURLibor2WPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EURLibor3MPtr[] = {  {&_swigt__p_EURLibor3MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EURLibor4MPtr[] = {  {&_swigt__p_EURLibor4MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EURLibor5MPtr[] = {  {&_swigt__p_EURLibor5MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EURLibor6MPtr[] = {  {&_swigt__p_EURLibor6MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EURLibor7MPtr[] = {  {&_swigt__p_EURLibor7MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EURLibor8MPtr[] = {  {&_swigt__p_EURLibor8MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EURLibor9MPtr[] = {  {&_swigt__p_EURLibor9MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EURLiborPtr[] = {  {&_swigt__p_EURLibor2WPtr, _p_EURLibor2WPtrTo_p_EURLiborPtr, 0, 0},  {&_swigt__p_EURLiborSWPtr, _p_EURLiborSWPtrTo_p_EURLiborPtr, 0, 0},  {&_swigt__p_EURLibor1YPtr, _p_EURLibor1YPtrTo_p_EURLiborPtr, 0, 0},  {&_swigt__p_EURLibor9MPtr, _p_EURLibor9MPtrTo_p_EURLiborPtr, 0, 0},  {&_swigt__p_EURLibor8MPtr, _p_EURLibor8MPtrTo_p_EURLiborPtr, 0, 0},  {&_swigt__p_EURLibor11MPtr, _p_EURLibor11MPtrTo_p_EURLiborPtr, 0, 0},  {&_swigt__p_EURLibor7MPtr, _p_EURLibor7MPtrTo_p_EURLiborPtr, 0, 0},  {&_swigt__p_EURLibor10MPtr, _p_EURLibor10MPtrTo_p_EURLiborPtr, 0, 0},  {&_swigt__p_EURLibor6MPtr, _p_EURLibor6MPtrTo_p_EURLiborPtr, 0, 0},  {&_swigt__p_EURLibor5MPtr, _p_EURLibor5MPtrTo_p_EURLiborPtr, 0, 0},  {&_swigt__p_EURLibor4MPtr, _p_EURLibor4MPtrTo_p_EURLiborPtr, 0, 0},  {&_swigt__p_EURLibor3MPtr, _p_EURLibor3MPtrTo_p_EURLiborPtr, 0, 0},  {&_swigt__p_EURLibor2MPtr, _p_EURLibor2MPtrTo_p_EURLiborPtr, 0, 0},  {&_swigt__p_EURLibor1MPtr, _p_EURLibor1MPtrTo_p_EURLiborPtr, 0, 0},  {&_swigt__p_EURLiborPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EURLiborSWPtr[] = {  {&_swigt__p_EURLiborSWPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EndCriteria[] = {  {&_swigt__p_EndCriteria, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EndCriteria__Type[] = {  {&_swigt__p_EndCriteria__Type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EoniaPtr[] = {  {&_swigt__p_EoniaPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EurLiborSwapIfrFixPtr[] = {  {&_swigt__p_EurLiborSwapIfrFixPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EurLiborSwapIsdaFixAPtr[] = {  {&_swigt__p_EurLiborSwapIsdaFixAPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EurLiborSwapIsdaFixBPtr[] = {  {&_swigt__p_EurLiborSwapIsdaFixBPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor10MPtr[] = {  {&_swigt__p_Euribor10MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor11MPtr[] = {  {&_swigt__p_Euribor11MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor1MPtr[] = {  {&_swigt__p_Euribor1MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor1YPtr[] = {  {&_swigt__p_Euribor1YPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor2MPtr[] = {  {&_swigt__p_Euribor2MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor2WPtr[] = {  {&_swigt__p_Euribor2WPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor365Ptr[] = {  {&_swigt__p_Euribor365_1YPtr, _p_Euribor365_1YPtrTo_p_Euribor365Ptr, 0, 0},  {&_swigt__p_Euribor365_9MPtr, _p_Euribor365_9MPtrTo_p_Euribor365Ptr, 0, 0},  {&_swigt__p_Euribor365_8MPtr, _p_Euribor365_8MPtrTo_p_Euribor365Ptr, 0, 0},  {&_swigt__p_Euribor365_7MPtr, _p_Euribor365_7MPtrTo_p_Euribor365Ptr, 0, 0},  {&_swigt__p_Euribor365_6MPtr, _p_Euribor365_6MPtrTo_p_Euribor365Ptr, 0, 0},  {&_swigt__p_Euribor365_5MPtr, _p_Euribor365_5MPtrTo_p_Euribor365Ptr, 0, 0},  {&_swigt__p_Euribor365_4MPtr, _p_Euribor365_4MPtrTo_p_Euribor365Ptr, 0, 0},  {&_swigt__p_Euribor365_3MPtr, _p_Euribor365_3MPtrTo_p_Euribor365Ptr, 0, 0},  {&_swigt__p_Euribor365_2MPtr, _p_Euribor365_2MPtrTo_p_Euribor365Ptr, 0, 0},  {&_swigt__p_Euribor365_1MPtr, _p_Euribor365_1MPtrTo_p_Euribor365Ptr, 0, 0},  {&_swigt__p_Euribor365Ptr, 0, 0, 0},  {&_swigt__p_Euribor365_11MPtr, _p_Euribor365_11MPtrTo_p_Euribor365Ptr, 0, 0},  {&_swigt__p_Euribor365_10MPtr, _p_Euribor365_10MPtrTo_p_Euribor365Ptr, 0, 0},  {&_swigt__p_Euribor365_3WPtr, _p_Euribor365_3WPtrTo_p_Euribor365Ptr, 0, 0},  {&_swigt__p_Euribor365_2WPtr, _p_Euribor365_2WPtrTo_p_Euribor365Ptr, 0, 0},  {&_swigt__p_Euribor365_SWPtr, _p_Euribor365_SWPtrTo_p_Euribor365Ptr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor365_10MPtr[] = {  {&_swigt__p_Euribor365_10MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor365_11MPtr[] = {  {&_swigt__p_Euribor365_11MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor365_1MPtr[] = {  {&_swigt__p_Euribor365_1MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor365_1YPtr[] = {  {&_swigt__p_Euribor365_1YPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor365_2MPtr[] = {  {&_swigt__p_Euribor365_2MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor365_2WPtr[] = {  {&_swigt__p_Euribor365_2WPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor365_3MPtr[] = {  {&_swigt__p_Euribor365_3MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor365_3WPtr[] = {  {&_swigt__p_Euribor365_3WPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor365_4MPtr[] = {  {&_swigt__p_Euribor365_4MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor365_5MPtr[] = {  {&_swigt__p_Euribor365_5MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor365_6MPtr[] = {  {&_swigt__p_Euribor365_6MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor365_7MPtr[] = {  {&_swigt__p_Euribor365_7MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor365_8MPtr[] = {  {&_swigt__p_Euribor365_8MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor365_9MPtr[] = {  {&_swigt__p_Euribor365_9MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor365_SWPtr[] = {  {&_swigt__p_Euribor365_SWPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor3MPtr[] = {  {&_swigt__p_Euribor3MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor3WPtr[] = {  {&_swigt__p_Euribor3WPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor4MPtr[] = {  {&_swigt__p_Euribor4MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor5MPtr[] = {  {&_swigt__p_Euribor5MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor6MPtr[] = {  {&_swigt__p_Euribor6MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor7MPtr[] = {  {&_swigt__p_Euribor7MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor8MPtr[] = {  {&_swigt__p_Euribor8MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Euribor9MPtr[] = {  {&_swigt__p_Euribor9MPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EuriborPtr[] = {  {&_swigt__p_Euribor3WPtr, _p_Euribor3WPtrTo_p_EuriborPtr, 0, 0},  {&_swigt__p_Euribor2WPtr, _p_Euribor2WPtrTo_p_EuriborPtr, 0, 0},  {&_swigt__p_EuriborSWPtr, _p_EuriborSWPtrTo_p_EuriborPtr, 0, 0},  {&_swigt__p_Euribor1YPtr, _p_Euribor1YPtrTo_p_EuriborPtr, 0, 0},  {&_swigt__p_Euribor9MPtr, _p_Euribor9MPtrTo_p_EuriborPtr, 0, 0},  {&_swigt__p_Euribor8MPtr, _p_Euribor8MPtrTo_p_EuriborPtr, 0, 0},  {&_swigt__p_Euribor11MPtr, _p_Euribor11MPtrTo_p_EuriborPtr, 0, 0},  {&_swigt__p_Euribor7MPtr, _p_Euribor7MPtrTo_p_EuriborPtr, 0, 0},  {&_swigt__p_Euribor10MPtr, _p_Euribor10MPtrTo_p_EuriborPtr, 0, 0},  {&_swigt__p_Euribor6MPtr, _p_Euribor6MPtrTo_p_EuriborPtr, 0, 0},  {&_swigt__p_Euribor5MPtr, _p_Euribor5MPtrTo_p_EuriborPtr, 0, 0},  {&_swigt__p_Euribor4MPtr, _p_Euribor4MPtrTo_p_EuriborPtr, 0, 0},  {&_swigt__p_Euribor3MPtr, _p_Euribor3MPtrTo_p_EuriborPtr, 0, 0},  {&_swigt__p_Euribor2MPtr, _p_Euribor2MPtrTo_p_EuriborPtr, 0, 0},  {&_swigt__p_Euribor1MPtr, _p_Euribor1MPtrTo_p_EuriborPtr, 0, 0},  {&_swigt__p_EuriborPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EuriborSWPtr[] = {  {&_swigt__p_EuriborSWPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EuriborSwapIfrFixPtr[] = {  {&_swigt__p_EuriborSwapIfrFixPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EuriborSwapIsdaFixAPtr[] = {  {&_swigt__p_EuriborSwapIsdaFixAPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EuriborSwapIsdaFixBPtr[] = {  {&_swigt__p_EuriborSwapIsdaFixBPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EuropeanExercisePtr[] = {  {&_swigt__p_EuropeanExercisePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EuropeanOptionPtr[] = {  {&_swigt__p_EuropeanOptionPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EverestOptionPtr[] = {  {&_swigt__p_EverestOptionPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ExchangeRate[] = {  {&_swigt__p_ExchangeRate, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ExchangeRateManager[] = {  {&_swigt__p_ExchangeRateManager, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Exercise[] = {  {&_swigt__p_Exercise, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ExponentialSplinesFitting[] = {  {&_swigt__p_ExponentialSplinesFitting, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Extrapolator[] = {  {&_swigt__p_YieldTermStructure, _p_YieldTermStructureTo_p_Extrapolator, 0, 0},  {&_swigt__p_BlackVolTermStructure, _p_BlackVolTermStructureTo_p_Extrapolator, 0, 0},  {&_swigt__p_LocalVolTermStructure, _p_LocalVolTermStructureTo_p_Extrapolator, 0, 0},  {&_swigt__p_OptionletVolatilityStructure, _p_OptionletVolatilityStructureTo_p_Extrapolator, 0, 0},  {&_swigt__p_SwaptionVolatilityStructure, _p_SwaptionVolatilityStructureTo_p_Extrapolator, 0, 0},  {&_swigt__p_InflationTermStructure, _p_InflationTermStructureTo_p_Extrapolator, 0, 0},  {&_swigt__p_YoYInflationTermStructure, _p_YoYInflationTermStructureTo_p_Extrapolator, 0, 0},  {&_swigt__p_ZeroInflationTermStructure, _p_ZeroInflationTermStructureTo_p_Extrapolator, 0, 0},  {&_swigt__p_DefaultProbabilityTermStructure, _p_DefaultProbabilityTermStructureTo_p_Extrapolator, 0, 0},  {&_swigt__p_CapFloorTermVolatilityStructure, _p_CapFloorTermVolatilityStructureTo_p_Extrapolator, 0, 0},  {&_swigt__p_Extrapolator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FDAmericanEnginePtr[] = {  {&_swigt__p_FDAmericanEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FDBermudanEnginePtr[] = {  {&_swigt__p_FDBermudanEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FDDividendAmericanEnginePtr[] = {  {&_swigt__p_FDDividendAmericanEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FDDividendEuropeanEnginePtr[] = {  {&_swigt__p_FDDividendEuropeanEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FDEuropeanEnginePtr[] = {  {&_swigt__p_FDEuropeanEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FDShoutEnginePtr[] = {  {&_swigt__p_FDShoutEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FFTVarianceGammaEnginePtr[] = {  {&_swigt__p_FFTVarianceGammaEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FRHICPPtr[] = {  {&_swigt__p_FRHICPPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FalsePosition[] = {  {&_swigt__p_FalsePosition, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FdBatesVanillaEnginePtr[] = {  {&_swigt__p_FdBatesVanillaEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FdBlackScholesAsianEnginePtr[] = {  {&_swigt__p_FdBlackScholesAsianEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FdBlackScholesBarrierEnginePtr[] = {  {&_swigt__p_FdBlackScholesBarrierEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FdBlackScholesVanillaEnginePtr[] = {  {&_swigt__p_FdBlackScholesVanillaEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FdG2SwaptionEnginePtr[] = {  {&_swigt__p_FdG2SwaptionEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FdHullWhiteSwaptionEnginePtr[] = {  {&_swigt__p_FdHullWhiteSwaptionEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FdmSchemeDesc[] = {  {&_swigt__p_FdmSchemeDesc, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FedFundsPtr[] = {  {&_swigt__p_FedFundsPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FittedBondDiscountCurvePtr[] = {  {&_swigt__p_FittedBondDiscountCurvePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FittingMethod[] = {  {&_swigt__p_ExponentialSplinesFitting, _p_ExponentialSplinesFittingTo_p_FittingMethod, 0, 0},  {&_swigt__p_NelsonSiegelFitting, _p_NelsonSiegelFittingTo_p_FittingMethod, 0, 0},  {&_swigt__p_SvenssonFitting, _p_SvenssonFittingTo_p_FittingMethod, 0, 0},  {&_swigt__p_CubicBSplinesFitting, _p_CubicBSplinesFittingTo_p_FittingMethod, 0, 0},  {&_swigt__p_SimplePolynomialFitting, _p_SimplePolynomialFittingTo_p_FittingMethod, 0, 0},  {&_swigt__p_FittingMethod, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FixedDividendPtr[] = {  {&_swigt__p_FixedDividendPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FixedRateBondForwardPtr[] = {  {&_swigt__p_FixedRateBondForwardPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FixedRateBondHelperPtr[] = {  {&_swigt__p_FixedRateBondHelperPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FixedRateBondPtr[] = {  {&_swigt__p_FixedRateBondPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FixedRateCouponPtr[] = {  {&_swigt__p_FixedRateCouponPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FlatForwardPtr[] = {  {&_swigt__p_FlatForwardPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FlatHazardRatePtr[] = {  {&_swigt__p_FlatHazardRatePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FloatFloatSwapPtr[] = {  {&_swigt__p_FloatFloatSwapPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FloatFloatSwaptionPtr[] = {  {&_swigt__p_FloatFloatSwaptionPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FloatingRateBondPtr[] = {  {&_swigt__p_FloatingRateBondPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FloatingRateCouponPricer[] = {  {&_swigt__p_FloatingRateCouponPricer, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FloatingRateCouponPtr[] = {  {&_swigt__p_FloatingRateCouponPtr, 0, 0, 0},  {&_swigt__p_CappedFlooredCouponPtr, _p_CappedFlooredCouponPtrTo_p_FloatingRateCouponPtr, 0, 0},  {&_swigt__p_CappedFlooredCmsCouponPtr, _p_CappedFlooredCmsCouponPtrTo_p_FloatingRateCouponPtr, 0, 0},  {&_swigt__p_IborCouponPtr, _p_IborCouponPtrTo_p_FloatingRateCouponPtr, 0, 0},  {&_swigt__p_CmsCouponPtr, _p_CmsCouponPtrTo_p_FloatingRateCouponPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FloorPtr[] = {  {&_swigt__p_FloorPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FloorTruncation[] = {  {&_swigt__p_FloorTruncation, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ForwardCurvePtr[] = {  {&_swigt__p_ForwardCurvePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ForwardEuropeanEnginePtr[] = {  {&_swigt__p_ForwardEuropeanEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ForwardFlat[] = {  {&_swigt__p_ForwardFlat, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ForwardFlatZeroCurvePtr[] = {  {&_swigt__p_ForwardFlatZeroCurvePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ForwardPtr[] = {  {&_swigt__p_ForwardPtr, 0, 0, 0},  {&_swigt__p_FixedRateBondForwardPtr, _p_FixedRateBondForwardPtrTo_p_ForwardPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ForwardRate[] = {  {&_swigt__p_ForwardRate, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ForwardRateAgreementPtr[] = {  {&_swigt__p_ForwardRateAgreementPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ForwardSpreadedTermStructurePtr[] = {  {&_swigt__p_ForwardSpreadedTermStructurePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ForwardVanillaOptionPtr[] = {  {&_swigt__p_ForwardVanillaOptionPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FraRateHelperPtr[] = {  {&_swigt__p_FraRateHelperPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FractionalDividendPtr[] = {  {&_swigt__p_FractionalDividendPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Futures[] = {  {&_swigt__p_Futures, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FuturesRateHelperPtr[] = {  {&_swigt__p_FuturesRateHelperPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FxSwapRateHelperPtr[] = {  {&_swigt__p_FxSwapRateHelperPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_G2Ptr[] = {  {&_swigt__p_G2Ptr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_G2SwaptionEnginePtr[] = {  {&_swigt__p_G2SwaptionEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GBPLiborPtr[] = {  {&_swigt__p_GBPLiborPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GFunctionFactory[] = {  {&_swigt__p_GFunctionFactory, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GammaFunction[] = {  {&_swigt__p_GammaFunction, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GapPayoffPtr[] = {  {&_swigt__p_GapPayoffPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GarmanKlassSigma1[] = {  {&_swigt__p_GarmanKlassSigma1, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GarmanKlassSigma3[] = {  {&_swigt__p_GarmanKlassSigma3, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GarmanKlassSigma4[] = {  {&_swigt__p_GarmanKlassSigma4, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GarmanKlassSigma5[] = {  {&_swigt__p_GarmanKlassSigma5, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GarmanKlassSigma6[] = {  {&_swigt__p_GarmanKlassSigma6, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GarmanKohlagenProcessPtr[] = {  {&_swigt__p_GarmanKohlagenProcessPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GaussChebyshev2ndIntegration[] = {  {&_swigt__p_GaussChebyshev2ndIntegration, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GaussChebyshevIntegration[] = {  {&_swigt__p_GaussChebyshevIntegration, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GaussGegenbauerIntegration[] = {  {&_swigt__p_GaussGegenbauerIntegration, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GaussHermiteIntegration[] = {  {&_swigt__p_GaussHermiteIntegration, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GaussHyperbolicIntegration[] = {  {&_swigt__p_GaussHyperbolicIntegration, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GaussJacobiIntegration[] = {  {&_swigt__p_GaussJacobiIntegration, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GaussKronrodAdaptive[] = {  {&_swigt__p_GaussKronrodAdaptive, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GaussKronrodNonAdaptive[] = {  {&_swigt__p_GaussKronrodNonAdaptive, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GaussLaguerreIntegration[] = {  {&_swigt__p_GaussLaguerreIntegration, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GaussLegendreIntegration[] = {  {&_swigt__p_GaussLegendreIntegration, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GaussLobattoIntegral[] = {  {&_swigt__p_GaussLobattoIntegral, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gaussian1dFloatFloatSwaptionEnginePtr[] = {  {&_swigt__p_Gaussian1dFloatFloatSwaptionEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gaussian1dJamshidianSwaptionEnginePtr[] = {  {&_swigt__p_Gaussian1dJamshidianSwaptionEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gaussian1dModel[] = {  {&_swigt__p_Gaussian1dModel, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gaussian1dNonstandardSwaptionEnginePtr[] = {  {&_swigt__p_Gaussian1dNonstandardSwaptionEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Gaussian1dSwaptionEnginePtr[] = {  {&_swigt__p_Gaussian1dSwaptionEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GaussianLowDiscrepancySequenceGenerator[] = {  {&_swigt__p_GaussianLowDiscrepancySequenceGenerator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GaussianMultiPathGenerator[] = {  {&_swigt__p_GaussianMultiPathGenerator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GaussianPathGenerator[] = {  {&_swigt__p_GaussianPathGenerator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GaussianRandomGenerator[] = {  {&_swigt__p_GaussianRandomGenerator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GaussianRandomSequenceGenerator[] = {  {&_swigt__p_GaussianRandomSequenceGenerator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GaussianSimulatedAnnealing[] = {  {&_swigt__p_GaussianSimulatedAnnealing, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GaussianSobolPathGenerator[] = {  {&_swigt__p_GaussianSobolPathGenerator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GeneralizedBlackScholesProcessPtr[] = {  {&_swigt__p_GeneralizedBlackScholesProcessPtr, 0, 0, 0},  {&_swigt__p_BlackScholesProcessPtr, _p_BlackScholesProcessPtrTo_p_GeneralizedBlackScholesProcessPtr, 0, 0},  {&_swigt__p_BlackScholesMertonProcessPtr, _p_BlackScholesMertonProcessPtrTo_p_GeneralizedBlackScholesProcessPtr, 0, 0},  {&_swigt__p_BlackProcessPtr, _p_BlackProcessPtrTo_p_GeneralizedBlackScholesProcessPtr, 0, 0},  {&_swigt__p_GarmanKohlagenProcessPtr, _p_GarmanKohlagenProcessPtrTo_p_GeneralizedBlackScholesProcessPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GenericSequenceStatisticsT_IncrementalStatistics_t[] = {  {&_swigt__p_GenericSequenceStatisticsT_IncrementalStatistics_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GenericSequenceStatisticsT_RiskStatistics_t[] = {  {&_swigt__p_GenericSequenceStatisticsT_RiskStatistics_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GenericSequenceStatisticsT_Statistics_t[] = {  {&_swigt__p_GenericSequenceStatisticsT_Statistics_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GeometricBrownianMotionProcessPtr[] = {  {&_swigt__p_GeometricBrownianMotionProcessPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GsrProcessPtr[] = {  {&_swigt__p_GsrProcessPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GsrPtr[] = {  {&_swigt__p_GsrPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HaltonRsg[] = {  {&_swigt__p_HaltonRsg, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HandleT_BlackVolTermStructure_t[] = {  {&_swigt__p_HandleT_BlackVolTermStructure_t, 0, 0, 0},  {&_swigt__p_RelinkableHandleT_BlackVolTermStructure_t, _p_RelinkableHandleT_BlackVolTermStructure_tTo_p_HandleT_BlackVolTermStructure_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HandleT_CalibratedModel_t[] = {  {&_swigt__p_HandleT_CalibratedModel_t, 0, 0, 0},  {&_swigt__p_RelinkableHandleT_CalibratedModel_t, _p_RelinkableHandleT_CalibratedModel_tTo_p_HandleT_CalibratedModel_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HandleT_CapFloorTermVolatilityStructure_t[] = {  {&_swigt__p_HandleT_CapFloorTermVolatilityStructure_t, 0, 0, 0},  {&_swigt__p_RelinkableHandleT_CapFloorTermVolatilityStructure_t, _p_RelinkableHandleT_CapFloorTermVolatilityStructure_tTo_p_HandleT_CapFloorTermVolatilityStructure_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HandleT_DefaultProbabilityTermStructure_t[] = {  {&_swigt__p_HandleT_DefaultProbabilityTermStructure_t, 0, 0, 0},  {&_swigt__p_RelinkableHandleT_DefaultProbabilityTermStructure_t, _p_RelinkableHandleT_DefaultProbabilityTermStructure_tTo_p_HandleT_DefaultProbabilityTermStructure_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HandleT_DeltaVolQuote_t[] = {  {&_swigt__p_HandleT_DeltaVolQuote_t, 0, 0, 0},  {&_swigt__p_RelinkableHandleT_DeltaVolQuote_t, _p_RelinkableHandleT_DeltaVolQuote_tTo_p_HandleT_DeltaVolQuote_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HandleT_LocalVolTermStructure_t[] = {  {&_swigt__p_HandleT_LocalVolTermStructure_t, 0, 0, 0},  {&_swigt__p_RelinkableHandleT_LocalVolTermStructure_t, _p_RelinkableHandleT_LocalVolTermStructure_tTo_p_HandleT_LocalVolTermStructure_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HandleT_OptionletVolatilityStructure_t[] = {  {&_swigt__p_HandleT_OptionletVolatilityStructure_t, 0, 0, 0},  {&_swigt__p_RelinkableHandleT_OptionletVolatilityStructure_t, _p_RelinkableHandleT_OptionletVolatilityStructure_tTo_p_HandleT_OptionletVolatilityStructure_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HandleT_Quote_t[] = {  {&_swigt__p_HandleT_Quote_t, 0, 0, 0},  {&_swigt__p_RelinkableHandleT_Quote_t, _p_RelinkableHandleT_Quote_tTo_p_HandleT_Quote_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HandleT_ShortRateModel_t[] = {  {&_swigt__p_HandleT_ShortRateModel_t, 0, 0, 0},  {&_swigt__p_RelinkableHandleT_ShortRateModel_t, _p_RelinkableHandleT_ShortRateModel_tTo_p_HandleT_ShortRateModel_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HandleT_SwaptionVolatilityStructure_t[] = {  {&_swigt__p_HandleT_SwaptionVolatilityStructure_t, 0, 0, 0},  {&_swigt__p_RelinkableHandleT_SwaptionVolatilityStructure_t, _p_RelinkableHandleT_SwaptionVolatilityStructure_tTo_p_HandleT_SwaptionVolatilityStructure_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HandleT_YieldTermStructure_t[] = {  {&_swigt__p_HandleT_YieldTermStructure_t, 0, 0, 0},  {&_swigt__p_RelinkableHandleT_YieldTermStructure_t, _p_RelinkableHandleT_YieldTermStructure_tTo_p_HandleT_YieldTermStructure_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HandleT_YoYInflationTermStructure_t[] = {  {&_swigt__p_HandleT_YoYInflationTermStructure_t, 0, 0, 0},  {&_swigt__p_RelinkableHandleT_YoYInflationTermStructure_t, _p_RelinkableHandleT_YoYInflationTermStructure_tTo_p_HandleT_YoYInflationTermStructure_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HandleT_ZeroInflationTermStructure_t[] = {  {&_swigt__p_HandleT_ZeroInflationTermStructure_t, 0, 0, 0},  {&_swigt__p_RelinkableHandleT_ZeroInflationTermStructure_t, _p_RelinkableHandleT_ZeroInflationTermStructure_tTo_p_HandleT_ZeroInflationTermStructure_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HazardRate[] = {  {&_swigt__p_HazardRate, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HazardRateCurvePtr[] = {  {&_swigt__p_HazardRateCurvePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HestonModelHelperPtr[] = {  {&_swigt__p_HestonModelHelperPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HestonModelPtr[] = {  {&_swigt__p_HestonModelPtr, 0, 0, 0},  {&_swigt__p_BatesModelPtr, _p_BatesModelPtrTo_p_HestonModelPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HestonProcessPtr[] = {  {&_swigt__p_HestonProcessPtr, 0, 0, 0},  {&_swigt__p_BatesProcessPtr, _p_BatesProcessPtrTo_p_HestonProcessPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HimalayaOptionPtr[] = {  {&_swigt__p_HimalayaOptionPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HullWhiteForwardProcessPtr[] = {  {&_swigt__p_HullWhiteForwardProcessPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HullWhiteProcessPtr[] = {  {&_swigt__p_HullWhiteProcessPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HullWhitePtr[] = {  {&_swigt__p_HullWhitePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IMM[] = {  {&_swigt__p_IMM, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IborCouponPricerPtr[] = {  {&_swigt__p_IborCouponPricerPtr, 0, 0, 0},  {&_swigt__p_BlackIborCouponPricerPtr, _p_BlackIborCouponPricerPtrTo_p_IborCouponPricerPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IborCouponPtr[] = {  {&_swigt__p_IborCouponPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IborIndexPtr[] = {  {&_swigt__p_Bkbm6MPtr, _p_Bkbm6MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_EURLibor1MPtr, _p_EURLibor1MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor1MPtr, _p_Euribor1MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_EURLibor11MPtr, _p_EURLibor11MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor11MPtr, _p_Euribor11MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor365Ptr, _p_Euribor365PtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_FedFundsPtr, _p_FedFundsPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_CdorPtr, _p_CdorPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor3WPtr, _p_Euribor3WPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor365_4MPtr, _p_Euribor365_4MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor2MPtr, _p_Euribor2MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_EURLibor2MPtr, _p_EURLibor2MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor365_1YPtr, _p_Euribor365_1YPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_JibarPtr, _p_JibarPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor365_5MPtr, _p_Euribor365_5MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_EURLibor3MPtr, _p_EURLibor3MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor3MPtr, _p_Euribor3MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Bbsw1MPtr, _p_Bbsw1MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor365_10MPtr, _p_Euribor365_10MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_IborIndexPtr, 0, 0, 0},  {&_swigt__p_OvernightIndexPtr, _p_OvernightIndexPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor365_6MPtr, _p_Euribor365_6MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor4MPtr, _p_Euribor4MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_EURLibor4MPtr, _p_EURLibor4MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Bbsw2MPtr, _p_Bbsw2MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor365_11MPtr, _p_Euribor365_11MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor365_7MPtr, _p_Euribor365_7MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor1YPtr, _p_Euribor1YPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_EURLibor1YPtr, _p_EURLibor1YPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Bkbm1MPtr, _p_Bkbm1MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor5MPtr, _p_Euribor5MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_EURLibor5MPtr, _p_EURLibor5MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Bbsw3MPtr, _p_Bbsw3MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_NzocrPtr, _p_NzocrPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor365_SWPtr, _p_Euribor365_SWPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_SoniaPtr, _p_SoniaPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_AoniaPtr, _p_AoniaPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_EoniaPtr, _p_EoniaPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor365_8MPtr, _p_Euribor365_8MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Bkbm2MPtr, _p_Bkbm2MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_EURLibor6MPtr, _p_EURLibor6MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor6MPtr, _p_Euribor6MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Bbsw4MPtr, _p_Bbsw4MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor365_9MPtr, _p_Euribor365_9MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Bkbm3MPtr, _p_Bkbm3MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_EURLibor7MPtr, _p_EURLibor7MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor7MPtr, _p_Euribor7MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Bbsw5MPtr, _p_Bbsw5MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor365_2WPtr, _p_Euribor365_2WPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_EURLiborSWPtr, _p_EURLiborSWPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_EuriborSWPtr, _p_EuriborSWPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor365_1MPtr, _p_Euribor365_1MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_GBPLiborPtr, _p_GBPLiborPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_EURLiborPtr, _p_EURLiborPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_DKKLiborPtr, _p_DKKLiborPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_CHFLiborPtr, _p_CHFLiborPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_CADLiborPtr, _p_CADLiborPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_AUDLiborPtr, _p_AUDLiborPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_LiborPtr, _p_LiborPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_EuriborPtr, _p_EuriborPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_TRLiborPtr, _p_TRLiborPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_USDLiborPtr, _p_USDLiborPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_ZiborPtr, _p_ZiborPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_JPYLiborPtr, _p_JPYLiborPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_NZDLiborPtr, _p_NZDLiborPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_SEKLiborPtr, _p_SEKLiborPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_TiborPtr, _p_TiborPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Bkbm4MPtr, _p_Bkbm4MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_EURLibor8MPtr, _p_EURLibor8MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor8MPtr, _p_Euribor8MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Bbsw6MPtr, _p_Bbsw6MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor365_3WPtr, _p_Euribor365_3WPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_BbswPtr, _p_BbswPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_BkbmPtr, _p_BkbmPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor365_2MPtr, _p_Euribor365_2MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Bkbm5MPtr, _p_Bkbm5MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_EURLibor10MPtr, _p_EURLibor10MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor10MPtr, _p_Euribor10MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_EURLibor9MPtr, _p_EURLibor9MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor9MPtr, _p_Euribor9MPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_EURLibor2WPtr, _p_EURLibor2WPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor2WPtr, _p_Euribor2WPtrTo_p_IborIndexPtr, 0, 0},  {&_swigt__p_Euribor365_3MPtr, _p_Euribor365_3MPtrTo_p_IborIndexPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ImpliedTermStructurePtr[] = {  {&_swigt__p_ImpliedTermStructurePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IncrementalStatistics[] = {  {&_swigt__p_IncrementalStatistics, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Index[] = {  {&_swigt__p_Index, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IndexManager[] = {  {&_swigt__p_IndexManager, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InflationIndexPtr[] = {  {&_swigt__p_YYFRHICPPtr, _p_YYFRHICPPtrTo_p_InflationIndexPtr, 0, 0},  {&_swigt__p_YYEUHICPPtr, _p_YYEUHICPPtrTo_p_InflationIndexPtr, 0, 0},  {&_swigt__p_FRHICPPtr, _p_FRHICPPtrTo_p_InflationIndexPtr, 0, 0},  {&_swigt__p_EUHICPPtr, _p_EUHICPPtrTo_p_InflationIndexPtr, 0, 0},  {&_swigt__p_YYUKRPIPtr, _p_YYUKRPIPtrTo_p_InflationIndexPtr, 0, 0},  {&_swigt__p_UKRPIPtr, _p_UKRPIPtrTo_p_InflationIndexPtr, 0, 0},  {&_swigt__p_YoYInflationIndexPtr, _p_YoYInflationIndexPtrTo_p_InflationIndexPtr, 0, 0},  {&_swigt__p_ZeroInflationIndexPtr, _p_ZeroInflationIndexPtrTo_p_InflationIndexPtr, 0, 0},  {&_swigt__p_InflationIndexPtr, 0, 0, 0},  {&_swigt__p_YYEUHICPXTPtr, _p_YYEUHICPXTPtrTo_p_InflationIndexPtr, 0, 0},  {&_swigt__p_EUHICPXTPtr, _p_EUHICPXTPtrTo_p_InflationIndexPtr, 0, 0},  {&_swigt__p_YYUSCPIPtr, _p_YYUSCPIPtrTo_p_InflationIndexPtr, 0, 0},  {&_swigt__p_ZACPIPtr, _p_ZACPIPtrTo_p_InflationIndexPtr, 0, 0},  {&_swigt__p_USCPIPtr, _p_USCPIPtrTo_p_InflationIndexPtr, 0, 0},  {&_swigt__p_YYZACPIPtr, _p_YYZACPIPtrTo_p_InflationIndexPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InflationTermStructure[] = {  {&_swigt__p_InflationTermStructure, 0, 0, 0},  {&_swigt__p_YoYInflationTermStructure, _p_YoYInflationTermStructureTo_p_InflationTermStructure, 0, 0},  {&_swigt__p_ZeroInflationTermStructure, _p_ZeroInflationTermStructureTo_p_InflationTermStructure, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Instrument[] = {  {&_swigt__p_Instrument, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IntegralCdsEnginePtr[] = {  {&_swigt__p_IntegralCdsEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IntegralEnginePtr[] = {  {&_swigt__p_IntegralEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InterestRate[] = {  {&_swigt__p_InterestRate, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InterestRateIndexPtr[] = {  {&_swigt__p_Bkbm6MPtr, _p_Bkbm6MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EURLibor1MPtr, _p_EURLibor1MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor1MPtr, _p_Euribor1MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EURLibor11MPtr, _p_EURLibor11MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor11MPtr, _p_Euribor11MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor365Ptr, _p_Euribor365PtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_FedFundsPtr, _p_FedFundsPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_CdorPtr, _p_CdorPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor3WPtr, _p_Euribor3WPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor365_4MPtr, _p_Euribor365_4MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor2MPtr, _p_Euribor2MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EURLibor2MPtr, _p_EURLibor2MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor365_1YPtr, _p_Euribor365_1YPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_JibarPtr, _p_JibarPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor365_5MPtr, _p_Euribor365_5MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EURLibor3MPtr, _p_EURLibor3MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor3MPtr, _p_Euribor3MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Bbsw1MPtr, _p_Bbsw1MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor365_10MPtr, _p_Euribor365_10MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_IborIndexPtr, _p_IborIndexPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_OvernightIndexPtr, _p_OvernightIndexPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_InterestRateIndexPtr, 0, 0, 0},  {&_swigt__p_SwapIndexPtr, _p_SwapIndexPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor365_6MPtr, _p_Euribor365_6MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EurLiborSwapIsdaFixBPtr, _p_EurLiborSwapIsdaFixBPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EuriborSwapIsdaFixBPtr, _p_EuriborSwapIsdaFixBPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor4MPtr, _p_Euribor4MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EURLibor4MPtr, _p_EURLibor4MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Bbsw2MPtr, _p_Bbsw2MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor365_11MPtr, _p_Euribor365_11MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EurLiborSwapIfrFixPtr, _p_EurLiborSwapIfrFixPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EuriborSwapIfrFixPtr, _p_EuriborSwapIfrFixPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor365_7MPtr, _p_Euribor365_7MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor1YPtr, _p_Euribor1YPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EURLibor1YPtr, _p_EURLibor1YPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Bkbm1MPtr, _p_Bkbm1MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor5MPtr, _p_Euribor5MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EURLibor5MPtr, _p_EURLibor5MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Bbsw3MPtr, _p_Bbsw3MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_NzocrPtr, _p_NzocrPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor365_SWPtr, _p_Euribor365_SWPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_SoniaPtr, _p_SoniaPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EoniaPtr, _p_EoniaPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_AoniaPtr, _p_AoniaPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EuriborSwapIsdaFixAPtr, _p_EuriborSwapIsdaFixAPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EurLiborSwapIsdaFixAPtr, _p_EurLiborSwapIsdaFixAPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor365_8MPtr, _p_Euribor365_8MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Bkbm2MPtr, _p_Bkbm2MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EURLibor6MPtr, _p_EURLibor6MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor6MPtr, _p_Euribor6MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Bbsw4MPtr, _p_Bbsw4MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor365_9MPtr, _p_Euribor365_9MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Bkbm3MPtr, _p_Bkbm3MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EURLibor7MPtr, _p_EURLibor7MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor7MPtr, _p_Euribor7MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Bbsw5MPtr, _p_Bbsw5MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor365_2WPtr, _p_Euribor365_2WPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EURLiborSWPtr, _p_EURLiborSWPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EuriborSWPtr, _p_EuriborSWPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor365_1MPtr, _p_Euribor365_1MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_CADLiborPtr, _p_CADLiborPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_AUDLiborPtr, _p_AUDLiborPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_LiborPtr, _p_LiborPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EuriborPtr, _p_EuriborPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_TRLiborPtr, _p_TRLiborPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_USDLiborPtr, _p_USDLiborPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_ZiborPtr, _p_ZiborPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_CHFLiborPtr, _p_CHFLiborPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_DKKLiborPtr, _p_DKKLiborPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EURLiborPtr, _p_EURLiborPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_GBPLiborPtr, _p_GBPLiborPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_JPYLiborPtr, _p_JPYLiborPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_NZDLiborPtr, _p_NZDLiborPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_SEKLiborPtr, _p_SEKLiborPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_TiborPtr, _p_TiborPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Bkbm4MPtr, _p_Bkbm4MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor8MPtr, _p_Euribor8MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EURLibor8MPtr, _p_EURLibor8MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Bbsw6MPtr, _p_Bbsw6MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor365_3WPtr, _p_Euribor365_3WPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_BbswPtr, _p_BbswPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_BkbmPtr, _p_BkbmPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor365_2MPtr, _p_Euribor365_2MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Bkbm5MPtr, _p_Bkbm5MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor10MPtr, _p_Euribor10MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EURLibor10MPtr, _p_EURLibor10MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor9MPtr, _p_Euribor9MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EURLibor9MPtr, _p_EURLibor9MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor2WPtr, _p_Euribor2WPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_Euribor365_3MPtr, _p_Euribor365_3MPtrTo_p_InterestRateIndexPtr, 0, 0},  {&_swigt__p_EURLibor2WPtr, _p_EURLibor2WPtrTo_p_InterestRateIndexPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IntervalPrice[] = {  {&_swigt__p_IntervalPrice, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativeNormal[] = {  {&_swigt__p_InverseCumulativeNormal, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativePoisson[] = {  {&_swigt__p_InverseCumulativePoisson, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativeRngT_KnuthUniformRng_InverseCumulativeNormal_t[] = {  {&_swigt__p_InverseCumulativeRngT_KnuthUniformRng_InverseCumulativeNormal_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativeRngT_KnuthUniformRng_MoroInverseCumulativeNormal_t[] = {  {&_swigt__p_InverseCumulativeRngT_KnuthUniformRng_MoroInverseCumulativeNormal_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativeRngT_LecuyerUniformRng_InverseCumulativeNormal_t[] = {  {&_swigt__p_InverseCumulativeRngT_LecuyerUniformRng_InverseCumulativeNormal_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativeRngT_LecuyerUniformRng_MoroInverseCumulativeNormal_t[] = {  {&_swigt__p_InverseCumulativeRngT_LecuyerUniformRng_MoroInverseCumulativeNormal_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativeRngT_MersenneTwisterUniformRng_InverseCumulativeNormal_t[] = {  {&_swigt__p_InverseCumulativeRngT_MersenneTwisterUniformRng_InverseCumulativeNormal_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativeRngT_MersenneTwisterUniformRng_MoroInverseCumulativeNormal_t[] = {  {&_swigt__p_InverseCumulativeRngT_MersenneTwisterUniformRng_MoroInverseCumulativeNormal_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativeRsgT_HaltonRsg_InverseCumulativeNormal_t[] = {  {&_swigt__p_InverseCumulativeRsgT_HaltonRsg_InverseCumulativeNormal_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativeRsgT_HaltonRsg_MoroInverseCumulativeNormal_t[] = {  {&_swigt__p_InverseCumulativeRsgT_HaltonRsg_MoroInverseCumulativeNormal_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_InverseCumulativeNormal_t[] = {  {&_swigt__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_InverseCumulativeNormal_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_MoroInverseCumulativeNormal_t[] = {  {&_swigt__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_MoroInverseCumulativeNormal_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_InverseCumulativeNormal_t[] = {  {&_swigt__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_InverseCumulativeNormal_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_MoroInverseCumulativeNormal_t[] = {  {&_swigt__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_MoroInverseCumulativeNormal_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_InverseCumulativeNormal_t[] = {  {&_swigt__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_InverseCumulativeNormal_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_MoroInverseCumulativeNormal_t[] = {  {&_swigt__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_MoroInverseCumulativeNormal_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativeRsgT_SobolRsg_InverseCumulativeNormal_t[] = {  {&_swigt__p_InverseCumulativeRsgT_SobolRsg_InverseCumulativeNormal_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativeRsgT_SobolRsg_MoroInverseCumulativeNormal_t[] = {  {&_swigt__p_InverseCumulativeRsgT_SobolRsg_MoroInverseCumulativeNormal_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseCumulativeStudent[] = {  {&_swigt__p_InverseCumulativeStudent, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_InverseNonCentralCumulativeChiSquareDistribution[] = {  {&_swigt__p_InverseNonCentralCumulativeChiSquareDistribution, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_JPYLiborPtr[] = {  {&_swigt__p_JPYLiborPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_JamshidianSwaptionEnginePtr[] = {  {&_swigt__p_JamshidianSwaptionEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_JibarPtr[] = {  {&_swigt__p_JibarPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_KnuthUniformRng[] = {  {&_swigt__p_KnuthUniformRng, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LecuyerUniformRng[] = {  {&_swigt__p_LecuyerUniformRng, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LevenbergMarquardt[] = {  {&_swigt__p_LevenbergMarquardt, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LiborPtr[] = {  {&_swigt__p_LiborPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Linear[] = {  {&_swigt__p_Linear, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LinearTsrPricerPtr[] = {  {&_swigt__p_LinearTsrPricerPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LinearTsrPricer__Settings[] = {  {&_swigt__p_LinearTsrPricer__Settings, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocalConstantVolPtr[] = {  {&_swigt__p_LocalConstantVolPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocalVolSurfacePtr[] = {  {&_swigt__p_LocalVolSurfacePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocalVolTermStructure[] = {  {&_swigt__p_LocalVolTermStructure, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LogCubicZeroCurvePtr[] = {  {&_swigt__p_LogCubicZeroCurvePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LogLinear[] = {  {&_swigt__p_LogLinear, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LogLinearZeroCurvePtr[] = {  {&_swigt__p_LogLinearZeroCurvePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LogNormalSimulatedAnnealing[] = {  {&_swigt__p_LogNormalSimulatedAnnealing, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MCAmericanBasketEnginePtr[] = {  {&_swigt__p_MCAmericanBasketEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MCBarrierEnginePtr[] = {  {&_swigt__p_MCBarrierEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MCDiscreteArithmeticAPEnginePtr[] = {  {&_swigt__p_MCDiscreteArithmeticAPEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MCDiscreteArithmeticASEnginePtr[] = {  {&_swigt__p_MCDiscreteArithmeticASEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MCDiscreteGeometricAPEnginePtr[] = {  {&_swigt__p_MCDiscreteGeometricAPEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MCEuropeanBasketEnginePtr[] = {  {&_swigt__p_MCEuropeanBasketEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MCEuropeanEnginePtr[] = {  {&_swigt__p_MCEuropeanEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MCEverestEnginePtr[] = {  {&_swigt__p_MCEverestEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MCHimalayaEnginePtr[] = {  {&_swigt__p_MCHimalayaEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MarkovFunctionalPtr[] = {  {&_swigt__p_MarkovFunctionalPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MarkovFunctional__ModelSettings[] = {  {&_swigt__p_MarkovFunctional__ModelSettings, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Matrix[] = {  {&_swigt__p_Matrix, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MatrixRow[] = {  {&_swigt__p_MatrixRow, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MaxBasketPayoffPtr[] = {  {&_swigt__p_MaxBasketPayoffPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MersenneTwisterUniformRng[] = {  {&_swigt__p_MersenneTwisterUniformRng, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Merton76ProcessPtr[] = {  {&_swigt__p_Merton76ProcessPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MidPointCdsEnginePtr[] = {  {&_swigt__p_MidPointCdsEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MinBasketPayoffPtr[] = {  {&_swigt__p_MinBasketPayoffPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MirrorGaussianSimulatedAnnealing[] = {  {&_swigt__p_MirrorGaussianSimulatedAnnealing, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Money[] = {  {&_swigt__p_Money, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MonotonicCubic[] = {  {&_swigt__p_MonotonicCubic, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MonotonicCubicZeroCurvePtr[] = {  {&_swigt__p_MonotonicCubicZeroCurvePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MonotonicLogCubic[] = {  {&_swigt__p_MonotonicLogCubic, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MoroInverseCumulativeNormal[] = {  {&_swigt__p_MoroInverseCumulativeNormal, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MultiAssetOptionPtr[] = {  {&_swigt__p_MultiAssetOptionPtr, 0, 0, 0},  {&_swigt__p_BasketOptionPtr, _p_BasketOptionPtrTo_p_MultiAssetOptionPtr, 0, 0},  {&_swigt__p_EverestOptionPtr, _p_EverestOptionPtrTo_p_MultiAssetOptionPtr, 0, 0},  {&_swigt__p_HimalayaOptionPtr, _p_HimalayaOptionPtrTo_p_MultiAssetOptionPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MultiPath[] = {  {&_swigt__p_MultiPath, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MultiplicativePriceSeasonalityPtr[] = {  {&_swigt__p_MultiplicativePriceSeasonalityPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_NZDLiborPtr[] = {  {&_swigt__p_NZDLiborPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_NelsonSiegelFitting[] = {  {&_swigt__p_NelsonSiegelFitting, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_NeumannBCPtr[] = {  {&_swigt__p_NeumannBCPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Newton[] = {  {&_swigt__p_Newton, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_NewtonSafe[] = {  {&_swigt__p_NewtonSafe, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_NoConstraint[] = {  {&_swigt__p_NoConstraint, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_NonCentralCumulativeChiSquareDistribution[] = {  {&_swigt__p_NonCentralCumulativeChiSquareDistribution, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_NonhomogeneousBoundaryConstraint[] = {  {&_swigt__p_NonhomogeneousBoundaryConstraint, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_NonstandardSwapPtr[] = {  {&_swigt__p_NonstandardSwapPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_NonstandardSwaptionPtr[] = {  {&_swigt__p_NonstandardSwaptionPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_NormalDistribution[] = {  {&_swigt__p_NormalDistribution, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_NullParameter[] = {  {&_swigt__p_NullParameter, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_NumericHaganPricerPtr[] = {  {&_swigt__p_NumericHaganPricerPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_NzocrPtr[] = {  {&_swigt__p_NzocrPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OISRateHelperPtr[] = {  {&_swigt__p_OISRateHelperPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Observable[] = {  {&_swigt__p_Observable, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OptimizationMethod[] = {  {&_swigt__p_LevenbergMarquardt, _p_LevenbergMarquardtTo_p_OptimizationMethod, 0, 0},  {&_swigt__p_DifferentialEvolution, _p_DifferentialEvolutionTo_p_OptimizationMethod, 0, 0},  {&_swigt__p_GaussianSimulatedAnnealing, _p_GaussianSimulatedAnnealingTo_p_OptimizationMethod, 0, 0},  {&_swigt__p_MirrorGaussianSimulatedAnnealing, _p_MirrorGaussianSimulatedAnnealingTo_p_OptimizationMethod, 0, 0},  {&_swigt__p_LogNormalSimulatedAnnealing, _p_LogNormalSimulatedAnnealingTo_p_OptimizationMethod, 0, 0},  {&_swigt__p_OptimizationMethod, 0, 0, 0},  {&_swigt__p_Simplex, _p_SimplexTo_p_OptimizationMethod, 0, 0},  {&_swigt__p_SteepestDescent, _p_SteepestDescentTo_p_OptimizationMethod, 0, 0},  {&_swigt__p_BFGS, _p_BFGSTo_p_OptimizationMethod, 0, 0},  {&_swigt__p_ConjugateGradient, _p_ConjugateGradientTo_p_OptimizationMethod, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Optimizer[] = {  {&_swigt__p_Optimizer, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Option[] = {  {&_swigt__p_Option, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OptionletStripper1Ptr[] = {  {&_swigt__p_OptionletStripper1Ptr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OptionletVolatilityStructure[] = {  {&_swigt__p_OptionletVolatilityStructure, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OvernightIndexPtr[] = {  {&_swigt__p_FedFundsPtr, _p_FedFundsPtrTo_p_OvernightIndexPtr, 0, 0},  {&_swigt__p_AoniaPtr, _p_AoniaPtrTo_p_OvernightIndexPtr, 0, 0},  {&_swigt__p_EoniaPtr, _p_EoniaPtrTo_p_OvernightIndexPtr, 0, 0},  {&_swigt__p_SoniaPtr, _p_SoniaPtrTo_p_OvernightIndexPtr, 0, 0},  {&_swigt__p_OvernightIndexPtr, 0, 0, 0},  {&_swigt__p_NzocrPtr, _p_NzocrPtrTo_p_OvernightIndexPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Parameter[] = {  {&_swigt__p_Parameter, 0, 0, 0},  {&_swigt__p_ConstantParameter, _p_ConstantParameterTo_p_Parameter, 0, 0},  {&_swigt__p_NullParameter, _p_NullParameterTo_p_Parameter, 0, 0},  {&_swigt__p_PiecewiseConstantParameter, _p_PiecewiseConstantParameterTo_p_Parameter, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ParkinsonSigma[] = {  {&_swigt__p_ParkinsonSigma, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Path[] = {  {&_swigt__p_Path, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Payoff[] = {  {&_swigt__p_Payoff, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PercentageStrikePayoffPtr[] = {  {&_swigt__p_PercentageStrikePayoffPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Period[] = {  {&_swigt__p_Period, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PeriodParser[] = {  {&_swigt__p_PeriodParser, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PiecewiseConstantParameter[] = {  {&_swigt__p_PiecewiseConstantParameter, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PiecewiseCubicZeroPtr[] = {  {&_swigt__p_PiecewiseCubicZeroPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PiecewiseFlatForwardPtr[] = {  {&_swigt__p_PiecewiseFlatForwardPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PiecewiseFlatHazardRatePtr[] = {  {&_swigt__p_PiecewiseFlatHazardRatePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PiecewiseLinearForwardPtr[] = {  {&_swigt__p_PiecewiseLinearForwardPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PiecewiseLinearZeroPtr[] = {  {&_swigt__p_PiecewiseLinearZeroPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PiecewiseLogCubicDiscountPtr[] = {  {&_swigt__p_PiecewiseLogCubicDiscountPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PiecewiseTimeDependentHestonModelPtr[] = {  {&_swigt__p_PiecewiseTimeDependentHestonModelPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PiecewiseYoYInflationPtr[] = {  {&_swigt__p_PiecewiseYoYInflationPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PiecewiseZeroInflationPtr[] = {  {&_swigt__p_PiecewiseZeroInflationPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Pillar[] = {  {&_swigt__p_Pillar, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PlainVanillaPayoffPtr[] = {  {&_swigt__p_PlainVanillaPayoffPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PoissonDistribution[] = {  {&_swigt__p_PoissonDistribution, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Position[] = {  {&_swigt__p_Position, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PositiveConstraint[] = {  {&_swigt__p_PositiveConstraint, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PricingEngine[] = {  {&_swigt__p_PricingEngine, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ProbabilityBoltzmannDownhill[] = {  {&_swigt__p_ProbabilityBoltzmannDownhill, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Protection[] = {  {&_swigt__p_Protection, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PyObserver[] = {  {&_swigt__p_PyObserver, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__ARSCurrency[] = {  {&_swigt__p_QuantLib__ARSCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__ATSCurrency[] = {  {&_swigt__p_QuantLib__ATSCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__AUDCurrency[] = {  {&_swigt__p_QuantLib__AUDCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Actual360[] = {  {&_swigt__p_QuantLib__Actual360, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Actual365Fixed[] = {  {&_swigt__p_QuantLib__Actual365Fixed, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__ActualActual[] = {  {&_swigt__p_QuantLib__ActualActual, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Argentina[] = {  {&_swigt__p_QuantLib__Argentina, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Australia[] = {  {&_swigt__p_QuantLib__Australia, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__BDTCurrency[] = {  {&_swigt__p_QuantLib__BDTCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__BEFCurrency[] = {  {&_swigt__p_QuantLib__BEFCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__BGLCurrency[] = {  {&_swigt__p_QuantLib__BGLCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__BRLCurrency[] = {  {&_swigt__p_QuantLib__BRLCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__BYRCurrency[] = {  {&_swigt__p_QuantLib__BYRCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__BespokeCalendar[] = {  {&_swigt__p_QuantLib__BespokeCalendar, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Brazil[] = {  {&_swigt__p_QuantLib__Brazil, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Business252[] = {  {&_swigt__p_QuantLib__Business252, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__CADCurrency[] = {  {&_swigt__p_QuantLib__CADCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__CHFCurrency[] = {  {&_swigt__p_QuantLib__CHFCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__CLPCurrency[] = {  {&_swigt__p_QuantLib__CLPCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__CNYCurrency[] = {  {&_swigt__p_QuantLib__CNYCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__COPCurrency[] = {  {&_swigt__p_QuantLib__COPCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__CYPCurrency[] = {  {&_swigt__p_QuantLib__CYPCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__CZKCurrency[] = {  {&_swigt__p_QuantLib__CZKCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Canada[] = {  {&_swigt__p_QuantLib__Canada, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__China[] = {  {&_swigt__p_QuantLib__China, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__CzechRepublic[] = {  {&_swigt__p_QuantLib__CzechRepublic, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__DEMCurrency[] = {  {&_swigt__p_QuantLib__DEMCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__DKKCurrency[] = {  {&_swigt__p_QuantLib__DKKCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Denmark[] = {  {&_swigt__p_QuantLib__Denmark, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__EEKCurrency[] = {  {&_swigt__p_QuantLib__EEKCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__ESPCurrency[] = {  {&_swigt__p_QuantLib__ESPCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__EURCurrency[] = {  {&_swigt__p_QuantLib__EURCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__FIMCurrency[] = {  {&_swigt__p_QuantLib__FIMCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__FRFCurrency[] = {  {&_swigt__p_QuantLib__FRFCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Finland[] = {  {&_swigt__p_QuantLib__Finland, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__GBPCurrency[] = {  {&_swigt__p_QuantLib__GBPCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__GRDCurrency[] = {  {&_swigt__p_QuantLib__GRDCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Germany[] = {  {&_swigt__p_QuantLib__Germany, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__HKDCurrency[] = {  {&_swigt__p_QuantLib__HKDCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__HUFCurrency[] = {  {&_swigt__p_QuantLib__HUFCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__HongKong[] = {  {&_swigt__p_QuantLib__HongKong, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Hungary[] = {  {&_swigt__p_QuantLib__Hungary, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__IDRCurrency[] = {  {&_swigt__p_QuantLib__IDRCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__IEPCurrency[] = {  {&_swigt__p_QuantLib__IEPCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__ILSCurrency[] = {  {&_swigt__p_QuantLib__ILSCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__INRCurrency[] = {  {&_swigt__p_QuantLib__INRCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__IQDCurrency[] = {  {&_swigt__p_QuantLib__IQDCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__IRRCurrency[] = {  {&_swigt__p_QuantLib__IRRCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__ISKCurrency[] = {  {&_swigt__p_QuantLib__ISKCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__ITLCurrency[] = {  {&_swigt__p_QuantLib__ITLCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Iceland[] = {  {&_swigt__p_QuantLib__Iceland, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__India[] = {  {&_swigt__p_QuantLib__India, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Indonesia[] = {  {&_swigt__p_QuantLib__Indonesia, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Israel[] = {  {&_swigt__p_QuantLib__Israel, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Italy[] = {  {&_swigt__p_QuantLib__Italy, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__JPYCurrency[] = {  {&_swigt__p_QuantLib__JPYCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Japan[] = {  {&_swigt__p_QuantLib__Japan, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__JointCalendar[] = {  {&_swigt__p_QuantLib__JointCalendar, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__KRWCurrency[] = {  {&_swigt__p_QuantLib__KRWCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__KWDCurrency[] = {  {&_swigt__p_QuantLib__KWDCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__LTLCurrency[] = {  {&_swigt__p_QuantLib__LTLCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__LUFCurrency[] = {  {&_swigt__p_QuantLib__LUFCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__LVLCurrency[] = {  {&_swigt__p_QuantLib__LVLCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__MTLCurrency[] = {  {&_swigt__p_QuantLib__MTLCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__MXNCurrency[] = {  {&_swigt__p_QuantLib__MXNCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__MYRCurrency[] = {  {&_swigt__p_QuantLib__MYRCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Mexico[] = {  {&_swigt__p_QuantLib__Mexico, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__NLGCurrency[] = {  {&_swigt__p_QuantLib__NLGCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__NOKCurrency[] = {  {&_swigt__p_QuantLib__NOKCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__NPRCurrency[] = {  {&_swigt__p_QuantLib__NPRCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__NZDCurrency[] = {  {&_swigt__p_QuantLib__NZDCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__NewZealand[] = {  {&_swigt__p_QuantLib__NewZealand, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Norway[] = {  {&_swigt__p_QuantLib__Norway, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__NullCalendar[] = {  {&_swigt__p_QuantLib__NullCalendar, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__OneDayCounter[] = {  {&_swigt__p_QuantLib__OneDayCounter, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__PEHCurrency[] = {  {&_swigt__p_QuantLib__PEHCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__PEICurrency[] = {  {&_swigt__p_QuantLib__PEICurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__PENCurrency[] = {  {&_swigt__p_QuantLib__PENCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__PKRCurrency[] = {  {&_swigt__p_QuantLib__PKRCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__PLNCurrency[] = {  {&_swigt__p_QuantLib__PLNCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__PTECurrency[] = {  {&_swigt__p_QuantLib__PTECurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Poland[] = {  {&_swigt__p_QuantLib__Poland, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__ROLCurrency[] = {  {&_swigt__p_QuantLib__ROLCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__RONCurrency[] = {  {&_swigt__p_QuantLib__RONCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__RUBCurrency[] = {  {&_swigt__p_QuantLib__RUBCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Romania[] = {  {&_swigt__p_QuantLib__Romania, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Russia[] = {  {&_swigt__p_QuantLib__Russia, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__SARCurrency[] = {  {&_swigt__p_QuantLib__SARCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__SEKCurrency[] = {  {&_swigt__p_QuantLib__SEKCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__SGDCurrency[] = {  {&_swigt__p_QuantLib__SGDCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__SITCurrency[] = {  {&_swigt__p_QuantLib__SITCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__SKKCurrency[] = {  {&_swigt__p_QuantLib__SKKCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__SaudiArabia[] = {  {&_swigt__p_QuantLib__SaudiArabia, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__SimpleDayCounter[] = {  {&_swigt__p_QuantLib__SimpleDayCounter, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Singapore[] = {  {&_swigt__p_QuantLib__Singapore, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Slovakia[] = {  {&_swigt__p_QuantLib__Slovakia, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__SouthAfrica[] = {  {&_swigt__p_QuantLib__SouthAfrica, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__SouthKorea[] = {  {&_swigt__p_QuantLib__SouthKorea, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Sweden[] = {  {&_swigt__p_QuantLib__Sweden, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Switzerland[] = {  {&_swigt__p_QuantLib__Switzerland, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__TARGET[] = {  {&_swigt__p_QuantLib__TARGET, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__THBCurrency[] = {  {&_swigt__p_QuantLib__THBCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__TRLCurrency[] = {  {&_swigt__p_QuantLib__TRLCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__TRYCurrency[] = {  {&_swigt__p_QuantLib__TRYCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__TTDCurrency[] = {  {&_swigt__p_QuantLib__TTDCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__TWDCurrency[] = {  {&_swigt__p_QuantLib__TWDCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Taiwan[] = {  {&_swigt__p_QuantLib__Taiwan, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Thirty360[] = {  {&_swigt__p_QuantLib__Thirty360, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Turkey[] = {  {&_swigt__p_QuantLib__Turkey, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__USDCurrency[] = {  {&_swigt__p_QuantLib__USDCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__Ukraine[] = {  {&_swigt__p_QuantLib__Ukraine, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__UnitedKingdom[] = {  {&_swigt__p_QuantLib__UnitedKingdom, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__UnitedStates[] = {  {&_swigt__p_QuantLib__UnitedStates, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__VEBCurrency[] = {  {&_swigt__p_QuantLib__VEBCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__VNDCurrency[] = {  {&_swigt__p_QuantLib__VNDCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__WeekendsOnly[] = {  {&_swigt__p_QuantLib__WeekendsOnly, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantLib__ZARCurrency[] = {  {&_swigt__p_QuantLib__ZARCurrency, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantoDoubleBarrierOptionPtr[] = {  {&_swigt__p_QuantoDoubleBarrierOptionPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantoEuropeanEnginePtr[] = {  {&_swigt__p_QuantoEuropeanEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantoForwardEuropeanEnginePtr[] = {  {&_swigt__p_QuantoForwardEuropeanEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantoForwardVanillaOptionPtr[] = {  {&_swigt__p_QuantoForwardVanillaOptionPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuantoVanillaOptionPtr[] = {  {&_swigt__p_QuantoVanillaOptionPtr, 0, 0, 0},  {&_swigt__p_QuantoForwardVanillaOptionPtr, _p_QuantoForwardVanillaOptionPtrTo_p_QuantoVanillaOptionPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Quote[] = {  {&_swigt__p_Quote, 0, 0, 0},  {&_swigt__p_DeltaVolQuote, _p_DeltaVolQuoteTo_p_Quote, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RandomSequenceGeneratorT_KnuthUniformRng_t[] = {  {&_swigt__p_RandomSequenceGeneratorT_KnuthUniformRng_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RandomSequenceGeneratorT_LecuyerUniformRng_t[] = {  {&_swigt__p_RandomSequenceGeneratorT_LecuyerUniformRng_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t[] = {  {&_swigt__p_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RateHelper[] = {  {&_swigt__p_RateHelper, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RealTimeSeries[] = {  {&_swigt__p_RealTimeSeries, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ReannealingTrivial[] = {  {&_swigt__p_ReannealingTrivial, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RebatedExercisePtr[] = {  {&_swigt__p_RebatedExercisePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RedemptionPtr[] = {  {&_swigt__p_RedemptionPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Region[] = {  {&_swigt__p_Region, 0, 0, 0},  {&_swigt__p_CustomRegion, _p_CustomRegionTo_p_Region, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RelinkableHandleT_BlackVolTermStructure_t[] = {  {&_swigt__p_RelinkableHandleT_BlackVolTermStructure_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RelinkableHandleT_CalibratedModel_t[] = {  {&_swigt__p_RelinkableHandleT_CalibratedModel_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RelinkableHandleT_CapFloorTermVolatilityStructure_t[] = {  {&_swigt__p_RelinkableHandleT_CapFloorTermVolatilityStructure_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RelinkableHandleT_DefaultProbabilityTermStructure_t[] = {  {&_swigt__p_RelinkableHandleT_DefaultProbabilityTermStructure_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RelinkableHandleT_DeltaVolQuote_t[] = {  {&_swigt__p_RelinkableHandleT_DeltaVolQuote_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RelinkableHandleT_LocalVolTermStructure_t[] = {  {&_swigt__p_RelinkableHandleT_LocalVolTermStructure_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RelinkableHandleT_OptionletVolatilityStructure_t[] = {  {&_swigt__p_RelinkableHandleT_OptionletVolatilityStructure_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RelinkableHandleT_Quote_t[] = {  {&_swigt__p_RelinkableHandleT_Quote_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RelinkableHandleT_ShortRateModel_t[] = {  {&_swigt__p_RelinkableHandleT_ShortRateModel_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RelinkableHandleT_SwaptionVolatilityStructure_t[] = {  {&_swigt__p_RelinkableHandleT_SwaptionVolatilityStructure_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RelinkableHandleT_YieldTermStructure_t[] = {  {&_swigt__p_RelinkableHandleT_YieldTermStructure_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RelinkableHandleT_YoYInflationTermStructure_t[] = {  {&_swigt__p_RelinkableHandleT_YoYInflationTermStructure_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RelinkableHandleT_ZeroInflationTermStructure_t[] = {  {&_swigt__p_RelinkableHandleT_ZeroInflationTermStructure_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Ridder[] = {  {&_swigt__p_Ridder, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RiskStatistics[] = {  {&_swigt__p_RiskStatistics, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Rounding[] = {  {&_swigt__p_CeilingTruncation, _p_CeilingTruncationTo_p_Rounding, 0, 0},  {&_swigt__p_FloorTruncation, _p_FloorTruncationTo_p_Rounding, 0, 0},  {&_swigt__p_Rounding, 0, 0, 0},  {&_swigt__p_UpRounding, _p_UpRoundingTo_p_Rounding, 0, 0},  {&_swigt__p_DownRounding, _p_DownRoundingTo_p_Rounding, 0, 0},  {&_swigt__p_ClosestRounding, _p_ClosestRoundingTo_p_Rounding, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SEKLiborPtr[] = {  {&_swigt__p_SEKLiborPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SVD[] = {  {&_swigt__p_SVD, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeBackwardFlatInterpolation[] = {  {&_swigt__p_SafeBackwardFlatInterpolation, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeBicubicSpline[] = {  {&_swigt__p_SafeBicubicSpline, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeBilinearInterpolation[] = {  {&_swigt__p_SafeBilinearInterpolation, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeCubicNaturalSpline[] = {  {&_swigt__p_SafeCubicNaturalSpline, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeForwardFlatInterpolation[] = {  {&_swigt__p_SafeForwardFlatInterpolation, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeFritschButlandCubic[] = {  {&_swigt__p_SafeFritschButlandCubic, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeFritschButlandLogCubic[] = {  {&_swigt__p_SafeFritschButlandLogCubic, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeKrugerCubic[] = {  {&_swigt__p_SafeKrugerCubic, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeKrugerLogCubic[] = {  {&_swigt__p_SafeKrugerLogCubic, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeLinearInterpolation[] = {  {&_swigt__p_SafeLinearInterpolation, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeLogCubicNaturalSpline[] = {  {&_swigt__p_SafeLogCubicNaturalSpline, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeLogLinearInterpolation[] = {  {&_swigt__p_SafeLogLinearInterpolation, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeLogParabolic[] = {  {&_swigt__p_SafeLogParabolic, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeMonotonicCubicNaturalSpline[] = {  {&_swigt__p_SafeMonotonicCubicNaturalSpline, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeMonotonicLogCubicNaturalSpline[] = {  {&_swigt__p_SafeMonotonicLogCubicNaturalSpline, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeMonotonicLogParabolic[] = {  {&_swigt__p_SafeMonotonicLogParabolic, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeMonotonicParabolic[] = {  {&_swigt__p_SafeMonotonicParabolic, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeParabolic[] = {  {&_swigt__p_SafeParabolic, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SalvagingAlgorithm[] = {  {&_swigt__p_SalvagingAlgorithm, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SampleT_Array_t[] = {  {&_swigt__p_SampleT_Array_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SampleT_MultiPath_t[] = {  {&_swigt__p_SampleT_MultiPath_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SampleT_Path_t[] = {  {&_swigt__p_SampleT_Path_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SampleT_double_t[] = {  {&_swigt__p_SampleT_double_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t[] = {  {&_swigt__p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SampledCurve[] = {  {&_swigt__p_SampledCurve, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SamplerGaussian[] = {  {&_swigt__p_SamplerGaussian, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SamplerLogNormal[] = {  {&_swigt__p_SamplerLogNormal, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SamplerMirrorGaussian[] = {  {&_swigt__p_SamplerMirrorGaussian, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Schedule[] = {  {&_swigt__p_Schedule, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Seasonality[] = {  {&_swigt__p_Seasonality, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Secant[] = {  {&_swigt__p_Secant, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SegmentIntegral[] = {  {&_swigt__p_SegmentIntegral, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Settings[] = {  {&_swigt__p_Settings, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Settlement[] = {  {&_swigt__p_Settlement, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ShortRateModel[] = {  {&_swigt__p_ShortRateModel, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimpleCashFlowPtr[] = {  {&_swigt__p_SimpleCashFlowPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimplePolynomialFitting[] = {  {&_swigt__p_SimplePolynomialFitting, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimpleQuotePtr[] = {  {&_swigt__p_SimpleQuotePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Simplex[] = {  {&_swigt__p_Simplex, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimpsonIntegral[] = {  {&_swigt__p_SimpsonIntegral, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SobolBrownianBridgeRsg[] = {  {&_swigt__p_SobolBrownianBridgeRsg, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SobolRsg[] = {  {&_swigt__p_SobolRsg, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SoftCallabilityPtr[] = {  {&_swigt__p_SoftCallabilityPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SoniaPtr[] = {  {&_swigt__p_SoniaPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SpreadCdsHelperPtr[] = {  {&_swigt__p_SpreadCdsHelperPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SpreadedLinearZeroInterpolatedTermStructurePtr[] = {  {&_swigt__p_SpreadedLinearZeroInterpolatedTermStructurePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Statistics[] = {  {&_swigt__p_Statistics, 0, 0, 0},  {&_swigt__p_RiskStatistics, _p_RiskStatisticsTo_p_Statistics, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SteepestDescent[] = {  {&_swigt__p_SteepestDescent, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_StochasticProcess[] = {  {&_swigt__p_StochasticProcess, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_StochasticProcess1DPtr[] = {  {&_swigt__p_GeneralizedBlackScholesProcessPtr, _p_GeneralizedBlackScholesProcessPtrTo_p_StochasticProcess1DPtr, 0, 0},  {&_swigt__p_BlackScholesProcessPtr, _p_BlackScholesProcessPtrTo_p_StochasticProcess1DPtr, 0, 0},  {&_swigt__p_BlackScholesMertonProcessPtr, _p_BlackScholesMertonProcessPtrTo_p_StochasticProcess1DPtr, 0, 0},  {&_swigt__p_BlackProcessPtr, _p_BlackProcessPtrTo_p_StochasticProcess1DPtr, 0, 0},  {&_swigt__p_GarmanKohlagenProcessPtr, _p_GarmanKohlagenProcessPtrTo_p_StochasticProcess1DPtr, 0, 0},  {&_swigt__p_Merton76ProcessPtr, _p_Merton76ProcessPtrTo_p_StochasticProcess1DPtr, 0, 0},  {&_swigt__p_GeometricBrownianMotionProcessPtr, _p_GeometricBrownianMotionProcessPtrTo_p_StochasticProcess1DPtr, 0, 0},  {&_swigt__p_VarianceGammaProcessPtr, _p_VarianceGammaProcessPtrTo_p_StochasticProcess1DPtr, 0, 0},  {&_swigt__p_HullWhiteProcessPtr, _p_HullWhiteProcessPtrTo_p_StochasticProcess1DPtr, 0, 0},  {&_swigt__p_HullWhiteForwardProcessPtr, _p_HullWhiteForwardProcessPtrTo_p_StochasticProcess1DPtr, 0, 0},  {&_swigt__p_GsrProcessPtr, _p_GsrProcessPtrTo_p_StochasticProcess1DPtr, 0, 0},  {&_swigt__p_StochasticProcess1DPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_StochasticProcessArrayPtr[] = {  {&_swigt__p_StochasticProcessArrayPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_StockPtr[] = {  {&_swigt__p_StockPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_StrippedOptionletAdapterPtr[] = {  {&_swigt__p_StrippedOptionletAdapterPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_StrippedOptionletBase[] = {  {&_swigt__p_StrippedOptionletBase, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_StudentDistribution[] = {  {&_swigt__p_StudentDistribution, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_StulzEnginePtr[] = {  {&_swigt__p_StulzEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SuperSharePayoffPtr[] = {  {&_swigt__p_SuperSharePayoffPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SvenssonFitting[] = {  {&_swigt__p_SvenssonFitting, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SwapIndexPtr[] = {  {&_swigt__p_EuriborSwapIsdaFixAPtr, _p_EuriborSwapIsdaFixAPtrTo_p_SwapIndexPtr, 0, 0},  {&_swigt__p_EurLiborSwapIsdaFixAPtr, _p_EurLiborSwapIsdaFixAPtrTo_p_SwapIndexPtr, 0, 0},  {&_swigt__p_EuriborSwapIsdaFixBPtr, _p_EuriborSwapIsdaFixBPtrTo_p_SwapIndexPtr, 0, 0},  {&_swigt__p_EurLiborSwapIsdaFixBPtr, _p_EurLiborSwapIsdaFixBPtrTo_p_SwapIndexPtr, 0, 0},  {&_swigt__p_EuriborSwapIfrFixPtr, _p_EuriborSwapIfrFixPtrTo_p_SwapIndexPtr, 0, 0},  {&_swigt__p_EurLiborSwapIfrFixPtr, _p_EurLiborSwapIfrFixPtrTo_p_SwapIndexPtr, 0, 0},  {&_swigt__p_SwapIndexPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SwapPtr[] = {  {&_swigt__p_SwapPtr, 0, 0, 0},  {&_swigt__p_VanillaSwapPtr, _p_VanillaSwapPtrTo_p_SwapPtr, 0, 0},  {&_swigt__p_NonstandardSwapPtr, _p_NonstandardSwapPtrTo_p_SwapPtr, 0, 0},  {&_swigt__p_AssetSwapPtr, _p_AssetSwapPtrTo_p_SwapPtr, 0, 0},  {&_swigt__p_FloatFloatSwapPtr, _p_FloatFloatSwapPtrTo_p_SwapPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SwapRateHelperPtr[] = {  {&_swigt__p_SwapRateHelperPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SwaptionHelperPtr[] = {  {&_swigt__p_SwaptionHelperPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SwaptionPtr[] = {  {&_swigt__p_SwaptionPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SwaptionVolCube1Ptr[] = {  {&_swigt__p_SwaptionVolCube1Ptr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SwaptionVolCube2Ptr[] = {  {&_swigt__p_SwaptionVolCube2Ptr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SwaptionVolatilityMatrixPtr[] = {  {&_swigt__p_SwaptionVolatilityMatrixPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SwaptionVolatilityStructure[] = {  {&_swigt__p_SwaptionVolatilityStructure, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TRLiborPtr[] = {  {&_swigt__p_TRLiborPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TemperatureExponential[] = {  {&_swigt__p_TemperatureExponential, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TiborPtr[] = {  {&_swigt__p_TiborPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TimeBasket[] = {  {&_swigt__p_TimeBasket, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TimeGrid[] = {  {&_swigt__p_TimeGrid, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t[] = {  {&_swigt__p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t[] = {  {&_swigt__p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TrapezoidIntegralT_Default_t[] = {  {&_swigt__p_TrapezoidIntegralT_Default_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TrapezoidIntegralT_MidPoint_t[] = {  {&_swigt__p_TrapezoidIntegralT_MidPoint_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TreeCallableFixedRateBondEnginePtr[] = {  {&_swigt__p_TreeCallableFixedRateBondEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TreeCapFloorEnginePtr[] = {  {&_swigt__p_TreeCapFloorEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TreeSwaptionEnginePtr[] = {  {&_swigt__p_TreeSwaptionEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TridiagonalOperator[] = {  {&_swigt__p_DPlusDMinus, _p_DPlusDMinusTo_p_TridiagonalOperator, 0, 0},  {&_swigt__p_DMinus, _p_DMinusTo_p_TridiagonalOperator, 0, 0},  {&_swigt__p_DPlus, _p_DPlusTo_p_TridiagonalOperator, 0, 0},  {&_swigt__p_TridiagonalOperator, 0, 0, 0},  {&_swigt__p_DZero, _p_DZeroTo_p_TridiagonalOperator, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_UKRPIPtr[] = {  {&_swigt__p_UKRPIPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_USCPIPtr[] = {  {&_swigt__p_USCPIPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_USDLiborPtr[] = {  {&_swigt__p_USDLiborPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_UniformLowDiscrepancySequenceGenerator[] = {  {&_swigt__p_UniformLowDiscrepancySequenceGenerator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_UniformRandomGenerator[] = {  {&_swigt__p_UniformRandomGenerator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_UniformRandomSequenceGenerator[] = {  {&_swigt__p_UniformRandomSequenceGenerator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_UpRounding[] = {  {&_swigt__p_UpRounding, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_UpfrontCdsHelperPtr[] = {  {&_swigt__p_UpfrontCdsHelperPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_VanillaOptionPtr[] = {  {&_swigt__p_VanillaOptionPtr, 0, 0, 0},  {&_swigt__p_EuropeanOptionPtr, _p_EuropeanOptionPtrTo_p_VanillaOptionPtr, 0, 0},  {&_swigt__p_ForwardVanillaOptionPtr, _p_ForwardVanillaOptionPtrTo_p_VanillaOptionPtr, 0, 0},  {&_swigt__p_QuantoVanillaOptionPtr, _p_QuantoVanillaOptionPtrTo_p_VanillaOptionPtr, 0, 0},  {&_swigt__p_QuantoForwardVanillaOptionPtr, _p_QuantoForwardVanillaOptionPtrTo_p_VanillaOptionPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_VanillaSwapPtr[] = {  {&_swigt__p_VanillaSwapPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_VannaVolgaDoubleBarrierEnginePtr[] = {  {&_swigt__p_VannaVolgaDoubleBarrierEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_VarianceGammaEnginePtr[] = {  {&_swigt__p_VarianceGammaEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_VarianceGammaProcessPtr[] = {  {&_swigt__p_VarianceGammaProcessPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_VasicekPtr[] = {  {&_swigt__p_VasicekPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_WulinYongDoubleBarrierEnginePtr[] = {  {&_swigt__p_WulinYongDoubleBarrierEnginePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_YYEUHICPPtr[] = {  {&_swigt__p_YYEUHICPPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_YYEUHICPXTPtr[] = {  {&_swigt__p_YYEUHICPXTPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_YYFRHICPPtr[] = {  {&_swigt__p_YYFRHICPPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_YYUKRPIPtr[] = {  {&_swigt__p_YYUKRPIPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_YYUSCPIPtr[] = {  {&_swigt__p_YYUSCPIPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_YYZACPIPtr[] = {  {&_swigt__p_YYZACPIPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_YearOnYearInflationSwapHelperPtr[] = {  {&_swigt__p_YearOnYearInflationSwapHelperPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_YearOnYearInflationSwapPtr[] = {  {&_swigt__p_YearOnYearInflationSwapPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_YieldTermStructure[] = {  {&_swigt__p_YieldTermStructure, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_YoYHelper[] = {  {&_swigt__p_YoYHelper, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_YoYInflationCapFloorPtr[] = {  {&_swigt__p_YoYInflationCapFloorPtr, 0, 0, 0},  {&_swigt__p_YoYInflationFloorPtr, _p_YoYInflationFloorPtrTo_p_YoYInflationCapFloorPtr, 0, 0},  {&_swigt__p_YoYInflationCapPtr, _p_YoYInflationCapPtrTo_p_YoYInflationCapFloorPtr, 0, 0},  {&_swigt__p_YoYInflationCollarPtr, _p_YoYInflationCollarPtrTo_p_YoYInflationCapFloorPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_YoYInflationCapPtr[] = {  {&_swigt__p_YoYInflationCapPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_YoYInflationCollarPtr[] = {  {&_swigt__p_YoYInflationCollarPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_YoYInflationFloorPtr[] = {  {&_swigt__p_YoYInflationFloorPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_YoYInflationIndexPtr[] = {  {&_swigt__p_YYEUHICPXTPtr, _p_YYEUHICPXTPtrTo_p_YoYInflationIndexPtr, 0, 0},  {&_swigt__p_YoYInflationIndexPtr, 0, 0, 0},  {&_swigt__p_YYUSCPIPtr, _p_YYUSCPIPtrTo_p_YoYInflationIndexPtr, 0, 0},  {&_swigt__p_YYZACPIPtr, _p_YYZACPIPtrTo_p_YoYInflationIndexPtr, 0, 0},  {&_swigt__p_YYEUHICPPtr, _p_YYEUHICPPtrTo_p_YoYInflationIndexPtr, 0, 0},  {&_swigt__p_YYFRHICPPtr, _p_YYFRHICPPtrTo_p_YoYInflationIndexPtr, 0, 0},  {&_swigt__p_YYUKRPIPtr, _p_YYUKRPIPtrTo_p_YoYInflationIndexPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_YoYInflationTermStructure[] = {  {&_swigt__p_YoYInflationTermStructure, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ZACPIPtr[] = {  {&_swigt__p_ZACPIPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ZeroCouponBondPtr[] = {  {&_swigt__p_ZeroCouponBondPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ZeroCouponInflationSwapHelperPtr[] = {  {&_swigt__p_ZeroCouponInflationSwapHelperPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ZeroCouponInflationSwapPtr[] = {  {&_swigt__p_ZeroCouponInflationSwapPtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ZeroCurvePtr[] = {  {&_swigt__p_ZeroCurvePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ZeroHelper[] = {  {&_swigt__p_ZeroHelper, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ZeroInflationIndexPtr[] = {  {&_swigt__p_EUHICPXTPtr, _p_EUHICPXTPtrTo_p_ZeroInflationIndexPtr, 0, 0},  {&_swigt__p_ZeroInflationIndexPtr, 0, 0, 0},  {&_swigt__p_USCPIPtr, _p_USCPIPtrTo_p_ZeroInflationIndexPtr, 0, 0},  {&_swigt__p_ZACPIPtr, _p_ZACPIPtrTo_p_ZeroInflationIndexPtr, 0, 0},  {&_swigt__p_EUHICPPtr, _p_EUHICPPtrTo_p_ZeroInflationIndexPtr, 0, 0},  {&_swigt__p_FRHICPPtr, _p_FRHICPPtrTo_p_ZeroInflationIndexPtr, 0, 0},  {&_swigt__p_UKRPIPtr, _p_UKRPIPtrTo_p_ZeroInflationIndexPtr, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ZeroInflationTermStructure[] = {  {&_swigt__p_ZeroInflationTermStructure, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ZeroSpreadedTermStructurePtr[] = {  {&_swigt__p_ZeroSpreadedTermStructurePtr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ZeroYield[] = {  {&_swigt__p_ZeroYield, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ZiborPtr[] = {  {&_swigt__p_ZiborPtr, 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_boost__shared_ptrT_BlackVolTermStructure_t[] = {  {&_swigt__p_BlackVarianceCurvePtr, _p_BlackVarianceCurvePtrTo_p_boost__shared_ptrT_BlackVolTermStructure_t, 0, 0},  {&_swigt__p_boost__shared_ptrT_BlackVolTermStructure_t, 0, 0, 0},  {&_swigt__p_BlackConstantVolPtr, _p_BlackConstantVolPtrTo_p_boost__shared_ptrT_BlackVolTermStructure_t, 0, 0},  {&_swigt__p_BlackVarianceSurfacePtr, _p_BlackVarianceSurfacePtrTo_p_boost__shared_ptrT_BlackVolTermStructure_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_CalibratedModel_t[] = {  {&_swigt__p_boost__shared_ptrT_CalibratedModel_t, 0, 0, 0},  {&_swigt__p_HestonModelPtr, _p_HestonModelPtrTo_p_boost__shared_ptrT_CalibratedModel_t, 0, 0},  {&_swigt__p_BatesModelPtr, _p_BatesModelPtrTo_p_boost__shared_ptrT_CalibratedModel_t, 0, 0},  {&_swigt__p_PiecewiseTimeDependentHestonModelPtr, _p_PiecewiseTimeDependentHestonModelPtrTo_p_boost__shared_ptrT_CalibratedModel_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_CalibrationHelper_t[] = {  {&_swigt__p_SwaptionHelperPtr, _p_SwaptionHelperPtrTo_p_boost__shared_ptrT_CalibrationHelper_t, 0, 0},  {&_swigt__p_CapHelperPtr, _p_CapHelperPtrTo_p_boost__shared_ptrT_CalibrationHelper_t, 0, 0},  {&_swigt__p_HestonModelHelperPtr, _p_HestonModelHelperPtrTo_p_boost__shared_ptrT_CalibrationHelper_t, 0, 0},  {&_swigt__p_boost__shared_ptrT_CalibrationHelper_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_Callability_t[] = {  {&_swigt__p_boost__shared_ptrT_Callability_t, 0, 0, 0},  {&_swigt__p_SoftCallabilityPtr, _p_SoftCallabilityPtrTo_p_boost__shared_ptrT_Callability_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t[] = {  {&_swigt__p_CapFloorTermVolCurvePtr, _p_CapFloorTermVolCurvePtrTo_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0, 0},  {&_swigt__p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0, 0, 0},  {&_swigt__p_CapFloorTermVolSurfacePtr, _p_CapFloorTermVolSurfacePtrTo_p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_CashFlow_t[] = {  {&_swigt__p_boost__shared_ptrT_CashFlow_t, 0, 0, 0},  {&_swigt__p_CouponPtr, _p_CouponPtrTo_p_boost__shared_ptrT_CashFlow_t, 0, 0},  {&_swigt__p_FixedRateCouponPtr, _p_FixedRateCouponPtrTo_p_boost__shared_ptrT_CashFlow_t, 0, 0},  {&_swigt__p_FloatingRateCouponPtr, _p_FloatingRateCouponPtrTo_p_boost__shared_ptrT_CashFlow_t, 0, 0},  {&_swigt__p_CappedFlooredCouponPtr, _p_CappedFlooredCouponPtrTo_p_boost__shared_ptrT_CashFlow_t, 0, 0},  {&_swigt__p_CappedFlooredCmsCouponPtr, _p_CappedFlooredCmsCouponPtrTo_p_boost__shared_ptrT_CashFlow_t, 0, 0},  {&_swigt__p_IborCouponPtr, _p_IborCouponPtrTo_p_boost__shared_ptrT_CashFlow_t, 0, 0},  {&_swigt__p_CmsCouponPtr, _p_CmsCouponPtrTo_p_boost__shared_ptrT_CashFlow_t, 0, 0},  {&_swigt__p_RedemptionPtr, _p_RedemptionPtrTo_p_boost__shared_ptrT_CashFlow_t, 0, 0},  {&_swigt__p_AmortizingPaymentPtr, _p_AmortizingPaymentPtrTo_p_boost__shared_ptrT_CashFlow_t, 0, 0},  {&_swigt__p_SimpleCashFlowPtr, _p_SimpleCashFlowPtrTo_p_boost__shared_ptrT_CashFlow_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_DefaultBoundaryCondition_t[] = {  {&_swigt__p_DirichletBCPtr, _p_DirichletBCPtrTo_p_boost__shared_ptrT_DefaultBoundaryCondition_t, 0, 0},  {&_swigt__p_boost__shared_ptrT_DefaultBoundaryCondition_t, 0, 0, 0},  {&_swigt__p_NeumannBCPtr, _p_NeumannBCPtrTo_p_boost__shared_ptrT_DefaultBoundaryCondition_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_DefaultProbabilityHelper_t[] = {  {&_swigt__p_SpreadCdsHelperPtr, _p_SpreadCdsHelperPtrTo_p_boost__shared_ptrT_DefaultProbabilityHelper_t, 0, 0},  {&_swigt__p_UpfrontCdsHelperPtr, _p_UpfrontCdsHelperPtrTo_p_boost__shared_ptrT_DefaultProbabilityHelper_t, 0, 0},  {&_swigt__p_boost__shared_ptrT_DefaultProbabilityHelper_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_DefaultProbabilityTermStructure_t[] = {  {&_swigt__p_HazardRateCurvePtr, _p_HazardRateCurvePtrTo_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0, 0},  {&_swigt__p_DefaultDensityCurvePtr, _p_DefaultDensityCurvePtrTo_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0, 0},  {&_swigt__p_FlatHazardRatePtr, _p_FlatHazardRatePtrTo_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0, 0},  {&_swigt__p_PiecewiseFlatHazardRatePtr, _p_PiecewiseFlatHazardRatePtrTo_p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0, 0},  {&_swigt__p_boost__shared_ptrT_DefaultProbabilityTermStructure_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_DeltaVolQuote_t[] = {  {&_swigt__p_boost__shared_ptrT_DeltaVolQuote_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_Dividend_t[] = {  {&_swigt__p_boost__shared_ptrT_Dividend_t, 0, 0, 0},  {&_swigt__p_FixedDividendPtr, _p_FixedDividendPtrTo_p_boost__shared_ptrT_Dividend_t, 0, 0},  {&_swigt__p_FractionalDividendPtr, _p_FractionalDividendPtrTo_p_boost__shared_ptrT_Dividend_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_EndCriteria_t[] = {  {&_swigt__p_boost__shared_ptrT_EndCriteria_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_Exercise_t[] = {  {&_swigt__p_boost__shared_ptrT_Exercise_t, 0, 0, 0},  {&_swigt__p_EuropeanExercisePtr, _p_EuropeanExercisePtrTo_p_boost__shared_ptrT_Exercise_t, 0, 0},  {&_swigt__p_AmericanExercisePtr, _p_AmericanExercisePtrTo_p_boost__shared_ptrT_Exercise_t, 0, 0},  {&_swigt__p_BermudanExercisePtr, _p_BermudanExercisePtrTo_p_boost__shared_ptrT_Exercise_t, 0, 0},  {&_swigt__p_RebatedExercisePtr, _p_RebatedExercisePtrTo_p_boost__shared_ptrT_Exercise_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_FloatingRateCouponPricer_t[] = {  {&_swigt__p_boost__shared_ptrT_FloatingRateCouponPricer_t, 0, 0, 0},  {&_swigt__p_IborCouponPricerPtr, _p_IborCouponPricerPtrTo_p_boost__shared_ptrT_FloatingRateCouponPricer_t, 0, 0},  {&_swigt__p_BlackIborCouponPricerPtr, _p_BlackIborCouponPricerPtrTo_p_boost__shared_ptrT_FloatingRateCouponPricer_t, 0, 0},  {&_swigt__p_CmsCouponPricerPtr, _p_CmsCouponPricerPtrTo_p_boost__shared_ptrT_FloatingRateCouponPricer_t, 0, 0},  {&_swigt__p_AnalyticHaganPricerPtr, _p_AnalyticHaganPricerPtrTo_p_boost__shared_ptrT_FloatingRateCouponPricer_t, 0, 0},  {&_swigt__p_NumericHaganPricerPtr, _p_NumericHaganPricerPtrTo_p_boost__shared_ptrT_FloatingRateCouponPricer_t, 0, 0},  {&_swigt__p_LinearTsrPricerPtr, _p_LinearTsrPricerPtrTo_p_boost__shared_ptrT_FloatingRateCouponPricer_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_Gaussian1dModel_t[] = {  {&_swigt__p_MarkovFunctionalPtr, _p_MarkovFunctionalPtrTo_p_boost__shared_ptrT_Gaussian1dModel_t, 0, 0},  {&_swigt__p_boost__shared_ptrT_Gaussian1dModel_t, 0, 0, 0},  {&_swigt__p_GsrPtr, _p_GsrPtrTo_p_boost__shared_ptrT_Gaussian1dModel_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_IborIndex_t[] = {  {&_swigt__p_boost__shared_ptrT_IborIndex_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_Index_t[] = {  {&_swigt__p_Bkbm6MPtr, _p_Bkbm6MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EURLibor1MPtr, _p_EURLibor1MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor1MPtr, _p_Euribor1MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EURLibor11MPtr, _p_EURLibor11MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor11MPtr, _p_Euribor11MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor365Ptr, _p_Euribor365PtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_FedFundsPtr, _p_FedFundsPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_YYUKRPIPtr, _p_YYUKRPIPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_UKRPIPtr, _p_UKRPIPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_boost__shared_ptrT_Index_t, 0, 0, 0},  {&_swigt__p_CdorPtr, _p_CdorPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor3WPtr, _p_Euribor3WPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor365_4MPtr, _p_Euribor365_4MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EURLibor2MPtr, _p_EURLibor2MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor2MPtr, _p_Euribor2MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor365_1YPtr, _p_Euribor365_1YPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_JibarPtr, _p_JibarPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor365_5MPtr, _p_Euribor365_5MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EURLibor3MPtr, _p_EURLibor3MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor3MPtr, _p_Euribor3MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Bbsw1MPtr, _p_Bbsw1MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor365_10MPtr, _p_Euribor365_10MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_IborIndexPtr, _p_IborIndexPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_OvernightIndexPtr, _p_OvernightIndexPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_SwapIndexPtr, _p_SwapIndexPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_InterestRateIndexPtr, _p_InterestRateIndexPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_InflationIndexPtr, _p_InflationIndexPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_ZeroInflationIndexPtr, _p_ZeroInflationIndexPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_YoYInflationIndexPtr, _p_YoYInflationIndexPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor365_6MPtr, _p_Euribor365_6MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EurLiborSwapIsdaFixBPtr, _p_EurLiborSwapIsdaFixBPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EuriborSwapIsdaFixBPtr, _p_EuriborSwapIsdaFixBPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EUHICPXTPtr, _p_EUHICPXTPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_YYEUHICPXTPtr, _p_YYEUHICPXTPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor4MPtr, _p_Euribor4MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EURLibor4MPtr, _p_EURLibor4MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Bbsw2MPtr, _p_Bbsw2MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor365_11MPtr, _p_Euribor365_11MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_USCPIPtr, _p_USCPIPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_ZACPIPtr, _p_ZACPIPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_YYUSCPIPtr, _p_YYUSCPIPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_YYZACPIPtr, _p_YYZACPIPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EurLiborSwapIfrFixPtr, _p_EurLiborSwapIfrFixPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EuriborSwapIfrFixPtr, _p_EuriborSwapIfrFixPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor365_7MPtr, _p_Euribor365_7MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor1YPtr, _p_Euribor1YPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EURLibor1YPtr, _p_EURLibor1YPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Bkbm1MPtr, _p_Bkbm1MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor5MPtr, _p_Euribor5MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EURLibor5MPtr, _p_EURLibor5MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Bbsw3MPtr, _p_Bbsw3MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_NzocrPtr, _p_NzocrPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor365_SWPtr, _p_Euribor365_SWPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_SoniaPtr, _p_SoniaPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EoniaPtr, _p_EoniaPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_AoniaPtr, _p_AoniaPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EurLiborSwapIsdaFixAPtr, _p_EurLiborSwapIsdaFixAPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EuriborSwapIsdaFixAPtr, _p_EuriborSwapIsdaFixAPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor365_8MPtr, _p_Euribor365_8MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Bkbm2MPtr, _p_Bkbm2MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EURLibor6MPtr, _p_EURLibor6MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor6MPtr, _p_Euribor6MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Bbsw4MPtr, _p_Bbsw4MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EUHICPPtr, _p_EUHICPPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_FRHICPPtr, _p_FRHICPPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_YYEUHICPPtr, _p_YYEUHICPPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_YYFRHICPPtr, _p_YYFRHICPPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor365_9MPtr, _p_Euribor365_9MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Bkbm3MPtr, _p_Bkbm3MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EURLibor7MPtr, _p_EURLibor7MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor7MPtr, _p_Euribor7MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Bbsw5MPtr, _p_Bbsw5MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor365_2WPtr, _p_Euribor365_2WPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EURLiborSWPtr, _p_EURLiborSWPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EuriborSWPtr, _p_EuriborSWPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor365_1MPtr, _p_Euribor365_1MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_LiborPtr, _p_LiborPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EuriborPtr, _p_EuriborPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_TRLiborPtr, _p_TRLiborPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_USDLiborPtr, _p_USDLiborPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_ZiborPtr, _p_ZiborPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_AUDLiborPtr, _p_AUDLiborPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_CADLiborPtr, _p_CADLiborPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_CHFLiborPtr, _p_CHFLiborPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_DKKLiborPtr, _p_DKKLiborPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EURLiborPtr, _p_EURLiborPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_GBPLiborPtr, _p_GBPLiborPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_JPYLiborPtr, _p_JPYLiborPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_NZDLiborPtr, _p_NZDLiborPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_SEKLiborPtr, _p_SEKLiborPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_TiborPtr, _p_TiborPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Bkbm4MPtr, _p_Bkbm4MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor8MPtr, _p_Euribor8MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EURLibor8MPtr, _p_EURLibor8MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Bbsw6MPtr, _p_Bbsw6MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor365_3WPtr, _p_Euribor365_3WPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_BbswPtr, _p_BbswPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_BkbmPtr, _p_BkbmPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor365_2MPtr, _p_Euribor365_2MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Bkbm5MPtr, _p_Bkbm5MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor10MPtr, _p_Euribor10MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EURLibor10MPtr, _p_EURLibor10MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor9MPtr, _p_Euribor9MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EURLibor9MPtr, _p_EURLibor9MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor2WPtr, _p_Euribor2WPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_Euribor365_3MPtr, _p_Euribor365_3MPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},  {&_swigt__p_EURLibor2WPtr, _p_EURLibor2WPtrTo_p_boost__shared_ptrT_Index_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_Instrument_t[] = {  {&_swigt__p_DiscreteAveragingAsianOptionPtr, _p_DiscreteAveragingAsianOptionPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_ContinuousAveragingAsianOptionPtr, _p_ContinuousAveragingAsianOptionPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_BarrierOptionPtr, _p_BarrierOptionPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_DividendVanillaOptionPtr, _p_DividendVanillaOptionPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_MultiAssetOptionPtr, _p_MultiAssetOptionPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_FloatFloatSwaptionPtr, _p_FloatFloatSwaptionPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_NonstandardSwaptionPtr, _p_NonstandardSwaptionPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_SwaptionPtr, _p_SwaptionPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_QuantoDoubleBarrierOptionPtr, _p_QuantoDoubleBarrierOptionPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_DoubleBarrierOptionPtr, _p_DoubleBarrierOptionPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_HimalayaOptionPtr, _p_HimalayaOptionPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_EverestOptionPtr, _p_EverestOptionPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_BasketOptionPtr, _p_BasketOptionPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_VanillaOptionPtr, _p_VanillaOptionPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_EuropeanOptionPtr, _p_EuropeanOptionPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_ForwardVanillaOptionPtr, _p_ForwardVanillaOptionPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_QuantoVanillaOptionPtr, _p_QuantoVanillaOptionPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_QuantoForwardVanillaOptionPtr, _p_QuantoForwardVanillaOptionPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_YearOnYearInflationSwapPtr, _p_YearOnYearInflationSwapPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_ZeroCouponInflationSwapPtr, _p_ZeroCouponInflationSwapPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_CreditDefaultSwapPtr, _p_CreditDefaultSwapPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_SwapPtr, _p_SwapPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_VanillaSwapPtr, _p_VanillaSwapPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_NonstandardSwapPtr, _p_NonstandardSwapPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_AssetSwapPtr, _p_AssetSwapPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_FloatFloatSwapPtr, _p_FloatFloatSwapPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_CPIBondPtr, _p_CPIBondPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_CallableFixedRateBondPtr, _p_CallableFixedRateBondPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_CmsRateBondPtr, _p_CmsRateBondPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_FloatingRateBondPtr, _p_FloatingRateBondPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_FixedRateBondPtr, _p_FixedRateBondPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_ZeroCouponBondPtr, _p_ZeroCouponBondPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_BondPtr, _p_BondPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_ConvertibleZeroCouponBondPtr, _p_ConvertibleZeroCouponBondPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_ConvertibleFixedCouponBondPtr, _p_ConvertibleFixedCouponBondPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_ConvertibleFloatingRateBondPtr, _p_ConvertibleFloatingRateBondPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_boost__shared_ptrT_Instrument_t, 0, 0, 0},  {&_swigt__p_YoYInflationCapPtr, _p_YoYInflationCapPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_CompositeInstrumentPtr, _p_CompositeInstrumentPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_ForwardRateAgreementPtr, _p_ForwardRateAgreementPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_CapPtr, _p_CapPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_CollarPtr, _p_CollarPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_YoYInflationCollarPtr, _p_YoYInflationCollarPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_StockPtr, _p_StockPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_FloorPtr, _p_FloorPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_CapFloorPtr, _p_CapFloorPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_YoYInflationFloorPtr, _p_YoYInflationFloorPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_YoYInflationCapFloorPtr, _p_YoYInflationCapFloorPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_ForwardPtr, _p_ForwardPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},  {&_swigt__p_FixedRateBondForwardPtr, _p_FixedRateBondForwardPtrTo_p_boost__shared_ptrT_Instrument_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_LocalVolTermStructure_t[] = {  {&_swigt__p_boost__shared_ptrT_LocalVolTermStructure_t, 0, 0, 0},  {&_swigt__p_LocalConstantVolPtr, _p_LocalConstantVolPtrTo_p_boost__shared_ptrT_LocalVolTermStructure_t, 0, 0},  {&_swigt__p_LocalVolSurfacePtr, _p_LocalVolSurfacePtrTo_p_boost__shared_ptrT_LocalVolTermStructure_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_Observable_t[] = {  {&_swigt__p_boost__shared_ptrT_Observable_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_OptimizationMethod_t[] = {  {&_swigt__p_boost__shared_ptrT_OptimizationMethod_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_OptionletVolatilityStructure_t[] = {  {&_swigt__p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0, 0, 0},  {&_swigt__p_StrippedOptionletAdapterPtr, _p_StrippedOptionletAdapterPtrTo_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0, 0},  {&_swigt__p_ConstantOptionletVolatilityPtr, _p_ConstantOptionletVolatilityPtrTo_p_boost__shared_ptrT_OptionletVolatilityStructure_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_Payoff_t[] = {  {&_swigt__p_boost__shared_ptrT_Payoff_t, 0, 0, 0},  {&_swigt__p_PlainVanillaPayoffPtr, _p_PlainVanillaPayoffPtrTo_p_boost__shared_ptrT_Payoff_t, 0, 0},  {&_swigt__p_PercentageStrikePayoffPtr, _p_PercentageStrikePayoffPtrTo_p_boost__shared_ptrT_Payoff_t, 0, 0},  {&_swigt__p_CashOrNothingPayoffPtr, _p_CashOrNothingPayoffPtrTo_p_boost__shared_ptrT_Payoff_t, 0, 0},  {&_swigt__p_AssetOrNothingPayoffPtr, _p_AssetOrNothingPayoffPtrTo_p_boost__shared_ptrT_Payoff_t, 0, 0},  {&_swigt__p_SuperSharePayoffPtr, _p_SuperSharePayoffPtrTo_p_boost__shared_ptrT_Payoff_t, 0, 0},  {&_swigt__p_GapPayoffPtr, _p_GapPayoffPtrTo_p_boost__shared_ptrT_Payoff_t, 0, 0},  {&_swigt__p_BasketPayoffPtr, _p_BasketPayoffPtrTo_p_boost__shared_ptrT_Payoff_t, 0, 0},  {&_swigt__p_MinBasketPayoffPtr, _p_MinBasketPayoffPtrTo_p_boost__shared_ptrT_Payoff_t, 0, 0},  {&_swigt__p_MaxBasketPayoffPtr, _p_MaxBasketPayoffPtrTo_p_boost__shared_ptrT_Payoff_t, 0, 0},  {&_swigt__p_AverageBasketPayoffPtr, _p_AverageBasketPayoffPtrTo_p_boost__shared_ptrT_Payoff_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_PricingEngine_t[] = {  {&_swigt__p_AnalyticDigitalAmericanKOEnginePtr, _p_AnalyticDigitalAmericanKOEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_AnalyticDividendEuropeanEnginePtr, _p_AnalyticDividendEuropeanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_FDDividendEuropeanEnginePtr, _p_FDDividendEuropeanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_FDDividendAmericanEnginePtr, _p_FDDividendAmericanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_AnalyticBarrierEnginePtr, _p_AnalyticBarrierEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_MCBarrierEnginePtr, _p_MCBarrierEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_FdBlackScholesBarrierEnginePtr, _p_FdBlackScholesBarrierEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_AnalyticBinaryBarrierEnginePtr, _p_AnalyticBinaryBarrierEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_BinomialBarrierEnginePtr, _p_BinomialBarrierEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_ForwardEuropeanEnginePtr, _p_ForwardEuropeanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_QuantoEuropeanEnginePtr, _p_QuantoEuropeanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_QuantoForwardEuropeanEnginePtr, _p_QuantoForwardEuropeanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_MCDiscreteArithmeticAPEnginePtr, _p_MCDiscreteArithmeticAPEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_AnalyticDigitalAmericanEnginePtr, _p_AnalyticDigitalAmericanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_BjerksundStenslandApproximationEnginePtr, _p_BjerksundStenslandApproximationEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_BaroneAdesiWhaleyApproximationEnginePtr, _p_BaroneAdesiWhaleyApproximationEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_FDShoutEnginePtr, _p_FDShoutEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_AnalyticEuropeanEnginePtr, _p_AnalyticEuropeanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_AnalyticHestonEnginePtr, _p_AnalyticHestonEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_AnalyticPTDHestonEnginePtr, _p_AnalyticPTDHestonEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_MCDiscreteGeometricAPEnginePtr, _p_MCDiscreteGeometricAPEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_MCDiscreteArithmeticASEnginePtr, _p_MCDiscreteArithmeticASEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_FdBlackScholesAsianEnginePtr, _p_FdBlackScholesAsianEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_ContinuousArithmeticAsianLevyEnginePtr, _p_ContinuousArithmeticAsianLevyEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_FdBatesVanillaEnginePtr, _p_FdBatesVanillaEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_FdBlackScholesVanillaEnginePtr, _p_FdBlackScholesVanillaEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_FDAmericanEnginePtr, _p_FDAmericanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_MCEuropeanEnginePtr, _p_MCEuropeanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_BinomialVanillaEnginePtr, _p_BinomialVanillaEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_FDEuropeanEnginePtr, _p_FDEuropeanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_FDBermudanEnginePtr, _p_FDBermudanEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_IntegralEnginePtr, _p_IntegralEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_BatesEnginePtr, _p_BatesEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_VarianceGammaEnginePtr, _p_VarianceGammaEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_FFTVarianceGammaEnginePtr, _p_FFTVarianceGammaEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_AnalyticDoubleBarrierEnginePtr, _p_AnalyticDoubleBarrierEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_WulinYongDoubleBarrierEnginePtr, _p_WulinYongDoubleBarrierEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_VannaVolgaDoubleBarrierEnginePtr, _p_VannaVolgaDoubleBarrierEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_AnalyticDoubleBarrierBinaryEnginePtr, _p_AnalyticDoubleBarrierBinaryEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_BinomialDoubleBarrierEnginePtr, _p_BinomialDoubleBarrierEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_MCEuropeanBasketEnginePtr, _p_MCEuropeanBasketEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_MCAmericanBasketEnginePtr, _p_MCAmericanBasketEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_StulzEnginePtr, _p_StulzEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_MCEverestEnginePtr, _p_MCEverestEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_MCHimalayaEnginePtr, _p_MCHimalayaEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_JamshidianSwaptionEnginePtr, _p_JamshidianSwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_TreeSwaptionEnginePtr, _p_TreeSwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_AnalyticCapFloorEnginePtr, _p_AnalyticCapFloorEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_TreeCapFloorEnginePtr, _p_TreeCapFloorEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_G2SwaptionEnginePtr, _p_G2SwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_FdG2SwaptionEnginePtr, _p_FdG2SwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_FdHullWhiteSwaptionEnginePtr, _p_FdHullWhiteSwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_DiscountingBondEnginePtr, _p_DiscountingBondEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_TreeCallableFixedRateBondEnginePtr, _p_TreeCallableFixedRateBondEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_BlackCallableFixedRateBondEnginePtr, _p_BlackCallableFixedRateBondEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_BlackCapFloorEnginePtr, _p_BlackCapFloorEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_BachelierCapFloorEnginePtr, _p_BachelierCapFloorEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_BinomialConvertibleEnginePtr, _p_BinomialConvertibleEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_MidPointCdsEnginePtr, _p_MidPointCdsEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_IntegralCdsEnginePtr, _p_IntegralCdsEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_DiscountingSwapEnginePtr, _p_DiscountingSwapEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_Gaussian1dSwaptionEnginePtr, _p_Gaussian1dSwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_Gaussian1dJamshidianSwaptionEnginePtr, _p_Gaussian1dJamshidianSwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_Gaussian1dNonstandardSwaptionEnginePtr, _p_Gaussian1dNonstandardSwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_Gaussian1dFloatFloatSwaptionEnginePtr, _p_Gaussian1dFloatFloatSwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_BlackSwaptionEnginePtr, _p_BlackSwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_BachelierSwaptionEnginePtr, _p_BachelierSwaptionEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_AnalyticContinuousGeometricAveragePriceAsianEnginePtr, _p_AnalyticContinuousGeometricAveragePriceAsianEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_boost__shared_ptrT_PricingEngine_t, 0, 0, 0},  {&_swigt__p_AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr, _p_AnalyticDiscreteGeometricAverageStrikeAsianEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},  {&_swigt__p_AnalyticDiscreteGeometricAveragePriceAsianEnginePtr, _p_AnalyticDiscreteGeometricAveragePriceAsianEnginePtrTo_p_boost__shared_ptrT_PricingEngine_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_Quote_t[] = {  {&_swigt__p_SimpleQuotePtr, _p_SimpleQuotePtrTo_p_boost__shared_ptrT_Quote_t, 0, 0},  {&_swigt__p_DerivedQuotePtr, _p_DerivedQuotePtrTo_p_boost__shared_ptrT_Quote_t, 0, 0},  {&_swigt__p_CompositeQuotePtr, _p_CompositeQuotePtrTo_p_boost__shared_ptrT_Quote_t, 0, 0},  {&_swigt__p_boost__shared_ptrT_Quote_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_RateHelper_t[] = {  {&_swigt__p_DepositRateHelperPtr, _p_DepositRateHelperPtrTo_p_boost__shared_ptrT_RateHelper_t, 0, 0},  {&_swigt__p_FraRateHelperPtr, _p_FraRateHelperPtrTo_p_boost__shared_ptrT_RateHelper_t, 0, 0},  {&_swigt__p_FuturesRateHelperPtr, _p_FuturesRateHelperPtrTo_p_boost__shared_ptrT_RateHelper_t, 0, 0},  {&_swigt__p_SwapRateHelperPtr, _p_SwapRateHelperPtrTo_p_boost__shared_ptrT_RateHelper_t, 0, 0},  {&_swigt__p_BondHelperPtr, _p_BondHelperPtrTo_p_boost__shared_ptrT_RateHelper_t, 0, 0},  {&_swigt__p_FixedRateBondHelperPtr, _p_FixedRateBondHelperPtrTo_p_boost__shared_ptrT_RateHelper_t, 0, 0},  {&_swigt__p_OISRateHelperPtr, _p_OISRateHelperPtrTo_p_boost__shared_ptrT_RateHelper_t, 0, 0},  {&_swigt__p_DatedOISRateHelperPtr, _p_DatedOISRateHelperPtrTo_p_boost__shared_ptrT_RateHelper_t, 0, 0},  {&_swigt__p_FxSwapRateHelperPtr, _p_FxSwapRateHelperPtrTo_p_boost__shared_ptrT_RateHelper_t, 0, 0},  {&_swigt__p_boost__shared_ptrT_RateHelper_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_Seasonality_t[] = {  {&_swigt__p_boost__shared_ptrT_Seasonality_t, 0, 0, 0},  {&_swigt__p_MultiplicativePriceSeasonalityPtr, _p_MultiplicativePriceSeasonalityPtrTo_p_boost__shared_ptrT_Seasonality_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_ShortRateModel_t[] = {  {&_swigt__p_G2Ptr, _p_G2PtrTo_p_boost__shared_ptrT_ShortRateModel_t, 0, 0},  {&_swigt__p_BlackKarasinskiPtr, _p_BlackKarasinskiPtrTo_p_boost__shared_ptrT_ShortRateModel_t, 0, 0},  {&_swigt__p_VasicekPtr, _p_VasicekPtrTo_p_boost__shared_ptrT_ShortRateModel_t, 0, 0},  {&_swigt__p_boost__shared_ptrT_ShortRateModel_t, 0, 0, 0},  {&_swigt__p_HullWhitePtr, _p_HullWhitePtrTo_p_boost__shared_ptrT_ShortRateModel_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_StochasticProcess_t[] = {  {&_swigt__p_boost__shared_ptrT_StochasticProcess_t, 0, 0, 0},  {&_swigt__p_StochasticProcessArrayPtr, _p_StochasticProcessArrayPtrTo_p_boost__shared_ptrT_StochasticProcess_t, 0, 0},  {&_swigt__p_StochasticProcess1DPtr, _p_StochasticProcess1DPtrTo_p_boost__shared_ptrT_StochasticProcess_t, 0, 0},  {&_swigt__p_GsrProcessPtr, _p_GsrProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t, 0, 0},  {&_swigt__p_HullWhiteForwardProcessPtr, _p_HullWhiteForwardProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t, 0, 0},  {&_swigt__p_HullWhiteProcessPtr, _p_HullWhiteProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t, 0, 0},  {&_swigt__p_VarianceGammaProcessPtr, _p_VarianceGammaProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t, 0, 0},  {&_swigt__p_GeometricBrownianMotionProcessPtr, _p_GeometricBrownianMotionProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t, 0, 0},  {&_swigt__p_Merton76ProcessPtr, _p_Merton76ProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t, 0, 0},  {&_swigt__p_GarmanKohlagenProcessPtr, _p_GarmanKohlagenProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t, 0, 0},  {&_swigt__p_BlackProcessPtr, _p_BlackProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t, 0, 0},  {&_swigt__p_BlackScholesMertonProcessPtr, _p_BlackScholesMertonProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t, 0, 0},  {&_swigt__p_BlackScholesProcessPtr, _p_BlackScholesProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t, 0, 0},  {&_swigt__p_GeneralizedBlackScholesProcessPtr, _p_GeneralizedBlackScholesProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t, 0, 0},  {&_swigt__p_HestonProcessPtr, _p_HestonProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t, 0, 0},  {&_swigt__p_BatesProcessPtr, _p_BatesProcessPtrTo_p_boost__shared_ptrT_StochasticProcess_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_StrippedOptionletBase_t[] = {  {&_swigt__p_boost__shared_ptrT_StrippedOptionletBase_t, 0, 0, 0},  {&_swigt__p_OptionletStripper1Ptr, _p_OptionletStripper1PtrTo_p_boost__shared_ptrT_StrippedOptionletBase_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_SwapIndex_t[] = {  {&_swigt__p_boost__shared_ptrT_SwapIndex_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_SwaptionVolatilityStructure_t[] = {  {&_swigt__p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0, 0, 0},  {&_swigt__p_ConstantSwaptionVolatilityPtr, _p_ConstantSwaptionVolatilityPtrTo_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0, 0},  {&_swigt__p_SwaptionVolCube1Ptr, _p_SwaptionVolCube1PtrTo_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0, 0},  {&_swigt__p_SwaptionVolatilityMatrixPtr, _p_SwaptionVolatilityMatrixPtrTo_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0, 0},  {&_swigt__p_SwaptionVolCube2Ptr, _p_SwaptionVolCube2PtrTo_p_boost__shared_ptrT_SwaptionVolatilityStructure_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_YieldTermStructure_t[] = {  {&_swigt__p_boost__shared_ptrT_YieldTermStructure_t, 0, 0, 0},  {&_swigt__p_PiecewiseLinearForwardPtr, _p_PiecewiseLinearForwardPtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_PiecewiseFlatForwardPtr, _p_PiecewiseFlatForwardPtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_FlatForwardPtr, _p_FlatForwardPtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_PiecewiseLogCubicDiscountPtr, _p_PiecewiseLogCubicDiscountPtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_PiecewiseCubicZeroPtr, _p_PiecewiseCubicZeroPtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_PiecewiseLinearZeroPtr, _p_PiecewiseLinearZeroPtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_ZeroCurvePtr, _p_ZeroCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_ForwardCurvePtr, _p_ForwardCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_FittedBondDiscountCurvePtr, _p_FittedBondDiscountCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_DiscountCurvePtr, _p_DiscountCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_LogLinearZeroCurvePtr, _p_LogLinearZeroCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_CubicZeroCurvePtr, _p_CubicZeroCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_LogCubicZeroCurvePtr, _p_LogCubicZeroCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_ForwardFlatZeroCurvePtr, _p_ForwardFlatZeroCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_BackwardFlatZeroCurvePtr, _p_BackwardFlatZeroCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_MonotonicCubicZeroCurvePtr, _p_MonotonicCubicZeroCurvePtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_SpreadedLinearZeroInterpolatedTermStructurePtr, _p_SpreadedLinearZeroInterpolatedTermStructurePtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_ForwardSpreadedTermStructurePtr, _p_ForwardSpreadedTermStructurePtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_ZeroSpreadedTermStructurePtr, _p_ZeroSpreadedTermStructurePtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},  {&_swigt__p_ImpliedTermStructurePtr, _p_ImpliedTermStructurePtrTo_p_boost__shared_ptrT_YieldTermStructure_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_YoYHelper_t[] = {  {&_swigt__p_YearOnYearInflationSwapHelperPtr, _p_YearOnYearInflationSwapHelperPtrTo_p_boost__shared_ptrT_YoYHelper_t, 0, 0},  {&_swigt__p_boost__shared_ptrT_YoYHelper_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_YoYInflationTermStructure_t[] = {  {&_swigt__p_PiecewiseYoYInflationPtr, _p_PiecewiseYoYInflationPtrTo_p_boost__shared_ptrT_YoYInflationTermStructure_t, 0, 0},  {&_swigt__p_boost__shared_ptrT_YoYInflationTermStructure_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_ZeroHelper_t[] = {  {&_swigt__p_ZeroCouponInflationSwapHelperPtr, _p_ZeroCouponInflationSwapHelperPtrTo_p_boost__shared_ptrT_ZeroHelper_t, 0, 0},  {&_swigt__p_boost__shared_ptrT_ZeroHelper_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_boost__shared_ptrT_ZeroInflationTermStructure_t[] = {  {&_swigt__p_PiecewiseZeroInflationPtr, _p_PiecewiseZeroInflationPtrTo_p_boost__shared_ptrT_ZeroInflationTermStructure_t, 0, 0},  {&_swigt__p_boost__shared_ptrT_ZeroInflationTermStructure_t, 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_const_reference[] = {  {&_swigt__p_const_reference, 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_double[] = {  {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_first_type[] = {  {&_swigt__p_first_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_long[] = {  {&_swigt__p_long, 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_reference[] = {  {&_swigt__p_reference, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_second_type[] = {  {&_swigt__p_second_type, 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_Date_t[] = {  {&_swigt__p_std__allocatorT_Date_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_HandleT_Quote_t_t[] = {  {&_swigt__p_std__allocatorT_HandleT_Quote_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_InterestRate_t[] = {  {&_swigt__p_std__allocatorT_InterestRate_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_IntervalPrice_t[] = {  {&_swigt__p_std__allocatorT_IntervalPrice_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_Period_t[] = {  {&_swigt__p_std__allocatorT_Period_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_RelinkableHandleT_Quote_t_t[] = {  {&_swigt__p_std__allocatorT_RelinkableHandleT_Quote_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_bool_t[] = {  {&_swigt__p_std__allocatorT_bool_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t[] = {  {&_swigt__p_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_boost__shared_ptrT_Callability_t_t[] = {  {&_swigt__p_std__allocatorT_boost__shared_ptrT_Callability_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_boost__shared_ptrT_CashFlow_t_t[] = {  {&_swigt__p_std__allocatorT_boost__shared_ptrT_CashFlow_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t[] = {  {&_swigt__p_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_boost__shared_ptrT_Dividend_t_t[] = {  {&_swigt__p_std__allocatorT_boost__shared_ptrT_Dividend_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_boost__shared_ptrT_Instrument_t_t[] = {  {&_swigt__p_std__allocatorT_boost__shared_ptrT_Instrument_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_boost__shared_ptrT_Quote_t_t[] = {  {&_swigt__p_std__allocatorT_boost__shared_ptrT_Quote_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_boost__shared_ptrT_RateHelper_t_t[] = {  {&_swigt__p_std__allocatorT_boost__shared_ptrT_RateHelper_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t[] = {  {&_swigt__p_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t[] = {  {&_swigt__p_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t[] = {  {&_swigt__p_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_double_t[] = {  {&_swigt__p_std__allocatorT_double_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_int_t[] = {  {&_swigt__p_std__allocatorT_int_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__pairT_Date_double_t_t[] = {  {&_swigt__p_std__allocatorT_std__pairT_Date_double_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__string_t[] = {  {&_swigt__p_std__allocatorT_std__string_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t[] = {  {&_swigt__p_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t[] = {  {&_swigt__p_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t[] = {  {&_swigt__p_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_unsigned_int_t[] = {  {&_swigt__p_std__allocatorT_unsigned_int_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__pairT_Date_double_t[] = {  {&_swigt__p_std__pairT_Date_double_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__size_t[] = {  {&_swigt__p_std__size_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_Date_std__allocatorT_Date_t_t[] = {  {&_swigt__p_std__vectorT_Date_std__allocatorT_Date_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t[] = {  {&_swigt__p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t[] = {  {&_swigt__p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t[] = {  {&_swigt__p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_Period_std__allocatorT_Period_t_t[] = {  {&_swigt__p_std__vectorT_Period_std__allocatorT_Period_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t[] = {  {&_swigt__p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_bool_std__allocatorT_bool_t_t[] = {  {&_swigt__p_std__vectorT_bool_std__allocatorT_bool_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t[] = {  {&_swigt__p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t[] = {  {&_swigt__p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t[] = {  {&_swigt__p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t[] = {  {&_swigt__p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t[] = {  {&_swigt__p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t[] = {  {&_swigt__p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t[] = {  {&_swigt__p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t[] = {  {&_swigt__p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t[] = {  {&_swigt__p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t[] = {  {&_swigt__p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t[] = {  {&_swigt__p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_double_std__allocatorT_double_t_t[] = {  {&_swigt__p_std__vectorT_double_std__allocatorT_double_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_int_std__allocatorT_int_t_t[] = {  {&_swigt__p_std__vectorT_int_std__allocatorT_int_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t[] = {  {&_swigt__p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_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_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t[] = {  {&_swigt__p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t[] = {  {&_swigt__p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t[] = {  {&_swigt__p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t[] = {  {&_swigt__p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t[] = {  {&_swigt__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_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_unsigned_int[] = {  {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_long[] = {  {&_swigt__p_unsigned_long, 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 *swig_cast_initial[] = {
  _swigc__p_ASX,
  _swigc__p_AUDLiborPtr,
  _swigc__p_AmericanExercisePtr,
  _swigc__p_AmortizingPaymentPtr,
  _swigc__p_AnalyticBarrierEnginePtr,
  _swigc__p_AnalyticBinaryBarrierEnginePtr,
  _swigc__p_AnalyticCapFloorEnginePtr,
  _swigc__p_AnalyticContinuousGeometricAveragePriceAsianEnginePtr,
  _swigc__p_AnalyticDigitalAmericanEnginePtr,
  _swigc__p_AnalyticDigitalAmericanKOEnginePtr,
  _swigc__p_AnalyticDiscreteGeometricAveragePriceAsianEnginePtr,
  _swigc__p_AnalyticDiscreteGeometricAverageStrikeAsianEnginePtr,
  _swigc__p_AnalyticDividendEuropeanEnginePtr,
  _swigc__p_AnalyticDoubleBarrierBinaryEnginePtr,
  _swigc__p_AnalyticDoubleBarrierEnginePtr,
  _swigc__p_AnalyticEuropeanEnginePtr,
  _swigc__p_AnalyticHaganPricerPtr,
  _swigc__p_AnalyticHestonEnginePtr,
  _swigc__p_AnalyticPTDHestonEnginePtr,
  _swigc__p_AoniaPtr,
  _swigc__p_Array,
  _swigc__p_AssetOrNothingPayoffPtr,
  _swigc__p_AssetSwapPtr,
  _swigc__p_Average,
  _swigc__p_AverageBasketPayoffPtr,
  _swigc__p_BFGS,
  _swigc__p_BachelierCapFloorEnginePtr,
  _swigc__p_BachelierSwaptionEnginePtr,
  _swigc__p_BackwardFlat,
  _swigc__p_BackwardFlatZeroCurvePtr,
  _swigc__p_BaroneAdesiWhaleyApproximationEnginePtr,
  _swigc__p_Barrier,
  _swigc__p_BarrierOptionPtr,
  _swigc__p_BasketOptionPtr,
  _swigc__p_BasketPayoffPtr,
  _swigc__p_BatesEnginePtr,
  _swigc__p_BatesModelPtr,
  _swigc__p_BatesProcessPtr,
  _swigc__p_Bbsw1MPtr,
  _swigc__p_Bbsw2MPtr,
  _swigc__p_Bbsw3MPtr,
  _swigc__p_Bbsw4MPtr,
  _swigc__p_Bbsw5MPtr,
  _swigc__p_Bbsw6MPtr,
  _swigc__p_BbswPtr,
  _swigc__p_BermudanExercisePtr,
  _swigc__p_BinomialBarrierEnginePtr,
  _swigc__p_BinomialConvertibleEnginePtr,
  _swigc__p_BinomialDistribution,
  _swigc__p_BinomialDoubleBarrierEnginePtr,
  _swigc__p_BinomialVanillaEnginePtr,
  _swigc__p_Bisection,
  _swigc__p_BivariateCumulativeNormalDistribution,
  _swigc__p_BivariateCumulativeNormalDistributionDr78,
  _swigc__p_BivariateCumulativeNormalDistributionWe04DP,
  _swigc__p_BjerksundStenslandApproximationEnginePtr,
  _swigc__p_Bkbm1MPtr,
  _swigc__p_Bkbm2MPtr,
  _swigc__p_Bkbm3MPtr,
  _swigc__p_Bkbm4MPtr,
  _swigc__p_Bkbm5MPtr,
  _swigc__p_Bkbm6MPtr,
  _swigc__p_BkbmPtr,
  _swigc__p_BlackCalculator,
  _swigc__p_BlackCallableFixedRateBondEnginePtr,
  _swigc__p_BlackCapFloorEnginePtr,
  _swigc__p_BlackConstantVolPtr,
  _swigc__p_BlackDeltaCalculator,
  _swigc__p_BlackIborCouponPricerPtr,
  _swigc__p_BlackKarasinskiPtr,
  _swigc__p_BlackProcessPtr,
  _swigc__p_BlackScholesMertonProcessPtr,
  _swigc__p_BlackScholesProcessPtr,
  _swigc__p_BlackSwaptionEnginePtr,
  _swigc__p_BlackVarianceCurvePtr,
  _swigc__p_BlackVarianceSurfacePtr,
  _swigc__p_BlackVolTermStructure,
  _swigc__p_BondFunctions,
  _swigc__p_BondHelperPtr,
  _swigc__p_BondPtr,
  _swigc__p_BoundaryConstraint,
  _swigc__p_BoxMullerGaussianRngT_KnuthUniformRng_t,
  _swigc__p_BoxMullerGaussianRngT_LecuyerUniformRng_t,
  _swigc__p_BoxMullerGaussianRngT_MersenneTwisterUniformRng_t,
  _swigc__p_Brent,
  _swigc__p_BrownianBridge,
  _swigc__p_CADLiborPtr,
  _swigc__p_CHFLiborPtr,
  _swigc__p_CLGaussianRngT_KnuthUniformRng_t,
  _swigc__p_CLGaussianRngT_LecuyerUniformRng_t,
  _swigc__p_CLGaussianRngT_MersenneTwisterUniformRng_t,
  _swigc__p_CPI,
  _swigc__p_CPIBondPtr,
  _swigc__p_Calendar,
  _swigc__p_CalibratedModel,
  _swigc__p_CalibrationHelper,
  _swigc__p_Callability,
  _swigc__p_CallabilityPrice,
  _swigc__p_CallableFixedRateBondPtr,
  _swigc__p_CapFloorPtr,
  _swigc__p_CapFloorTermVolCurvePtr,
  _swigc__p_CapFloorTermVolSurfacePtr,
  _swigc__p_CapFloorTermVolatilityStructure,
  _swigc__p_CapHelperPtr,
  _swigc__p_CapPtr,
  _swigc__p_CappedFlooredCmsCouponPtr,
  _swigc__p_CappedFlooredCouponPtr,
  _swigc__p_CashFlow,
  _swigc__p_CashFlows,
  _swigc__p_CashOrNothingPayoffPtr,
  _swigc__p_CdorPtr,
  _swigc__p_CeilingTruncation,
  _swigc__p_ClosestRounding,
  _swigc__p_CmsCouponPricerPtr,
  _swigc__p_CmsCouponPtr,
  _swigc__p_CmsRateBondPtr,
  _swigc__p_CollarPtr,
  _swigc__p_CompositeConstraint,
  _swigc__p_CompositeInstrumentPtr,
  _swigc__p_CompositeQuotePtr,
  _swigc__p_ConjugateGradient,
  _swigc__p_ConstantEstimator,
  _swigc__p_ConstantOptionletVolatilityPtr,
  _swigc__p_ConstantParameter,
  _swigc__p_ConstantSwaptionVolatilityPtr,
  _swigc__p_Constraint,
  _swigc__p_ContinuousArithmeticAsianLevyEnginePtr,
  _swigc__p_ContinuousAveragingAsianOptionPtr,
  _swigc__p_ConvertibleFixedCouponBondPtr,
  _swigc__p_ConvertibleFloatingRateBondPtr,
  _swigc__p_ConvertibleZeroCouponBondPtr,
  _swigc__p_CouponPtr,
  _swigc__p_CreditDefaultSwapPtr,
  _swigc__p_Cubic,
  _swigc__p_CubicBSplinesFitting,
  _swigc__p_CubicZeroCurvePtr,
  _swigc__p_CumulativeBinomialDistribution,
  _swigc__p_CumulativeChiSquareDistribution,
  _swigc__p_CumulativeGammaDistribution,
  _swigc__p_CumulativeNormalDistribution,
  _swigc__p_CumulativePoissonDistribution,
  _swigc__p_CumulativeStudentDistribution,
  _swigc__p_Currency,
  _swigc__p_CustomRegion,
  _swigc__p_DKKLiborPtr,
  _swigc__p_DMinus,
  _swigc__p_DPlus,
  _swigc__p_DPlusDMinus,
  _swigc__p_DZero,
  _swigc__p_Date,
  _swigc__p_DateGeneration,
  _swigc__p_DateParser,
  _swigc__p_DatedOISRateHelperPtr,
  _swigc__p_DayCounter,
  _swigc__p_DefaultBoundaryCondition,
  _swigc__p_DefaultDensity,
  _swigc__p_DefaultDensityCurvePtr,
  _swigc__p_DefaultLexicographicalView,
  _swigc__p_DefaultLexicographicalViewColumn,
  _swigc__p_DefaultLogCubic,
  _swigc__p_DefaultProbabilityHelper,
  _swigc__p_DefaultProbabilityTermStructure,
  _swigc__p_DeltaVolQuote,
  _swigc__p_DepositRateHelperPtr,
  _swigc__p_DerivedQuotePtr,
  _swigc__p_DifferentialEvolution,
  _swigc__p_DirichletBCPtr,
  _swigc__p_Discount,
  _swigc__p_DiscountCurvePtr,
  _swigc__p_DiscountingBondEnginePtr,
  _swigc__p_DiscountingSwapEnginePtr,
  _swigc__p_DiscreteAveragingAsianOptionPtr,
  _swigc__p_Dividend,
  _swigc__p_DividendVanillaOptionPtr,
  _swigc__p_DoubleBarrier,
  _swigc__p_DoubleBarrierOptionPtr,
  _swigc__p_DownRounding,
  _swigc__p_Duration,
  _swigc__p_EUHICPPtr,
  _swigc__p_EUHICPXTPtr,
  _swigc__p_EURLibor10MPtr,
  _swigc__p_EURLibor11MPtr,
  _swigc__p_EURLibor1MPtr,
  _swigc__p_EURLibor1YPtr,
  _swigc__p_EURLibor2MPtr,
  _swigc__p_EURLibor2WPtr,
  _swigc__p_EURLibor3MPtr,
  _swigc__p_EURLibor4MPtr,
  _swigc__p_EURLibor5MPtr,
  _swigc__p_EURLibor6MPtr,
  _swigc__p_EURLibor7MPtr,
  _swigc__p_EURLibor8MPtr,
  _swigc__p_EURLibor9MPtr,
  _swigc__p_EURLiborPtr,
  _swigc__p_EURLiborSWPtr,
  _swigc__p_EndCriteria,
  _swigc__p_EndCriteria__Type,
  _swigc__p_EoniaPtr,
  _swigc__p_EurLiborSwapIfrFixPtr,
  _swigc__p_EurLiborSwapIsdaFixAPtr,
  _swigc__p_EurLiborSwapIsdaFixBPtr,
  _swigc__p_Euribor10MPtr,
  _swigc__p_Euribor11MPtr,
  _swigc__p_Euribor1MPtr,
  _swigc__p_Euribor1YPtr,
  _swigc__p_Euribor2MPtr,
  _swigc__p_Euribor2WPtr,
  _swigc__p_Euribor365Ptr,
  _swigc__p_Euribor365_10MPtr,
  _swigc__p_Euribor365_11MPtr,
  _swigc__p_Euribor365_1MPtr,
  _swigc__p_Euribor365_1YPtr,
  _swigc__p_Euribor365_2MPtr,
  _swigc__p_Euribor365_2WPtr,
  _swigc__p_Euribor365_3MPtr,
  _swigc__p_Euribor365_3WPtr,
  _swigc__p_Euribor365_4MPtr,
  _swigc__p_Euribor365_5MPtr,
  _swigc__p_Euribor365_6MPtr,
  _swigc__p_Euribor365_7MPtr,
  _swigc__p_Euribor365_8MPtr,
  _swigc__p_Euribor365_9MPtr,
  _swigc__p_Euribor365_SWPtr,
  _swigc__p_Euribor3MPtr,
  _swigc__p_Euribor3WPtr,
  _swigc__p_Euribor4MPtr,
  _swigc__p_Euribor5MPtr,
  _swigc__p_Euribor6MPtr,
  _swigc__p_Euribor7MPtr,
  _swigc__p_Euribor8MPtr,
  _swigc__p_Euribor9MPtr,
  _swigc__p_EuriborPtr,
  _swigc__p_EuriborSWPtr,
  _swigc__p_EuriborSwapIfrFixPtr,
  _swigc__p_EuriborSwapIsdaFixAPtr,
  _swigc__p_EuriborSwapIsdaFixBPtr,
  _swigc__p_EuropeanExercisePtr,
  _swigc__p_EuropeanOptionPtr,
  _swigc__p_EverestOptionPtr,
  _swigc__p_ExchangeRate,
  _swigc__p_ExchangeRateManager,
  _swigc__p_Exercise,
  _swigc__p_ExponentialSplinesFitting,
  _swigc__p_Extrapolator,
  _swigc__p_FDAmericanEnginePtr,
  _swigc__p_FDBermudanEnginePtr,
  _swigc__p_FDDividendAmericanEnginePtr,
  _swigc__p_FDDividendEuropeanEnginePtr,
  _swigc__p_FDEuropeanEnginePtr,
  _swigc__p_FDShoutEnginePtr,
  _swigc__p_FFTVarianceGammaEnginePtr,
  _swigc__p_FRHICPPtr,
  _swigc__p_FalsePosition,
  _swigc__p_FdBatesVanillaEnginePtr,
  _swigc__p_FdBlackScholesAsianEnginePtr,
  _swigc__p_FdBlackScholesBarrierEnginePtr,
  _swigc__p_FdBlackScholesVanillaEnginePtr,
  _swigc__p_FdG2SwaptionEnginePtr,
  _swigc__p_FdHullWhiteSwaptionEnginePtr,
  _swigc__p_FdmSchemeDesc,
  _swigc__p_FedFundsPtr,
  _swigc__p_FittedBondDiscountCurvePtr,
  _swigc__p_FittingMethod,
  _swigc__p_FixedDividendPtr,
  _swigc__p_FixedRateBondForwardPtr,
  _swigc__p_FixedRateBondHelperPtr,
  _swigc__p_FixedRateBondPtr,
  _swigc__p_FixedRateCouponPtr,
  _swigc__p_FlatForwardPtr,
  _swigc__p_FlatHazardRatePtr,
  _swigc__p_FloatFloatSwapPtr,
  _swigc__p_FloatFloatSwaptionPtr,
  _swigc__p_FloatingRateBondPtr,
  _swigc__p_FloatingRateCouponPricer,
  _swigc__p_FloatingRateCouponPtr,
  _swigc__p_FloorPtr,
  _swigc__p_FloorTruncation,
  _swigc__p_ForwardCurvePtr,
  _swigc__p_ForwardEuropeanEnginePtr,
  _swigc__p_ForwardFlat,
  _swigc__p_ForwardFlatZeroCurvePtr,
  _swigc__p_ForwardPtr,
  _swigc__p_ForwardRate,
  _swigc__p_ForwardRateAgreementPtr,
  _swigc__p_ForwardSpreadedTermStructurePtr,
  _swigc__p_ForwardVanillaOptionPtr,
  _swigc__p_FraRateHelperPtr,
  _swigc__p_FractionalDividendPtr,
  _swigc__p_Futures,
  _swigc__p_FuturesRateHelperPtr,
  _swigc__p_FxSwapRateHelperPtr,
  _swigc__p_G2Ptr,
  _swigc__p_G2SwaptionEnginePtr,
  _swigc__p_GBPLiborPtr,
  _swigc__p_GFunctionFactory,
  _swigc__p_GammaFunction,
  _swigc__p_GapPayoffPtr,
  _swigc__p_GarmanKlassSigma1,
  _swigc__p_GarmanKlassSigma3,
  _swigc__p_GarmanKlassSigma4,
  _swigc__p_GarmanKlassSigma5,
  _swigc__p_GarmanKlassSigma6,
  _swigc__p_GarmanKohlagenProcessPtr,
  _swigc__p_GaussChebyshev2ndIntegration,
  _swigc__p_GaussChebyshevIntegration,
  _swigc__p_GaussGegenbauerIntegration,
  _swigc__p_GaussHermiteIntegration,
  _swigc__p_GaussHyperbolicIntegration,
  _swigc__p_GaussJacobiIntegration,
  _swigc__p_GaussKronrodAdaptive,
  _swigc__p_GaussKronrodNonAdaptive,
  _swigc__p_GaussLaguerreIntegration,
  _swigc__p_GaussLegendreIntegration,
  _swigc__p_GaussLobattoIntegral,
  _swigc__p_Gaussian1dFloatFloatSwaptionEnginePtr,
  _swigc__p_Gaussian1dJamshidianSwaptionEnginePtr,
  _swigc__p_Gaussian1dModel,
  _swigc__p_Gaussian1dNonstandardSwaptionEnginePtr,
  _swigc__p_Gaussian1dSwaptionEnginePtr,
  _swigc__p_GaussianLowDiscrepancySequenceGenerator,
  _swigc__p_GaussianMultiPathGenerator,
  _swigc__p_GaussianPathGenerator,
  _swigc__p_GaussianRandomGenerator,
  _swigc__p_GaussianRandomSequenceGenerator,
  _swigc__p_GaussianSimulatedAnnealing,
  _swigc__p_GaussianSobolPathGenerator,
  _swigc__p_GeneralizedBlackScholesProcessPtr,
  _swigc__p_GenericSequenceStatisticsT_IncrementalStatistics_t,
  _swigc__p_GenericSequenceStatisticsT_RiskStatistics_t,
  _swigc__p_GenericSequenceStatisticsT_Statistics_t,
  _swigc__p_GeometricBrownianMotionProcessPtr,
  _swigc__p_GsrProcessPtr,
  _swigc__p_GsrPtr,
  _swigc__p_HaltonRsg,
  _swigc__p_HandleT_BlackVolTermStructure_t,
  _swigc__p_HandleT_CalibratedModel_t,
  _swigc__p_HandleT_CapFloorTermVolatilityStructure_t,
  _swigc__p_HandleT_DefaultProbabilityTermStructure_t,
  _swigc__p_HandleT_DeltaVolQuote_t,
  _swigc__p_HandleT_LocalVolTermStructure_t,
  _swigc__p_HandleT_OptionletVolatilityStructure_t,
  _swigc__p_HandleT_Quote_t,
  _swigc__p_HandleT_ShortRateModel_t,
  _swigc__p_HandleT_SwaptionVolatilityStructure_t,
  _swigc__p_HandleT_YieldTermStructure_t,
  _swigc__p_HandleT_YoYInflationTermStructure_t,
  _swigc__p_HandleT_ZeroInflationTermStructure_t,
  _swigc__p_HazardRate,
  _swigc__p_HazardRateCurvePtr,
  _swigc__p_HestonModelHelperPtr,
  _swigc__p_HestonModelPtr,
  _swigc__p_HestonProcessPtr,
  _swigc__p_HimalayaOptionPtr,
  _swigc__p_HullWhiteForwardProcessPtr,
  _swigc__p_HullWhiteProcessPtr,
  _swigc__p_HullWhitePtr,
  _swigc__p_IMM,
  _swigc__p_IborCouponPricerPtr,
  _swigc__p_IborCouponPtr,
  _swigc__p_IborIndexPtr,
  _swigc__p_ImpliedTermStructurePtr,
  _swigc__p_IncrementalStatistics,
  _swigc__p_Index,
  _swigc__p_IndexManager,
  _swigc__p_InflationIndexPtr,
  _swigc__p_InflationTermStructure,
  _swigc__p_Instrument,
  _swigc__p_IntegralCdsEnginePtr,
  _swigc__p_IntegralEnginePtr,
  _swigc__p_InterestRate,
  _swigc__p_InterestRateIndexPtr,
  _swigc__p_IntervalPrice,
  _swigc__p_InverseCumulativeNormal,
  _swigc__p_InverseCumulativePoisson,
  _swigc__p_InverseCumulativeRngT_KnuthUniformRng_InverseCumulativeNormal_t,
  _swigc__p_InverseCumulativeRngT_KnuthUniformRng_MoroInverseCumulativeNormal_t,
  _swigc__p_InverseCumulativeRngT_LecuyerUniformRng_InverseCumulativeNormal_t,
  _swigc__p_InverseCumulativeRngT_LecuyerUniformRng_MoroInverseCumulativeNormal_t,
  _swigc__p_InverseCumulativeRngT_MersenneTwisterUniformRng_InverseCumulativeNormal_t,
  _swigc__p_InverseCumulativeRngT_MersenneTwisterUniformRng_MoroInverseCumulativeNormal_t,
  _swigc__p_InverseCumulativeRsgT_HaltonRsg_InverseCumulativeNormal_t,
  _swigc__p_InverseCumulativeRsgT_HaltonRsg_MoroInverseCumulativeNormal_t,
  _swigc__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_InverseCumulativeNormal_t,
  _swigc__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_KnuthUniformRng_t_MoroInverseCumulativeNormal_t,
  _swigc__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_InverseCumulativeNormal_t,
  _swigc__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_LecuyerUniformRng_t_MoroInverseCumulativeNormal_t,
  _swigc__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_InverseCumulativeNormal_t,
  _swigc__p_InverseCumulativeRsgT_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t_MoroInverseCumulativeNormal_t,
  _swigc__p_InverseCumulativeRsgT_SobolRsg_InverseCumulativeNormal_t,
  _swigc__p_InverseCumulativeRsgT_SobolRsg_MoroInverseCumulativeNormal_t,
  _swigc__p_InverseCumulativeStudent,
  _swigc__p_InverseNonCentralCumulativeChiSquareDistribution,
  _swigc__p_JPYLiborPtr,
  _swigc__p_JamshidianSwaptionEnginePtr,
  _swigc__p_JibarPtr,
  _swigc__p_KnuthUniformRng,
  _swigc__p_LecuyerUniformRng,
  _swigc__p_LevenbergMarquardt,
  _swigc__p_LiborPtr,
  _swigc__p_Linear,
  _swigc__p_LinearTsrPricerPtr,
  _swigc__p_LinearTsrPricer__Settings,
  _swigc__p_LocalConstantVolPtr,
  _swigc__p_LocalVolSurfacePtr,
  _swigc__p_LocalVolTermStructure,
  _swigc__p_LogCubicZeroCurvePtr,
  _swigc__p_LogLinear,
  _swigc__p_LogLinearZeroCurvePtr,
  _swigc__p_LogNormalSimulatedAnnealing,
  _swigc__p_MCAmericanBasketEnginePtr,
  _swigc__p_MCBarrierEnginePtr,
  _swigc__p_MCDiscreteArithmeticAPEnginePtr,
  _swigc__p_MCDiscreteArithmeticASEnginePtr,
  _swigc__p_MCDiscreteGeometricAPEnginePtr,
  _swigc__p_MCEuropeanBasketEnginePtr,
  _swigc__p_MCEuropeanEnginePtr,
  _swigc__p_MCEverestEnginePtr,
  _swigc__p_MCHimalayaEnginePtr,
  _swigc__p_MarkovFunctionalPtr,
  _swigc__p_MarkovFunctional__ModelSettings,
  _swigc__p_Matrix,
  _swigc__p_MatrixRow,
  _swigc__p_MaxBasketPayoffPtr,
  _swigc__p_MersenneTwisterUniformRng,
  _swigc__p_Merton76ProcessPtr,
  _swigc__p_MidPointCdsEnginePtr,
  _swigc__p_MinBasketPayoffPtr,
  _swigc__p_MirrorGaussianSimulatedAnnealing,
  _swigc__p_Money,
  _swigc__p_MonotonicCubic,
  _swigc__p_MonotonicCubicZeroCurvePtr,
  _swigc__p_MonotonicLogCubic,
  _swigc__p_MoroInverseCumulativeNormal,
  _swigc__p_MultiAssetOptionPtr,
  _swigc__p_MultiPath,
  _swigc__p_MultiplicativePriceSeasonalityPtr,
  _swigc__p_NZDLiborPtr,
  _swigc__p_NelsonSiegelFitting,
  _swigc__p_NeumannBCPtr,
  _swigc__p_Newton,
  _swigc__p_NewtonSafe,
  _swigc__p_NoConstraint,
  _swigc__p_NonCentralCumulativeChiSquareDistribution,
  _swigc__p_NonhomogeneousBoundaryConstraint,
  _swigc__p_NonstandardSwapPtr,
  _swigc__p_NonstandardSwaptionPtr,
  _swigc__p_NormalDistribution,
  _swigc__p_NullParameter,
  _swigc__p_NumericHaganPricerPtr,
  _swigc__p_NzocrPtr,
  _swigc__p_OISRateHelperPtr,
  _swigc__p_Observable,
  _swigc__p_OptimizationMethod,
  _swigc__p_Optimizer,
  _swigc__p_Option,
  _swigc__p_OptionletStripper1Ptr,
  _swigc__p_OptionletVolatilityStructure,
  _swigc__p_OvernightIndexPtr,
  _swigc__p_Parameter,
  _swigc__p_ParkinsonSigma,
  _swigc__p_Path,
  _swigc__p_Payoff,
  _swigc__p_PercentageStrikePayoffPtr,
  _swigc__p_Period,
  _swigc__p_PeriodParser,
  _swigc__p_PiecewiseConstantParameter,
  _swigc__p_PiecewiseCubicZeroPtr,
  _swigc__p_PiecewiseFlatForwardPtr,
  _swigc__p_PiecewiseFlatHazardRatePtr,
  _swigc__p_PiecewiseLinearForwardPtr,
  _swigc__p_PiecewiseLinearZeroPtr,
  _swigc__p_PiecewiseLogCubicDiscountPtr,
  _swigc__p_PiecewiseTimeDependentHestonModelPtr,
  _swigc__p_PiecewiseYoYInflationPtr,
  _swigc__p_PiecewiseZeroInflationPtr,
  _swigc__p_Pillar,
  _swigc__p_PlainVanillaPayoffPtr,
  _swigc__p_PoissonDistribution,
  _swigc__p_Position,
  _swigc__p_PositiveConstraint,
  _swigc__p_PricingEngine,
  _swigc__p_ProbabilityBoltzmannDownhill,
  _swigc__p_Protection,
  _swigc__p_PyObserver,
  _swigc__p_QuantLib__ARSCurrency,
  _swigc__p_QuantLib__ATSCurrency,
  _swigc__p_QuantLib__AUDCurrency,
  _swigc__p_QuantLib__Actual360,
  _swigc__p_QuantLib__Actual365Fixed,
  _swigc__p_QuantLib__ActualActual,
  _swigc__p_QuantLib__Argentina,
  _swigc__p_QuantLib__Australia,
  _swigc__p_QuantLib__BDTCurrency,
  _swigc__p_QuantLib__BEFCurrency,
  _swigc__p_QuantLib__BGLCurrency,
  _swigc__p_QuantLib__BRLCurrency,
  _swigc__p_QuantLib__BYRCurrency,
  _swigc__p_QuantLib__BespokeCalendar,
  _swigc__p_QuantLib__Brazil,
  _swigc__p_QuantLib__Business252,
  _swigc__p_QuantLib__CADCurrency,
  _swigc__p_QuantLib__CHFCurrency,
  _swigc__p_QuantLib__CLPCurrency,
  _swigc__p_QuantLib__CNYCurrency,
  _swigc__p_QuantLib__COPCurrency,
  _swigc__p_QuantLib__CYPCurrency,
  _swigc__p_QuantLib__CZKCurrency,
  _swigc__p_QuantLib__Canada,
  _swigc__p_QuantLib__China,
  _swigc__p_QuantLib__CzechRepublic,
  _swigc__p_QuantLib__DEMCurrency,
  _swigc__p_QuantLib__DKKCurrency,
  _swigc__p_QuantLib__Denmark,
  _swigc__p_QuantLib__EEKCurrency,
  _swigc__p_QuantLib__ESPCurrency,
  _swigc__p_QuantLib__EURCurrency,
  _swigc__p_QuantLib__FIMCurrency,
  _swigc__p_QuantLib__FRFCurrency,
  _swigc__p_QuantLib__Finland,
  _swigc__p_QuantLib__GBPCurrency,
  _swigc__p_QuantLib__GRDCurrency,
  _swigc__p_QuantLib__Germany,
  _swigc__p_QuantLib__HKDCurrency,
  _swigc__p_QuantLib__HUFCurrency,
  _swigc__p_QuantLib__HongKong,
  _swigc__p_QuantLib__Hungary,
  _swigc__p_QuantLib__IDRCurrency,
  _swigc__p_QuantLib__IEPCurrency,
  _swigc__p_QuantLib__ILSCurrency,
  _swigc__p_QuantLib__INRCurrency,
  _swigc__p_QuantLib__IQDCurrency,
  _swigc__p_QuantLib__IRRCurrency,
  _swigc__p_QuantLib__ISKCurrency,
  _swigc__p_QuantLib__ITLCurrency,
  _swigc__p_QuantLib__Iceland,
  _swigc__p_QuantLib__India,
  _swigc__p_QuantLib__Indonesia,
  _swigc__p_QuantLib__Israel,
  _swigc__p_QuantLib__Italy,
  _swigc__p_QuantLib__JPYCurrency,
  _swigc__p_QuantLib__Japan,
  _swigc__p_QuantLib__JointCalendar,
  _swigc__p_QuantLib__KRWCurrency,
  _swigc__p_QuantLib__KWDCurrency,
  _swigc__p_QuantLib__LTLCurrency,
  _swigc__p_QuantLib__LUFCurrency,
  _swigc__p_QuantLib__LVLCurrency,
  _swigc__p_QuantLib__MTLCurrency,
  _swigc__p_QuantLib__MXNCurrency,
  _swigc__p_QuantLib__MYRCurrency,
  _swigc__p_QuantLib__Mexico,
  _swigc__p_QuantLib__NLGCurrency,
  _swigc__p_QuantLib__NOKCurrency,
  _swigc__p_QuantLib__NPRCurrency,
  _swigc__p_QuantLib__NZDCurrency,
  _swigc__p_QuantLib__NewZealand,
  _swigc__p_QuantLib__Norway,
  _swigc__p_QuantLib__NullCalendar,
  _swigc__p_QuantLib__OneDayCounter,
  _swigc__p_QuantLib__PEHCurrency,
  _swigc__p_QuantLib__PEICurrency,
  _swigc__p_QuantLib__PENCurrency,
  _swigc__p_QuantLib__PKRCurrency,
  _swigc__p_QuantLib__PLNCurrency,
  _swigc__p_QuantLib__PTECurrency,
  _swigc__p_QuantLib__Poland,
  _swigc__p_QuantLib__ROLCurrency,
  _swigc__p_QuantLib__RONCurrency,
  _swigc__p_QuantLib__RUBCurrency,
  _swigc__p_QuantLib__Romania,
  _swigc__p_QuantLib__Russia,
  _swigc__p_QuantLib__SARCurrency,
  _swigc__p_QuantLib__SEKCurrency,
  _swigc__p_QuantLib__SGDCurrency,
  _swigc__p_QuantLib__SITCurrency,
  _swigc__p_QuantLib__SKKCurrency,
  _swigc__p_QuantLib__SaudiArabia,
  _swigc__p_QuantLib__SimpleDayCounter,
  _swigc__p_QuantLib__Singapore,
  _swigc__p_QuantLib__Slovakia,
  _swigc__p_QuantLib__SouthAfrica,
  _swigc__p_QuantLib__SouthKorea,
  _swigc__p_QuantLib__Sweden,
  _swigc__p_QuantLib__Switzerland,
  _swigc__p_QuantLib__TARGET,
  _swigc__p_QuantLib__THBCurrency,
  _swigc__p_QuantLib__TRLCurrency,
  _swigc__p_QuantLib__TRYCurrency,
  _swigc__p_QuantLib__TTDCurrency,
  _swigc__p_QuantLib__TWDCurrency,
  _swigc__p_QuantLib__Taiwan,
  _swigc__p_QuantLib__Thirty360,
  _swigc__p_QuantLib__Turkey,
  _swigc__p_QuantLib__USDCurrency,
  _swigc__p_QuantLib__Ukraine,
  _swigc__p_QuantLib__UnitedKingdom,
  _swigc__p_QuantLib__UnitedStates,
  _swigc__p_QuantLib__VEBCurrency,
  _swigc__p_QuantLib__VNDCurrency,
  _swigc__p_QuantLib__WeekendsOnly,
  _swigc__p_QuantLib__ZARCurrency,
  _swigc__p_QuantoDoubleBarrierOptionPtr,
  _swigc__p_QuantoEuropeanEnginePtr,
  _swigc__p_QuantoForwardEuropeanEnginePtr,
  _swigc__p_QuantoForwardVanillaOptionPtr,
  _swigc__p_QuantoVanillaOptionPtr,
  _swigc__p_Quote,
  _swigc__p_RandomSequenceGeneratorT_KnuthUniformRng_t,
  _swigc__p_RandomSequenceGeneratorT_LecuyerUniformRng_t,
  _swigc__p_RandomSequenceGeneratorT_MersenneTwisterUniformRng_t,
  _swigc__p_RateHelper,
  _swigc__p_RealTimeSeries,
  _swigc__p_ReannealingTrivial,
  _swigc__p_RebatedExercisePtr,
  _swigc__p_RedemptionPtr,
  _swigc__p_Region,
  _swigc__p_RelinkableHandleT_BlackVolTermStructure_t,
  _swigc__p_RelinkableHandleT_CalibratedModel_t,
  _swigc__p_RelinkableHandleT_CapFloorTermVolatilityStructure_t,
  _swigc__p_RelinkableHandleT_DefaultProbabilityTermStructure_t,
  _swigc__p_RelinkableHandleT_DeltaVolQuote_t,
  _swigc__p_RelinkableHandleT_LocalVolTermStructure_t,
  _swigc__p_RelinkableHandleT_OptionletVolatilityStructure_t,
  _swigc__p_RelinkableHandleT_Quote_t,
  _swigc__p_RelinkableHandleT_ShortRateModel_t,
  _swigc__p_RelinkableHandleT_SwaptionVolatilityStructure_t,
  _swigc__p_RelinkableHandleT_YieldTermStructure_t,
  _swigc__p_RelinkableHandleT_YoYInflationTermStructure_t,
  _swigc__p_RelinkableHandleT_ZeroInflationTermStructure_t,
  _swigc__p_Ridder,
  _swigc__p_RiskStatistics,
  _swigc__p_Rounding,
  _swigc__p_SEKLiborPtr,
  _swigc__p_SVD,
  _swigc__p_SafeBackwardFlatInterpolation,
  _swigc__p_SafeBicubicSpline,
  _swigc__p_SafeBilinearInterpolation,
  _swigc__p_SafeCubicNaturalSpline,
  _swigc__p_SafeForwardFlatInterpolation,
  _swigc__p_SafeFritschButlandCubic,
  _swigc__p_SafeFritschButlandLogCubic,
  _swigc__p_SafeKrugerCubic,
  _swigc__p_SafeKrugerLogCubic,
  _swigc__p_SafeLinearInterpolation,
  _swigc__p_SafeLogCubicNaturalSpline,
  _swigc__p_SafeLogLinearInterpolation,
  _swigc__p_SafeLogParabolic,
  _swigc__p_SafeMonotonicCubicNaturalSpline,
  _swigc__p_SafeMonotonicLogCubicNaturalSpline,
  _swigc__p_SafeMonotonicLogParabolic,
  _swigc__p_SafeMonotonicParabolic,
  _swigc__p_SafeParabolic,
  _swigc__p_SalvagingAlgorithm,
  _swigc__p_SampleT_Array_t,
  _swigc__p_SampleT_MultiPath_t,
  _swigc__p_SampleT_Path_t,
  _swigc__p_SampleT_double_t,
  _swigc__p_SampleT_std__vectorT_double_std__allocatorT_double_t_t_t,
  _swigc__p_SampledCurve,
  _swigc__p_SamplerGaussian,
  _swigc__p_SamplerLogNormal,
  _swigc__p_SamplerMirrorGaussian,
  _swigc__p_Schedule,
  _swigc__p_Seasonality,
  _swigc__p_Secant,
  _swigc__p_SegmentIntegral,
  _swigc__p_Settings,
  _swigc__p_Settlement,
  _swigc__p_ShortRateModel,
  _swigc__p_SimpleCashFlowPtr,
  _swigc__p_SimplePolynomialFitting,
  _swigc__p_SimpleQuotePtr,
  _swigc__p_Simplex,
  _swigc__p_SimpsonIntegral,
  _swigc__p_SobolBrownianBridgeRsg,
  _swigc__p_SobolRsg,
  _swigc__p_SoftCallabilityPtr,
  _swigc__p_SoniaPtr,
  _swigc__p_SpreadCdsHelperPtr,
  _swigc__p_SpreadedLinearZeroInterpolatedTermStructurePtr,
  _swigc__p_Statistics,
  _swigc__p_SteepestDescent,
  _swigc__p_StochasticProcess,
  _swigc__p_StochasticProcess1DPtr,
  _swigc__p_StochasticProcessArrayPtr,
  _swigc__p_StockPtr,
  _swigc__p_StrippedOptionletAdapterPtr,
  _swigc__p_StrippedOptionletBase,
  _swigc__p_StudentDistribution,
  _swigc__p_StulzEnginePtr,
  _swigc__p_SuperSharePayoffPtr,
  _swigc__p_SvenssonFitting,
  _swigc__p_SwapIndexPtr,
  _swigc__p_SwapPtr,
  _swigc__p_SwapRateHelperPtr,
  _swigc__p_SwaptionHelperPtr,
  _swigc__p_SwaptionPtr,
  _swigc__p_SwaptionVolCube1Ptr,
  _swigc__p_SwaptionVolCube2Ptr,
  _swigc__p_SwaptionVolatilityMatrixPtr,
  _swigc__p_SwaptionVolatilityStructure,
  _swigc__p_TRLiborPtr,
  _swigc__p_TemperatureExponential,
  _swigc__p_TiborPtr,
  _swigc__p_TimeBasket,
  _swigc__p_TimeGrid,
  _swigc__p_TimeSeriesT_IntervalPrice_std__mapT_Date_IntervalPrice_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_IntervalPrice_t_t_t_t,
  _swigc__p_TimeSeriesT_double_std__mapT_Date_double_std__lessT_Date_t_std__allocatorT_std__pairT_Date_const_double_t_t_t_t,
  _swigc__p_TrapezoidIntegralT_Default_t,
  _swigc__p_TrapezoidIntegralT_MidPoint_t,
  _swigc__p_TreeCallableFixedRateBondEnginePtr,
  _swigc__p_TreeCapFloorEnginePtr,
  _swigc__p_TreeSwaptionEnginePtr,
  _swigc__p_TridiagonalOperator,
  _swigc__p_UKRPIPtr,
  _swigc__p_USCPIPtr,
  _swigc__p_USDLiborPtr,
  _swigc__p_UniformLowDiscrepancySequenceGenerator,
  _swigc__p_UniformRandomGenerator,
  _swigc__p_UniformRandomSequenceGenerator,
  _swigc__p_UpRounding,
  _swigc__p_UpfrontCdsHelperPtr,
  _swigc__p_VanillaOptionPtr,
  _swigc__p_VanillaSwapPtr,
  _swigc__p_VannaVolgaDoubleBarrierEnginePtr,
  _swigc__p_VarianceGammaEnginePtr,
  _swigc__p_VarianceGammaProcessPtr,
  _swigc__p_VasicekPtr,
  _swigc__p_WulinYongDoubleBarrierEnginePtr,
  _swigc__p_YYEUHICPPtr,
  _swigc__p_YYEUHICPXTPtr,
  _swigc__p_YYFRHICPPtr,
  _swigc__p_YYUKRPIPtr,
  _swigc__p_YYUSCPIPtr,
  _swigc__p_YYZACPIPtr,
  _swigc__p_YearOnYearInflationSwapHelperPtr,
  _swigc__p_YearOnYearInflationSwapPtr,
  _swigc__p_YieldTermStructure,
  _swigc__p_YoYHelper,
  _swigc__p_YoYInflationCapFloorPtr,
  _swigc__p_YoYInflationCapPtr,
  _swigc__p_YoYInflationCollarPtr,
  _swigc__p_YoYInflationFloorPtr,
  _swigc__p_YoYInflationIndexPtr,
  _swigc__p_YoYInflationTermStructure,
  _swigc__p_ZACPIPtr,
  _swigc__p_ZeroCouponBondPtr,
  _swigc__p_ZeroCouponInflationSwapHelperPtr,
  _swigc__p_ZeroCouponInflationSwapPtr,
  _swigc__p_ZeroCurvePtr,
  _swigc__p_ZeroHelper,
  _swigc__p_ZeroInflationIndexPtr,
  _swigc__p_ZeroInflationTermStructure,
  _swigc__p_ZeroSpreadedTermStructurePtr,
  _swigc__p_ZeroYield,
  _swigc__p_ZiborPtr,
  _swigc__p_allocator_type,
  _swigc__p_boost__shared_ptrT_BlackVolTermStructure_t,
  _swigc__p_boost__shared_ptrT_CalibratedModel_t,
  _swigc__p_boost__shared_ptrT_CalibrationHelper_t,
  _swigc__p_boost__shared_ptrT_Callability_t,
  _swigc__p_boost__shared_ptrT_CapFloorTermVolatilityStructure_t,
  _swigc__p_boost__shared_ptrT_CashFlow_t,
  _swigc__p_boost__shared_ptrT_DefaultBoundaryCondition_t,
  _swigc__p_boost__shared_ptrT_DefaultProbabilityHelper_t,
  _swigc__p_boost__shared_ptrT_DefaultProbabilityTermStructure_t,
  _swigc__p_boost__shared_ptrT_DeltaVolQuote_t,
  _swigc__p_boost__shared_ptrT_Dividend_t,
  _swigc__p_boost__shared_ptrT_EndCriteria_t,
  _swigc__p_boost__shared_ptrT_Exercise_t,
  _swigc__p_boost__shared_ptrT_FloatingRateCouponPricer_t,
  _swigc__p_boost__shared_ptrT_Gaussian1dModel_t,
  _swigc__p_boost__shared_ptrT_IborIndex_t,
  _swigc__p_boost__shared_ptrT_Index_t,
  _swigc__p_boost__shared_ptrT_Instrument_t,
  _swigc__p_boost__shared_ptrT_LocalVolTermStructure_t,
  _swigc__p_boost__shared_ptrT_Observable_t,
  _swigc__p_boost__shared_ptrT_OptimizationMethod_t,
  _swigc__p_boost__shared_ptrT_OptionletVolatilityStructure_t,
  _swigc__p_boost__shared_ptrT_Payoff_t,
  _swigc__p_boost__shared_ptrT_PricingEngine_t,
  _swigc__p_boost__shared_ptrT_Quote_t,
  _swigc__p_boost__shared_ptrT_RateHelper_t,
  _swigc__p_boost__shared_ptrT_Seasonality_t,
  _swigc__p_boost__shared_ptrT_ShortRateModel_t,
  _swigc__p_boost__shared_ptrT_StochasticProcess_t,
  _swigc__p_boost__shared_ptrT_StrippedOptionletBase_t,
  _swigc__p_boost__shared_ptrT_SwapIndex_t,
  _swigc__p_boost__shared_ptrT_SwaptionVolatilityStructure_t,
  _swigc__p_boost__shared_ptrT_YieldTermStructure_t,
  _swigc__p_boost__shared_ptrT_YoYHelper_t,
  _swigc__p_boost__shared_ptrT_YoYInflationTermStructure_t,
  _swigc__p_boost__shared_ptrT_ZeroHelper_t,
  _swigc__p_boost__shared_ptrT_ZeroInflationTermStructure_t,
  _swigc__p_char,
  _swigc__p_const_reference,
  _swigc__p_difference_type,
  _swigc__p_double,
  _swigc__p_first_type,
  _swigc__p_int,
  _swigc__p_long,
  _swigc__p_p_PyObject,
  _swigc__p_reference,
  _swigc__p_second_type,
  _swigc__p_size_type,
  _swigc__p_std__allocatorT_Date_t,
  _swigc__p_std__allocatorT_HandleT_Quote_t_t,
  _swigc__p_std__allocatorT_InterestRate_t,
  _swigc__p_std__allocatorT_IntervalPrice_t,
  _swigc__p_std__allocatorT_Period_t,
  _swigc__p_std__allocatorT_RelinkableHandleT_Quote_t_t,
  _swigc__p_std__allocatorT_bool_t,
  _swigc__p_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t,
  _swigc__p_std__allocatorT_boost__shared_ptrT_Callability_t_t,
  _swigc__p_std__allocatorT_boost__shared_ptrT_CashFlow_t_t,
  _swigc__p_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t,
  _swigc__p_std__allocatorT_boost__shared_ptrT_Dividend_t_t,
  _swigc__p_std__allocatorT_boost__shared_ptrT_Instrument_t_t,
  _swigc__p_std__allocatorT_boost__shared_ptrT_Quote_t_t,
  _swigc__p_std__allocatorT_boost__shared_ptrT_RateHelper_t_t,
  _swigc__p_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t,
  _swigc__p_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t,
  _swigc__p_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t,
  _swigc__p_std__allocatorT_double_t,
  _swigc__p_std__allocatorT_int_t,
  _swigc__p_std__allocatorT_std__pairT_Date_double_t_t,
  _swigc__p_std__allocatorT_std__string_t,
  _swigc__p_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t,
  _swigc__p_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t,
  _swigc__p_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t,
  _swigc__p_std__allocatorT_unsigned_int_t,
  _swigc__p_std__invalid_argument,
  _swigc__p_std__pairT_Date_double_t,
  _swigc__p_std__size_t,
  _swigc__p_std__vectorT_Date_std__allocatorT_Date_t_t,
  _swigc__p_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t,
  _swigc__p_std__vectorT_InterestRate_std__allocatorT_InterestRate_t_t,
  _swigc__p_std__vectorT_IntervalPrice_std__allocatorT_IntervalPrice_t_t,
  _swigc__p_std__vectorT_Period_std__allocatorT_Period_t_t,
  _swigc__p_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t,
  _swigc__p_std__vectorT_bool_std__allocatorT_bool_t_t,
  _swigc__p_std__vectorT_boost__shared_ptrT_CalibrationHelper_t_std__allocatorT_boost__shared_ptrT_CalibrationHelper_t_t_t,
  _swigc__p_std__vectorT_boost__shared_ptrT_Callability_t_std__allocatorT_boost__shared_ptrT_Callability_t_t_t,
  _swigc__p_std__vectorT_boost__shared_ptrT_CashFlow_t_std__allocatorT_boost__shared_ptrT_CashFlow_t_t_t,
  _swigc__p_std__vectorT_boost__shared_ptrT_DefaultProbabilityHelper_t_std__allocatorT_boost__shared_ptrT_DefaultProbabilityHelper_t_t_t,
  _swigc__p_std__vectorT_boost__shared_ptrT_Dividend_t_std__allocatorT_boost__shared_ptrT_Dividend_t_t_t,
  _swigc__p_std__vectorT_boost__shared_ptrT_Instrument_t_std__allocatorT_boost__shared_ptrT_Instrument_t_t_t,
  _swigc__p_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t,
  _swigc__p_std__vectorT_boost__shared_ptrT_RateHelper_t_std__allocatorT_boost__shared_ptrT_RateHelper_t_t_t,
  _swigc__p_std__vectorT_boost__shared_ptrT_StochasticProcess_t_std__allocatorT_boost__shared_ptrT_StochasticProcess_t_t_t,
  _swigc__p_std__vectorT_boost__shared_ptrT_YoYHelper_t_std__allocatorT_boost__shared_ptrT_YoYHelper_t_t_t,
  _swigc__p_std__vectorT_boost__shared_ptrT_ZeroHelper_t_std__allocatorT_boost__shared_ptrT_ZeroHelper_t_t_t,
  _swigc__p_std__vectorT_double_std__allocatorT_double_t_t,
  _swigc__p_std__vectorT_int_std__allocatorT_int_t_t,
  _swigc__p_std__vectorT_std__pairT_Date_double_t_std__allocatorT_std__pairT_Date_double_t_t_t,
  _swigc__p_std__vectorT_std__string_std__allocatorT_std__string_t_t,
  _swigc__p_std__vectorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_std__allocatorT_std__vectorT_HandleT_Quote_t_std__allocatorT_HandleT_Quote_t_t_t_t_t,
  _swigc__p_std__vectorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_std__allocatorT_std__vectorT_RelinkableHandleT_Quote_t_std__allocatorT_RelinkableHandleT_Quote_t_t_t_t_t,
  _swigc__p_std__vectorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_std__allocatorT_std__vectorT_boost__shared_ptrT_Quote_t_std__allocatorT_boost__shared_ptrT_Quote_t_t_t_t_t,
  _swigc__p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t,
  _swigc__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t,
  _swigc__p_swig__SwigPyIterator,
  _swigc__p_unsigned_int,
  _swigc__p_unsigned_long,
  _swigc__p_value_type,
};


/* -------- 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 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 linked list. 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. So to actually build the cast linked list,
 * we find the array of casts associated with the type, and loop through it
 * adding the casts to the list. The one last 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 linked list (because the cast->type) pointer will
 *     be correct.
 * ----------------------------------------------------------------------------- */

#ifdef __cplusplus
extern "C" {
#if 0
} /* c-mode */
#endif
#endif

#if 0
#define SWIGRUNTIME_DEBUG
#endif


SWIGRUNTIME void
SWIG_InitializeModule(void *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 %d\n", swig_module.size);
#endif
  for (i = 0; i < swig_module.size; ++i) {
    swig_type_info *type = 0;
    swig_type_info *ret;
    swig_cast_info *cast;
    
#ifdef SWIGRUNTIME_DEBUG
    printf("SWIG_InitializeModule: type %d %s\n", 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 = swig_module.cast_initial[i];
    while (cast->type) {
      /* Don't need to add information already in the list */
      ret = 0;
#ifdef SWIGRUNTIME_DEBUG
      printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
#endif
      if (swig_module.next != &swig_module) {
        ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
#ifdef SWIGRUNTIME_DEBUG
        if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
#endif
      }
      if (ret) {
        if (type == swig_module.type_initial[i]) {
#ifdef SWIGRUNTIME_DEBUG
          printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
#endif
          cast->type = ret;
          ret = 0;
        } else {
          /* Check for casting already in the list */
          swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
#ifdef SWIGRUNTIME_DEBUG
          if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
#endif
          if (!ocast) ret = 0;
        }
      }
      
      if (!ret) {
#ifdef SWIGRUNTIME_DEBUG
        printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
#endif
        if (type->cast) {
          type->cast->prev = cast;
          cast->next = type->cast;
        }
        type->cast = 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 %d %s\n", 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;
  swig_cast_info *equiv;
  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) {
      equiv = swig_module.types[i]->cast;
      while (equiv) {
        if (!equiv->converter) {
          if (equiv->type && !equiv->type->clientdata)
          SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
        }
        equiv = equiv->next;
      }
    }
  }
}

#ifdef __cplusplus
#if 0
{
  /* c-mode */
#endif
}
#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 *
  swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
#if PY_VERSION_HEX >= 0x03000000
    return PyUnicode_InternFromString("<Swig global variables>");
#else
    return PyString_FromString("<Swig global variables>");
#endif
  }
  
  SWIGINTERN PyObject *
  swig_varlink_str(swig_varlinkobject *v) {
#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);
      Py_DecRef(str);
      Py_DecRef(tail);
      str = joined;
      if (var->next) {
        tail = PyUnicode_InternFromString(", ");
        joined = PyUnicode_Concat(str, tail);
        Py_DecRef(str);
        Py_DecRef(tail);
        str = joined;
      }
    }
    tail = PyUnicode_InternFromString(")");
    joined = PyUnicode_Concat(str, tail);
    Py_DecRef(str);
    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 int
  swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
    char *tmp;
    PyObject *str = swig_varlink_str(v);
    fprintf(fp,"Swig global variables ");
    fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
    SWIG_Python_str_DelForPy3(tmp);
    Py_DECREF(str);
    return 0;
  }
  
  SWIGINTERN void
  swig_varlink_dealloc(swig_varlinkobject *v) {
    swig_globalvar *var = v->vars;
    while (var) {
      swig_globalvar *n = var->next;
      free(var->name);
      free(var);
      var = n;
    }
  }
  
  SWIGINTERN PyObject *
  swig_varlink_getattr(swig_varlinkobject *v, char *n) {
    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
  swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
    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*
  swig_varlink_type(void) {
    static char varlink__doc__[] = "Swig var link object";
    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
        (char *)"swigvarlink",              /* tp_name */
        sizeof(swig_varlinkobject),         /* tp_basicsize */
        0,                                  /* tp_itemsize */
        (destructor) swig_varlink_dealloc,  /* tp_dealloc */
        (printfunc) swig_varlink_print,     /* tp_print */
        (getattrfunc) swig_varlink_getattr, /* tp_getattr */
        (setattrfunc) swig_varlink_setattr, /* tp_setattr */
        0,                                  /* tp_compare */
        (reprfunc) swig_varlink_repr,       /* tp_repr */
        0,                                  /* tp_as_number */
        0,                                  /* tp_as_sequence */
        0,                                  /* tp_as_mapping */
        0,                                  /* tp_hash */
        0,                                  /* tp_call */
        (reprfunc) swig_varlink_str,        /* tp_str */
        0,                                  /* tp_getattro */
        0,                                  /* tp_setattro */
        0,                                  /* tp_as_buffer */
        0,                                  /* tp_flags */
        varlink__doc__,                     /* tp_doc */
        0,                                  /* tp_traverse */
        0,                                  /* tp_clear */
        0,                                  /* tp_richcompare */
        0,                                  /* tp_weaklistoffset */
#if PY_VERSION_HEX >= 0x02020000
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
#endif
#if PY_VERSION_HEX >= 0x02030000
        0,                                  /* tp_del */
#endif
#if PY_VERSION_HEX >= 0x02060000
        0,                                  /* tp_version_tag */
#endif
#if PY_VERSION_HEX >= 0x03040000
        0,                                  /* tp_finalize */
#endif
#ifdef COUNT_ALLOCS
        0,                                  /* tp_allocs */
        0,                                  /* tp_frees */
        0,                                  /* tp_maxalloc */
#if PY_VERSION_HEX >= 0x02050000
        0,                                  /* tp_prev */
#endif
        0                                   /* tp_next */
#endif
      };
      varlink_type = tmp;
      type_init = 1;
#if PY_VERSION_HEX < 0x02020000
      varlink_type.ob_type = &PyType_Type;
#else
      if (PyType_Ready(&varlink_type) < 0)
      return NULL;
#endif
    }
    return &varlink_type;
  }
  
  /* Create a variable linking object for use later */
  SWIGINTERN PyObject *
  SWIG_Python_newvarlink(void) {
    swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
    if (result) {
      result->vars = 0;
    }
    return ((PyObject*) result);
  }
  
  SWIGINTERN void 
  SWIG_Python_addvarlink(PyObject *p, 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) {
        strncpy(gv->name,name,size);
        gv->get_attr = get_attr;
        gv->set_attr = set_attr;
        gv->next = v->vars;
      }
    }
    v->vars = gv;
  }
  
  SWIGINTERN PyObject *
  SWIG_globals(void) {
    static PyObject *_SWIG_globals = 0; 
    if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();  
    return _SWIG_globals;
  }
  
  /* -----------------------------------------------------------------------------
   * 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);
        Py_DECREF(obj);
      }
    }
  }
  
  /* -----------------------------------------------------------------------------*/
  /* Fix SwigMethods to carry the callback ptrs when needed */
  /* -----------------------------------------------------------------------------*/
  
  SWIGINTERN void
  SWIG_Python_FixMethods(PyMethodDef *methods,
    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;
        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;
              strncpy(buff, methods[i].ml_doc, ldoc);
              buff += ldoc;
              strncpy(buff, "swig_ptr: ", 10);
              buff += 10;
              SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
              methods[i].ml_doc = ndoc;
            }
          }
        }
      }
    }
  } 
  
#ifdef __cplusplus
}
#endif

/* -----------------------------------------------------------------------------*
 *  Partial Init method
 * -----------------------------------------------------------------------------*/

#ifdef __cplusplus
extern "C"
#endif

SWIGEXPORT 
#if PY_VERSION_HEX >= 0x03000000
PyObject*
#else
void
#endif
SWIG_init(void) {
  PyObject *m, *d, *md;
#if PY_VERSION_HEX >= 0x03000000
  static struct PyModuleDef SWIG_module = {
# if PY_VERSION_HEX >= 0x03020000
    PyModuleDef_HEAD_INIT,
# else
    {
      PyObject_HEAD_INIT(NULL)
      NULL, /* m_init */
      0,    /* m_index */
      NULL, /* m_copy */
    },
# endif
    (char *) SWIG_name,
    NULL,
    -1,
    SwigMethods,
    NULL,
    NULL,
    NULL,
    NULL
  };
#endif
  
#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 = {
    (PyCFunction) SwigPyObject_own,
    (PyCFunction) 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();
  assert(metatype);
#endif
  
  /* Fix SwigMethods to carry the callback ptrs when needed */
  SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
  
#if PY_VERSION_HEX >= 0x03000000
  m = PyModule_Create(&SWIG_module);
#else
  m = Py_InitModule((char *) SWIG_name, SwigMethods);
#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.");
# if PY_VERSION_HEX >= 0x03000000
    return NULL;
# else
    return;
# endif
  }
  
  /* 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);
  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);
  
  PyDict_SetItemString(md,(char *)"cvar", SWIG_globals());
  SWIG_addvarlink(SWIG_globals(),(char *)"__hexversion__",Swig_var___hexversion___get, Swig_var___hexversion___set);
  SWIG_addvarlink(SWIG_globals(),(char *)"__version__",Swig_var___version___get, Swig_var___version___set);
  SWIG_Python_SetConstant(d, "Sunday",SWIG_From_int(static_cast< int >(Sunday)));
  SWIG_Python_SetConstant(d, "Monday",SWIG_From_int(static_cast< int >(Monday)));
  SWIG_Python_SetConstant(d, "Tuesday",SWIG_From_int(static_cast< int >(Tuesday)));
  SWIG_Python_SetConstant(d, "Wednesday",SWIG_From_int(static_cast< int >(Wednesday)));
  SWIG_Python_SetConstant(d, "Thursday",SWIG_From_int(static_cast< int >(Thursday)));
  SWIG_Python_SetConstant(d, "Friday",SWIG_From_int(static_cast< int >(Friday)));
  SWIG_Python_SetConstant(d, "Saturday",SWIG_From_int(static_cast< int >(Saturday)));
  SWIG_Python_SetConstant(d, "January",SWIG_From_int(static_cast< int >(January)));
  SWIG_Python_SetConstant(d, "February",SWIG_From_int(static_cast< int >(February)));
  SWIG_Python_SetConstant(d, "March",SWIG_From_int(static_cast< int >(March)));
  SWIG_Python_SetConstant(d, "April",SWIG_From_int(static_cast< int >(April)));
  SWIG_Python_SetConstant(d, "May",SWIG_From_int(static_cast< int >(May)));
  SWIG_Python_SetConstant(d, "June",SWIG_From_int(static_cast< int >(June)));
  SWIG_Python_SetConstant(d, "July",SWIG_From_int(static_cast< int >(July)));
  SWIG_Python_SetConstant(d, "August",SWIG_From_int(static_cast< int >(August)));
  SWIG_Python_SetConstant(d, "September",SWIG_From_int(static_cast< int >(September)));
  SWIG_Python_SetConstant(d, "October",SWIG_From_int(static_cast< int >(October)));
  SWIG_Python_SetConstant(d, "November",SWIG_From_int(static_cast< int >(November)));
  SWIG_Python_SetConstant(d, "December",SWIG_From_int(static_cast< int >(December)));
  SWIG_Python_SetConstant(d, "Days",SWIG_From_int(static_cast< int >(Days)));
  SWIG_Python_SetConstant(d, "Weeks",SWIG_From_int(static_cast< int >(Weeks)));
  SWIG_Python_SetConstant(d, "Months",SWIG_From_int(static_cast< int >(Months)));
  SWIG_Python_SetConstant(d, "Years",SWIG_From_int(static_cast< int >(Years)));
  SWIG_Python_SetConstant(d, "Hours",SWIG_From_int(static_cast< int >(Hours)));
  SWIG_Python_SetConstant(d, "Minutes",SWIG_From_int(static_cast< int >(Minutes)));
  SWIG_Python_SetConstant(d, "Seconds",SWIG_From_int(static_cast< int >(Seconds)));
  SWIG_Python_SetConstant(d, "Milliseconds",SWIG_From_int(static_cast< int >(Milliseconds)));
  SWIG_Python_SetConstant(d, "Microseconds",SWIG_From_int(static_cast< int >(Microseconds)));
  SWIG_Python_SetConstant(d, "NoFrequency",SWIG_From_int(static_cast< int >(NoFrequency)));
  SWIG_Python_SetConstant(d, "Once",SWIG_From_int(static_cast< int >(Once)));
  SWIG_Python_SetConstant(d, "Annual",SWIG_From_int(static_cast< int >(Annual)));
  SWIG_Python_SetConstant(d, "Semiannual",SWIG_From_int(static_cast< int >(Semiannual)));
  SWIG_Python_SetConstant(d, "EveryFourthMonth",SWIG_From_int(static_cast< int >(EveryFourthMonth)));
  SWIG_Python_SetConstant(d, "Quarterly",SWIG_From_int(static_cast< int >(Quarterly)));
  SWIG_Python_SetConstant(d, "Bimonthly",SWIG_From_int(static_cast< int >(Bimonthly)));
  SWIG_Python_SetConstant(d, "Monthly",SWIG_From_int(static_cast< int >(Monthly)));
  SWIG_Python_SetConstant(d, "EveryFourthWeek",SWIG_From_int(static_cast< int >(EveryFourthWeek)));
  SWIG_Python_SetConstant(d, "Biweekly",SWIG_From_int(static_cast< int >(Biweekly)));
  SWIG_Python_SetConstant(d, "Weekly",SWIG_From_int(static_cast< int >(Weekly)));
  SWIG_Python_SetConstant(d, "Daily",SWIG_From_int(static_cast< int >(Daily)));
  SWIG_Python_SetConstant(d, "OtherFrequency",SWIG_From_int(static_cast< int >(OtherFrequency)));
  SWIG_Python_SetConstant(d, "IMM_F",SWIG_From_int(static_cast< int >(IMM::F)));
  SWIG_Python_SetConstant(d, "IMM_G",SWIG_From_int(static_cast< int >(IMM::G)));
  SWIG_Python_SetConstant(d, "IMM_H",SWIG_From_int(static_cast< int >(IMM::H)));
  SWIG_Python_SetConstant(d, "IMM_J",SWIG_From_int(static_cast< int >(IMM::J)));
  SWIG_Python_SetConstant(d, "IMM_K",SWIG_From_int(static_cast< int >(IMM::K)));
  SWIG_Python_SetConstant(d, "IMM_M",SWIG_From_int(static_cast< int >(IMM::M)));
  SWIG_Python_SetConstant(d, "IMM_N",SWIG_From_int(static_cast< int >(IMM::N)));
  SWIG_Python_SetConstant(d, "IMM_Q",SWIG_From_int(static_cast< int >(IMM::Q)));
  SWIG_Python_SetConstant(d, "IMM_U",SWIG_From_int(static_cast< int >(IMM::U)));
  SWIG_Python_SetConstant(d, "IMM_V",SWIG_From_int(static_cast< int >(IMM::V)));
  SWIG_Python_SetConstant(d, "IMM_X",SWIG_From_int(static_cast< int >(IMM::X)));
  SWIG_Python_SetConstant(d, "IMM_Z",SWIG_From_int(static_cast< int >(IMM::Z)));
  SWIG_Python_SetConstant(d, "ASX_F",SWIG_From_int(static_cast< int >(ASX::F)));
  SWIG_Python_SetConstant(d, "ASX_G",SWIG_From_int(static_cast< int >(ASX::G)));
  SWIG_Python_SetConstant(d, "ASX_H",SWIG_From_int(static_cast< int >(ASX::H)));
  SWIG_Python_SetConstant(d, "ASX_J",SWIG_From_int(static_cast< int >(ASX::J)));
  SWIG_Python_SetConstant(d, "ASX_K",SWIG_From_int(static_cast< int >(ASX::K)));
  SWIG_Python_SetConstant(d, "ASX_M",SWIG_From_int(static_cast< int >(ASX::M)));
  SWIG_Python_SetConstant(d, "ASX_N",SWIG_From_int(static_cast< int >(ASX::N)));
  SWIG_Python_SetConstant(d, "ASX_Q",SWIG_From_int(static_cast< int >(ASX::Q)));
  SWIG_Python_SetConstant(d, "ASX_U",SWIG_From_int(static_cast< int >(ASX::U)));
  SWIG_Python_SetConstant(d, "ASX_V",SWIG_From_int(static_cast< int >(ASX::V)));
  SWIG_Python_SetConstant(d, "ASX_X",SWIG_From_int(static_cast< int >(ASX::X)));
  SWIG_Python_SetConstant(d, "ASX_Z",SWIG_From_int(static_cast< int >(ASX::Z)));
  SWIG_Python_SetConstant(d, "Exercise_American",SWIG_From_int(static_cast< int >(Exercise::American)));
  SWIG_Python_SetConstant(d, "Exercise_Bermudan",SWIG_From_int(static_cast< int >(Exercise::Bermudan)));
  SWIG_Python_SetConstant(d, "Exercise_European",SWIG_From_int(static_cast< int >(Exercise::European)));
  SWIG_Python_SetConstant(d, "SalvagingAlgorithm_NoAlgorithm",SWIG_From_int(static_cast< int >(SalvagingAlgorithm::None)));
  SWIG_Python_SetConstant(d, "SalvagingAlgorithm_Spectral",SWIG_From_int(static_cast< int >(SalvagingAlgorithm::Spectral)));
  SWIG_Python_SetConstant(d, "Following",SWIG_From_int(static_cast< int >(Following)));
  SWIG_Python_SetConstant(d, "ModifiedFollowing",SWIG_From_int(static_cast< int >(ModifiedFollowing)));
  SWIG_Python_SetConstant(d, "Preceding",SWIG_From_int(static_cast< int >(Preceding)));
  SWIG_Python_SetConstant(d, "ModifiedPreceding",SWIG_From_int(static_cast< int >(ModifiedPreceding)));
  SWIG_Python_SetConstant(d, "Unadjusted",SWIG_From_int(static_cast< int >(Unadjusted)));
  SWIG_Python_SetConstant(d, "HalfMonthModifiedFollowing",SWIG_From_int(static_cast< int >(HalfMonthModifiedFollowing)));
  SWIG_Python_SetConstant(d, "JoinHolidays",SWIG_From_int(static_cast< int >(JoinHolidays)));
  SWIG_Python_SetConstant(d, "JoinBusinessDays",SWIG_From_int(static_cast< int >(JoinBusinessDays)));
  SWIG_Python_SetConstant(d, "Argentina_Merval",SWIG_From_int(static_cast< int >(QuantLib::Argentina::Merval)));
  SWIG_Python_SetConstant(d, "Brazil_Settlement",SWIG_From_int(static_cast< int >(QuantLib::Brazil::Settlement)));
  SWIG_Python_SetConstant(d, "Brazil_Exchange",SWIG_From_int(static_cast< int >(QuantLib::Brazil::Exchange)));
  SWIG_Python_SetConstant(d, "Canada_Settlement",SWIG_From_int(static_cast< int >(QuantLib::Canada::Settlement)));
  SWIG_Python_SetConstant(d, "Canada_TSX",SWIG_From_int(static_cast< int >(QuantLib::Canada::TSX)));
  SWIG_Python_SetConstant(d, "China_SSE",SWIG_From_int(static_cast< int >(QuantLib::China::SSE)));
  SWIG_Python_SetConstant(d, "China_IB",SWIG_From_int(static_cast< int >(QuantLib::China::IB)));
  SWIG_Python_SetConstant(d, "CzechRepublic_PSE",SWIG_From_int(static_cast< int >(QuantLib::CzechRepublic::PSE)));
  SWIG_Python_SetConstant(d, "Germany_Settlement",SWIG_From_int(static_cast< int >(QuantLib::Germany::Settlement)));
  SWIG_Python_SetConstant(d, "Germany_FrankfurtStockExchange",SWIG_From_int(static_cast< int >(QuantLib::Germany::FrankfurtStockExchange)));
  SWIG_Python_SetConstant(d, "Germany_Xetra",SWIG_From_int(static_cast< int >(QuantLib::Germany::Xetra)));
  SWIG_Python_SetConstant(d, "Germany_Eurex",SWIG_From_int(static_cast< int >(QuantLib::Germany::Eurex)));
  SWIG_Python_SetConstant(d, "HongKong_HKEx",SWIG_From_int(static_cast< int >(QuantLib::HongKong::HKEx)));
  SWIG_Python_SetConstant(d, "Iceland_ICEX",SWIG_From_int(static_cast< int >(QuantLib::Iceland::ICEX)));
  SWIG_Python_SetConstant(d, "India_NSE",SWIG_From_int(static_cast< int >(QuantLib::India::NSE)));
  SWIG_Python_SetConstant(d, "Indonesia_BEJ",SWIG_From_int(static_cast< int >(QuantLib::Indonesia::BEJ)));
  SWIG_Python_SetConstant(d, "Indonesia_JSX",SWIG_From_int(static_cast< int >(QuantLib::Indonesia::JSX)));
  SWIG_Python_SetConstant(d, "Israel_Settlement",SWIG_From_int(static_cast< int >(QuantLib::Israel::Settlement)));
  SWIG_Python_SetConstant(d, "Israel_TASE",SWIG_From_int(static_cast< int >(QuantLib::Israel::TASE)));
  SWIG_Python_SetConstant(d, "Italy_Settlement",SWIG_From_int(static_cast< int >(QuantLib::Italy::Settlement)));
  SWIG_Python_SetConstant(d, "Italy_Exchange",SWIG_From_int(static_cast< int >(QuantLib::Italy::Exchange)));
  SWIG_Python_SetConstant(d, "Mexico_BMV",SWIG_From_int(static_cast< int >(QuantLib::Mexico::BMV)));
  SWIG_Python_SetConstant(d, "Russia_Settlement",SWIG_From_int(static_cast< int >(QuantLib::Russia::Settlement)));
  SWIG_Python_SetConstant(d, "Russia_MOEX",SWIG_From_int(static_cast< int >(QuantLib::Russia::MOEX)));
  SWIG_Python_SetConstant(d, "SaudiArabia_Tadawul",SWIG_From_int(static_cast< int >(QuantLib::SaudiArabia::Tadawul)));
  SWIG_Python_SetConstant(d, "Singapore_SGX",SWIG_From_int(static_cast< int >(QuantLib::Singapore::SGX)));
  SWIG_Python_SetConstant(d, "Slovakia_BSSE",SWIG_From_int(static_cast< int >(QuantLib::Slovakia::BSSE)));
  SWIG_Python_SetConstant(d, "SouthKorea_Settlement",SWIG_From_int(static_cast< int >(QuantLib::SouthKorea::Settlement)));
  SWIG_Python_SetConstant(d, "SouthKorea_KRX",SWIG_From_int(static_cast< int >(QuantLib::SouthKorea::KRX)));
  SWIG_Python_SetConstant(d, "Taiwan_TSEC",SWIG_From_int(static_cast< int >(QuantLib::Taiwan::TSEC)));
  SWIG_Python_SetConstant(d, "Ukraine_USE",SWIG_From_int(static_cast< int >(QuantLib::Ukraine::USE)));
  SWIG_Python_SetConstant(d, "UnitedKingdom_Settlement",SWIG_From_int(static_cast< int >(QuantLib::UnitedKingdom::Settlement)));
  SWIG_Python_SetConstant(d, "UnitedKingdom_Exchange",SWIG_From_int(static_cast< int >(QuantLib::UnitedKingdom::Exchange)));
  SWIG_Python_SetConstant(d, "UnitedKingdom_Metals",SWIG_From_int(static_cast< int >(QuantLib::UnitedKingdom::Metals)));
  SWIG_Python_SetConstant(d, "UnitedStates_Settlement",SWIG_From_int(static_cast< int >(QuantLib::UnitedStates::Settlement)));
  SWIG_Python_SetConstant(d, "UnitedStates_NYSE",SWIG_From_int(static_cast< int >(QuantLib::UnitedStates::NYSE)));
  SWIG_Python_SetConstant(d, "UnitedStates_GovernmentBond",SWIG_From_int(static_cast< int >(QuantLib::UnitedStates::GovernmentBond)));
  SWIG_Python_SetConstant(d, "UnitedStates_NERC",SWIG_From_int(static_cast< int >(QuantLib::UnitedStates::NERC)));
  SWIG_Python_SetConstant(d, "UnitedStates_LiborImpact",SWIG_From_int(static_cast< int >(QuantLib::UnitedStates::LiborImpact)));
  SWIG_Python_SetConstant(d, "UnitedStates_FederalReserve",SWIG_From_int(static_cast< int >(QuantLib::UnitedStates::FederalReserve)));
  SWIG_Python_SetConstant(d, "Actual365Fixed_Standard",SWIG_From_int(static_cast< int >(QuantLib::Actual365Fixed::Standard)));
  SWIG_Python_SetConstant(d, "Actual365Fixed_Canadian",SWIG_From_int(static_cast< int >(QuantLib::Actual365Fixed::Canadian)));
  SWIG_Python_SetConstant(d, "Actual365Fixed_NoLeap",SWIG_From_int(static_cast< int >(QuantLib::Actual365Fixed::NoLeap)));
  SWIG_Python_SetConstant(d, "Thirty360_USA",SWIG_From_int(static_cast< int >(QuantLib::Thirty360::USA)));
  SWIG_Python_SetConstant(d, "Thirty360_BondBasis",SWIG_From_int(static_cast< int >(QuantLib::Thirty360::BondBasis)));
  SWIG_Python_SetConstant(d, "Thirty360_European",SWIG_From_int(static_cast< int >(QuantLib::Thirty360::European)));
  SWIG_Python_SetConstant(d, "Thirty360_EurobondBasis",SWIG_From_int(static_cast< int >(QuantLib::Thirty360::EurobondBasis)));
  SWIG_Python_SetConstant(d, "Thirty360_Italian",SWIG_From_int(static_cast< int >(QuantLib::Thirty360::Italian)));
  SWIG_Python_SetConstant(d, "ActualActual_ISMA",SWIG_From_int(static_cast< int >(QuantLib::ActualActual::ISMA)));
  SWIG_Python_SetConstant(d, "ActualActual_Bond",SWIG_From_int(static_cast< int >(QuantLib::ActualActual::Bond)));
  SWIG_Python_SetConstant(d, "ActualActual_ISDA",SWIG_From_int(static_cast< int >(QuantLib::ActualActual::ISDA)));
  SWIG_Python_SetConstant(d, "ActualActual_Historical",SWIG_From_int(static_cast< int >(QuantLib::ActualActual::Historical)));
  SWIG_Python_SetConstant(d, "ActualActual_Actual365",SWIG_From_int(static_cast< int >(QuantLib::ActualActual::Actual365)));
  SWIG_Python_SetConstant(d, "ActualActual_AFB",SWIG_From_int(static_cast< int >(QuantLib::ActualActual::AFB)));
  SWIG_Python_SetConstant(d, "ActualActual_Euro",SWIG_From_int(static_cast< int >(QuantLib::ActualActual::Euro)));
  SWIG_Python_SetConstant(d, "Simple",SWIG_From_int(static_cast< int >(Simple)));
  SWIG_Python_SetConstant(d, "Compounded",SWIG_From_int(static_cast< int >(Compounded)));
  SWIG_Python_SetConstant(d, "Continuous",SWIG_From_int(static_cast< int >(Continuous)));
  SWIG_Python_SetConstant(d, "SimpleThenCompounded",SWIG_From_int(static_cast< int >(SimpleThenCompounded)));
  SWIG_Python_SetConstant(d, "CompoundedThenSimple",SWIG_From_int(static_cast< int >(CompoundedThenSimple)));
  SWIG_Python_SetConstant(d, "IntervalPrice_Open",SWIG_From_int(static_cast< int >(IntervalPrice::Open)));
  SWIG_Python_SetConstant(d, "IntervalPrice_Close",SWIG_From_int(static_cast< int >(IntervalPrice::Close)));
  SWIG_Python_SetConstant(d, "IntervalPrice_High",SWIG_From_int(static_cast< int >(IntervalPrice::High)));
  SWIG_Python_SetConstant(d, "IntervalPrice_Low",SWIG_From_int(static_cast< int >(IntervalPrice::Low)));
  SWIG_Python_SetConstant(d, "EndCriteria_NoCriteria",SWIG_From_int(static_cast< int >(EndCriteria::None)));
  SWIG_Python_SetConstant(d, "EndCriteria_MaxIterations",SWIG_From_int(static_cast< int >(EndCriteria::MaxIterations)));
  SWIG_Python_SetConstant(d, "EndCriteria_StationaryPoint",SWIG_From_int(static_cast< int >(EndCriteria::StationaryPoint)));
  SWIG_Python_SetConstant(d, "EndCriteria_StationaryFunctionValue",SWIG_From_int(static_cast< int >(EndCriteria::StationaryFunctionValue)));
  SWIG_Python_SetConstant(d, "EndCriteria_StationaryFunctionAccuracy",SWIG_From_int(static_cast< int >(EndCriteria::StationaryFunctionAccuracy)));
  SWIG_Python_SetConstant(d, "EndCriteria_ZeroGradientNorm",SWIG_From_int(static_cast< int >(EndCriteria::ZeroGradientNorm)));
  SWIG_Python_SetConstant(d, "EndCriteria_Unknown",SWIG_From_int(static_cast< int >(EndCriteria::Unknown)));
  SWIG_Python_SetConstant(d, "GaussianSimulatedAnnealing_NoResetScheme",SWIG_From_int(static_cast< int >(GaussianSimulatedAnnealing::NoResetScheme)));
  SWIG_Python_SetConstant(d, "GaussianSimulatedAnnealing_ResetToBestPoint",SWIG_From_int(static_cast< int >(GaussianSimulatedAnnealing::ResetToBestPoint)));
  SWIG_Python_SetConstant(d, "GaussianSimulatedAnnealing_ResetToOrigin",SWIG_From_int(static_cast< int >(GaussianSimulatedAnnealing::ResetToOrigin)));
  SWIG_Python_SetConstant(d, "MirrorGaussianSimulatedAnnealing_NoResetScheme",SWIG_From_int(static_cast< int >(MirrorGaussianSimulatedAnnealing::NoResetScheme)));
  SWIG_Python_SetConstant(d, "MirrorGaussianSimulatedAnnealing_ResetToBestPoint",SWIG_From_int(static_cast< int >(MirrorGaussianSimulatedAnnealing::ResetToBestPoint)));
  SWIG_Python_SetConstant(d, "MirrorGaussianSimulatedAnnealing_ResetToOrigin",SWIG_From_int(static_cast< int >(MirrorGaussianSimulatedAnnealing::ResetToOrigin)));
  SWIG_Python_SetConstant(d, "LogNormalSimulatedAnnealing_NoResetScheme",SWIG_From_int(static_cast< int >(LogNormalSimulatedAnnealing::NoResetScheme)));
  SWIG_Python_SetConstant(d, "LogNormalSimulatedAnnealing_ResetToBestPoint",SWIG_From_int(static_cast< int >(LogNormalSimulatedAnnealing::ResetToBestPoint)));
  SWIG_Python_SetConstant(d, "LogNormalSimulatedAnnealing_ResetToOrigin",SWIG_From_int(static_cast< int >(LogNormalSimulatedAnnealing::ResetToOrigin)));
  SWIG_Python_SetConstant(d, "ShiftedLognormal",SWIG_From_int(static_cast< int >(ShiftedLognormal)));
  SWIG_Python_SetConstant(d, "Normal",SWIG_From_int(static_cast< int >(Normal)));
  SWIG_Python_SetConstant(d, "BlackVarianceSurface_ConstantExtrapolation",SWIG_From_int(static_cast< int >(BlackVarianceSurface::ConstantExtrapolation)));
  SWIG_Python_SetConstant(d, "BlackVarianceSurface_InterpolatorDefaultExtrapolation",SWIG_From_int(static_cast< int >(BlackVarianceSurface::InterpolatorDefaultExtrapolation)));
  SWIG_Python_SetConstant(d, "DateGeneration_Backward",SWIG_From_int(static_cast< int >(DateGeneration::Backward)));
  SWIG_Python_SetConstant(d, "DateGeneration_Forward",SWIG_From_int(static_cast< int >(DateGeneration::Forward)));
  SWIG_Python_SetConstant(d, "DateGeneration_Zero",SWIG_From_int(static_cast< int >(DateGeneration::Zero)));
  SWIG_Python_SetConstant(d, "DateGeneration_ThirdWednesday",SWIG_From_int(static_cast< int >(DateGeneration::ThirdWednesday)));
  SWIG_Python_SetConstant(d, "DateGeneration_Twentieth",SWIG_From_int(static_cast< int >(DateGeneration::Twentieth)));
  SWIG_Python_SetConstant(d, "DateGeneration_TwentiethIMM",SWIG_From_int(static_cast< int >(DateGeneration::TwentiethIMM)));
  SWIG_Python_SetConstant(d, "DateGeneration_OldCDS",SWIG_From_int(static_cast< int >(DateGeneration::OldCDS)));
  SWIG_Python_SetConstant(d, "DateGeneration_CDS",SWIG_From_int(static_cast< int >(DateGeneration::CDS)));
  SWIG_Python_SetConstant(d, "DateGeneration_CDS2015",SWIG_From_int(static_cast< int >(DateGeneration::CDS2015)));
  SWIG_Python_SetConstant(d, "GFunctionFactory_Standard",SWIG_From_int(static_cast< int >(GFunctionFactory::Standard)));
  SWIG_Python_SetConstant(d, "GFunctionFactory_ExactYield",SWIG_From_int(static_cast< int >(GFunctionFactory::ExactYield)));
  SWIG_Python_SetConstant(d, "GFunctionFactory_ParallelShifts",SWIG_From_int(static_cast< int >(GFunctionFactory::ParallelShifts)));
  SWIG_Python_SetConstant(d, "GFunctionFactory_NonParallelShifts",SWIG_From_int(static_cast< int >(GFunctionFactory::NonParallelShifts)));
  SWIG_Python_SetConstant(d, "Duration_Simple",SWIG_From_int(static_cast< int >(Duration::Simple)));
  SWIG_Python_SetConstant(d, "Duration_Macaulay",SWIG_From_int(static_cast< int >(Duration::Macaulay)));
  SWIG_Python_SetConstant(d, "Duration_Modified",SWIG_From_int(static_cast< int >(Duration::Modified)));
  SWIG_Python_SetConstant(d, "CalibrationHelper_RelativePriceError",SWIG_From_int(static_cast< int >(CalibrationHelper::RelativePriceError)));
  SWIG_Python_SetConstant(d, "CalibrationHelper_PriceError",SWIG_From_int(static_cast< int >(CalibrationHelper::PriceError)));
  SWIG_Python_SetConstant(d, "CalibrationHelper_ImpliedVolError",SWIG_From_int(static_cast< int >(CalibrationHelper::ImpliedVolError)));
  SWIG_Python_SetConstant(d, "Option_Put",SWIG_From_int(static_cast< int >(Option::Put)));
  SWIG_Python_SetConstant(d, "Option_Call",SWIG_From_int(static_cast< int >(Option::Call)));
  SWIG_Python_SetConstant(d, "Barrier_DownIn",SWIG_From_int(static_cast< int >(Barrier::DownIn)));
  SWIG_Python_SetConstant(d, "Barrier_UpIn",SWIG_From_int(static_cast< int >(Barrier::UpIn)));
  SWIG_Python_SetConstant(d, "Barrier_DownOut",SWIG_From_int(static_cast< int >(Barrier::DownOut)));
  SWIG_Python_SetConstant(d, "Barrier_UpOut",SWIG_From_int(static_cast< int >(Barrier::UpOut)));
  SWIG_Python_SetConstant(d, "DoubleBarrier_KnockIn",SWIG_From_int(static_cast< int >(DoubleBarrier::KnockIn)));
  SWIG_Python_SetConstant(d, "DoubleBarrier_KnockOut",SWIG_From_int(static_cast< int >(DoubleBarrier::KnockOut)));
  SWIG_Python_SetConstant(d, "DoubleBarrier_KIKO",SWIG_From_int(static_cast< int >(DoubleBarrier::KIKO)));
  SWIG_Python_SetConstant(d, "DoubleBarrier_KOKI",SWIG_From_int(static_cast< int >(DoubleBarrier::KOKI)));
  SWIG_Python_SetConstant(d, "FdmSchemeDesc_HundsdorferType",SWIG_From_int(static_cast< int >(FdmSchemeDesc::HundsdorferType)));
  SWIG_Python_SetConstant(d, "FdmSchemeDesc_DouglasType",SWIG_From_int(static_cast< int >(FdmSchemeDesc::DouglasType)));
  SWIG_Python_SetConstant(d, "FdmSchemeDesc_CraigSneydType",SWIG_From_int(static_cast< int >(FdmSchemeDesc::CraigSneydType)));
  SWIG_Python_SetConstant(d, "FdmSchemeDesc_ModifiedCraigSneydType",SWIG_From_int(static_cast< int >(FdmSchemeDesc::ModifiedCraigSneydType)));
  SWIG_Python_SetConstant(d, "FdmSchemeDesc_ImplicitEulerType",SWIG_From_int(static_cast< int >(FdmSchemeDesc::ImplicitEulerType)));
  SWIG_Python_SetConstant(d, "FdmSchemeDesc_ExplicitEulerType",SWIG_From_int(static_cast< int >(FdmSchemeDesc::ExplicitEulerType)));
  SWIG_Python_SetConstant(d, "Average_Arithmetic",SWIG_From_int(static_cast< int >(Average::Arithmetic)));
  SWIG_Python_SetConstant(d, "Average_Geometric",SWIG_From_int(static_cast< int >(Average::Geometric)));
  SWIG_Python_SetConstant(d, "DeltaVolQuote_Spot",SWIG_From_int(static_cast< int >(DeltaVolQuote::Spot)));
  SWIG_Python_SetConstant(d, "DeltaVolQuote_Fwd",SWIG_From_int(static_cast< int >(DeltaVolQuote::Fwd)));
  SWIG_Python_SetConstant(d, "DeltaVolQuote_PaSpot",SWIG_From_int(static_cast< int >(DeltaVolQuote::PaSpot)));
  SWIG_Python_SetConstant(d, "DeltaVolQuote_PaFwd",SWIG_From_int(static_cast< int >(DeltaVolQuote::PaFwd)));
  SWIG_Python_SetConstant(d, "DeltaVolQuote_AtmNull",SWIG_From_int(static_cast< int >(DeltaVolQuote::AtmNull)));
  SWIG_Python_SetConstant(d, "DeltaVolQuote_AtmSpot",SWIG_From_int(static_cast< int >(DeltaVolQuote::AtmSpot)));
  SWIG_Python_SetConstant(d, "DeltaVolQuote_AtmFwd",SWIG_From_int(static_cast< int >(DeltaVolQuote::AtmFwd)));
  SWIG_Python_SetConstant(d, "DeltaVolQuote_AtmDeltaNeutral",SWIG_From_int(static_cast< int >(DeltaVolQuote::AtmDeltaNeutral)));
  SWIG_Python_SetConstant(d, "DeltaVolQuote_AtmVegaMax",SWIG_From_int(static_cast< int >(DeltaVolQuote::AtmVegaMax)));
  SWIG_Python_SetConstant(d, "DeltaVolQuote_AtmGammaMax",SWIG_From_int(static_cast< int >(DeltaVolQuote::AtmGammaMax)));
  SWIG_Python_SetConstant(d, "DeltaVolQuote_AtmPutCall50",SWIG_From_int(static_cast< int >(DeltaVolQuote::AtmPutCall50)));
  SWIG_Python_SetConstant(d, "CallabilityPrice_Dirty",SWIG_From_int(static_cast< int >(CallabilityPrice::Dirty)));
  SWIG_Python_SetConstant(d, "CallabilityPrice_Clean",SWIG_From_int(static_cast< int >(CallabilityPrice::Clean)));
  SWIG_Python_SetConstant(d, "Callability_Call",SWIG_From_int(static_cast< int >(Callability::Call)));
  SWIG_Python_SetConstant(d, "Callability_Put",SWIG_From_int(static_cast< int >(Callability::Put)));
  SWIG_Python_SetConstant(d, "CPI_AsIndex",SWIG_From_int(static_cast< int >(CPI::AsIndex)));
  SWIG_Python_SetConstant(d, "CPI_Flat",SWIG_From_int(static_cast< int >(CPI::Flat)));
  SWIG_Python_SetConstant(d, "CPI_Linear",SWIG_From_int(static_cast< int >(CPI::Linear)));
  SWIG_Python_SetConstant(d, "ZeroCouponInflationSwap_Receiver",SWIG_From_int(static_cast< int >(ZeroCouponInflationSwap::Receiver)));
  SWIG_Python_SetConstant(d, "ZeroCouponInflationSwap_Payer",SWIG_From_int(static_cast< int >(ZeroCouponInflationSwap::Payer)));
  SWIG_Python_SetConstant(d, "YearOnYearInflationSwap_Receiver",SWIG_From_int(static_cast< int >(YearOnYearInflationSwap::Receiver)));
  SWIG_Python_SetConstant(d, "YearOnYearInflationSwap_Payer",SWIG_From_int(static_cast< int >(YearOnYearInflationSwap::Payer)));
  SWIG_Python_SetConstant(d, "Protection_Buyer",SWIG_From_int(static_cast< int >(Protection::Buyer)));
  SWIG_Python_SetConstant(d, "Protection_Seller",SWIG_From_int(static_cast< int >(Protection::Seller)));
  SWIG_Python_SetConstant(d, "Money_NoConversion",SWIG_From_int(static_cast< int >(Money::NoConversion)));
  SWIG_Python_SetConstant(d, "Money_BaseCurrencyConversion",SWIG_From_int(static_cast< int >(Money::BaseCurrencyConversion)));
  SWIG_Python_SetConstant(d, "Money_AutomatedConversion",SWIG_From_int(static_cast< int >(Money::AutomatedConversion)));
  SWIG_Python_SetConstant(d, "ExchangeRate_Direct",SWIG_From_int(static_cast< int >(ExchangeRate::Direct)));
  SWIG_Python_SetConstant(d, "ExchangeRate_Derived",SWIG_From_int(static_cast< int >(ExchangeRate::Derived)));
  SWIG_Python_SetConstant(d, "Futures_IMM",SWIG_From_int(static_cast< int >(Futures::IMM)));
  SWIG_Python_SetConstant(d, "Futures_ASX",SWIG_From_int(static_cast< int >(Futures::ASX)));
  SWIG_Python_SetConstant(d, "VanillaSwap_Receiver",SWIG_From_int(static_cast< int >(VanillaSwap::Receiver)));
  SWIG_Python_SetConstant(d, "VanillaSwap_Payer",SWIG_From_int(static_cast< int >(VanillaSwap::Payer)));
  SWIG_Python_SetConstant(d, "Pillar_MaturityDate",SWIG_From_int(static_cast< int >(Pillar::MaturityDate)));
  SWIG_Python_SetConstant(d, "Pillar_LastRelevantDate",SWIG_From_int(static_cast< int >(Pillar::LastRelevantDate)));
  SWIG_Python_SetConstant(d, "Pillar_CustomDate",SWIG_From_int(static_cast< int >(Pillar::CustomDate)));
  SWIG_Python_SetConstant(d, "Position_Long",SWIG_From_int(static_cast< int >(Position::Long)));
  SWIG_Python_SetConstant(d, "Position_Short",SWIG_From_int(static_cast< int >(Position::Short)));
  SWIG_Python_SetConstant(d, "MarkovFunctionalSettings_AdjustNone",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::AdjustNone)));
  SWIG_Python_SetConstant(d, "MarkovFunctionalSettings_AdjustDigitals",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::AdjustDigitals)));
  SWIG_Python_SetConstant(d, "MarkovFunctionalSettings_AdjustYts",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::AdjustYts)));
  SWIG_Python_SetConstant(d, "MarkovFunctionalSettings_ExtrapolatePayoffFlat",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::ExtrapolatePayoffFlat)));
  SWIG_Python_SetConstant(d, "MarkovFunctionalSettings_NoPayoffExtrapolation",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::NoPayoffExtrapolation)));
  SWIG_Python_SetConstant(d, "MarkovFunctionalSettings_KahaleSmile",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::KahaleSmile)));
  SWIG_Python_SetConstant(d, "MarkovFunctionalSettings_SmileExponentialExtrapolation",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::SmileExponentialExtrapolation)));
  SWIG_Python_SetConstant(d, "MarkovFunctionalSettings_KahaleInterpolation",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::KahaleInterpolation)));
  SWIG_Python_SetConstant(d, "MarkovFunctionalSettings_SmileDeleteArbitragePoints",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::SmileDeleteArbitragePoints)));
  SWIG_Python_SetConstant(d, "MarkovFunctionalSettings_SabrSmile",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::SabrSmile)));
  SWIG_Python_SetConstant(d, "MarkovFunctional_AdjustNone",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::AdjustNone)));
  SWIG_Python_SetConstant(d, "MarkovFunctional_AdjustDigitals",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::AdjustDigitals)));
  SWIG_Python_SetConstant(d, "MarkovFunctional_AdjustYts",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::AdjustYts)));
  SWIG_Python_SetConstant(d, "MarkovFunctional_ExtrapolatePayoffFlat",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::ExtrapolatePayoffFlat)));
  SWIG_Python_SetConstant(d, "MarkovFunctional_NoPayoffExtrapolation",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::NoPayoffExtrapolation)));
  SWIG_Python_SetConstant(d, "MarkovFunctional_KahaleSmile",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::KahaleSmile)));
  SWIG_Python_SetConstant(d, "MarkovFunctional_SmileExponentialExtrapolation",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::SmileExponentialExtrapolation)));
  SWIG_Python_SetConstant(d, "MarkovFunctional_KahaleInterpolation",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::KahaleInterpolation)));
  SWIG_Python_SetConstant(d, "MarkovFunctional_SmileDeleteArbitragePoints",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::SmileDeleteArbitragePoints)));
  SWIG_Python_SetConstant(d, "MarkovFunctional_SabrSmile",SWIG_From_int(static_cast< int >(MarkovFunctional::ModelSettings::SabrSmile)));
  SWIG_Python_SetConstant(d, "Gaussian1dFloatFloatSwaptionEngine__None",SWIG_From_int(static_cast< int >(Gaussian1dFloatFloatSwaptionEngine::None)));
  SWIG_Python_SetConstant(d, "Gaussian1dFloatFloatSwaptionEngine_Naive",SWIG_From_int(static_cast< int >(Gaussian1dFloatFloatSwaptionEngine::Naive)));
  SWIG_Python_SetConstant(d, "Gaussian1dFloatFloatSwaptionEngine_Digital",SWIG_From_int(static_cast< int >(Gaussian1dFloatFloatSwaptionEngine::Digital)));
  SWIG_Python_SetConstant(d, "SobolRsg_Unit",SWIG_From_int(static_cast< int >(SobolRsg::Unit)));
  SWIG_Python_SetConstant(d, "SobolRsg_Jaeckel",SWIG_From_int(static_cast< int >(SobolRsg::Jaeckel)));
  SWIG_Python_SetConstant(d, "SobolRsg_SobolLevitan",SWIG_From_int(static_cast< int >(SobolRsg::SobolLevitan)));
  SWIG_Python_SetConstant(d, "SobolRsg_SobolLevitanLemieux",SWIG_From_int(static_cast< int >(SobolRsg::SobolLevitanLemieux)));
  SWIG_Python_SetConstant(d, "SobolRsg_JoeKuoD5",SWIG_From_int(static_cast< int >(SobolRsg::JoeKuoD5)));
  SWIG_Python_SetConstant(d, "SobolRsg_JoeKuoD6",SWIG_From_int(static_cast< int >(SobolRsg::JoeKuoD6)));
  SWIG_Python_SetConstant(d, "SobolRsg_JoeKuoD7",SWIG_From_int(static_cast< int >(SobolRsg::JoeKuoD7)));
  SWIG_Python_SetConstant(d, "SobolRsg_Kuo",SWIG_From_int(static_cast< int >(SobolRsg::Kuo)));
  SWIG_Python_SetConstant(d, "SobolRsg_Kuo2",SWIG_From_int(static_cast< int >(SobolRsg::Kuo2)));
  SWIG_Python_SetConstant(d, "SobolRsg_Kuo3",SWIG_From_int(static_cast< int >(SobolRsg::Kuo3)));
  SWIG_Python_SetConstant(d, "BoundaryCondition_NoSide",SWIG_From_int(static_cast< int >(DefaultBoundaryCondition::None)));
  SWIG_Python_SetConstant(d, "BoundaryCondition_Upper",SWIG_From_int(static_cast< int >(DefaultBoundaryCondition::Upper)));
  SWIG_Python_SetConstant(d, "BoundaryCondition_Lower",SWIG_From_int(static_cast< int >(DefaultBoundaryCondition::Lower)));
  SWIG_Python_SetConstant(d, "Settlement_Physical",SWIG_From_int(static_cast< int >(Settlement::Physical)));
  SWIG_Python_SetConstant(d, "Settlement_Cash",SWIG_From_int(static_cast< int >(Settlement::Cash)));
#if PY_VERSION_HEX >= 0x03000000
  return m;
#else
  return;
#endif
}

